////////////////////////////////////////////////////////// // This class has been automatically generated on // Fri Jul 25 14:42:28 2014 by ROOT version 5.34/17 // from TTree Event/Analysis iTop Event TTree // found on file: 2052SingleModeLaser1803Ped.root ////////////////////////////////////////////////////////// #ifndef Event_h #define Event_h #include #include #include // Header file for the classes stored in the TTree if any. #include using namespace std; // Fixed size dimensions of array or collections stored in the TTree if any. class Event { public : TTree *fChain; //!pointer to the analyzed TTree or TChain Int_t fCurrent; //!current Tree number in a TChain // Declaration of leaf types Int_t runNum; Int_t eventNum; Int_t nhit; vector *channel_id; vector *photon_x; vector *samples; vector *pvalue; vector *fine_time; vector *fine_time_bin; vector *coarse_time; vector *amplitude; vector *scrodId; vector *asicRow; vector *asicCol; vector *asicCh; vector *G4channel_id; vector *pmt; vector *pmtch; vector *photon_time; vector *MC_channel_corr; vector *laser_amp_corr; vector *good_asic; Double_t ftsw; Double_t rf0; Double_t rf1; Double_t rf2; Double_t rf3; Double_t rf; Int_t bunchNum; Double_t rf_corr; Double_t bunch_corr; Double_t timing_adc; Double_t timing_tdc; UShort_t trigS0_adc; Double_t trigS0_tdc; UShort_t trigS1_adc; Double_t trigS1_tdc; UShort_t trigM0_adc; Double_t trigM0_tdc; UShort_t trigM1_adc; Double_t trigM1_tdc; UShort_t veto0_adc; UShort_t veto1_adc; UShort_t LEPSmarker; UShort_t ratemon; Double_t timing; Double_t tdc0_ch[512]; Double_t adc0_ch[512]; Double_t tdc_ch[512]; Double_t adc_ch[512]; UChar_t hasleps; Float_t trk_x[2]; Float_t trk_z_x[2]; Int_t trk_qual_x[2]; Float_t trk_y[2]; Float_t trk_z_y[2]; Int_t trk_qual_y[2]; Float_t trk1_x; Float_t trk1_y; Float_t trk1_z; Float_t trk2_x; Float_t trk2_y; Float_t trk2_z; Float_t trk_top_x; Float_t trk_top_y; Float_t trk_top_z; // List of branches TBranch *b_runNum; //! TBranch *b_eventNum; //! TBranch *b_nhit; //! TBranch *b_channel_id; //! TBranch *b_photon_x; //! TBranch *b_samples; //! TBranch *b_pvalue; //! TBranch *b_fine_time; //! TBranch *b_fine_time_bin; //! TBranch *b_coarse_time; //! TBranch *b_amplitude; //! TBranch *b_scrodId; //! TBranch *b_asicRow; //! TBranch *b_asicCol; //! TBranch *b_asicCh; //! TBranch *b_G4channel_id; //! TBranch *b_pmt; //! TBranch *b_pmtch; //! TBranch *b_photon_time; //! TBranch *b_MC_channel_corr; //! TBranch *b_laser_amp_corr; //! TBranch *b_good_asic; //! TBranch *b_ftsw; //! TBranch *b_rf0; //! TBranch *b_rf1; //! TBranch *b_rf2; //! TBranch *b_rf3; //! TBranch *b_rf; //! TBranch *b_bunchNum; //! TBranch *b_rf_corr; //! TBranch *b_bunch_corr; //! TBranch *b_timing_adc; //! TBranch *b_timing_tdc; //! TBranch *b_trigS0_adc; //! TBranch *b_trigS0_tdc; //! TBranch *b_trigS1_adc; //! TBranch *b_trigS1_tdc; //! TBranch *b_trigM0_adc; //! TBranch *b_trigM0_tdc; //! TBranch *b_trigM1_adc; //! TBranch *b_trigM1_tdc; //! TBranch *b_veto0_adc; //! TBranch *b_veto1_adc; //! TBranch *b_LEPSmarker; //! TBranch *b_ratemon; //! TBranch *b_timing; //! TBranch *b_tdc0_ch; //! TBranch *b_adc0_ch; //! TBranch *b_tdc_ch; //! TBranch *b_adc_ch; //! TBranch *b_hasleps; //! TBranch *b_trk_x; //! TBranch *b_trk_z_x; //! TBranch *b_trk_qual_x; //! TBranch *b_trk_y; //! TBranch *b_trk_z_y; //! TBranch *b_trk_qual_y; //! TBranch *b_trk1_x; //! TBranch *b_trk1_y; //! TBranch *b_trk1_z; //! TBranch *b_trk2_x; //! TBranch *b_trk2_y; //! TBranch *b_trk2_z; //! TBranch *b_trk_top_x; //! TBranch *b_trk_top_y; //! TBranch *b_trk_top_z; //! Event(TTree *tree=0); virtual ~Event(); 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 Event_cxx Event::Event(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("100events.root"); if (!f || !f->IsOpen()) { f = new TFile("100events.root"); } f->GetObject("Event",tree); } Init(tree); } Event::~Event() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t Event::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t Event::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 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 object pointer channel_id = 0; photon_x = 0; samples = 0; pvalue = 0; fine_time = 0; fine_time_bin = 0; coarse_time = 0; amplitude = 0; scrodId = 0; asicRow = 0; asicCol = 0; asicCh = 0; G4channel_id = 0; pmt = 0; pmtch = 0; photon_time = 0; MC_channel_corr = 0; laser_amp_corr = 0; good_asic = 0; // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("runNum", &runNum, &b_runNum); fChain->SetBranchAddress("eventNum", &eventNum, &b_eventNum); fChain->SetBranchAddress("nhit", &nhit, &b_nhit); fChain->SetBranchAddress("channel_id", &channel_id, &b_channel_id); fChain->SetBranchAddress("photon_x", &photon_x, &b_photon_x); fChain->SetBranchAddress("samples", &samples, &b_samples); fChain->SetBranchAddress("pvalue", &pvalue, &b_pvalue); fChain->SetBranchAddress("fine_time", &fine_time, &b_fine_time); fChain->SetBranchAddress("fine_time_bin", &fine_time_bin, &b_fine_time_bin); fChain->SetBranchAddress("coarse_time", &coarse_time, &b_coarse_time); fChain->SetBranchAddress("amplitude", &litude, &b_amplitude); fChain->SetBranchAddress("scrodId", &scrodId, &b_scrodId); fChain->SetBranchAddress("asicRow", &asicRow, &b_asicRow); fChain->SetBranchAddress("asicCol", &asicCol, &b_asicCol); fChain->SetBranchAddress("asicCh", &asicCh, &b_asicCh); fChain->SetBranchAddress("G4channel_id", &G4channel_id, &b_G4channel_id); fChain->SetBranchAddress("pmt", &pmt, &b_pmt); fChain->SetBranchAddress("pmtch", &pmtch, &b_pmtch); fChain->SetBranchAddress("photon_time", &photon_time, &b_photon_time); fChain->SetBranchAddress("MC_channel_corr", &MC_channel_corr, &b_MC_channel_corr); fChain->SetBranchAddress("laser_amp_corr", &laser_amp_corr, &b_laser_amp_corr); fChain->SetBranchAddress("good_asic", &good_asic, &b_good_asic); fChain->SetBranchAddress("ftsw", &ftsw, &b_ftsw); fChain->SetBranchAddress("rf0", &rf0, &b_rf0); fChain->SetBranchAddress("rf1", &rf1, &b_rf1); fChain->SetBranchAddress("rf2", &rf2, &b_rf2); fChain->SetBranchAddress("rf3", &rf3, &b_rf3); fChain->SetBranchAddress("rf", &rf, &b_rf); fChain->SetBranchAddress("bunchNum", &bunchNum, &b_bunchNum); fChain->SetBranchAddress("rf_corr", &rf_corr, &b_rf_corr); fChain->SetBranchAddress("bunch_corr", &bunch_corr, &b_bunch_corr); fChain->SetBranchAddress("timing_adc", &timing_adc, &b_timing_adc); fChain->SetBranchAddress("timing_tdc", &timing_tdc, &b_timing_tdc); fChain->SetBranchAddress("trigS0_adc", &trigS0_adc, &b_trigS0_adc); fChain->SetBranchAddress("trigS0_tdc", &trigS0_tdc, &b_trigS0_tdc); fChain->SetBranchAddress("trigS1_adc", &trigS1_adc, &b_trigS1_adc); fChain->SetBranchAddress("trigS1_tdc", &trigS1_tdc, &b_trigS1_tdc); fChain->SetBranchAddress("trigM0_adc", &trigM0_adc, &b_trigM0_adc); fChain->SetBranchAddress("trigM0_tdc", &trigM0_tdc, &b_trigM0_tdc); fChain->SetBranchAddress("trigM1_adc", &trigM1_adc, &b_trigM1_adc); fChain->SetBranchAddress("trigM1_tdc", &trigM1_tdc, &b_trigM1_tdc); fChain->SetBranchAddress("veto0_adc", &veto0_adc, &b_veto0_adc); fChain->SetBranchAddress("veto1_adc", &veto1_adc, &b_veto1_adc); fChain->SetBranchAddress("LEPSmarker", &LEPSmarker, &b_LEPSmarker); fChain->SetBranchAddress("ratemon", &ratemon, &b_ratemon); fChain->SetBranchAddress("timing", &timing, &b_timing); fChain->SetBranchAddress("tdc0_ch", tdc0_ch, &b_tdc0_ch); fChain->SetBranchAddress("adc0_ch", adc0_ch, &b_adc0_ch); fChain->SetBranchAddress("tdc_ch", tdc_ch, &b_tdc_ch); fChain->SetBranchAddress("adc_ch", adc_ch, &b_adc_ch); fChain->SetBranchAddress("hasleps", &hasleps, &b_hasleps); fChain->SetBranchAddress("trk_x", trk_x, &b_trk_x); fChain->SetBranchAddress("trk_z_x", trk_z_x, &b_trk_z_x); fChain->SetBranchAddress("trk_qual_x", trk_qual_x, &b_trk_qual_x); fChain->SetBranchAddress("trk_y", trk_y, &b_trk_y); fChain->SetBranchAddress("trk_z_y", trk_z_y, &b_trk_z_y); fChain->SetBranchAddress("trk_qual_y", trk_qual_y, &b_trk_qual_y); fChain->SetBranchAddress("trk1_x", &trk1_x, &b_trk1_x); fChain->SetBranchAddress("trk1_y", &trk1_y, &b_trk1_y); fChain->SetBranchAddress("trk1_z", &trk1_z, &b_trk1_z); fChain->SetBranchAddress("trk2_x", &trk2_x, &b_trk2_x); fChain->SetBranchAddress("trk2_y", &trk2_y, &b_trk2_y); fChain->SetBranchAddress("trk2_z", &trk2_z, &b_trk2_z); fChain->SetBranchAddress("trk_top_x", &trk_top_x, &b_trk_top_x); fChain->SetBranchAddress("trk_top_y", &trk_top_y, &b_trk_top_y); fChain->SetBranchAddress("trk_top_z", &trk_top_z, &b_trk_top_z); Notify(); } 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; } void Event::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t Event::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef Event_cxx