////////////////////////////////////////////////////////// // This class has been automatically generated on // Sun Sep 28 17:20:43 2014 by ROOT version 5.34/09 // from TTree h6/DET8 // found on file: results_60000.root ////////////////////////////////////////////////////////// #ifndef h1dose_h #define h1dose_h #include #include #include #include #include #include // Header file for the classes stored in the TTree if any. // Fixed size dimensions of array or collections stored in the TTree if any. class h1dose : public TSelector { public : TTree *fChain; //!pointer to the analyzed TTree or TChain TH1D *fH1dose; TGraph *fGraph_deq; double fXlow[3]; double fXhigh[3]; double fNbins[3]; double fDuration; // Declaration of leaf types Int_t kind; Float_t xin[4]; Float_t xout[4]; Float_t pin[5]; Float_t pout[5]; Float_t desum; Float_t x0[4]; Float_t p0[5]; Float_t p1[5]; Float_t ppol; // List of branches TBranch *b_kind; //! TBranch *b_xin; //! TBranch *b_xout; //! TBranch *b_pin; //! TBranch *b_pout; //! TBranch *b_desum; //! TBranch *b_x0; //! TBranch *b_p0; //! TBranch *b_p1; //! TBranch *b_ppol; //! h1dose(TTree *tree, int nxbins, double xlow_cm, double xhigh_cm, int nybins, double ylow_cm, double yhigh_cm, int nzbins, double zlow_cm, double zhigh_cm, double duraction_s); virtual ~h1dose(); 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(h1dose,0); }; #endif #ifdef h1dose_cxx void h1dose::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("kind", &kind, &b_kind); fChain->SetBranchAddress("xin", xin, &b_xin); fChain->SetBranchAddress("xout", xout, &b_xout); fChain->SetBranchAddress("pin", pin, &b_pin); fChain->SetBranchAddress("pout", pout, &b_pout); fChain->SetBranchAddress("desum", &desum, &b_desum); fChain->SetBranchAddress("x0", x0, &b_x0); fChain->SetBranchAddress("p0", p0, &b_p0); fChain->SetBranchAddress("p1", p1, &b_p1); fChain->SetBranchAddress("ppol", &ppol, &b_ppol); } Bool_t h1dose::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 h1dose_cxx