Go to the source code of this file.
|
TStopwatch | timer |
|
TFile * | inFile = new TFile("MvdPidIdeal.root","READ") |
|
TTree * | tree = (TTree *)inFile->Get("pndsim") |
|
TClonesArray * | pointlist =new TClonesArray("PndMvdPidCand") |
|
TH2F * | h1 =new TH2F("h1", "likelihood count", 100, 0.0, 2.5, 100, 0.0, 1.0) |
|
TH2F * | h2 =new TH2F("h2", "energy loss", 100, 0.0, 2.5, 100, 0.0, 0.05) |
|
TH2F * | h3 =new TH2F("h3", "ideal likelihood count", 100, 0.0, 2.5, 100, 0.0, 1.0) |
|
Int_t | nEvents = 10000 |
|
TCanvas * | c =new TCanvas("c2") |
|
Double_t | rtime = timer.RealTime() |
|
Double_t | ctime = timer.CpuTime() |
|
Definition at line 64 of file NHitsPerEvent.C.
73 std::cout <<
"NHits: " <<
gHitPoints->GetN() << std::endl;
void ExtractData(TClonesArray *array, TGraph *g)
TClonesArray * mvdHitArray
TClonesArray * mvdProjectedArray
tree SetBranchAddress |
( |
"PndMvdPidCand" |
, |
|
|
& |
pointlist |
|
) |
| |
TH2F* h1 =new TH2F("h1", "likelihood count", 100, 0.0, 2.5, 100, 0.0, 1.0) |
TH2F* h2 =new TH2F("h2", "energy loss", 100, 0.0, 2.5, 100, 0.0, 0.05) |
TH2F* h3 =new TH2F("h3", "ideal likelihood count", 100, 0.0, 2.5, 100, 0.0, 1.0) |
TFile* inFile = new TFile("MvdPidIdeal.root","READ") |
TClonesArray* pointlist =new TClonesArray("PndMvdPidCand") |