////////////////////////////////////////////////////////// // This class has been automatically generated on // Tue Jan 21 17:09:00 2014 by ROOT version 5.32/01 // from TTree t20/Tree 20 // found on file: set2.root ////////////////////////////////////////////////////////// #ifndef timewalk2bset2_h #define timewalk2bset2_h #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace RooFit; // 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 timewalk2bset2 { public : TFile *fio2b_set2; TTree *fChain; //!pointer to the analyzed TTree or TChain Int_t fCurrent; //!current Tree number in a TChain TH1F *h2b_set2_1; TF1 *f_set2,*hist_offset_set2,*fitchisquare_set2; ostringstream hists_set2,fits_set2,hists_offset,fitschisquare_set2; // Declaration of leaf types Int_t eventn_iev; Int_t eventn_count; Int_t eventn_adc1; Int_t eventn_adc1_raw; Int_t eventn_adc2; Int_t eventn_adc2_raw; Int_t eventn_adc3; Int_t eventn_adc3_raw; Int_t eventn_adc4; Int_t eventn_adc4_raw; Int_t eventn_adc5; Int_t eventn_adc5_raw; Int_t eventn_adc6; Int_t eventn_adc6_raw; Int_t eventn_adc7; Int_t eventn_adc7_raw; Int_t eventn_adc8; Int_t eventn_adc8_raw; Int_t eventn_adc9; Int_t eventn_adc9_raw; Int_t eventn_adc10; Int_t eventn_adc10_raw; Int_t eventn_adc11; Int_t eventn_adc11_raw; Int_t eventn_adc12; Int_t eventn_adc12_raw; Int_t eventn_tdc1; Int_t eventn_tdc2; Int_t eventn_tdc3; Int_t eventn_tdc4; Int_t eventn_tdc5; Int_t eventn_tdc6; Int_t eventn_tdc7; Int_t eventn_tdc8; Int_t eventn_tdc9; Int_t eventn_tdc10; Int_t eventn_tdc11; Int_t eventn_tdc12; // List of branches TBranch *b_eventn; //! timewalk2bset2(TTree *tree=0); virtual ~timewalk2bset2(); virtual Int_t Cut(Long64_t entry); virtual Int_t GetEntry(Long64_t entry); virtual Long64_t LoadTree(Long64_t entry); virtual void Init(TTree *tree); virtual void Loop(Int_t totevents = -1); virtual Bool_t Notify(); virtual void Show(Long64_t entry = -1); }; #endif #ifdef timewalk2bset2_cxx timewalk2bset2::timewalk2bset2(TTree *tree) : fChain(0) { // if parameter tree is not specified (or zero), connect the file // used to generate this class and read the Tree. if (tree == 0) { TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject("set2.root"); if (!f || !f->IsOpen()) { f = new TFile("set2.root"); } f->GetObject("t20",tree); } Init(tree); } timewalk2bset2::~timewalk2bset2() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t timewalk2bset2::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t timewalk2bset2::LoadTree(Long64_t entry) { // Set the environment to read one entry if (!fChain) return -5; Long64_t centry = fChain->LoadTree(entry); if (centry < 0) return centry; if (fChain->GetTreeNumber() != fCurrent) { fCurrent = fChain->GetTreeNumber(); Notify(); } return centry; } void timewalk2bset2::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; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("eventn", &eventn_iev, &b_eventn); Notify(); } Bool_t timewalk2bset2::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; } void timewalk2bset2::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t timewalk2bset2::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef timewalk2bset2_cxx