////////////////////////////////////////////////////////// // This class has been automatically generated on // Wed Mar 21 15:22:34 2012 by ROOT version 5.26/00b // from TTree T/PEPPo // found on file: Annihilation_Sample_2905.root ////////////////////////////////////////////////////////// #ifndef T_h #define T_h #include #include #include class T { 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 CH0[500]; Float_t Int_0; Float_t Int14Bins_0; Int_t CH1[500]; Float_t Int_1; Float_t Int14Bins_1; Int_t CH2[500]; Float_t Int_2; Float_t Int14Bins_2; Int_t CH3[500]; Float_t Int_3; Float_t Int14Bins_3; Int_t CH4[500]; Float_t Int_4; Float_t Int14Bins_4; Int_t CH5[500]; Float_t Int_5; Float_t Int14Bins_5; Int_t CH6[500]; Float_t Int_6; Float_t Int14Bins_6; Int_t CH7[500]; Float_t Int_7; Float_t Int14Bins_7; Int_t CH8[500]; Float_t Int_8; Float_t Int14Bins_8; Int_t CH9[500]; Float_t Int_9; Float_t Int14Bins_9; Int_t CH10[500]; Float_t Int_10; Float_t Int14Bins_10; Int_t CH11[500]; Float_t Int_11; Float_t Int14Bins_11; Int_t CH12[500]; Float_t Int_12; Float_t Int14Bins_12; Int_t CH13[500]; Float_t Int_13; Float_t Int14Bins_13; Int_t CH14[500]; Float_t Int_14; Float_t Int14Bins_14; Int_t CH15[500]; Float_t Int_15; Float_t Int14Bins_15; Int_t TI_Hel; Int_t TI_TSettle; Int_t TI_PatSync; Float_t TDC0; Float_t TDC1; Float_t TDC2; Float_t TDC3; Float_t TDC4; Float_t TDC5; Float_t TDC6; Float_t TDC7; Float_t TDC8; Float_t TDC9; Float_t TDC10; Float_t TDC11; Float_t TDC12; Float_t TDC13; Float_t TDC14; Float_t TDC15; Float_t TDC16; Int_t S1p_CH0; Int_t S1p_CH1; Int_t S1p_CH2; Int_t S1p_CH3; Int_t S1p_CH4; Int_t S1p_CH5; Int_t S1p_CH6; Int_t S1p_CH7; Int_t S1p_CH8; Int_t S1p_CH9; Int_t S1p_CH10; Int_t S1p_CH11; Int_t S1p_CH12; Int_t S1p_CH13; Int_t S1p_CH14; Int_t S1p_CH15; Int_t S1p_BPM0L01Xp; Int_t S1p_BPM0L01Xm; Int_t S1p_BPM0L01Yp; Int_t S1p_BPM0L01Ym; Int_t S1p_BPM0L02Xp; Int_t S1p_BPM0L02Xm; Int_t S1p_BPM0L02Yp; Int_t S1p_BPM0L02Ym; Int_t S1p_BPM5D00Xp; Int_t S1p_BPM5D00Xm; Int_t S1p_BPM5D00Yp; Int_t S1p_BPM5D00Ym; Int_t S1p_BPM5D01Xp; Int_t S1p_BPM5D01Xm; Int_t S1p_BPM5D01Yp; Int_t S1p_BPM5D01Ym; Int_t S1m_CH0; Int_t S1m_CH1; Int_t S1m_CH2; Int_t S1m_CH3; Int_t S1m_CH4; Int_t S1m_CH5; Int_t S1m_CH6; Int_t S1m_CH7; Int_t S1m_CH8; Int_t S1m_CH9; Int_t S1m_CH10; Int_t S1m_CH11; Int_t S1m_CH12; Int_t S1m_CH13; Int_t S1m_CH14; Int_t S1m_CH15; Int_t S1m_BPM0L01Xp; Int_t S1m_BPM0L01Xm; Int_t S1m_BPM0L01Yp; Int_t S1m_BPM0L01Ym; Int_t S1m_BPM0L02Xp; Int_t S1m_BPM0L02Xm; Int_t S1m_BPM0L02Yp; Int_t S1m_BPM0L02Ym; Int_t S1m_BPM5D00Xp; Int_t S1m_BPM5D00Xm; Int_t S1m_BPM5D00Yp; Int_t S1m_BPM5D00Ym; Int_t S1m_BPM5D01Xp; Int_t S1m_BPM5D01Xm; Int_t S1m_BPM5D01Yp; Int_t S1m_BPM5D01Ym; Int_t S2_CH0; Int_t S2_CH1; Int_t S2_CH2; Int_t S2_CH3; Int_t S2_CH4; Int_t S2_CH5; Int_t S2_CH6; Int_t S2_CH7; Int_t S2_CH8; Int_t S2_CH9; Int_t S2_CH10; Int_t S2_CH11; Int_t S2_CH12; Int_t S2_CH13; Int_t S2_CH14; Int_t S2_CH15; Int_t S2_CH16; Int_t S2_CH17; Int_t S2_CH18; Int_t S2_CH19; Int_t S2_CH20; Int_t S2_CH21; Int_t S2_CH22; Int_t S2_CH23; Int_t S2_CH24; Int_t S2_CH25; Int_t S2_CH26; Int_t S2_CH27; Int_t S2_CH28; Int_t S2_CH29; Int_t S2_CH30; Int_t S2_CH31; Int_t HelRingCtrl; Int_t VtoFRing; Int_t ClockRing; Int_t PatSyncRingCtrl; Int_t n_Rings; Int_t HelRings; Int_t VtoFRings; Int_t ClockRings; Int_t PatSyncRings; Int_t HelPredRingCtrl; Int_t HelPredTI; // List of branches TBranch *b_CH0; //! TBranch *b_Int_0; //! TBranch *b_Int14Bins_0; //! TBranch *b_CH1; //! TBranch *b_Int_1; //! TBranch *b_Int14Bins_1; //! TBranch *b_CH2; //! TBranch *b_Int_2; //! TBranch *b_Int14Bins_2; //! TBranch *b_CH3; //! TBranch *b_Int_3; //! TBranch *b_Int14Bins_3; //! TBranch *b_CH4; //! TBranch *b_Int_4; //! TBranch *b_Int14Bins_4; //! TBranch *b_CH5; //! TBranch *b_Int_5; //! TBranch *b_Int14Bins_5; //! TBranch *b_CH6; //! TBranch *b_Int_6; //! TBranch *b_Int14Bins_6; //! TBranch *b_CH7; //! TBranch *b_Int_7; //! TBranch *b_Int14Bins_7; //! TBranch *b_CH8; //! TBranch *b_Int_8; //! TBranch *b_Int14Bins_8; //! TBranch *b_CH9; //! TBranch *b_Int_9; //! TBranch *b_Int14Bins_9; //! TBranch *b_CH10; //! TBranch *b_Int_10; //! TBranch *b_Int14Bins_10; //! TBranch *b_CH11; //! TBranch *b_Int_11; //! TBranch *b_Int14Bins_11; //! TBranch *b_CH12; //! TBranch *b_Int_12; //! TBranch *b_Int14Bins_12; //! TBranch *b_CH13; //! TBranch *b_Int_13; //! TBranch *b_Int14Bins_13; //! TBranch *b_CH14; //! TBranch *b_Int_14; //! TBranch *b_Int14Bins_14; //! TBranch *b_CH15; //! TBranch *b_Int_15; //! TBranch *b_Int14Bins_15; //! TBranch *b_TI_Hel; //! TBranch *b_TI_TSettle; //! TBranch *b_TI_PatSync; //! TBranch *b_2TDC0; //! TBranch *b_2TDC1; //! TBranch *b_2TDC2; //! TBranch *b_2TDC3; //! TBranch *b_2TDC4; //! TBranch *b_2TDC5; //! TBranch *b_2TDC6; //! TBranch *b_2TDC7; //! TBranch *b_2TDC8; //! TBranch *b_2TDC9; //! TBranch *b_2TDC10; //! TBranch *b_2TDC11; //! TBranch *b_2TDC12; //! TBranch *b_2TDC13; //! TBranch *b_2TDC14; //! TBranch *b_2TDC15; //! TBranch *b_2TDC16; //! TBranch *b_S1p_CH0; //! TBranch *b_S1p_CH1; //! TBranch *b_S1p_CH2; //! TBranch *b_S1p_CH3; //! TBranch *b_S1p_CH4; //! TBranch *b_S1p_CH5; //! TBranch *b_S1p_CH6; //! TBranch *b_S1p_CH7; //! TBranch *b_S1p_CH8; //! TBranch *b_S1p_CH9; //! TBranch *b_S1p_CH10; //! TBranch *b_S1p_CH11; //! TBranch *b_S1p_CH12; //! TBranch *b_S1p_CH13; //! TBranch *b_S1p_CH14; //! TBranch *b_S1p_CH15; //! TBranch *b_S1p_BPM0L01Xp; //! TBranch *b_S1p_BPM0L01Xm; //! TBranch *b_S1p_BPM0L01Yp; //! TBranch *b_S1p_BPM0L01Ym; //! TBranch *b_S1p_BPM0L02Xp; //! TBranch *b_S1p_BPM0L02Xm; //! TBranch *b_S1p_BPM0L02Yp; //! TBranch *b_S1p_BPM0L02Ym; //! TBranch *b_S1p_BPM5D00Xp; //! TBranch *b_S1p_BPM5D00Xm; //! TBranch *b_S1p_BPM5D00Yp; //! TBranch *b_S1p_BPM5D00Ym; //! TBranch *b_S1p_BPM5D01Xp; //! TBranch *b_S1p_BPM5D01Xm; //! TBranch *b_S1p_BPM5D01Yp; //! TBranch *b_S1p_BPM5D01Ym; //! TBranch *b_S1m_CH0; //! TBranch *b_S1m_CH1; //! TBranch *b_S1m_CH2; //! TBranch *b_S1m_CH3; //! TBranch *b_S1m_CH4; //! TBranch *b_S1m_CH5; //! TBranch *b_S1m_CH6; //! TBranch *b_S1m_CH7; //! TBranch *b_S1m_CH8; //! TBranch *b_S1m_CH9; //! TBranch *b_S1m_CH10; //! TBranch *b_S1m_CH11; //! TBranch *b_S1m_CH12; //! TBranch *b_S1m_CH13; //! TBranch *b_S1m_CH14; //! TBranch *b_S1m_CH15; //! TBranch *b_S1m_BPM0L01Xp; //! TBranch *b_S1m_BPM0L01Xm; //! TBranch *b_S1m_BPM0L01Yp; //! TBranch *b_S1m_BPM0L01Ym; //! TBranch *b_S1m_BPM0L02Xp; //! TBranch *b_S1m_BPM0L02Xm; //! TBranch *b_S1m_BPM0L02Yp; //! TBranch *b_S1m_BPM0L02Ym; //! TBranch *b_S1m_BPM5D00Xp; //! TBranch *b_S1m_BPM5D00Xm; //! TBranch *b_S1m_BPM5D00Yp; //! TBranch *b_S1m_BPM5D00Ym; //! TBranch *b_S1m_BPM5D01Xp; //! TBranch *b_S1m_BPM5D01Xm; //! TBranch *b_S1m_BPM5D01Yp; //! TBranch *b_S1m_BPM5D01Ym; //! TBranch *b_S2_CH0; //! TBranch *b_S2_CH1; //! TBranch *b_S2_CH2; //! TBranch *b_S2_CH3; //! TBranch *b_S2_CH4; //! TBranch *b_S2_CH5; //! TBranch *b_S2_CH6; //! TBranch *b_S2_CH7; //! TBranch *b_S2_CH8; //! TBranch *b_S2_CH9; //! TBranch *b_S2_CH10; //! TBranch *b_S2_CH11; //! TBranch *b_S2_CH12; //! TBranch *b_S2_CH13; //! TBranch *b_S2_CH14; //! TBranch *b_S2_CH15; //! TBranch *b_S2_CH16; //! TBranch *b_S2_CH17; //! TBranch *b_S2_CH18; //! TBranch *b_S2_CH19; //! TBranch *b_S2_CH20; //! TBranch *b_S2_CH21; //! TBranch *b_S2_CH22; //! TBranch *b_S2_CH23; //! TBranch *b_S2_CH24; //! TBranch *b_S2_CH25; //! TBranch *b_S2_CH26; //! TBranch *b_S2_CH27; //! TBranch *b_S2_CH28; //! TBranch *b_S2_CH29; //! TBranch *b_S2_CH30; //! TBranch *b_S2_CH31; //! TBranch *b_HelRingCtrl; //! TBranch *b_VtofRing; //! TBranch *b_ClockRing; //! TBranch *b_PatSyncRingCtrl; //! TBranch *b_n_Rings; //! TBranch *b_HelRings; //! TBranch *b_VtofRings; //! TBranch *b_ClockRings; //! TBranch *b_PatSyncRings; //! TBranch *b_HelPredRingCtrl; //! TBranch *b_HelPredTI; //! T(TTree *tree=0); virtual ~T(); 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); virtual Int_t ScopePic(Long64_t entry); virtual Float_t IntegrateEvent(Long64_t entry); }; #endif #ifdef T_cxx T::T(TTree *tree) { // 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("Annihilation_Sample_2905.root"); if (!f) { f = new TFile("Annihilation_Sample_2905.root"); } tree = (TTree*)gDirectory->Get("T"); } Init(tree); } T::~T() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t T::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t T::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->InheritsFrom(TChain::Class())) return centry; TChain *chain = (TChain*)fChain; if (chain->GetTreeNumber() != fCurrent) { fCurrent = chain->GetTreeNumber(); Notify(); } return centry; } void T::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("CH0", CH0, &b_CH0); fChain->SetBranchAddress("Int_0", &Int_0, &b_Int_0); fChain->SetBranchAddress("Int14Bins_0", &Int14Bins_0, &b_Int14Bins_0); fChain->SetBranchAddress("CH1", CH1, &b_CH1); fChain->SetBranchAddress("Int_1", &Int_1, &b_Int_1); fChain->SetBranchAddress("Int14Bins_1", &Int14Bins_1, &b_Int14Bins_1); fChain->SetBranchAddress("CH2", CH2, &b_CH2); fChain->SetBranchAddress("Int_2", &Int_2, &b_Int_2); fChain->SetBranchAddress("Int14Bins_2", &Int14Bins_2, &b_Int14Bins_2); fChain->SetBranchAddress("CH3", CH3, &b_CH3); fChain->SetBranchAddress("Int_3", &Int_3, &b_Int_3); fChain->SetBranchAddress("Int14Bins_3", &Int14Bins_3, &b_Int14Bins_3); fChain->SetBranchAddress("CH4", CH4, &b_CH4); fChain->SetBranchAddress("Int_4", &Int_4, &b_Int_4); fChain->SetBranchAddress("Int14Bins_4", &Int14Bins_4, &b_Int14Bins_4); fChain->SetBranchAddress("CH5", CH5, &b_CH5); fChain->SetBranchAddress("Int_5", &Int_5, &b_Int_5); fChain->SetBranchAddress("Int14Bins_5", &Int14Bins_5, &b_Int14Bins_5); fChain->SetBranchAddress("CH6", CH6, &b_CH6); fChain->SetBranchAddress("Int_6", &Int_6, &b_Int_6); fChain->SetBranchAddress("Int14Bins_6", &Int14Bins_6, &b_Int14Bins_6); fChain->SetBranchAddress("CH7", CH7, &b_CH7); fChain->SetBranchAddress("Int_7", &Int_7, &b_Int_7); fChain->SetBranchAddress("Int14Bins_7", &Int14Bins_7, &b_Int14Bins_7); fChain->SetBranchAddress("CH8", CH8, &b_CH8); fChain->SetBranchAddress("Int_8", &Int_8, &b_Int_8); fChain->SetBranchAddress("Int14Bins_8", &Int14Bins_8, &b_Int14Bins_8); fChain->SetBranchAddress("CH9", CH9, &b_CH9); fChain->SetBranchAddress("Int_9", &Int_9, &b_Int_9); fChain->SetBranchAddress("Int14Bins_9", &Int14Bins_9, &b_Int14Bins_9); fChain->SetBranchAddress("CH10", CH10, &b_CH10); fChain->SetBranchAddress("Int_10", &Int_10, &b_Int_10); fChain->SetBranchAddress("Int14Bins_10", &Int14Bins_10, &b_Int14Bins_10); fChain->SetBranchAddress("CH11", CH11, &b_CH11); fChain->SetBranchAddress("Int_11", &Int_11, &b_Int_11); fChain->SetBranchAddress("Int14Bins_11", &Int14Bins_11, &b_Int14Bins_11); fChain->SetBranchAddress("CH12", CH12, &b_CH12); fChain->SetBranchAddress("Int_12", &Int_12, &b_Int_12); fChain->SetBranchAddress("Int14Bins_12", &Int14Bins_12, &b_Int14Bins_12); fChain->SetBranchAddress("CH13", CH13, &b_CH13); fChain->SetBranchAddress("Int_13", &Int_13, &b_Int_13); fChain->SetBranchAddress("Int14Bins_13", &Int14Bins_13, &b_Int14Bins_13); fChain->SetBranchAddress("CH14", CH14, &b_CH14); fChain->SetBranchAddress("Int_14", &Int_14, &b_Int_14); fChain->SetBranchAddress("Int14Bins_14", &Int14Bins_14, &b_Int14Bins_14); fChain->SetBranchAddress("CH15", CH15, &b_CH15); fChain->SetBranchAddress("Int_15", &Int_15, &b_Int_15); fChain->SetBranchAddress("Int14Bins_15", &Int14Bins_15, &b_Int14Bins_15); fChain->SetBranchAddress("TI_Hel", &TI_Hel, &b_TI_Hel); fChain->SetBranchAddress("TI_TSettle", &TI_TSettle, &b_TI_TSettle); fChain->SetBranchAddress("TI_PatSync", &TI_PatSync, &b_TI_PatSync); fChain->SetBranchAddress("TDC0", &TDC0, &b_2TDC0); fChain->SetBranchAddress("TDC1", &TDC1, &b_2TDC1); fChain->SetBranchAddress("TDC2", &TDC2, &b_2TDC2); fChain->SetBranchAddress("TDC3", &TDC3, &b_2TDC3); fChain->SetBranchAddress("TDC4", &TDC4, &b_2TDC4); fChain->SetBranchAddress("TDC5", &TDC5, &b_2TDC5); fChain->SetBranchAddress("TDC6", &TDC6, &b_2TDC6); fChain->SetBranchAddress("TDC7", &TDC7, &b_2TDC7); fChain->SetBranchAddress("TDC8", &TDC8, &b_2TDC8); fChain->SetBranchAddress("TDC9", &TDC9, &b_2TDC9); fChain->SetBranchAddress("TDC10", &TDC10, &b_2TDC10); fChain->SetBranchAddress("TDC11", &TDC11, &b_2TDC11); fChain->SetBranchAddress("TDC12", &TDC12, &b_2TDC12); fChain->SetBranchAddress("TDC13", &TDC13, &b_2TDC13); fChain->SetBranchAddress("TDC14", &TDC14, &b_2TDC14); fChain->SetBranchAddress("TDC15", &TDC15, &b_2TDC15); fChain->SetBranchAddress("TDC16", &TDC16, &b_2TDC16); fChain->SetBranchAddress("S1p_CH0", &S1p_CH0, &b_S1p_CH0); fChain->SetBranchAddress("S1p_CH1", &S1p_CH1, &b_S1p_CH1); fChain->SetBranchAddress("S1p_CH2", &S1p_CH2, &b_S1p_CH2); fChain->SetBranchAddress("S1p_CH3", &S1p_CH3, &b_S1p_CH3); fChain->SetBranchAddress("S1p_CH4", &S1p_CH4, &b_S1p_CH4); fChain->SetBranchAddress("S1p_CH5", &S1p_CH5, &b_S1p_CH5); fChain->SetBranchAddress("S1p_CH6", &S1p_CH6, &b_S1p_CH6); fChain->SetBranchAddress("S1p_CH7", &S1p_CH7, &b_S1p_CH7); fChain->SetBranchAddress("S1p_CH8", &S1p_CH8, &b_S1p_CH8); fChain->SetBranchAddress("S1p_CH9", &S1p_CH9, &b_S1p_CH9); fChain->SetBranchAddress("S1p_CH10", &S1p_CH10, &b_S1p_CH10); fChain->SetBranchAddress("S1p_CH11", &S1p_CH11, &b_S1p_CH11); fChain->SetBranchAddress("S1p_CH12", &S1p_CH12, &b_S1p_CH12); fChain->SetBranchAddress("S1p_CH13", &S1p_CH13, &b_S1p_CH13); fChain->SetBranchAddress("S1p_CH14", &S1p_CH14, &b_S1p_CH14); fChain->SetBranchAddress("S1p_CH15", &S1p_CH15, &b_S1p_CH15); fChain->SetBranchAddress("S1p_BPM0L01Xp", &S1p_BPM0L01Xp, &b_S1p_BPM0L01Xp); fChain->SetBranchAddress("S1p_BPM0L01Xm", &S1p_BPM0L01Xm, &b_S1p_BPM0L01Xm); fChain->SetBranchAddress("S1p_BPM0L01Yp", &S1p_BPM0L01Yp, &b_S1p_BPM0L01Yp); fChain->SetBranchAddress("S1p_BPM0L01Ym", &S1p_BPM0L01Ym, &b_S1p_BPM0L01Ym); fChain->SetBranchAddress("S1p_BPM0L02Xp", &S1p_BPM0L02Xp, &b_S1p_BPM0L02Xp); fChain->SetBranchAddress("S1p_BPM0L02Xm", &S1p_BPM0L02Xm, &b_S1p_BPM0L02Xm); fChain->SetBranchAddress("S1p_BPM0L02Yp", &S1p_BPM0L02Yp, &b_S1p_BPM0L02Yp); fChain->SetBranchAddress("S1p_BPM0L02Ym", &S1p_BPM0L02Ym, &b_S1p_BPM0L02Ym); fChain->SetBranchAddress("S1p_BPM5D00Xp", &S1p_BPM5D00Xp, &b_S1p_BPM5D00Xp); fChain->SetBranchAddress("S1p_BPM5D00Xm", &S1p_BPM5D00Xm, &b_S1p_BPM5D00Xm); fChain->SetBranchAddress("S1p_BPM5D00Yp", &S1p_BPM5D00Yp, &b_S1p_BPM5D00Yp); fChain->SetBranchAddress("S1p_BPM5D00Ym", &S1p_BPM5D00Ym, &b_S1p_BPM5D00Ym); fChain->SetBranchAddress("S1p_BPM5D01Xp", &S1p_BPM5D01Xp, &b_S1p_BPM5D01Xp); fChain->SetBranchAddress("S1p_BPM5D01Xm", &S1p_BPM5D01Xm, &b_S1p_BPM5D01Xm); fChain->SetBranchAddress("S1p_BPM5D01Yp", &S1p_BPM5D01Yp, &b_S1p_BPM5D01Yp); fChain->SetBranchAddress("S1p_BPM5D01Ym", &S1p_BPM5D01Ym, &b_S1p_BPM5D01Ym); fChain->SetBranchAddress("S1m_CH0", &S1m_CH0, &b_S1m_CH0); fChain->SetBranchAddress("S1m_CH1", &S1m_CH1, &b_S1m_CH1); fChain->SetBranchAddress("S1m_CH2", &S1m_CH2, &b_S1m_CH2); fChain->SetBranchAddress("S1m_CH3", &S1m_CH3, &b_S1m_CH3); fChain->SetBranchAddress("S1m_CH4", &S1m_CH4, &b_S1m_CH4); fChain->SetBranchAddress("S1m_CH5", &S1m_CH5, &b_S1m_CH5); fChain->SetBranchAddress("S1m_CH6", &S1m_CH6, &b_S1m_CH6); fChain->SetBranchAddress("S1m_CH7", &S1m_CH7, &b_S1m_CH7); fChain->SetBranchAddress("S1m_CH8", &S1m_CH8, &b_S1m_CH8); fChain->SetBranchAddress("S1m_CH9", &S1m_CH9, &b_S1m_CH9); fChain->SetBranchAddress("S1m_CH10", &S1m_CH10, &b_S1m_CH10); fChain->SetBranchAddress("S1m_CH11", &S1m_CH11, &b_S1m_CH11); fChain->SetBranchAddress("S1m_CH12", &S1m_CH12, &b_S1m_CH12); fChain->SetBranchAddress("S1m_CH13", &S1m_CH13, &b_S1m_CH13); fChain->SetBranchAddress("S1m_CH14", &S1m_CH14, &b_S1m_CH14); fChain->SetBranchAddress("S1m_CH15", &S1m_CH15, &b_S1m_CH15); fChain->SetBranchAddress("S1m_BPM0L01Xp", &S1m_BPM0L01Xp, &b_S1m_BPM0L01Xp); fChain->SetBranchAddress("S1m_BPM0L01Xm", &S1m_BPM0L01Xm, &b_S1m_BPM0L01Xm); fChain->SetBranchAddress("S1m_BPM0L01Yp", &S1m_BPM0L01Yp, &b_S1m_BPM0L01Yp); fChain->SetBranchAddress("S1m_BPM0L01Ym", &S1m_BPM0L01Ym, &b_S1m_BPM0L01Ym); fChain->SetBranchAddress("S1m_BPM0L02Xp", &S1m_BPM0L02Xp, &b_S1m_BPM0L02Xp); fChain->SetBranchAddress("S1m_BPM0L02Xm", &S1m_BPM0L02Xm, &b_S1m_BPM0L02Xm); fChain->SetBranchAddress("S1m_BPM0L02Yp", &S1m_BPM0L02Yp, &b_S1m_BPM0L02Yp); fChain->SetBranchAddress("S1m_BPM0L02Ym", &S1m_BPM0L02Ym, &b_S1m_BPM0L02Ym); fChain->SetBranchAddress("S1m_BPM5D00Xp", &S1m_BPM5D00Xp, &b_S1m_BPM5D00Xp); fChain->SetBranchAddress("S1m_BPM5D00Xm", &S1m_BPM5D00Xm, &b_S1m_BPM5D00Xm); fChain->SetBranchAddress("S1m_BPM5D00Yp", &S1m_BPM5D00Yp, &b_S1m_BPM5D00Yp); fChain->SetBranchAddress("S1m_BPM5D00Ym", &S1m_BPM5D00Ym, &b_S1m_BPM5D00Ym); fChain->SetBranchAddress("S1m_BPM5D01Xp", &S1m_BPM5D01Xp, &b_S1m_BPM5D01Xp); fChain->SetBranchAddress("S1m_BPM5D01Xm", &S1m_BPM5D01Xm, &b_S1m_BPM5D01Xm); fChain->SetBranchAddress("S1m_BPM5D01Yp", &S1m_BPM5D01Yp, &b_S1m_BPM5D01Yp); fChain->SetBranchAddress("S1m_BPM5D01Ym", &S1m_BPM5D01Ym, &b_S1m_BPM5D01Ym); fChain->SetBranchAddress("S2_CH0", &S2_CH0, &b_S2_CH0); fChain->SetBranchAddress("S2_CH1", &S2_CH1, &b_S2_CH1); fChain->SetBranchAddress("S2_CH2", &S2_CH2, &b_S2_CH2); fChain->SetBranchAddress("S2_CH3", &S2_CH3, &b_S2_CH3); fChain->SetBranchAddress("S2_CH4", &S2_CH4, &b_S2_CH4); fChain->SetBranchAddress("S2_CH5", &S2_CH5, &b_S2_CH5); fChain->SetBranchAddress("S2_CH6", &S2_CH6, &b_S2_CH6); fChain->SetBranchAddress("S2_CH7", &S2_CH7, &b_S2_CH7); fChain->SetBranchAddress("S2_CH8", &S2_CH8, &b_S2_CH8); fChain->SetBranchAddress("S2_CH9", &S2_CH9, &b_S2_CH9); fChain->SetBranchAddress("S2_CH10", &S2_CH10, &b_S2_CH10); fChain->SetBranchAddress("S2_CH11", &S2_CH11, &b_S2_CH11); fChain->SetBranchAddress("S2_CH12", &S2_CH12, &b_S2_CH12); fChain->SetBranchAddress("S2_CH13", &S2_CH13, &b_S2_CH13); fChain->SetBranchAddress("S2_CH14", &S2_CH14, &b_S2_CH14); fChain->SetBranchAddress("S2_CH15", &S2_CH15, &b_S2_CH15); fChain->SetBranchAddress("S2_CH16", &S2_CH16, &b_S2_CH16); fChain->SetBranchAddress("S2_CH17", &S2_CH17, &b_S2_CH17); fChain->SetBranchAddress("S2_CH18", &S2_CH18, &b_S2_CH18); fChain->SetBranchAddress("S2_CH19", &S2_CH19, &b_S2_CH19); fChain->SetBranchAddress("S2_CH20", &S2_CH20, &b_S2_CH20); fChain->SetBranchAddress("S2_CH21", &S2_CH21, &b_S2_CH21); fChain->SetBranchAddress("S2_CH22", &S2_CH22, &b_S2_CH22); fChain->SetBranchAddress("S2_CH23", &S2_CH23, &b_S2_CH23); fChain->SetBranchAddress("S2_CH24", &S2_CH24, &b_S2_CH24); fChain->SetBranchAddress("S2_CH25", &S2_CH25, &b_S2_CH25); fChain->SetBranchAddress("S2_CH26", &S2_CH26, &b_S2_CH26); fChain->SetBranchAddress("S2_CH27", &S2_CH27, &b_S2_CH27); fChain->SetBranchAddress("S2_CH28", &S2_CH28, &b_S2_CH28); fChain->SetBranchAddress("S2_CH29", &S2_CH29, &b_S2_CH29); fChain->SetBranchAddress("S2_CH30", &S2_CH30, &b_S2_CH30); fChain->SetBranchAddress("S2_CH31", &S2_CH31, &b_S2_CH31); fChain->SetBranchAddress("HelRingCtrl", &HelRingCtrl, &b_HelRingCtrl); fChain->SetBranchAddress("VtoFRing", &VtoFRing, &b_VtofRing); fChain->SetBranchAddress("ClockRing", &ClockRing, &b_ClockRing); fChain->SetBranchAddress("PatSyncRingCtrl", &PatSyncRingCtrl, &b_PatSyncRingCtrl); fChain->SetBranchAddress("n_Rings", &n_Rings, &b_n_Rings); fChain->SetBranchAddress("HelRings", &HelRings, &b_HelRings); fChain->SetBranchAddress("VtoFRings", &VtoFRings, &b_VtofRings); fChain->SetBranchAddress("ClockRings", &ClockRings, &b_ClockRings); fChain->SetBranchAddress("PatSyncRings", &PatSyncRings, &b_PatSyncRings); fChain->SetBranchAddress("HelPredRingCtrl", &HelPredRingCtrl, &b_HelPredRingCtrl); fChain->SetBranchAddress("HelPredTI", &HelPredTI, &b_HelPredTI); Notify(); } Bool_t T::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 T::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t T::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. if (entry < 0) return 0; Long64_t i,TimeIndex=0; Int_t nb = fChain->GetEntry(entry); Int_t Diff=0,MaxDiff=0; // for( Int_t TimeIndex==0;TimeIndex<100;TimeIndex++); for(Long64_t j=0;j<150;j++) { Diff=CH14[j+1]-CH14[j]; // cout<< j << endl; if(Diff>MaxDiff) MaxDiff=Diff; } return MaxDiff; } Int_t T::ScopePic(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. Int_t Test=0; Test=Cut(entry); cout << "MaxDiff= " << Test << endl; T->Draw("CH14:Iteration$ >> NaIOutput","","L",1,entry); return 1; } Float_t T::IntegrateEvent(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. if (entry < 0) return 0; Float_t NaIInt=0; Int_t nb = fChain->GetEntry(entry); Int_t nb = fChain->GetEntry(entry); for(Long64_t j=0;j<500;j++) { NaIInt+=CH14[j]; } NaIInt=NaIInt*511/39653 ; return NaIInt; } #endif // #ifdef T_cxx