////////////////////////////////////////////////////////// // This class has been automatically generated on // Fri Apr 29 08:03:08 2011 by ROOT version 5.26/00d // from TTree event/Reconstructed Events // found on file: JOB5816376_fine_matt.root ////////////////////////////////////////////////////////// #ifndef event_h #define event_h #include #include #include #include const Int_t kMaxrecon = 4; class event : public TSelector { public : TTree *fChain; //!pointer to the analyzed TTree or TChain // Declaration of leaf types //Event *E; UInt_t fUniqueID; UInt_t fBits; Int_t event; UInt_t thrown_fUniqueID; UInt_t thrown_fBits; UInt_t thrown_fP_fUniqueID; UInt_t thrown_fP_fBits; Double_t thrown_fP_fX; Double_t thrown_fP_fY; Double_t thrown_fP_fZ; Double_t thrown_fE; Int_t Nrecon; Int_t recon_; UInt_t recon_fUniqueID[kMaxrecon]; //[recon_] UInt_t recon_fBits[kMaxrecon]; //[recon_] UInt_t recon_p_fUniqueID[kMaxrecon]; //[recon_] UInt_t recon_p_fBits[kMaxrecon]; //[recon_] UInt_t recon_p_fP_fUniqueID[kMaxrecon]; //[recon_] UInt_t recon_p_fP_fBits[kMaxrecon]; //[recon_] Double_t recon_p_fP_fX[kMaxrecon]; //[recon_] Double_t recon_p_fP_fY[kMaxrecon]; //[recon_] Double_t recon_p_fP_fZ[kMaxrecon]; //[recon_] Double_t recon_p_fE[kMaxrecon]; //[recon_] Double_t recon_dist[kMaxrecon]; //[recon_] Int_t recon_tag[kMaxrecon]; //[recon_] Int_t recon_idx[kMaxrecon]; //[recon_] Float_t x; Float_t y; Float_t z; Float_t t; Float_t px; Float_t py; Float_t pz; Float_t E; Int_t part; Int_t mech; // List of branches TBranch *b_E_fUniqueID; //! TBranch *b_E_fBits; //! TBranch *b_E_event; //! TBranch *b_E_thrown_fUniqueID; //! TBranch *b_E_thrown_fBits; //! TBranch *b_E_thrown_fP_fUniqueID; //! TBranch *b_E_thrown_fP_fBits; //! TBranch *b_E_thrown_fP_fX; //! TBranch *b_E_thrown_fP_fY; //! TBranch *b_E_thrown_fP_fZ; //! TBranch *b_E_thrown_fE; //! TBranch *b_E_Nrecon; //! TBranch *b_E_recon_; //! TBranch *b_recon_fUniqueID; //! TBranch *b_recon_fBits; //! TBranch *b_recon_p_fUniqueID; //! TBranch *b_recon_p_fBits; //! TBranch *b_recon_p_fP_fUniqueID; //! TBranch *b_recon_p_fP_fBits; //! TBranch *b_recon_p_fP_fX; //! TBranch *b_recon_p_fP_fY; //! TBranch *b_recon_p_fP_fZ; //! TBranch *b_recon_p_fE; //! TBranch *b_recon_dist; //! TBranch *b_recon_tag; //! TBranch *b_recon_idx; //! TBranch *b_E_x; //! TBranch *b_E_y; //! TBranch *b_E_z; //! TBranch *b_E_t; //! TBranch *b_E_px; //! TBranch *b_E_py; //! TBranch *b_E_pz; //! TBranch *b_E_E; //! TBranch *b_E_part; //! TBranch *b_E_mech; //! event(TTree * /*tree*/ =0) { } virtual ~event() { } 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(); //--------------------------- // My Stuff ULong64_t Nevents; // See descriptions in Begin() routine in event.C. TH3D *eff_numerator; TH2D *eff_denominator; TH3D *theta_diff; TH3D *E_diff; //--------------------------- ClassDef(event,0); }; #endif #ifdef event_cxx void event::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_E_fUniqueID); fChain->SetBranchAddress("fBits", &fBits, &b_E_fBits); fChain->SetBranchAddress("event", &event, &b_E_event); fChain->SetBranchAddress("thrown.fUniqueID", &thrown_fUniqueID, &b_E_thrown_fUniqueID); fChain->SetBranchAddress("thrown.fBits", &thrown_fBits, &b_E_thrown_fBits); fChain->SetBranchAddress("thrown.fP.fUniqueID", &thrown_fP_fUniqueID, &b_E_thrown_fP_fUniqueID); fChain->SetBranchAddress("thrown.fP.fBits", &thrown_fP_fBits, &b_E_thrown_fP_fBits); fChain->SetBranchAddress("thrown.fP.fX", &thrown_fP_fX, &b_E_thrown_fP_fX); fChain->SetBranchAddress("thrown.fP.fY", &thrown_fP_fY, &b_E_thrown_fP_fY); fChain->SetBranchAddress("thrown.fP.fZ", &thrown_fP_fZ, &b_E_thrown_fP_fZ); fChain->SetBranchAddress("thrown.fE", &thrown_fE, &b_E_thrown_fE); fChain->SetBranchAddress("Nrecon", &Nrecon, &b_E_Nrecon); fChain->SetBranchAddress("recon", &recon_, &b_E_recon_); fChain->SetBranchAddress("recon.fUniqueID", recon_fUniqueID, &b_recon_fUniqueID); fChain->SetBranchAddress("recon.fBits", recon_fBits, &b_recon_fBits); fChain->SetBranchAddress("recon.p.fUniqueID", recon_p_fUniqueID, &b_recon_p_fUniqueID); fChain->SetBranchAddress("recon.p.fBits", recon_p_fBits, &b_recon_p_fBits); fChain->SetBranchAddress("recon.p.fP.fUniqueID", recon_p_fP_fUniqueID, &b_recon_p_fP_fUniqueID); fChain->SetBranchAddress("recon.p.fP.fBits", recon_p_fP_fBits, &b_recon_p_fP_fBits); fChain->SetBranchAddress("recon.p.fP.fX", recon_p_fP_fX, &b_recon_p_fP_fX); fChain->SetBranchAddress("recon.p.fP.fY", recon_p_fP_fY, &b_recon_p_fP_fY); fChain->SetBranchAddress("recon.p.fP.fZ", recon_p_fP_fZ, &b_recon_p_fP_fZ); fChain->SetBranchAddress("recon.p.fE", recon_p_fE, &b_recon_p_fE); fChain->SetBranchAddress("recon.dist", recon_dist, &b_recon_dist); fChain->SetBranchAddress("recon.tag", recon_tag, &b_recon_tag); fChain->SetBranchAddress("recon.idx", recon_idx, &b_recon_idx); fChain->SetBranchAddress("x", &x, &b_E_x); fChain->SetBranchAddress("y", &y, &b_E_y); fChain->SetBranchAddress("z", &z, &b_E_z); fChain->SetBranchAddress("t", &t, &b_E_t); fChain->SetBranchAddress("px", &px, &b_E_px); fChain->SetBranchAddress("py", &py, &b_E_py); fChain->SetBranchAddress("pz", &pz, &b_E_pz); fChain->SetBranchAddress("Energy", &E, &b_E_E); fChain->SetBranchAddress("part", &part, &b_E_part); fChain->SetBranchAddress("mech", &mech, &b_E_mech); } Bool_t event::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 event_cxx