FairRoot/PandaRoot
Functions | Variables
ex1/macro/draw.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 ("libPlane")
 
gSystem Load ("libStt")
 
gSystem Load ("libGen")
 
gSystem Load ("libGeom.so")
 
c1 SetFillColor (10)
 
geoMan SetVisLevel (3)
 
geoMan GetMasterVolume () -> Draw("same")
 
view Top ()
 
view Centered ()
 
t SetBranchAddress ("GeoTracks",&fT)
 
 for (Int_t j=0;j< t->GetEntriesFast();j++)
 
geoMan DrawTracks ("same")
 

Variables

TFile * file = new TFile("ex1.root")
 
TGeoManager * geoMan = (TGeoManager*) file->Get("FAIRGeom")
 
TCanvas * c1 = new TCanvas("c1", "", 100, 100, 800, 800)
 
TView * view = c1->GetView()
 
TTree * t =file->Get("pndsim")
 
TClonesArray * fT =new TClonesArray("TGeoTrack")
 
TGeoTrack * tr
 
TObjArray * TrList = geoMan->GetListOfTracks()
 

Function Documentation

basiclibs ( )
view Centered ( )
geoMan DrawTracks ( "same"  )
for ( Int_t  j = 0; j< t->GetEntriesFast(); j++)

Definition at line 50 of file ex1/macro/draw.C.

References i.

50  {
51  t->GetEntry(j);
52  for (Int_t i=0; i<fT->GetEntriesFast(); i++) {
53  tr=(TGeoTrack *)fT->At(i);
54 // tr->Draw("same"); // uncommit this to draw the tracks one by on
55  TrList->AddLast(tr);
56  }
57  }
Int_t i
Definition: run_full.C:25
TClonesArray * fT
Definition: drawGLTracks.C:13
TObjArray * TrList
Definition: drawGLTracks.C:26
TTree * t
Definition: bump_analys.C:13
geoMan GetMasterVolume ( ) -> Draw("same")
gSystem Load ( "libGeoBase"  )
gSystem Load ( "libParBase"  )
gSystem Load ( "libBase"  )
gSystem Load ( "libPndData"  )
gSystem Load ( "libField"  )
gSystem Load ( "libPassive"  )
gSystem Load ( "libPlane"  )
gSystem Load ( "libStt"  )
gSystem Load ( "libGen"  )
gSystem Load ( "libGeom.so"  )
t SetBranchAddress ( "GeoTracks"  ,
fT 
)
c1 SetFillColor ( 10  )
geoMan SetVisLevel ( )
view Top ( )

Variable Documentation

TCanvas* c1 = new TCanvas("c1", "", 100, 100, 800, 800)

Definition at line 28 of file ex1/macro/draw.C.

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

Definition at line 24 of file ex1/macro/draw.C.

TClonesArray* fT =new TClonesArray("TGeoTrack")

Definition at line 43 of file ex1/macro/draw.C.

TGeoManager* geoMan = (TGeoManager*) file->Get("FAIRGeom")

Definition at line 25 of file ex1/macro/draw.C.

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

Definition at line 41 of file ex1/macro/draw.C.

TGeoTrack* tr

Definition at line 48 of file ex1/macro/draw.C.

TObjArray* TrList = geoMan->GetListOfTracks()

Definition at line 49 of file ex1/macro/draw.C.

TView* view = c1->GetView()

Definition at line 35 of file ex1/macro/draw.C.