20         int i=0,j=0, k=0, l=0;
 
   21         gStyle->SetOptFit(1011);
 
   24         TString OutFile=
"out_dummy.root";
 
   29         TFile *
out = TFile::Open(prefix+
"_ana_ntp.root",
"RECREATE");
 
   36         njpsi->
Column(
"tjpsim",         0.0
f, -999.9
f);
 
   37         njpsi->
Column(
"tjpsip",         0.0
f, -999.9
f);
 
   38         njpsi->
Column(
"tjpsitht",       0.0
f, -999.9
f);
 
   40         npsip->
Column(
"tpsim",          0.0
f, -999.9
f);
 
   41         npsip->
Column(
"tpsip",          0.0
f, -999.9
f);
 
   42         npsip->
Column(
"tpsitht",        0.0
f, -999.9
f);
 
   50         if (nevts==0) nevts= theAnalysis->
GetEntries();
 
   56         double m0_jpsi = TDatabasePDG::Instance()->GetParticle(
"J/psi")->Mass();   
 
   60         TString pidSelection = 
"PidAlgoEmcBayes;PidAlgoDrc;PidAlgoDisc;PidAlgoStt;PidAlgoMdtHardCuts";
 
   63         TLorentzVector ini(0, 0, 6.231552, 7.240065);
 
   72         while (theAnalysis->
GetEvent() && i++<nevts)
 
   74                 if ((i%100)==0) cout<<
"evt " << i << endl;
 
   77                 theAnalysis->
FillList(muplus,  
"MuonAllPlus",   pidSelection);
 
   78                 theAnalysis->
FillList(muminus, 
"MuonAllMinus",  pidSelection);
 
   79                 theAnalysis->
FillList(piplus,  
"PionAllPlus",   pidSelection);
 
   80                 theAnalysis->
FillList(piminus, 
"PionAllMinus",  pidSelection);
 
   83                 theAnalysis->
FillList(allpart, 
"All", pidSelection);
 
  113                         double chi2_vtx = vtxfitter.
GetChi2();  
 
  114                         double prob_vtx = vtxfitter.
GetProb();  
 
  115                         TVector3 vtxpos(-999.,-999.,-999.);
 
  116                         if (fitvtx_jpsi) vtxpos = fitvtx_jpsi->
Daughter(0)->
Pos();
 
  124                         double chi2_mass = mfitter.
GetChi2();   
 
  125                         double prob_mass = mfitter.
GetProb();   
 
  130                         njpsi->
Column(
"ev",             (Float_t) i,                            -999.9
f);
 
  131                         njpsi->
Column(
"cand",           (Float_t) j,                            -999.9
f);
 
  134                         njpsi->
Column(
"jpsim",          (Float_t) jpsi[j]->M(),                 -999.9
f);
 
  135                         njpsi->
Column(
"jpsip",          (Float_t) jpsi[j]->
P(),                 -999.9
f);
 
  136                         njpsi->
Column(
"jpsipt",         (Float_t) jpsi[j]->P3().Pt(),           -999.9
f);
 
  142                         njpsi->
Column(
"mct",            (Float_t) mct,                           -999.9
f);
 
  164                 psi2s.
Combine(jpsi, piplus, piminus);
 
  187                         RhoCandidate *fit4c_jpsi = psi2s[j]->Daughter(0)->GetFit();     
 
  189                         double chi2_4c = fitter.
GetChi2();      
 
  190                         double prob_4c = fitter.
GetProb();      
 
FairRunAna * initrun(TString prefix, TString outfile, int min=-1, int max=-1)
void AddMassConstraint(double mass)
Bool_t FillList(RhoCandList &l, TString listkey="All", TString pidTcaNames="", int trackHypothesis=-1)
PndPidCandidate * GetRecoCandidate() const 
RhoCandidate * Daughter(Int_t n)
void Add4MomConstraint(TLorentzVector lv)
void Combine(RhoCandList &l1, RhoCandList &l2)
void Column(const char *label, Bool_t value, Bool_t defval=0, const char *block=0)
void SetType(const TParticlePDG *pdt, int start=0)
void tut_ana_ntp(int nevts=0, TString prefix="signal")
TTree * GetInternalTree()
Bool_t McTruthMatch(RhoCandidate *cand, Int_t level=2, bool verbose=false)
Int_t GetEvent(Int_t n=-1)