Modifications needed by the HBT analysis (P.Skowronski)
[u/mrichter/AliRoot.git] / MUON / MUONtrackRecoModel.C
CommitLineData
7a8d249f 1void MUONtrackRecoModel() {
c2a319d4 2//////////////////////////////////////////////////////////
3// This file has been automatically generated
4// (Thu Sep 21 14:53:11 2000 by ROOT version2.25/02)
5// from TTree MUONtrackReco/MUONtrackReco
6// found on file: MUONtrackReco.root
7//////////////////////////////////////////////////////////
8
9
10//Reset ROOT and connect tree file
11 gROOT->Reset();
12 TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject("MUONtrackReco.root");
13 if (!f) {
14 f = new TFile("MUONtrackReco.root");
15 }
16 TTree *MUONtrackReco = (TTree*)gDirectory->Get("MUONtrackReco");
17
18//Declaration of leaves types
19 Int_t fEvent;
20 UInt_t fUniqueID;
21 UInt_t fBits;
22 Int_t Tracks_;
23 Int_t Tracks_fCharge[5];
24 Float_t Tracks_fPxRec[5];
25 Float_t Tracks_fPyRec[5];
26 Float_t Tracks_fPzRec[5];
27 Float_t Tracks_fZRec[5];
28 Float_t Tracks_fZRec1[5];
29 Int_t Tracks_fNHits[5];
30 Float_t Tracks_fChi2[5];
31 Float_t Tracks_fPxGen[5];
32 Float_t Tracks_fPyGen[5];
33 Float_t Tracks_fPzGen[5];
34 UInt_t Tracks_fUniqueID[5];
35 UInt_t Tracks_fBits[5];
36
37//Set branch addresses
38 //MUONtrackReco->SetBranchAddress("Header",&Header);
39 MUONtrackReco->SetBranchAddress("fEvent",&fEvent);
40 MUONtrackReco->SetBranchAddress("fUniqueID",&fUniqueID);
41 MUONtrackReco->SetBranchAddress("fBits",&fBits);
42 MUONtrackReco->SetBranchAddress("Tracks_",&Tracks_);
43 MUONtrackReco->SetBranchAddress("Tracks.fCharge",Tracks_fCharge);
44 MUONtrackReco->SetBranchAddress("Tracks.fPxRec",Tracks_fPxRec);
45 MUONtrackReco->SetBranchAddress("Tracks.fPyRec",Tracks_fPyRec);
46 MUONtrackReco->SetBranchAddress("Tracks.fPzRec",Tracks_fPzRec);
47 MUONtrackReco->SetBranchAddress("Tracks.fZRec",Tracks_fZRec);
48 MUONtrackReco->SetBranchAddress("Tracks.fZRec1",Tracks_fZRec1);
49 MUONtrackReco->SetBranchAddress("Tracks.fNHits",Tracks_fNHits);
50 MUONtrackReco->SetBranchAddress("Tracks.fChi2",Tracks_fChi2);
51 MUONtrackReco->SetBranchAddress("Tracks.fPxGen",Tracks_fPxGen);
52 MUONtrackReco->SetBranchAddress("Tracks.fPyGen",Tracks_fPyGen);
53 MUONtrackReco->SetBranchAddress("Tracks.fPzGen",Tracks_fPzGen);
54 MUONtrackReco->SetBranchAddress("Tracks.fUniqueID",Tracks_fUniqueID);
55 MUONtrackReco->SetBranchAddress("Tracks.fBits",Tracks_fBits);
56
57// This is the loop skeleton
58// To read only selected branches, Insert statements like:
59// MUONtrackReco->SetBranchStatus("*",0); // disable all branches
60// TTreePlayer->SetBranchStatus("branchname",1); // activate branchname
61
62 Int_t nentries = MUONtrackReco->GetEntries();
63
64 Int_t nbytes = 0;
65// for (Int_t i=0; i<nentries;i++) {
66// nbytes += MUONtrackReco->GetEntry(i);
67// }
68}