////////////////////////////////////////////////////////// // This class has been automatically generated on // Mon Feb 27 19:12:25 2017 by ROOT version 5.34/28 // from TChain pdelastic/ ////////////////////////////////////////////////////////// #ifndef pdelastic_h #define pdelastic_h #include #include #include #define pdelastic_cxx #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. class pdelastic { public : TTree *fChain; //!pointer to the analyzed TTree or TChain Int_t fCurrent; //!current Tree number in a TChain // Declaration of leaf types Double_t b2_ID; Double_t b2_WLE; Double_t b2_WLtdc; Double_t b2_WLdet; Double_t b2_WRE; Double_t b2_WRtdc; Double_t b2_WRdet; Double_t b2_WDdE; Double_t b2_WDtdc; Double_t b2_WDdet; Double_t b2_WUdE; Double_t b2_WUtdc; Double_t b2_WUdet; Double_t b2_MWPCX; Double_t b2_MWPCY; Double_t b2_MWPCU; Double_t b2_MWPCtheta; Double_t b2_MWPCphi; Double_t b2_T1; Double_t b2_T2; Double_t b2_T3; Double_t b2_T4; Double_t b2_LiveTime; Double_t b2_FC; Double_t b2_Pol; Double_t b2_pureT1; Double_t b2_pureT2; Double_t b2_pureT3; Double_t b2_pureT4; Double_t b2_Time; Double_t b2_10kHz; Double_t b2_10kHzDT; Double_t b2_TotFera; Double_t b2_TotFeraDT; Double_t b2_BeamCurrent; Double_t b2_T2DT; Double_t b2_T2DTDsc; Double_t b2_EFW; Double_t b2_wallhits; Double_t b2_EventType; Double_t b2_ballhits; Double_t b3[17]; Double_t b4[17]; Double_t b5[17]; Double_t b6[17]; Double_t b7[17]; // List of branches TBranch *b_b2; //! TBranch *b_Bnr; //! TBranch *b_BLE; //! TBranch *b_BSE; //! TBranch *b_Btheta; //! TBranch *b_Bphi; //! pdelastic(TTree *tree=0); virtual ~pdelastic(); 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); int Analysis(unsigned int evSta ,unsigned int evSto,int Polar); }; #endif #ifdef pdelastic_cxx pdelastic::pdelastic(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) { #ifdef SINGLE_TREE // The following code should be used if you want this class to access // a single tree instead of a chain TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject("Memory Directory"); if (!f || !f->IsOpen()) { f = new TFile("Memory Directory"); } f->GetObject("pdelastic",tree); #else // SINGLE_TREE // The following code should be used if you want this class to access a chain // of trees. TChain * chain = new TChain("pdelastic",""); chain->Add("/media/Transcend/BINA/Ntuples/ElasticLmds/ntupleNov2015.root/pdelastic"); tree = chain; #endif // SINGLE_TREE } Init(tree); } pdelastic::~pdelastic() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t pdelastic::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t pdelastic::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 pdelastic::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("b2", &b2_ID, &b_b2); fChain->SetBranchAddress("b3", b3, &b_Bnr); fChain->SetBranchAddress("b4", b4, &b_BLE); fChain->SetBranchAddress("b5", b5, &b_BSE); fChain->SetBranchAddress("b6", b6, &b_Btheta); fChain->SetBranchAddress("b7", b7, &b_Bphi); Notify(); } Bool_t pdelastic::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 pdelastic::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t pdelastic::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef pdelastic_cxx