////////////////////////////////////////////////////////// // This class has been automatically generated on // Fri Jun 3 09:14:34 2011 by ROOT version 5.26/00d // from TTree reconPhoton/Reconstructed Photons // found on file: JOB6122701_fine.root ////////////////////////////////////////////////////////// #ifndef bcal_calib_selector_h #define bcal_calib_selector_h #include #include #include #include #include class bcal_calib_selector : public TSelector { public : TTree *fChain; //!pointer to the analyzed TTree or TChain // Declaration of leaf types //ReconPhoton *R; UInt_t fUniqueID; UInt_t fBits; Int_t event; Float_t E; Float_t E_raw; UInt_t pos_fUniqueID; UInt_t pos_fBits; Double_t pos_fX; Double_t pos_fY; Double_t pos_fZ; Float_t t; Int_t N_cell; Int_t Nrecon; Float_t E_thrown; UInt_t p_thrown_fUniqueID; UInt_t p_thrown_fBits; Double_t p_thrown_fX; Double_t p_thrown_fY; Double_t p_thrown_fZ; // List of branches TBranch *b_R_fUniqueID; //! TBranch *b_R_fBits; //! TBranch *b_R_event; //! TBranch *b_R_E; //! TBranch *b_R_E_raw; //! TBranch *b_R_pos_fUniqueID; //! TBranch *b_R_pos_fBits; //! TBranch *b_R_pos_fX; //! TBranch *b_R_pos_fY; //! TBranch *b_R_pos_fZ; //! TBranch *b_R_t; //! TBranch *b_R_N_cell; //! TBranch *b_R_Nrecon; //! TBranch *b_R_E_thrown; //! TBranch *b_R_p_thrown_fUniqueID; //! TBranch *b_R_p_thrown_fBits; //! TBranch *b_R_p_thrown_fX; //! TBranch *b_R_p_thrown_fY; //! TBranch *b_R_p_thrown_fZ; //! bcal_calib_selector(TTree * /*tree*/ =0) { } virtual ~bcal_calib_selector() { } 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(); //------------------ unsigned long Nevents; TH3D *Eraw_ratio_vs_Eraw_vs_z; TH3D *Eraw_vs_Egen_vs_z; TH3D *Ecorr_vs_Egen_vs_z; TH3D *Eresi_vs_Egen_vs_z; //------------------ ClassDef(bcal_calib_selector,0); }; #endif #ifdef bcal_calib_selector_cxx void bcal_calib_selector::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 normally 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("fUniqueID", &fUniqueID, &b_R_fUniqueID); fChain->SetBranchAddress("fBits", &fBits, &b_R_fBits); fChain->SetBranchAddress("event", &event, &b_R_event); fChain->SetBranchAddress("E", &E, &b_R_E); fChain->SetBranchAddress("E_raw", &E_raw, &b_R_E_raw); fChain->SetBranchAddress("pos.fUniqueID", &pos_fUniqueID, &b_R_pos_fUniqueID); fChain->SetBranchAddress("pos.fBits", &pos_fBits, &b_R_pos_fBits); fChain->SetBranchAddress("pos.fX", &pos_fX, &b_R_pos_fX); fChain->SetBranchAddress("pos.fY", &pos_fY, &b_R_pos_fY); fChain->SetBranchAddress("pos.fZ", &pos_fZ, &b_R_pos_fZ); fChain->SetBranchAddress("t", &t, &b_R_t); fChain->SetBranchAddress("N_cell", &N_cell, &b_R_N_cell); fChain->SetBranchAddress("Nrecon", &Nrecon, &b_R_Nrecon); fChain->SetBranchAddress("E_thrown", &E_thrown, &b_R_E_thrown); fChain->SetBranchAddress("p_thrown.fUniqueID", &p_thrown_fUniqueID, &b_R_p_thrown_fUniqueID); fChain->SetBranchAddress("p_thrown.fBits", &p_thrown_fBits, &b_R_p_thrown_fBits); fChain->SetBranchAddress("p_thrown.fX", &p_thrown_fX, &b_R_p_thrown_fX); fChain->SetBranchAddress("p_thrown.fY", &p_thrown_fY, &b_R_p_thrown_fY); fChain->SetBranchAddress("p_thrown.fZ", &p_thrown_fZ, &b_R_p_thrown_fZ); } Bool_t bcal_calib_selector::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 normally 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 bcal_calib_selector_cxx