////////////////////////////////////////////////////////// // This class has been automatically generated on // Mon Jun 04 15:14:03 2018 by ROOT version 5.34/14 // from TTree AnalysisxTree/Go4FileStore // found on file: D:/ACCULINA/ACCULINA 2018/analyze/si-1_si-20_35cm_0deg_new1_0003.root ////////////////////////////////////////////////////////// #ifndef macros_h #define macros_h #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. const Int_t kMaxNeEvent = 1; class macros { public : TTree *fChain; //!pointer to the analyzed TTree or TChain Int_t fCurrent; //!current Tree number in a TChain // Declaration of leaf types //TNeEvent *NeEvent_; //TNeEvent *NeEvent_TGo4EventElement; UShort_t NeEvent_CsI_L[16]; UShort_t NeEvent_tCsI_L[16]; UShort_t NeEvent_CsI_R[16]; UShort_t NeEvent_tCsI_R[16]; UShort_t NeEvent_SQX_L[32]; UShort_t NeEvent_tSQX_L[32]; UShort_t NeEvent_SQY_L[16]; UShort_t NeEvent_tSQY_L[16]; UShort_t NeEvent_SQX_R[32]; UShort_t NeEvent_tSQX_R[32]; UShort_t NeEvent_SQY_R[16]; UShort_t NeEvent_SQ20[16]; UShort_t NeEvent_tSQ20[16]; UShort_t NeEvent_tSQY_R[16]; UShort_t NeEvent_ANR[16]; UShort_t NeEvent_ANS[16]; UShort_t NeEvent_neutAmp[32]; UShort_t NeEvent_neutTAC[32]; UShort_t NeEvent_neutTDC[32]; UShort_t NeEvent_F3[4]; UShort_t NeEvent_tF3[4]; UShort_t NeEvent_F5[4]; UShort_t NeEvent_tF5[4]; UShort_t NeEvent_F6[4]; UShort_t NeEvent_tF6[4]; UShort_t NeEvent_tMWPC[4]; UInt_t NeEvent_scaler[16]; UInt_t NeEvent_mtime; UShort_t NeEvent_nx1; UShort_t NeEvent_ny1; UShort_t NeEvent_nx2; UShort_t NeEvent_ny2; UShort_t NeEvent_x1[32]; UShort_t NeEvent_y1[32]; UShort_t NeEvent_x2[32]; UShort_t NeEvent_y2[32]; UInt_t NeEvent_rx1; UInt_t NeEvent_rx2; UInt_t NeEvent_ry1; UInt_t NeEvent_ry2; Int_t NeEvent_nevent; Int_t NeEvent_trigger; Int_t NeEvent_subevents; Int_t NeEvent_evsize; // List of branches TBranch *b_NeEvent_CsI_L; //! TBranch *b_NeEvent_tCsI_L; //! TBranch *b_NeEvent_CsI_R; //! TBranch *b_NeEvent_tCsI_R; //! TBranch *b_NeEvent_SQX_L; //! TBranch *b_NeEvent_tSQX_L; //! TBranch *b_NeEvent_SQY_L; //! TBranch *b_NeEvent_tSQY_L; //! TBranch *b_NeEvent_SQX_R; //! TBranch *b_NeEvent_tSQX_R; //! TBranch *b_NeEvent_SQY_R; //! TBranch *b_NeEvent_SQ20; //! TBranch *b_NeEvent_tSQ20; //! TBranch *b_NeEvent_tSQY_R; //! TBranch *b_NeEvent_ANR; //! TBranch *b_NeEvent_ANS; //! TBranch *b_NeEvent_neutAmp; //! TBranch *b_NeEvent_neutTAC; //! TBranch *b_NeEvent_neutTDC; //! TBranch *b_NeEvent_F3; //! TBranch *b_NeEvent_tF3; //! TBranch *b_NeEvent_F5; //! TBranch *b_NeEvent_tF5; //! TBranch *b_NeEvent_F6; //! TBranch *b_NeEvent_tF6; //! TBranch *b_NeEvent_tMWPC; //! TBranch *b_NeEvent_scaler; //! TBranch *b_NeEvent_mtime; //! TBranch *b_NeEvent_nx1; //! TBranch *b_NeEvent_ny1; //! TBranch *b_NeEvent_nx2; //! TBranch *b_NeEvent_ny2; //! TBranch *b_NeEvent_x1; //! TBranch *b_NeEvent_y1; //! TBranch *b_NeEvent_x2; //! TBranch *b_NeEvent_y2; //! TBranch *b_NeEvent_rx1; //! TBranch *b_NeEvent_rx2; //! TBranch *b_NeEvent_ry1; //! TBranch *b_NeEvent_ry2; //! TBranch *b_NeEvent_nevent; //! TBranch *b_NeEvent_trigger; //! TBranch *b_NeEvent_subevents; //! TBranch *b_NeEvent_evsize; //! macros(TTree *tree=0); virtual ~macros(); 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 macros_cxx macros::macros(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("D:/ACCULINA/ACCULINA 2018/analyze/si-1_si-20_35cm_0deg_new1_0003.root"); if (!f || !f->IsOpen()) { f = new TFile("D:/ACCULINA/ACCULINA 2018/analyze/si-1_si-20_35cm_0deg_new1_0003.root"); } f->GetObject("AnalysisxTree",tree); } Init(tree); } macros::~macros() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t macros::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t macros::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 macros::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("NeEvent.CsI_L[16]", NeEvent_CsI_L, &b_NeEvent_CsI_L); fChain->SetBranchAddress("NeEvent.tCsI_L[16]", NeEvent_tCsI_L, &b_NeEvent_tCsI_L); fChain->SetBranchAddress("NeEvent.CsI_R[16]", NeEvent_CsI_R, &b_NeEvent_CsI_R); fChain->SetBranchAddress("NeEvent.tCsI_R[16]", NeEvent_tCsI_R, &b_NeEvent_tCsI_R); fChain->SetBranchAddress("NeEvent.SQX_L[32]", NeEvent_SQX_L, &b_NeEvent_SQX_L); fChain->SetBranchAddress("NeEvent.tSQX_L[32]", NeEvent_tSQX_L, &b_NeEvent_tSQX_L); fChain->SetBranchAddress("NeEvent.SQY_L[16]", NeEvent_SQY_L, &b_NeEvent_SQY_L); fChain->SetBranchAddress("NeEvent.tSQY_L[16]", NeEvent_tSQY_L, &b_NeEvent_tSQY_L); fChain->SetBranchAddress("NeEvent.SQX_R[32]", NeEvent_SQX_R, &b_NeEvent_SQX_R); fChain->SetBranchAddress("NeEvent.tSQX_R[32]", NeEvent_tSQX_R, &b_NeEvent_tSQX_R); fChain->SetBranchAddress("NeEvent.SQY_R[16]", NeEvent_SQY_R, &b_NeEvent_SQY_R); fChain->SetBranchAddress("NeEvent.SQ20[16]", NeEvent_SQ20, &b_NeEvent_SQ20); fChain->SetBranchAddress("NeEvent.tSQ20[16]", NeEvent_tSQ20, &b_NeEvent_tSQ20); fChain->SetBranchAddress("NeEvent.tSQY_R[16]", NeEvent_tSQY_R, &b_NeEvent_tSQY_R); fChain->SetBranchAddress("NeEvent.ANR[16]", NeEvent_ANR, &b_NeEvent_ANR); fChain->SetBranchAddress("NeEvent.ANS[16]", NeEvent_ANS, &b_NeEvent_ANS); fChain->SetBranchAddress("NeEvent.neutAmp[32]", NeEvent_neutAmp, &b_NeEvent_neutAmp); fChain->SetBranchAddress("NeEvent.neutTAC[32]", NeEvent_neutTAC, &b_NeEvent_neutTAC); fChain->SetBranchAddress("NeEvent.neutTDC[32]", NeEvent_neutTDC, &b_NeEvent_neutTDC); fChain->SetBranchAddress("NeEvent.F3[4]", NeEvent_F3, &b_NeEvent_F3); fChain->SetBranchAddress("NeEvent.tF3[4]", NeEvent_tF3, &b_NeEvent_tF3); fChain->SetBranchAddress("NeEvent.F5[4]", NeEvent_F5, &b_NeEvent_F5); fChain->SetBranchAddress("NeEvent.tF5[4]", NeEvent_tF5, &b_NeEvent_tF5); fChain->SetBranchAddress("NeEvent.F6[4]", NeEvent_F6, &b_NeEvent_F6); fChain->SetBranchAddress("NeEvent.tF6[4]", NeEvent_tF6, &b_NeEvent_tF6); fChain->SetBranchAddress("NeEvent.tMWPC[4]", NeEvent_tMWPC, &b_NeEvent_tMWPC); fChain->SetBranchAddress("NeEvent.scaler[16]", NeEvent_scaler, &b_NeEvent_scaler); fChain->SetBranchAddress("NeEvent.mtime", &NeEvent_mtime, &b_NeEvent_mtime); fChain->SetBranchAddress("NeEvent.nx1", &NeEvent_nx1, &b_NeEvent_nx1); fChain->SetBranchAddress("NeEvent.ny1", &NeEvent_ny1, &b_NeEvent_ny1); fChain->SetBranchAddress("NeEvent.nx2", &NeEvent_nx2, &b_NeEvent_nx2); fChain->SetBranchAddress("NeEvent.ny2", &NeEvent_ny2, &b_NeEvent_ny2); fChain->SetBranchAddress("NeEvent.x1[32]", NeEvent_x1, &b_NeEvent_x1); fChain->SetBranchAddress("NeEvent.y1[32]", NeEvent_y1, &b_NeEvent_y1); fChain->SetBranchAddress("NeEvent.x2[32]", NeEvent_x2, &b_NeEvent_x2); fChain->SetBranchAddress("NeEvent.y2[32]", NeEvent_y2, &b_NeEvent_y2); fChain->SetBranchAddress("NeEvent.rx1", &NeEvent_rx1, &b_NeEvent_rx1); fChain->SetBranchAddress("NeEvent.rx2", &NeEvent_rx2, &b_NeEvent_rx2); fChain->SetBranchAddress("NeEvent.ry1", &NeEvent_ry1, &b_NeEvent_ry1); fChain->SetBranchAddress("NeEvent.ry2", &NeEvent_ry2, &b_NeEvent_ry2); fChain->SetBranchAddress("NeEvent.nevent", &NeEvent_nevent, &b_NeEvent_nevent); fChain->SetBranchAddress("NeEvent.trigger", &NeEvent_trigger, &b_NeEvent_trigger); fChain->SetBranchAddress("NeEvent.subevents", &NeEvent_subevents, &b_NeEvent_subevents); fChain->SetBranchAddress("NeEvent.evsize", &NeEvent_evsize, &b_NeEvent_evsize); Notify(); } Bool_t macros::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 macros::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t macros::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef macros_cxx