////////////////////////////////////////////////////////// // This class has been automatically generated on // Thu Aug 4 13:39:03 2011 by ROOT version 5.26/00 // from TTree AutoTree/Automatic filled Tree // found on file: run_0111.root ////////////////////////////////////////////////////////// #ifndef AlphaSi10x_h #define AlphaSi10x_h #include #include #include #include class AlphaSi10x { public : TTree *fChain; //!pointer to the analyzed TTree or TChain Int_t fCurrent; //!current Tree number in a TChain // Declaration of leaf types //TMayaData *MAYA; UInt_t fUniqueID; UInt_t fBits; //vector fMaya_PAD_Nbr; //vector fMaya_PAD_Col; //vector fMaya_PAD_Row; //vector fMaya_PAD_E; //vector fMaya_PAD_x; //vector fMaya_PAD_y; Bool_t bMaya_IsPAD_Calibrated; Bool_t bMaya_Clean_PADS; //vector fMaya_PAD_E_cal; //vector fMaya_PAD_Neighbors; UShort_t fMaya_PAD_Mult_cal; UShort_t fMaya_PAD_Row_Mult[32]; Float_t fMaya_PAD_Row_Sum_cal[32]; Float_t fMaya_PAD_Row_Max_cal[32]; UShort_t fMaya_PAD_Col_Mult[32]; Float_t fMaya_PAD_Col_Sum_cal[32]; Float_t fMaya_PAD_Col_Max_cal[32]; ULong64_t fMaya_PAD_Sum; Float_t fMaya_PAD_Sum_cal; Bool_t bMaya_IsQFIL_Calibrated; //vector fMaya_QFIL_E_Nbr; //vector fMaya_QFIL_T_Nbr; //vector fMaya_QFIL_E; //vector fMaya_QFIL_E_cal; //vector fMaya_QFIL_T; //vector fMaya_QFIL_T_cal; ULong64_t fMaya_QFIL_Sum; Float_t fMaya_QFIL_Sum_cal; Bool_t bMaya_IsSi_Calibrated; vector fMaya_Si_E_Nbr; vector fMaya_Si_E; vector fMaya_Si_E_cal; Bool_t bMaya_IsSi_x10_Calibrated; vector fMaya_Si_E_x10_Nbr; vector fMaya_Si_E_x10; vector fMaya_Si_E_x10_cal; //vector fMaya_Si_T_Nbr; //vector fMaya_Si_T; //vector fMaya_Si_T_cal; //vector fMaya_QFil_Pulse_E; //vector fMaya_QFil_Pulse_Nbr; //vector fMaya_QFil_Pulse_Ch; //vector fMaya_QFil_Pulse_Sum; //vector fMaya_QFil_Pulse_Sum_Ch; Bool_t bMaya_IsCsI_Calibrated; //vector fMaya_CsI_E_Nbr; //vector fMaya_CsI_E; //vector fMaya_CsI_E_cal; UShort_t fMaya_TOF_GAL_HF; UShort_t fMaya_TOF_GAL_DIAM; UShort_t fMaya_TOF_TM_TRIG; UShort_t fMaya_TOF_PL_HF; UShort_t fMaya_TOF_PL_GAL; UShort_t fMaya_TOF_SI_FTA; UShort_t fMaya_TOF_SI_CSI; UShort_t GAT_CONF; Double_t TRIGGER; Double_t GE_PID_E_D4; Double_t SI_PID_E_D4; Double_t SI_PID_T_D4; Double_t SI_PID_E_D6; Double_t SI_PID_T_D6; // List of branches TBranch *b_MAYA_fUniqueID; //! TBranch *b_MAYA_fBits; //! TBranch *b_MAYA_bMaya_IsPAD_Calibrated; //! TBranch *b_MAYA_bMaya_Clean_PADS; //! TBranch *b_MAYA_fMaya_PAD_Mult_cal; //! TBranch *b_MAYA_fMaya_PAD_Row_Mult; //! TBranch *b_MAYA_fMaya_PAD_Row_Sum_cal; //! TBranch *b_MAYA_fMaya_PAD_Row_Max_cal; //! TBranch *b_MAYA_fMaya_PAD_Col_Mult; //! TBranch *b_MAYA_fMaya_PAD_Col_Sum_cal; //! TBranch *b_MAYA_fMaya_PAD_Col_Max_cal; //! TBranch *b_MAYA_fMaya_PAD_Sum; //! TBranch *b_MAYA_fMaya_PAD_Sum_cal; //! TBranch *b_MAYA_bMaya_IsQFIL_Calibrated; //! TBranch *b_MAYA_fMaya_QFIL_Sum; //! TBranch *b_MAYA_fMaya_QFIL_Sum_cal; //! TBranch *b_MAYA_bMaya_IsSi_Calibrated; //! TBranch *b_MAYA_fMaya_Si_E_Nbr; //! TBranch *b_MAYA_fMaya_Si_E; //! TBranch *b_MAYA_fMaya_Si_E_cal; //! TBranch *b_MAYA_bMaya_IsSi_x10_Calibrated; //! TBranch *b_MAYA_fMaya_Si_E_x10_Nbr; //! TBranch *b_MAYA_fMaya_Si_E_x10; //! TBranch *b_MAYA_fMaya_Si_E_x10_cal; //! TBranch *b_MAYA_bMaya_IsCsI_Calibrated; //! TBranch *b_MAYA_fMaya_TOF_GAL_HF; //! TBranch *b_MAYA_fMaya_TOF_GAL_DIAM; //! TBranch *b_MAYA_fMaya_TOF_TM_TRIG; //! TBranch *b_MAYA_fMaya_TOF_PL_HF; //! TBranch *b_MAYA_fMaya_TOF_PL_GAL; //! TBranch *b_MAYA_fMaya_TOF_SI_FTA; //! TBranch *b_MAYA_fMaya_TOF_SI_CSI; //! TBranch *b_GAT_CONF; //! TBranch *b_TRIGGER; //! TBranch *b_GE_PID_E_D4; //! TBranch *b_SI_PID_E_D4; //! TBranch *b_SI_PID_T_D4; //! TBranch *b_SI_PID_E_D6; //! TBranch *b_SI_PID_T_D6; //! AlphaSi10x(TTree *tree=0); virtual ~AlphaSi10x(); 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 AlphaSi10x_cxx AlphaSi10x::AlphaSi10x(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("run_0111.root"); if (!f) { f = new TFile("run_0111.root"); } tree = (TTree*)gDirectory->Get("AutoTree"); } Init(tree); } AlphaSi10x::~AlphaSi10x() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t AlphaSi10x::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t AlphaSi10x::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 AlphaSi10x::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("fUniqueID", &fUniqueID, &b_MAYA_fUniqueID); fChain->SetBranchAddress("fBits", &fBits, &b_MAYA_fBits); fChain->SetBranchAddress("bMaya_IsPAD_Calibrated", &bMaya_IsPAD_Calibrated, &b_MAYA_bMaya_IsPAD_Calibrated); fChain->SetBranchAddress("bMaya_Clean_PADS", &bMaya_Clean_PADS, &b_MAYA_bMaya_Clean_PADS); fChain->SetBranchAddress("fMaya_PAD_Mult_cal", &fMaya_PAD_Mult_cal, &b_MAYA_fMaya_PAD_Mult_cal); fChain->SetBranchAddress("fMaya_PAD_Row_Mult[32]", fMaya_PAD_Row_Mult, &b_MAYA_fMaya_PAD_Row_Mult); fChain->SetBranchAddress("fMaya_PAD_Row_Sum_cal[32]", fMaya_PAD_Row_Sum_cal, &b_MAYA_fMaya_PAD_Row_Sum_cal); fChain->SetBranchAddress("fMaya_PAD_Row_Max_cal[32]", fMaya_PAD_Row_Max_cal, &b_MAYA_fMaya_PAD_Row_Max_cal); fChain->SetBranchAddress("fMaya_PAD_Col_Mult[32]", fMaya_PAD_Col_Mult, &b_MAYA_fMaya_PAD_Col_Mult); fChain->SetBranchAddress("fMaya_PAD_Col_Sum_cal[32]", fMaya_PAD_Col_Sum_cal, &b_MAYA_fMaya_PAD_Col_Sum_cal); fChain->SetBranchAddress("fMaya_PAD_Col_Max_cal[32]", fMaya_PAD_Col_Max_cal, &b_MAYA_fMaya_PAD_Col_Max_cal); fChain->SetBranchAddress("fMaya_PAD_Sum", &fMaya_PAD_Sum, &b_MAYA_fMaya_PAD_Sum); fChain->SetBranchAddress("fMaya_PAD_Sum_cal", &fMaya_PAD_Sum_cal, &b_MAYA_fMaya_PAD_Sum_cal); fChain->SetBranchAddress("bMaya_IsQFIL_Calibrated", &bMaya_IsQFIL_Calibrated, &b_MAYA_bMaya_IsQFIL_Calibrated); fChain->SetBranchAddress("fMaya_QFIL_Sum", &fMaya_QFIL_Sum, &b_MAYA_fMaya_QFIL_Sum); fChain->SetBranchAddress("fMaya_QFIL_Sum_cal", &fMaya_QFIL_Sum_cal, &b_MAYA_fMaya_QFIL_Sum_cal); fChain->SetBranchAddress("bMaya_IsSi_Calibrated", &bMaya_IsSi_Calibrated, &b_MAYA_bMaya_IsSi_Calibrated); fChain->SetBranchAddress("fMaya_Si_E_Nbr", &fMaya_Si_E_Nbr, &b_MAYA_fMaya_Si_E_Nbr); fChain->SetBranchAddress("fMaya_Si_E", &fMaya_Si_E, &b_MAYA_fMaya_Si_E); fChain->SetBranchAddress("fMaya_Si_E_cal", &fMaya_Si_E_cal, &b_MAYA_fMaya_Si_E_cal); fChain->SetBranchAddress("bMaya_IsSi_x10_Calibrated", &bMaya_IsSi_x10_Calibrated, &b_MAYA_bMaya_IsSi_x10_Calibrated); fChain->SetBranchAddress("fMaya_Si_E_x10_Nbr", &fMaya_Si_E_x10_Nbr, &b_MAYA_fMaya_Si_E_x10_Nbr); fChain->SetBranchAddress("fMaya_Si_E_x10", &fMaya_Si_E_x10, &b_MAYA_fMaya_Si_E_x10); fChain->SetBranchAddress("fMaya_Si_E_x10_cal", &fMaya_Si_E_x10_cal, &b_MAYA_fMaya_Si_E_x10_cal); fChain->SetBranchAddress("bMaya_IsCsI_Calibrated", &bMaya_IsCsI_Calibrated, &b_MAYA_bMaya_IsCsI_Calibrated); fChain->SetBranchAddress("fMaya_TOF_GAL_HF", &fMaya_TOF_GAL_HF, &b_MAYA_fMaya_TOF_GAL_HF); fChain->SetBranchAddress("fMaya_TOF_GAL_DIAM", &fMaya_TOF_GAL_DIAM, &b_MAYA_fMaya_TOF_GAL_DIAM); fChain->SetBranchAddress("fMaya_TOF_TM_TRIG", &fMaya_TOF_TM_TRIG, &b_MAYA_fMaya_TOF_TM_TRIG); fChain->SetBranchAddress("fMaya_TOF_PL_HF", &fMaya_TOF_PL_HF, &b_MAYA_fMaya_TOF_PL_HF); fChain->SetBranchAddress("fMaya_TOF_PL_GAL", &fMaya_TOF_PL_GAL, &b_MAYA_fMaya_TOF_PL_GAL); fChain->SetBranchAddress("fMaya_TOF_SI_FTA", &fMaya_TOF_SI_FTA, &b_MAYA_fMaya_TOF_SI_FTA); fChain->SetBranchAddress("fMaya_TOF_SI_CSI", &fMaya_TOF_SI_CSI, &b_MAYA_fMaya_TOF_SI_CSI); fChain->SetBranchAddress("GAT_CONF", &GAT_CONF, &b_GAT_CONF); fChain->SetBranchAddress("TRIGGER", &TRIGGER, &b_TRIGGER); fChain->SetBranchAddress("GE_PID_E_D4", &GE_PID_E_D4, &b_GE_PID_E_D4); fChain->SetBranchAddress("SI_PID_E_D4", &SI_PID_E_D4, &b_SI_PID_E_D4); fChain->SetBranchAddress("SI_PID_T_D4", &SI_PID_T_D4, &b_SI_PID_T_D4); fChain->SetBranchAddress("SI_PID_E_D6", &SI_PID_E_D6, &b_SI_PID_E_D6); fChain->SetBranchAddress("SI_PID_T_D6", &SI_PID_T_D6, &b_SI_PID_T_D6); Notify(); } Bool_t AlphaSi10x::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 AlphaSi10x::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t AlphaSi10x::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef AlphaSi10x_cxx