FairRoot/PandaRoot
Functions | Variables
drawEveTracks.C File Reference

Go to the source code of this file.

Functions

gSystem Load ("libEventDisplay")
 
fRun SetInputFile ("MVD_D+D-_wMag.root")
 
fRun LoadGeomentry ()
 
fMan AddTask (Track)
 
fMan AddTask (MvdPoints)
 
fMan Init ()
 

Variables

FairEventManager * fMan = new FairEventManager()
 
FairMCTracks * Track = new FairMCTracks("MCTrack")
 
FairMCPointDraw * MvdPoints = new FairMCPointDraw("MVDPoint")
 

Function Documentation

fMan AddTask ( Track  )
fMan AddTask ( MvdPoints  )
fMan Init ( )

Initialize the session

Definition at line 20 of file NHitsPerEvent.C.

21 {
22  TFile* f = new TFile("2014-10-27-00-06-02_50_MHz_Filtered_PosCorrected_Event.root", "READ");
23  t = (TTree*)f->Get("pndsim");
24 // t->AddFriend("pndsim", "2014-10-27-00-06-02_50_MHz_Filtered_PosCorrected_Residuals.root");
25 // t->AddFriend("pndsim", "2014-10-27-00-06-02_50_MHz_Filtered_PosCorrected_Track.root");
26 // t->AddFriend("pndsim", "2014-10-27-00-06-02_50_MHz_Filtered_TimeCorrectedSorted_Event.root");
27  t->StartViewer();
28 
29  t->SetBranchAddress("MVDHitsPixelPosCorrected", &mvdHitArray);
30 // t->SetBranchAddress("MvdProjectedHit", &mvdProjectedArray);
31 // t->SetBranchAddress("MvdTrack", &trackArray);
32 
33  gHitPoints->SetLineColor(kRed);
34  gHitPoints->SetMarkerStyle(2);
35  gHitPoints->SetMarkerColor(kRed);
36 
37  gProjections->SetLineColor(kBlue);
38  gProjections->SetMarkerStyle(5);
39  gProjections->SetMarkerColor(kBlue);
40 
41 
42 // mg->Add(gProjections, "Projected");
43  mg->Add(gHitPoints, "Hits");
44  t->GetEntry(0);
45 }
TMultiGraph * mg
Definition: NHitsPerEvent.C:17
TGraph * gHitPoints
Definition: NHitsPerEvent.C:15
TClonesArray * mvdHitArray
Definition: NHitsPerEvent.C:12
TFile * f
Definition: bump_analys.C:12
TTree * t
Definition: bump_analys.C:13
TGraph * gProjections
Definition: NHitsPerEvent.C:16
gSystem Load ( "libEventDisplay"  )
fRun LoadGeomentry ( )
fRun SetInputFile ( "MVD_D+D-_wMag.root"  )

Variable Documentation

FairEventManager* fMan = new FairEventManager()
FairMCPointDraw* MvdPoints = new FairMCPointDraw("MVDPoint")
FairMCTracks* Track = new FairMCTracks("MCTrack")