FairRoot/PandaRoot
Functions | Variables
ReadMesDecCorrRes.C File Reference

Go to the source code of this file.

Functions

c Divide (2, 2)
 
c cd (1)
 
h1p Draw ()
 
c cd (2)
 
c cd (3)
 
c cd (4)
 

Variables

TFile * f1 = new TFile("AnaFSimpleP2Bup1TXXb.root")
 
TFile * f2 = new TFile("AnaFSimpleP4Bup1TXXb.root")
 
TFile * f3 = new TFile("AnaFSimpleP6Bup1TXXb.root")
 
TFile * f4 = new TFile("AnaFSimpleP8Bup1TXXb.root")
 
TH2D * h1 =(TH2D*)f1->Get("hvtx201")
 
TH2D * h2 =(TH2D*)f2->Get("hvtx201")
 
TH2D * h3 =(TH2D*)f3->Get("hvtx201")
 
TH2D * h4 =(TH2D*)f4->Get("hvtx201")
 
TH1D * h1p =(TH1D*)h1->ProjectionX(" proj_y1",0,-1,"")
 
TH1D * h2p =(TH1D*)h2->ProjectionX(" proj_y2",0,-1,"")
 
TH1D * h3p =(TH1D*)h3->ProjectionX(" proj_y3",0,-1,"")
 
TH1D * h4p =(TH1D*)h4->ProjectionX(" proj_y4",0,-1,"")
 

Function Documentation

c cd ( )
c cd ( )
c cd ( )
c cd ( )
c Divide ( ,
 
)
h1p Draw ( )

Definition at line 64 of file NHitsPerEvent.C.

64  {
65 
66  std::cout << "mvdHitArray: " << mvdHitArray->GetEntries() << " projectedHitArray " << mvdProjectedArray->GetEntries() << std::endl;
67 
68 // gHitPoints->Clear();
71  //if (gHitPoints->GetN() != x.size()) gHitPoints->Expand(x.size());
72 
73  std::cout << "NHits: " << gHitPoints->GetN() << std::endl;
74  gHitPoints->Draw("apl");
75  gProjections->Draw("pl");
76 }
void ExtractData(TClonesArray *array, TGraph *g)
Definition: NHitsPerEvent.C:78
TGraph * gHitPoints
Definition: NHitsPerEvent.C:15
TClonesArray * mvdHitArray
Definition: NHitsPerEvent.C:12
TClonesArray * mvdProjectedArray
Definition: NHitsPerEvent.C:13
TGraph * gProjections
Definition: NHitsPerEvent.C:16

Variable Documentation

TFile* f1 = new TFile("AnaFSimpleP2Bup1TXXb.root")

Definition at line 4 of file ReadMesDecCorrRes.C.

TFile* f2 = new TFile("AnaFSimpleP4Bup1TXXb.root")
TFile* f3 = new TFile("AnaFSimpleP6Bup1TXXb.root")
TFile* f4 = new TFile("AnaFSimpleP8Bup1TXXb.root")
TH2D* h1 =(TH2D*)f1->Get("hvtx201")

Definition at line 10 of file ReadMesDecCorrRes.C.

TH1D* h1p =(TH1D*)h1->ProjectionX(" proj_y1",0,-1,"")

Definition at line 15 of file ReadMesDecCorrRes.C.

TH2D* h2 =(TH2D*)f2->Get("hvtx201")

Definition at line 11 of file ReadMesDecCorrRes.C.

TH1D* h2p =(TH1D*)h2->ProjectionX(" proj_y2",0,-1,"")

Definition at line 16 of file ReadMesDecCorrRes.C.

TH2D* h3 =(TH2D*)f3->Get("hvtx201")

Definition at line 13 of file ReadMesDecCorrRes.C.

TH1D* h3p =(TH1D*)h3->ProjectionX(" proj_y3",0,-1,"")

Definition at line 18 of file ReadMesDecCorrRes.C.

TH2D* h4 =(TH2D*)f4->Get("hvtx201")

Definition at line 14 of file ReadMesDecCorrRes.C.

TH1D* h4p =(TH1D*)h4->ProjectionX(" proj_y4",0,-1,"")

Definition at line 20 of file ReadMesDecCorrRes.C.