FairRoot/PandaRoot
Functions | Variables
drawTracks.C File Reference

Go to the source code of this file.

Functions

 basiclibs ()
 
gSystem Load ("libGeoBase")
 
gSystem Load ("libParBase")
 
gSystem Load ("libBase")
 
gSystem Load ("libPndData")
 
gSystem Load ("libField")
 
gSystem Load ("libPassive")
 
gSystem Load ("libGen")
 
gSystem Load ("libGeom.so")
 
gSystem Load ("libEmc")
 
gSystem Load ("libStt")
 
gSystem Load ("libMuo")
 
gSystem Load ("libTof")
 
gSystem Load ("libDrcProp")
 
gSystem Load ("libDrc")
 
gSystem Load ("libtpc")
 
gSystem Load ("libMvd")
 
gSystem Load ("libTrkBase")
 
t SetBranchAddress ("GeoTracks",&fT)
 
 for (Int_t j=0;j< t->GetEntriesFast();j++)
 

Variables

TFile * file = new TFile("mc.root")
 
TTree * t =file->Get("pndsim")
 
TClonesArray * fT =new TClonesArray("TGeoTrack")
 
TGeoTrack * tr
 

Function Documentation

basiclibs ( )
for ( Int_t  j = 0; j< t->GetEntriesFast(); j++)

Definition at line 38 of file drawTracks.C.

References i.

38  {
39  t->GetEntry(j);
40  for (Int_t i=0; i<fT->GetEntriesFast(); i++) {
41  tr=(TGeoTrack *)fT->At(i);
42  tr->Draw("same"); // uncommit this to draw the tracks one by on
43  // TrList->AddLast(tr);
44  }
45  }
TTree * t
Definition: drawTracks.C:29
Int_t i
Definition: run_full.C:25
TClonesArray * fT
Definition: drawTracks.C:31
TGeoTrack * tr
Definition: drawTracks.C:36
gSystem Load ( "libGeoBase"  )
gSystem Load ( "libParBase"  )
gSystem Load ( "libBase"  )
gSystem Load ( "libPndData"  )
gSystem Load ( "libField"  )
gSystem Load ( "libPassive"  )
gSystem Load ( "libGen"  )
gSystem Load ( "libGeom.so"  )
gSystem Load ( "libEmc"  )
gSystem Load ( "libStt"  )
gSystem Load ( "libMuo"  )
gSystem Load ( "libTof"  )
gSystem Load ( "libDrcProp"  )
gSystem Load ( "libDrc"  )
gSystem Load ( "libtpc"  )
gSystem Load ( "libMvd"  )
gSystem Load ( "libTrkBase"  )
t SetBranchAddress ( "GeoTracks"  ,
fT 
)

Variable Documentation

TFile* file = new TFile("mc.root")

Definition at line 26 of file drawTracks.C.

TClonesArray* fT =new TClonesArray("TGeoTrack")

Definition at line 31 of file drawTracks.C.

TTree* t =file->Get("pndsim")

Definition at line 29 of file drawTracks.C.

TGeoTrack* tr

Definition at line 36 of file drawTracks.C.