Go to the source code of this file.
      
        
          | void tut_ana_mclist | ( | int | nevts = 0, | 
        
          |  |  | TString | prefix = "signal" | 
        
          |  | ) |  |  | 
      
 
Definition at line 17 of file thailand2017/tut_ana_mclist.C.
References PndAnalysis::FillList(), fRun, PndAnalysis::GetEntries(), PndAnalysis::GetEvent(), RhoCandList::GetLength(), RhoCandidate::GetTrackNumber(), i, initrun(), PndAnalysis::PndAnalysis(), RemoveGeoManager(), and TString.
   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)
Int_t GetEvent(Int_t n=-1)