1 //////////////////////////////////////////////////////////
2 // This class has been automatically generated on
3 // Fri Mar 20 09:42:44 2009 by ROOT version 5.21/01
4 // from TTree TrackletsinTRD/TrackletsinTRD
5 // found on file: TRD.DebugTrackingMultiplicity.root
6 //////////////////////////////////////////////////////////
8 #ifndef TrackletsinTRD_h
9 #define TrackletsinTRD_h
15 class TrackletsinTRD {
17 TTree *fChain; //!pointer to the analyzed TTree or TChain
18 Int_t fCurrent; //!current Tree number in a TChain
20 // Declaration of leaf types
46 TrackletsinTRD(TTree *tree=0);
47 virtual ~TrackletsinTRD();
48 virtual Int_t Cut(Long64_t entry);
49 virtual Int_t GetEntry(Long64_t entry);
50 virtual Long64_t LoadTree(Long64_t entry);
51 virtual void Init(TTree *tree);
53 virtual Bool_t Notify();
54 virtual void Show(Long64_t entry = -1);
59 #ifdef TrackletsinTRD_cxx
60 TrackletsinTRD::TrackletsinTRD(TTree *tree)
62 // if parameter tree is not specified (or zero), connect the file
63 // used to generate this class and read the Tree.
65 TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject("/alidata80/alice_u/pachmay/AliRoot/v4-16-Rev-01/TRD/qaRec/TRD.DebugTrackingMultiplicity.root");
67 f = new TFile("/alidata80/alice_u/pachmay/AliRoot/v4-16-Rev-01/TRD/qaRec/TRD.DebugTrackingMultiplicity.root");
69 tree = (TTree*)gDirectory->Get("TrackletsinTRD");
75 TrackletsinTRD::~TrackletsinTRD()
78 delete fChain->GetCurrentFile();
81 Int_t TrackletsinTRD::GetEntry(Long64_t entry)
83 // Read contents of entry.
84 if (!fChain) return 0;
85 return fChain->GetEntry(entry);
87 Long64_t TrackletsinTRD::LoadTree(Long64_t entry)
89 // Set the environment to read one entry
90 if (!fChain) return -5;
91 Long64_t centry = fChain->LoadTree(entry);
92 if (centry < 0) return centry;
93 if (!fChain->InheritsFrom(TChain::Class())) return centry;
94 TChain *chain = (TChain*)fChain;
95 if (chain->GetTreeNumber() != fCurrent) {
96 fCurrent = chain->GetTreeNumber();
102 void TrackletsinTRD::Init(TTree *tree)
104 // The Init() function is called when the selector needs to initialize
105 // a new tree or chain. Typically here the branch addresses and branch
106 // pointers of the tree will be set.
107 // It is normally not necessary to make changes to the generated
108 // code, but the routine can be extended by the user if needed.
109 // Init() will be called many times when running on PROOF
110 // (once per file to be processed).
112 // Set branch addresses and branch pointers
116 fChain->SetMakeClass(1);
118 fChain->SetBranchAddress("standalone", &standalone, &b_B0);
119 fChain->SetBranchAddress("eventcounter", &eventcounter, &b_B1);
120 fChain->SetBranchAddress("layer", &layer, &b_B2);
121 fChain->SetBranchAddress("xtracklet", &xtracklet, &b_B3);
122 fChain->SetBranchAddress("xtrack", &xtrack, &b_B4);
123 fChain->SetBranchAddress("ytracklet", &ytracklet, &b_B5);
124 fChain->SetBranchAddress("ytrack", &ytrack, &b_B6);
125 fChain->SetBranchAddress("ztracklet", &ztracklet, &b_B7);
126 fChain->SetBranchAddress("ztrack", &ztrack, &b_B8);
127 fChain->SetBranchAddress("num_tracklets", &num_tracklets, &b_B9);
128 fChain->SetBranchAddress("dettracklet", &dettracklet, &b_B10);
132 Bool_t TrackletsinTRD::Notify()
134 // The Notify() function is called when a new file is opened. This
135 // can be either for a new TTree in a TChain or when when a new TTree
136 // is started when using PROOF. It is normally not necessary to make changes
137 // to the generated code, but the routine can be extended by the
138 // user if needed. The return value is currently not used.
143 void TrackletsinTRD::Show(Long64_t entry)
145 // Print contents of entry.
146 // If entry is not specified, print current entry
150 Int_t TrackletsinTRD::Cut(Long64_t entry)
152 // This function may be called from Loop.
153 // returns 1 if entry is accepted.
154 // returns -1 otherwise.
157 #endif // #ifdef TrackletsinTRD_cxx