////////////////////////////////////////////////////////// // This class has been automatically generated on // Wed Feb 7 10:05:29 2018 by ROOT version 6.10/02 // from TTree mc_tracks/mc_tracks // found on file: run000043-reco.root ////////////////////////////////////////////////////////// #ifndef mc_tracks_h #define mc_tracks_h #include #include #include // Header file for the classes stored in the TTree if any. #include "vector" #include "vector" class mc_tracks { 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 runId; Int_t eventId; Int_t n; vector *type; vector *pid; vector *tid; vector *mid; vector *nhit; vector *nfb; vector *nfbc; vector *ntl; vector *n3; vector *n4; vector *n6; vector *n8; vector *p; vector *pt; vector *phi; vector *lam; vector *theta; vector *vx; vector *vy; vector *vz; vector *vr; vector *vt; // List of branches TBranch *b_runId; //! TBranch *b_eventId; //! TBranch *b_n; //! TBranch *b_type; //! TBranch *b_pid; //! TBranch *b_tid; //! TBranch *b_mid; //! TBranch *b_nhit; //! TBranch *b_nfb; //! TBranch *b_nfbc; //! TBranch *b_ntl; //! TBranch *b_n3; //! TBranch *b_n4; //! TBranch *b_n6; //! TBranch *b_n8; //! TBranch *b_p; //! TBranch *b_pt; //! TBranch *b_phi; //! TBranch *b_lam; //! TBranch *b_theta; //! TBranch *b_vx; //! TBranch *b_vy; //! TBranch *b_vz; //! TBranch *b_vr; //! TBranch *b_vt; //! mc_tracks(TTree *tree=0); virtual ~mc_tracks(); 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 mc_tracks_cxx mc_tracks::mc_tracks(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("run000043-reco.root"); if (!f || !f->IsOpen()) { f = new TFile("run000043-reco.root"); } f->GetObject("mc_tracks",tree); } Init(tree); } mc_tracks::~mc_tracks() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t mc_tracks::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t mc_tracks::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 mc_tracks::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 type = 0; pid = 0; tid = 0; mid = 0; nhit = 0; nfb = 0; nfbc = 0; ntl = 0; n3 = 0; n4 = 0; n6 = 0; n8 = 0; p = 0; pt = 0; phi = 0; lam = 0; theta = 0; vx = 0; vy = 0; vz = 0; vr = 0; vt = 0; // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("runId", &runId, &b_runId); fChain->SetBranchAddress("eventId", &eventId, &b_eventId); fChain->SetBranchAddress("n", &n, &b_n); fChain->SetBranchAddress("type", &type, &b_type); fChain->SetBranchAddress("pid", &pid, &b_pid); fChain->SetBranchAddress("tid", &tid, &b_tid); fChain->SetBranchAddress("mid", &mid, &b_mid); fChain->SetBranchAddress("nhit", &nhit, &b_nhit); fChain->SetBranchAddress("nfb", &nfb, &b_nfb); fChain->SetBranchAddress("nfbc", &nfbc, &b_nfbc); fChain->SetBranchAddress("ntl", &ntl, &b_ntl); fChain->SetBranchAddress("n3", &n3, &b_n3); fChain->SetBranchAddress("n4", &n4, &b_n4); fChain->SetBranchAddress("n6", &n6, &b_n6); fChain->SetBranchAddress("n8", &n8, &b_n8); fChain->SetBranchAddress("p", &p, &b_p); fChain->SetBranchAddress("pt", &pt, &b_pt); fChain->SetBranchAddress("phi", &phi, &b_phi); fChain->SetBranchAddress("lam", &lam, &b_lam); fChain->SetBranchAddress("theta", &theta, &b_theta); fChain->SetBranchAddress("vx", &vx, &b_vx); fChain->SetBranchAddress("vy", &vy, &b_vy); fChain->SetBranchAddress("vz", &vz, &b_vz); fChain->SetBranchAddress("vr", &vr, &b_vr); fChain->SetBranchAddress("vt", &vt, &b_vt); Notify(); } Bool_t mc_tracks::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 mc_tracks::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t mc_tracks::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef mc_tracks_cxx