AliPhysics  608b256 (608b256)
AliDalitzAODESDMC.cxx
Go to the documentation of this file.
1 #include "AliVTrack.h"
2 #include "AliDalitzAODESDMC.h"
3 #include "TParticle.h"
4 #include "AliAODMCParticle.h"
5 #include "AliLog.h"
6 #include "TMath.h"
7 
8 ClassImp( AliDalitzAODESDMC )
9 //-----------------------------------------------------------------------------------------------
10 
11 
12  Int_t AliDalitzAODESDMC::GetMotherG(){
13  if (fIsESDMC==kTRUE) return tparticle->GetMother(0);
14  else return aliaodmcparticle->GetMother();
15  }
17  if (fIsESDMC==kTRUE) return tparticle->GetFirstDaughter();
18  else return aliaodmcparticle->GetDaughterFirst();
19  }
21  if (fIsESDMC==kTRUE) return tparticle->GetLastDaughter();
22  else return aliaodmcparticle->GetDaughterLast();
23  }
25  if (fIsESDMC==kTRUE) return tparticle->GetNDaughters();
26  else return aliaodmcparticle->GetNDaughters();
27  }
28  //Int_t AliDalitzAODESDMC::GetFirstG(){
29  // if (fIsESD==kTRUE) return tparticle->GetMother(0);
30  // else return aliaodmcparaticle->GetMother();
31  //}
33  if (fIsESDMC==kTRUE) return tparticle->GetPdgCode();
34  else return aliaodmcparticle->GetPdgCode();
35  }
37  if (fIsESDMC==kTRUE) return tparticle->R();
38  else {
39  Double_t vv[3];
40  aliaodmcparticle->XvYvZv(vv);
41  return TMath::Sqrt(vv[0]*vv[0]+vv[1]*vv[1]);
42  }
43  }
45  if (fIsESDMC==kTRUE) return tparticle->Pt();
46  else return aliaodmcparticle->Pt();
47  }
49  if (fIsESDMC==kTRUE) return tparticle->Px();
50  else return aliaodmcparticle->Px();
51  }
53  if (fIsESDMC==kTRUE) return tparticle->Py();
54  else return aliaodmcparticle->Py();
55  }
57  if (fIsESDMC==kTRUE) return tparticle->Pz();
58  else return aliaodmcparticle->Pz();
59  }
61  if (fIsESDMC==kTRUE) return tparticle->Eta();
62  else return aliaodmcparticle->Eta();
63  }
65  if (fIsESDMC==kTRUE) return tparticle->GetUniqueID();
66  else return aliaodmcparticle->GetMCProcessCode();
67  }
69  if (fIsESDMC==kTRUE) return tparticle->Vz();
70  else return aliaodmcparticle->Xv();
71  }
73  if (fIsESDMC==kTRUE) return tparticle->Energy();
74  else return aliaodmcparticle->E();
75  }
76 
double Double_t
Definition: External.C:58
AliAODMCParticle * aliaodmcparticle
int Int_t
Definition: External.C:63