20 int i=0,j=0, k=0, l=0;
21 gStyle->SetOptFit(1011);
24 TString OutFile=
"out_dummy.root";
35 if (nevts==0) nevts= theAnalysis->
GetEntries();
43 while (theAnalysis->
GetEvent() && i++<nevts)
45 cout<<
"****** Evt " << i << endl;
48 theAnalysis->
FillList(mctruth,
"McTruth");
60 cout <<
"Track "<< mctruth[j]->GetTrackNumber()<<
" (PDG:"<<mctruth[j]->PdgCode() <<
") has mother "<<muid;
62 if (mctruth[j]->NDaughters()>0) cout <<
" and daughter(s) ";
63 for (k=0;k<mctruth[j]->NDaughters();++k) cout <<mctruth[j]->Daughter(k)->GetTrackNumber()<<
" ";
FairRunAna * initrun(TString prefix, TString outfile, int min=-1, int max=-1)
Int_t GetTrackNumber() const
Bool_t FillList(RhoCandList &l, TString listkey="All", TString pidTcaNames="", int trackHypothesis=-1)
PndAnalysis(TString tname1="", TString tname2="", TString algnamec="PidAlgoIdealCharged", TString algnamen="PidAlgoIdealNeutral")
void tut_ana_mclist(int nevts=0, TString prefix="signal")
Int_t GetEvent(Int_t n=-1)