9 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
10 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
17 TFile*
inFile =
new TFile(
"MvdPidIdeal.root",
"READ");
18 TTree*
tree = (TTree *)inFile->Get(
"pndsim");
19 TClonesArray*
pointlist=
new TClonesArray(
"PndMvdPidCand");
20 tree->SetBranchAddress(
"PndMvdPidCand", &pointlist);
23 TH2F*
h1=
new TH2F(
"h1",
"likelihood count", 100, 0.0, 2.5, 100, 0.0, 1.0);
24 TH2F*
h2=
new TH2F(
"h2",
"energy loss", 100, 0.0, 2.5, 100, 0.0, 0.05);
25 TH2F*
h3=
new TH2F(
"h3",
"ideal likelihood count", 100, 0.0, 2.5, 100, 0.0, 1.0);
31 for(
int j=0;j<nEvents && j<tree->GetEntriesFast();j++) {
33 for(
int i=0;
i<pointlist->GetEntriesFast();
i++) {
52 h2->Fill(momentum, dE/dx);
69 cout <<
"Macro finished succesfully." << endl;
70 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
double GetMvdHitdx(int mvdhit) const
double GetLikelihood(int lundId)
double GetMvdHitMomentum(int mvdhit) const
static void CalcLikelihood(PndMvdPidCand *cand)
double GetMvdHitdE(int mvdhit) const