38 int i=0,j=0, k=0, l=0;
39 gStyle->SetOptFit(1011);
42 TString OutFile=
"out_dummy.root";
45 TString inPidFile = prefix+
"_fast.root";
48 TString pidParFile =
TString(gSystem->Getenv(
"VMCWORKDIR"))+
"/macro/params/all.par";
51 FairRunAna*
fRun =
new FairRunAna();
52 fRun->SetSource(
new FairFileSource(inPidFile));
53 fRun->SetOutputFile(OutFile);
61 TFile *
out = TFile::Open(prefix+
"_ana_fast.root",
"RECREATE");
69 if (nevts==0) nevts= theAnalysis->
GetEntries();
88 while (theAnalysis->
GetEvent() && i++<nevts)
91 TString pidalgo =
"PidChargedProbability";
108 cout<<
"Writing "<<nhist<<
" histograms to file"<<endl;
int SelectTruePid(PndAnalysis *ana, RhoCandList &l)
PndAnalysis(TString tname1="", TString tname2="", TString algnamec="PidAlgoIdealCharged", TString algnamen="PidAlgoIdealNeutral")
void tut_ana_fast(int nevts=0, TString prefix="signal")
Int_t Remove(RhoCandidate *)
Bool_t McTruthMatch(RhoCandidate *cand, Int_t level=2, bool verbose=false)
Int_t GetEvent(Int_t n=-1)
int writemyhistos(int maxy=800, double asp=1.1)
void plotmyhistos(std::vector< TH1 * > h, int maxy=700, double asp=1.1)