////////////////////////////////////////////////////////// // This class has been automatically generated on // Thu Sep 26 19:50:14 2019 by ROOT version 6.16/00 // from TTree AutoRoot/AutoRoot from 002_152eu_strong_0001.fast // found on file: 002_152eu_strong_0001.root ////////////////////////////////////////////////////////// #ifndef TChris_h #define TChris_h #include #include #include // Header file for the classes stored in the TTree if any. #include "TObject.h" #include "TNamed.h" class TChris { public : TTree *fChain; //!pointer to the analyzed TTree or TChain Int_t fCurrent; //!current Tree number in a TChain // Fixed size dimensions of array or collections stored in the TTree if any. // Declaration of leaf types //F_ADC *ADC_1; // UInt_t ADC1_fUniqueID; // UInt_t ADC1_fBits; // TString ADC1_fName; // TString ADC1_fTitle; // Int_t ADC1_hits; // Long64_t ADC1_t_ps; // Int_t ADC1_group; // Int_t ADC1_label; Int_t ADC1_measure; // Bool_t ADC1_saturated; // Bool_t ADC1_pileup; // Double_t ADC1_delta_ns; //F_ADC *ADC_2; // UInt_t ADC2_fUniqueID; // UInt_t ADC2_fBits; // TString ADC2_fName; // TString ADC2_fTitle; // Int_t ADC2_hits; // Long64_t ADC2_t_ps; // Int_t ADC2_group; // Int_t ADC2_label; Int_t ADC2_measure; // Bool_t ADC2_saturated; // Bool_t ADC2_pileup; // Double_t ADC2_delta_ns; // //F_ADC_Cnt *ADC_COUNTER_1001; // UInt_t fUniqueID; // UInt_t fBits; // TString fName; // TString fTitle; // Int_t hits; // Long64_t t_ps; // Int_t group; // Int_t label; // Int_t calc; // Int_t sent; // Int_t trig; // //F_ADC_Cnt *ADC_COUNTER_1002; // UInt_t fUniqueID; // UInt_t fBits; // TString fName; // TString fTitle; // Int_t hits; // Long64_t t_ps; // Int_t group; // Int_t label; // Int_t calc; // Int_t sent; // Int_t trig; //F_ADC_Cnt *ADC_COUNTER_1003; // UInt_t ADC3_fUniqueID; // UInt_t ADC3_fBits; // TString ADC3_fName; // TString ADC3_fTitle; // Int_t ADC3_hits; // Long64_t ADC3_t_ps; // Int_t ADC3_group; // Int_t ADC3_label; // Int_t ADC3_calc; // Int_t ADC3_sent; // Int_t ADC3_trig; // List of branches // TBranch *b_ADC_1_fUniqueID; //! // TBranch *b_ADC_1_fBits; //! // TBranch *b_ADC_1_fName; //! // TBranch *b_ADC_1_fTitle; //! // TBranch *b_ADC_1_hits; //! // TBranch *b_ADC_1_t_ps; //! // TBranch *b_ADC_1_group; //! // TBranch *b_ADC_1_label; //! TBranch *b_ADC_1_measure; //! // TBranch *b_ADC_1_saturated; //! // TBranch *b_ADC_1_pileup; //! // TBranch *b_ADC_1_delta_ns; //! // TBranch *b_ADC_2_fUniqueID; //! // TBranch *b_ADC_2_fBits; //! // TBranch *b_ADC_2_fName; //! // TBranch *b_ADC_2_fTitle; //! // TBranch *b_ADC_2_hits; //! // TBranch *b_ADC_2_t_ps; //! // TBranch *b_ADC_2_group; //! // TBranch *b_ADC_2_label; //! TBranch *b_ADC_2_measure; //! // TBranch *b_ADC_2_saturated; //! // TBranch *b_ADC_2_pileup; //! // TBranch *b_ADC_2_delta_ns; //! // TBranch *b_ADC_COUNTER_1001_fUniqueID; //! // TBranch *b_ADC_COUNTER_1001_fBits; //! // TBranch *b_ADC_COUNTER_1001_fName; //! // TBranch *b_ADC_COUNTER_1001_fTitle; //! // TBranch *b_ADC_COUNTER_1001_hits; //! // TBranch *b_ADC_COUNTER_1001_t_ps; //! // TBranch *b_ADC_COUNTER_1001_group; //! // TBranch *b_ADC_COUNTER_1001_label; //! // TBranch *b_ADC_COUNTER_1001_calc; //! // TBranch *b_ADC_COUNTER_1001_sent; //! // TBranch *b_ADC_COUNTER_1001_trig; //! // TBranch *b_ADC_COUNTER_1002_fUniqueID; //! // TBranch *b_ADC_COUNTER_1002_fBits; //! // TBranch *b_ADC_COUNTER_1002_fName; //! // TBranch *b_ADC_COUNTER_1002_fTitle; //! // TBranch *b_ADC_COUNTER_1002_hits; //! // TBranch *b_ADC_COUNTER_1002_t_ps; //! // TBranch *b_ADC_COUNTER_1002_group; //! // TBranch *b_ADC_COUNTER_1002_label; //! // TBranch *b_ADC_COUNTER_1002_calc; //! // TBranch *b_ADC_COUNTER_1002_sent; //! // TBranch *b_ADC_COUNTER_1002_trig; //! // TBranch *b_ADC_COUNTER_1003_fUniqueID; //! // TBranch *b_ADC_COUNTER_1003_fBits; //! // TBranch *b_ADC_COUNTER_1003_fName; //! // TBranch *b_ADC_COUNTER_1003_fTitle; //! // TBranch *b_ADC_COUNTER_1003_hits; //! // TBranch *b_ADC_COUNTER_1003_t_ps; //! // TBranch *b_ADC_COUNTER_1003_group; //! // TBranch *b_ADC_COUNTER_1003_label; //! // TBranch *b_ADC_COUNTER_1003_calc; //! // TBranch *b_ADC_COUNTER_1003_sent; //! // TBranch *b_ADC_COUNTER_1003_trig; //! TChris(TTree *tree=0); virtual ~TChris(); 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(); virtual Bool_t Notify(); virtual void Show(Long64_t entry = -1); }; #endif #ifdef TChris_cxx TChris::TChris(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("002_152eu_strong_0001.root"); if (!f || !f->IsOpen()) { f = new TFile("002_152eu_strong_0001.root"); } f->GetObject("AutoRoot",tree); } Init(tree); } TChris::~TChris() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t TChris::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t TChris::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 TChris::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("ADC_1.fUniqueID", &ADC1_fUniqueID, &b_ADC_1_fUniqueID); // fChain->SetBranchAddress("ADC_1.fBits", &ADC1_fBits, &b_ADC_1_fBits); // fChain->SetBranchAddress("ADC_1.fName", &ADC1_fName, &b_ADC_1_fName); // fChain->SetBranchAddress("ADC_1.fTitle", &ADC1_fTitle, &b_ADC_1_fTitle); // fChain->SetBranchAddress("ADC_1.hits", &ADC1_hits, &b_ADC_1_hits); // fChain->SetBranchAddress("ADC_1.t_ps", &ADC1_t_ps, &b_ADC_1_t_ps); // fChain->SetBranchAddress("ADC_1.group", &ADC1_group, &b_ADC_1_group); // fChain->SetBranchAddress("ADC_1.label", &ADC1_label, &b_ADC_1_label); fChain->SetBranchAddress("measure.ADC_1", &ADC1_measure, &b_ADC_1_measure); // fChain->SetBranchAddress("ADC_1.saturated", &ADC1_saturated, &b_ADC_1_saturated); // fChain->SetBranchAddress("ADC_1.pileup", &ADC1_pileup, &b_ADC_1_pileup); // fChain->SetBranchAddress("ADC_1.delta_ns", &ADC1_delta_ns, &b_ADC_1_delta_ns); // fChain->SetBranchAddress("ADC_2.fUniqueID", &ADC2_fUniqueID, &b_ADC_2_fUniqueID); // fChain->SetBranchAddress("ADC_2.fBits", &ADC2_fBits, &b_ADC_2_fBits); // fChain->SetBranchAddress("ADC_2.fName", &ADC2_fName, &b_ADC_2_fName); // fChain->SetBranchAddress("ADC_2.fTitle", &ADC2_fTitle, &b_ADC_2_fTitle); // fChain->SetBranchAddress("ADC_2.hits", &ADC2_hits, &b_ADC_2_hits); // fChain->SetBranchAddress("ADC_2.t_ps", &ADC2_t_ps, &b_ADC_2_t_ps); // fChain->SetBranchAddress("ADC_2.group", &ADC2_group, &b_ADC_2_group); // fChain->SetBranchAddress("ADC_2.label", &ADC2_label, &b_ADC_2_label); fChain->SetBranchAddress("ADC_2.measure", &ADC2_measure, &b_ADC_2_measure); // fChain->SetBranchAddress("ADC_2.saturated", &ADC2_saturated, &b_ADC_2_saturated); // fChain->SetBranchAddress("ADC_2.pileup", &ADC2_pileup, &b_ADC_2_pileup); // fChain->SetBranchAddress("ADC_2.delta_ns", &ADC2_delta_ns, &b_ADC_2_delta_ns); // fChain->SetBranchAddress("ADC_3.fUniqueID", &ADC3_fUniqueID, &b_ADC_COUNTER_1003_fUniqueID); // fChain->SetBranchAddress("ADC_3.fBits", &ADC3_fBits, &b_ADC_COUNTER_1003_fBits); // fChain->SetBranchAddress("ADC_3.fName", &ADC3_fName, &b_ADC_COUNTER_1003_fName); // fChain->SetBranchAddress("ADC_3.fTitle", &ADC3_fTitle, &b_ADC_COUNTER_1003_fTitle); // fChain->SetBranchAddress("ADC_3.hits", &ADC3_hits, &b_ADC_COUNTER_1003_hits); // fChain->SetBranchAddress("ADC_3.t_ps", &ADC3_t_ps, &b_ADC_COUNTER_1003_t_ps); // fChain->SetBranchAddress("ADC_3.group", &ADC3_group, &b_ADC_COUNTER_1003_group); // fChain->SetBranchAddress("ADC_3.label", &ADC3_label, &b_ADC_COUNTER_1003_label); // fChain->SetBranchAddress("ADC_3.calc", &ADC3_calc, &b_ADC_COUNTER_1003_calc); // fChain->SetBranchAddress("ADC_3.sent", &ADC3_sent, &b_ADC_COUNTER_1003_sent); // fChain->SetBranchAddress("ADC_3.trig", &ADC3_trig, &b_ADC_COUNTER_1003_trig); // fChain->SetBranchAddress("fUniqueID", &fUniqueID, &b_ADC_2_fUniqueID); // fChain->SetBranchAddress("fBits", &fBits, &b_ADC_2_fBits); // fChain->SetBranchAddress("fName", &fName, &b_ADC_2_fName); // fChain->SetBranchAddress("fTitle", &fTitle, &b_ADC_2_fTitle); // fChain->SetBranchAddress("hits", &hits, &b_ADC_2_hits); // fChain->SetBranchAddress("t_ps", &t_ps, &b_ADC_2_t_ps); // fChain->SetBranchAddress("group", &group, &b_ADC_2_group); // fChain->SetBranchAddress("label", &label, &b_ADC_2_label); // fChain->SetBranchAddress("measure", &measure, &b_ADC_2_measure); // fChain->SetBranchAddress("saturated", &saturated, &b_ADC_2_saturated); // fChain->SetBranchAddress("pileup", &pileup, &b_ADC_2_pileup); // fChain->SetBranchAddress("delta_ns", &delta_ns, &b_ADC_2_delta_ns); // fChain->SetBranchAddress("fUniqueID", &fUniqueID, &b_ADC_COUNTER_1001_fUniqueID); // fChain->SetBranchAddress("fBits", &fBits, &b_ADC_COUNTER_1001_fBits); // fChain->SetBranchAddress("fName", &fName, &b_ADC_COUNTER_1001_fName); // fChain->SetBranchAddress("fTitle", &fTitle, &b_ADC_COUNTER_1001_fTitle); // fChain->SetBranchAddress("hits", &hits, &b_ADC_COUNTER_1001_hits); // fChain->SetBranchAddress("t_ps", &t_ps, &b_ADC_COUNTER_1001_t_ps); // fChain->SetBranchAddress("group", &group, &b_ADC_COUNTER_1001_group); // fChain->SetBranchAddress("label", &label, &b_ADC_COUNTER_1001_label); // fChain->SetBranchAddress("calc", &calc, &b_ADC_COUNTER_1001_calc); // fChain->SetBranchAddress("sent", &sent, &b_ADC_COUNTER_1001_sent); // fChain->SetBranchAddress("trig", &trig, &b_ADC_COUNTER_1001_trig); // fChain->SetBranchAddress("fUniqueID", &fUniqueID, &b_ADC_COUNTER_1002_fUniqueID); // fChain->SetBranchAddress("fBits", &fBits, &b_ADC_COUNTER_1002_fBits); // fChain->SetBranchAddress("fName", &fName, &b_ADC_COUNTER_1002_fName); // fChain->SetBranchAddress("fTitle", &fTitle, &b_ADC_COUNTER_1002_fTitle); // fChain->SetBranchAddress("hits", &hits, &b_ADC_COUNTER_1002_hits); // fChain->SetBranchAddress("t_ps", &t_ps, &b_ADC_COUNTER_1002_t_ps); // fChain->SetBranchAddress("group", &group, &b_ADC_COUNTER_1002_group); // fChain->SetBranchAddress("label", &label, &b_ADC_COUNTER_1002_label); // fChain->SetBranchAddress("calc", &calc, &b_ADC_COUNTER_1002_calc); // fChain->SetBranchAddress("sent", &sent, &b_ADC_COUNTER_1002_sent); // fChain->SetBranchAddress("trig", &trig, &b_ADC_COUNTER_1002_trig); // fChain->SetBranchAddress("fUniqueID", &fUniqueID, &b_ADC_COUNTER_1003_fUniqueID); // fChain->SetBranchAddress("fBits", &fBits, &b_ADC_COUNTER_1003_fBits); // fChain->SetBranchAddress("fName", &fName, &b_ADC_COUNTER_1003_fName); // fChain->SetBranchAddress("fTitle", &fTitle, &b_ADC_COUNTER_1003_fTitle); // fChain->SetBranchAddress("hits", &hits, &b_ADC_COUNTER_1003_hits); // fChain->SetBranchAddress("t_ps", &t_ps, &b_ADC_COUNTER_1003_t_ps); // fChain->SetBranchAddress("group", &group, &b_ADC_COUNTER_1003_group); // fChain->SetBranchAddress("label", &label, &b_ADC_COUNTER_1003_label); // fChain->SetBranchAddress("calc", &calc, &b_ADC_COUNTER_1003_calc); // fChain->SetBranchAddress("sent", &sent, &b_ADC_COUNTER_1003_sent); // fChain->SetBranchAddress("trig", &trig, &b_ADC_COUNTER_1003_trig); Notify(); } Bool_t TChris::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 TChris::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t TChris::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef TChris_cxx