#ifndef GainMatchSX3Front_h #define GainMatchSX3Front_h #include #include #include #include #include "Armory/ClassDet.h" class GainMatchSX3Front : public TSelector { public : TTree *fChain; //!pointer to the analyzed TTree or TChain // Fixed size dimensions of array or collections stored in the TTree if any. // Declaration of leaf types Det sx3; Det qqq; Det pc ; ULong64_t evID; UInt_t run; // List of branches TBranch *b_eventID; //! TBranch *b_run; //! TBranch *b_sx3Multi; //! TBranch *b_sx3ID; //! TBranch *b_sx3Ch; //! TBranch *b_sx3E; //! TBranch *b_sx3T; //! TBranch *b_qqqMulti; //! TBranch *b_qqqID; //! TBranch *b_qqqCh; //! TBranch *b_qqqE; //! TBranch *b_qqqT; //! TBranch *b_pcMulti; //! TBranch *b_pcID; //! TBranch *b_pcCh; //! TBranch *b_pcE; //! TBranch *b_pcT; //! GainMatchSX3Front(TTree * /*tree*/ =0) : fChain(0) { } virtual ~GainMatchSX3Front() { } virtual Int_t Version() const { return 2; } virtual void Begin(TTree *tree); virtual void SlaveBegin(TTree *tree); virtual void Init(TTree *tree); virtual Bool_t Notify(); virtual Bool_t Process(Long64_t entry); virtual Int_t GetEntry(Long64_t entry, Int_t getall = 0) { return fChain ? fChain->GetTree()->GetEntry(entry, getall) : 0; } virtual void SetOption(const char *option) { fOption = option; } virtual void SetObject(TObject *obj) { fObject = obj; } virtual void SetInputList(TList *input) { fInput = input; } virtual TList *GetOutputList() const { return fOutput; } virtual void SlaveTerminate(); virtual void Terminate(); ClassDef(GainMatchSX3Front,0); }; #endif #ifdef GainMatchSX3Front_cxx void GainMatchSX3Front::Init(TTree *tree){ // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fChain->SetMakeClass(1); fChain->SetBranchAddress("evID", &evID, &b_eventID); fChain->SetBranchAddress("run", &run, &b_run); sx3.SetDetDimension(24,12); qqq.SetDetDimension(4,32); pc.SetDetDimension(2,24); fChain->SetBranchAddress("sx3Multi", &sx3.multi, &b_sx3Multi); fChain->SetBranchAddress("sx3ID", &sx3.id, &b_sx3ID); fChain->SetBranchAddress("sx3Ch", &sx3.ch, &b_sx3Ch); fChain->SetBranchAddress("sx3E", &sx3.e, &b_sx3E); fChain->SetBranchAddress("sx3T", &sx3.t, &b_sx3T); } Bool_t GainMatchSX3Front::Notify(){ return kTRUE; } void GainMatchSX3Front::SlaveBegin(TTree * /*tree*/){ TString option = GetOption(); } void GainMatchSX3Front::SlaveTerminate(){ } #endif // #ifdef GainMatchSX3Front_cxx