////////////////////////////////////////////////////////// // This class has been automatically generated on // Thu May 28 17:15:14 2015 by ROOT version 6.03/04 // from TTree clusters_THGEM/clusters_THGEM // found on file: run31_processed_pads_07.root ////////////////////////////////////////////////////////// #ifndef clusters_THGEM_h #define clusters_THGEM_h #include #include #include // Header file for the classes stored in the TTree if any. #include "vector" class clusters_THGEM { public : TTree *fChain; //!pointer to the analyzed TTree or TChain Int_t fCurrent; //!current Tree number in a TChain // Fixed size dimensions of array or collections stored in the TTree if any. // Declaration of leaf types Int_t pads_n; vector *pads_x; vector *pads_y; vector *pads_q; Int_t cl_n; vector *cl_pads; vector *cl_x; vector *cl_y; vector *cl_q; vector *cl_qmax; vector > *cl_pad_x; vector > *cl_pad_y; vector > *cl_pad_q; // List of branches TBranch *b_pads_n; //! TBranch *b_pads_x; //! TBranch *b_pads_y; //! TBranch *b_pads_q; //! TBranch *b_cl_n; //! TBranch *b_cl_pads; //! TBranch *b_cl_x; //! TBranch *b_cl_y; //! TBranch *b_cl_q; //! TBranch *b_cl_qmax; //! TBranch *b_cl_pad_x; //! TBranch *b_cl_pad_y; //! TBranch *b_cl_pad_q; //! clusters_THGEM(TTree *tree=0); virtual ~clusters_THGEM(); 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 clusters_THGEM_cxx clusters_THGEM::clusters_THGEM(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("run31_processed_pads_07.root"); if (!f || !f->IsOpen()) { f = new TFile("run31_processed_pads_07.root"); } f->GetObject("clusters_THGEM",tree); } Init(tree); } clusters_THGEM::~clusters_THGEM() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t clusters_THGEM::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t clusters_THGEM::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 clusters_THGEM::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 pads_x = 0; pads_y = 0; pads_q = 0; cl_pads = 0; cl_x = 0; cl_y = 0; cl_q = 0; cl_qmax = 0; cl_pad_x = 0; cl_pad_y = 0; cl_pad_q = 0; // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("pads_n", &pads_n, &b_pads_n); fChain->SetBranchAddress("pads_x", &pads_x, &b_pads_x); fChain->SetBranchAddress("pads_y", &pads_y, &b_pads_y); fChain->SetBranchAddress("pads_q", &pads_q, &b_pads_q); fChain->SetBranchAddress("cl_n", &cl_n, &b_cl_n); fChain->SetBranchAddress("cl_pads", &cl_pads, &b_cl_pads); fChain->SetBranchAddress("cl_x", &cl_x, &b_cl_x); fChain->SetBranchAddress("cl_y", &cl_y, &b_cl_y); fChain->SetBranchAddress("cl_q", &cl_q, &b_cl_q); fChain->SetBranchAddress("cl_qmax", &cl_qmax, &b_cl_qmax); fChain->SetBranchAddress("cl_pad_x", &cl_pad_x, &b_cl_pad_x); fChain->SetBranchAddress("cl_pad_y", &cl_pad_y, &b_cl_pad_y); fChain->SetBranchAddress("cl_pad_q", &cl_pad_q, &b_cl_pad_q); Notify(); } Bool_t clusters_THGEM::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 clusters_THGEM::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t clusters_THGEM::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef clusters_THGEM_cxx