////////////////////////////////////////////////////////// // This class has been automatically generated on // Sat Jun 16 00:50:34 2007 by ROOT version 5.13/04e // from TTree data/data from PCaloHits_g4SimHitsES // found on file: ana_g4sim.root ////////////////////////////////////////////////////////// #ifndef select_h #define select_h #include #include #include #include class select : public TSelector { public : TTree *fChain; //!pointer to the analyzed TTree or TChain // Declaration of leave types UInt_t nEvt; UInt_t inst; UInt_t detid; Double_t energy; Double_t time; UInt_t trackid; Int_t det; Int_t subdet; Int_t plane; Int_t iz; Int_t ix; Int_t iy; Int_t strip; // List of branches TBranch *b_nEvt; //! TBranch *b_inst; //! TBranch *b_detid; //! TBranch *b_energy; //! TBranch *b_time; //! TBranch *b_trackid; //! TBranch *b_det; //! TBranch *b_subdet; //! TBranch *b_plane; //! TBranch *b_iz; //! TBranch *b_ix; //! TBranch *b_iy; //! TBranch *b_strip; //! select(TTree * /*tree*/ =0) { } virtual ~select() { } 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(select,0); }; #endif #ifdef select_cxx void select::Init(TTree *tree) { // The Init() function is called when the selector needs to initialize // a new tree or chain. Typically here the branch addresses and branch // pointers of the tree will be set. // It is normaly not necessary to make changes to the generated // code, but the routine can be extended by the user if needed. // Init() will be called many times when running on PROOF // (once per file to be processed). // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fChain->SetMakeClass(1); fChain->SetBranchAddress("nEvt", &nEvt, &b_nEvt); fChain->SetBranchAddress("inst", &inst, &b_inst); fChain->SetBranchAddress("detid", &detid, &b_detid); fChain->SetBranchAddress("energy", &energy, &b_energy); fChain->SetBranchAddress("time", &time, &b_time); fChain->SetBranchAddress("trackid", &trackid, &b_trackid); fChain->SetBranchAddress("det", &det, &b_det); fChain->SetBranchAddress("subdet", &subdet, &b_subdet); fChain->SetBranchAddress("plane", &plane, &b_plane); fChain->SetBranchAddress("iz", &iz, &b_iz); fChain->SetBranchAddress("ix", &ix, &b_ix); fChain->SetBranchAddress("iy", &iy, &b_iy); fChain->SetBranchAddress("strip", &strip, &b_strip); } Bool_t select::Notify() { // The Notify() function is called when a new file is opened. This // can be either for a new TTree in a TChain or when when a new TTree // is started when using PROOF. It is normaly not necessary to make changes // to the generated code, but the routine can be extended by the // user if needed. The return value is currently not used. return kTRUE; } #endif // #ifdef select_cxx