AliPhysics  2c8507d (2c8507d)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliPicoV0MC.cxx
Go to the documentation of this file.
1 #include "AliPicoV0MC.h"
2 
4 
5 //_____________________________________________________________________________
8 fV0PDG(0),
9 fV0Status(0),
10 fV0Kine(),
11 fMotherPDG(0),
12 fMotherStatus(0),
13 fMotherPt(0.),
14 fMotherEta(0.),
15 fMotherRap(0.)
16 {
17 //
18 // AliPicoV0MC::AliPicoV0MC
19 //
20 }
21 
22 //_____________________________________________________________________________
24  Double_t dV0Radius,
25  Double_t dV0CosPA,
26  Double_t dV0DistToPVoverP,
27  Double_t dDausDCA,
28  Double_t dPosDCAtoPV,
29  Double_t dNegDCAtoPV,
30  Float_t dDauXrowsTPC,
31  Double_t dDauXrowsOverFindableClusTPC,
32  Double_t dPosPx, Double_t dPosPy, Double_t dPosPz,
33  Double_t dNegPx, Double_t dNegPy, Double_t dNegPz,
34  Bool_t bPosInJC, Bool_t bNegInJC,
35  Int_t idV, UInt_t wsV, Double_t dV0Px, Double_t dV0Py, Double_t dV0Pz, Double_t dV0E,
36  Int_t idM, UInt_t wsM, Double_t dPtM, Double_t dEtaM, Double_t dRapM) :
37 AliPicoV0Base(wMask,
38  dV0Radius,
39  dV0CosPA,
40  dV0DistToPVoverP,
41  dDausDCA,
42  dPosDCAtoPV,
43  dNegDCAtoPV,
44  dDauXrowsTPC,
45  dDauXrowsOverFindableClusTPC,
46  dPosPx, dPosPy, dPosPz,
47  dNegPx, dNegPy, dNegPz,
48  bPosInJC, bNegInJC),
49 fV0PDG(idV),
50 fV0Status(wsV),
51 fV0Kine(dV0Px, dV0Py, dV0Pz, dV0E),
52 fMotherPDG(idM),
53 fMotherStatus(wsM),
54 fMotherPt(dPtM),
55 fMotherEta(dEtaM),
56 fMotherRap(dRapM)
57 {
58 //
59 // AliPicoV0MC::AliPicoV0MC
60 //
61 }
62 
63 //_____________________________________________________________________________
65 AliPicoV0Base(src),
66 fV0PDG(src.fV0PDG),
67 fV0Status(src.fV0Status),
68 fV0Kine(src.fV0Kine),
69 fMotherPDG(src.fMotherPDG),
70 fMotherStatus(src.fMotherStatus),
71 fMotherPt(src.fMotherPt),
72 fMotherEta(src.fMotherEta),
73 fMotherRap(src.fMotherRap)
74 {
75 //
76 // AliPicoV0MC::AliPicoV0MC
77 //
78 }
79 
80 //_____________________________________________________________________________
82 {
83 //
84 // AliPicoV0RD::operator=
85 //
86 
87  if (&src==this) return *this;
88 
90 
91  fV0PDG = src.fV0PDG;
92  fV0Status = src.fV0Status;
93  fV0Kine = src.fV0Kine;
94 
95  fMotherPDG = src.fMotherPDG;
97  fMotherPt = src.fMotherPt;
98  fMotherEta = src.fMotherEta;
99  fMotherRap = src.fMotherRap;
100 
101  return *this;
102 }
103 
104 //_____________________________________________________________________________
106 {
107 //
108 // AliPicoV0MC::~AliPicoV0MC
109 //
110 }
111 
112 //_____________________________________________________________________________
114 {
115 //
116 // AliPicoV0MC::IsKshort
117 //
118 
119  if (!AliPicoV0Base::IsKshort()) return kFALSE;
120 //=============================================================================
121 
122  if (!IsKa(dCuts[0],dCuts[1],dCuts[2],dCuts[3],dCuts[4],dCuts[5],dCuts[6],dCuts[7],dCuts[8])) return kFALSE;
123 
124  return kTRUE;
125 }
126 
127 //_____________________________________________________________________________
129 {
130 //
131 // AliPicoV0MC::IsLambda
132 //
133 
134  if (!AliPicoV0Base::IsLambda()) return kFALSE;
135 //=============================================================================
136 
137  if (!IsLa(dCuts[0],dCuts[1],dCuts[2],dCuts[3],dCuts[4],dCuts[5],dCuts[6],dCuts[7],dCuts[8])) return kFALSE;
138 
139  return kTRUE;
140 }
141 
142 //_____________________________________________________________________________
144 {
145 //
146 // AliPicoV0MC::IsAntiLa
147 //
148 
149  if (!AliPicoV0Base::IsAntiLa()) return kFALSE;
150 //=============================================================================
151 
152  if (!IsLa(dCuts[0],dCuts[1],dCuts[2],dCuts[3],dCuts[4],dCuts[5],dCuts[6],dCuts[7],dCuts[8])) return kFALSE;
153 
154  return kTRUE;
155 }
156 
157 //_____________________________________________________________________________
159 {
160 //
161 // AliPicoV0MC::IsV0InRapAcc
162 //
163 
164  Double_t dRap = fV0Kine.Rapidity();
165  return ((dRap>=dMin) && (dRap<dMax));
166 }
167 
168 //_____________________________________________________________________________
170 {
171 //
172 // AliPicoV0MC::GetControlVariables
173 //
174 
175  d[ 0] = (Float_t)fV0Radius;
176  d[ 1] = (Float_t)fV0CosPA;
177  d[ 2] = (Float_t)fV0DistToPVoverP;
178  d[ 3] = (Float_t)fDausDCA;
179  d[ 4] = (Float_t)fPosDCAtoPV;
180  d[ 5] = (Float_t)fNegDCAtoPV;
181  d[ 6] = (Float_t)fDauXrowsTPC;
183  d[ 8] = (Float_t)KineRD().Pt();
184  d[ 9] = (Float_t)RapidityKa();
185  d[10] = (Float_t)RapidityLa();
186  d[11] = (Float_t)KineMC().Pt();
187  d[12] = (Float_t)KineMC().Rapidity();
188  d[13] = (Float_t)KineKshort().M();
189  d[14] = (Float_t)KineLambda().M();
190  d[15] = (Float_t)KineAntiLa().M();
191  d[16] = (Float_t)fP3Pos.Eta();
192  d[17] = (Float_t)fP3Neg.Eta();
193 
194  return;
195 }
TLorentzVector KineMC() const
Definition: AliPicoV0MC.h:33
Bool_t IsLambda() const
Definition: AliPicoV0MC.h:46
Bool_t IsKa(Double_t dCutMinV0Radius=0.5, Double_t dCutMinV0CosPA=0.97, Double_t dCutMaxV0Ctau=20., Double_t dCutMaxDausDCA=1., Double_t dCutMinPosDCAtoPV=0.06, Double_t dCutMinNegDCAtoPV=0.06, Float_t dCutMinDauXrowsTPC=70., Double_t dCutMinDauXrowsOverFindableClusTPC=0.8, Double_t dCutMinDauDeltaM=0.005)
double Double_t
Definition: External.C:58
TLorentzVector KineAntiLa()
TLorentzVector fV0Kine
Definition: AliPicoV0MC.h:96
TLorentzVector KineKshort()
Float_t fDauXrowsTPC
UInt_t fV0Status
Definition: AliPicoV0MC.h:95
Double_t RapidityKa()
AliPicoV0MC & operator=(const AliPicoV0MC &src)
Definition: AliPicoV0MC.cxx:81
Bool_t IsKshort() const
Definition: AliPicoV0Base.h:46
UInt_t fMotherStatus
Definition: AliPicoV0MC.h:99
AliPicoV0Base & operator=(const AliPicoV0Base &src)
Double_t fMotherEta
Definition: AliPicoV0MC.h:102
Double_t fV0Radius
Double_t fMotherPt
Definition: AliPicoV0MC.h:101
TVector3 fP3Pos
Double_t RapidityLa()
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
Int_t fV0PDG
Definition: AliPicoV0MC.h:94
float Float_t
Definition: External.C:68
Double_t fDausDCA
Double_t fNegDCAtoPV
Double_t fV0CosPA
Bool_t IsV0InRapAcc(Double_t dMin, Double_t dMax)
Bool_t IsAntiLa() const
Definition: AliPicoV0MC.h:47
Bool_t IsKshort() const
Definition: AliPicoV0MC.h:45
TVector3 KineRD() const
Definition: AliPicoV0Base.h:36
Int_t fMotherPDG
Definition: AliPicoV0MC.h:98
Bool_t IsAntiLa() const
Definition: AliPicoV0Base.h:48
TVector3 fP3Neg
Double_t fDauXrowsOverFindableClusTPC
Double_t fPosDCAtoPV
TLorentzVector KineLambda()
void GetControlVariables(Float_t d[18])
virtual ~AliPicoV0MC()
Double_t fV0DistToPVoverP
Bool_t IsLa(Double_t dCutMinV0Radius=0.5, Double_t dCutMinV0CosPA=0.995, Double_t dCutMaxV0Ctau=30., Double_t dCutMaxDausDCA=1., Double_t dCutMinPosDCAtoPV=0.06, Double_t dCutMinNegDCAtoPV=0.06, Float_t dCutMinDauXrowsTPC=70., Double_t dCutMinDauXrowsOverFindableClusTPC=0.8, Double_t dCutMinDauDeltaM=0.01)
ClassImp(AliPicoV0MC) AliPicoV0MC
Definition: AliPicoV0MC.cxx:3
bool Bool_t
Definition: External.C:53
Bool_t IsLambda() const
Definition: AliPicoV0Base.h:47
Double_t fMotherRap
Definition: AliPicoV0MC.h:103