1 #include "AliPicoV0MC.h"
5 //_____________________________________________________________________________
6 AliPicoV0MC::AliPicoV0MC() :
18 // AliPicoV0MC::AliPicoV0MC
22 //_____________________________________________________________________________
23 AliPicoV0MC::AliPicoV0MC(UInt_t wMask,
26 Double_t dV0DistToPVoverP,
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) :
45 dDauXrowsOverFindableClusTPC,
46 dPosPx, dPosPy, dPosPz,
47 dNegPx, dNegPy, dNegPz,
51 fV0Kine(dV0Px, dV0Py, dV0Pz, dV0E),
59 // AliPicoV0MC::AliPicoV0MC
63 //_____________________________________________________________________________
64 AliPicoV0MC::AliPicoV0MC(const AliPicoV0MC &src) :
67 fV0Status(src.fV0Status),
69 fMotherPDG(src.fMotherPDG),
70 fMotherStatus(src.fMotherStatus),
71 fMotherPt(src.fMotherPt),
72 fMotherEta(src.fMotherEta),
73 fMotherRap(src.fMotherRap)
76 // AliPicoV0MC::AliPicoV0MC
80 //_____________________________________________________________________________
81 AliPicoV0MC& AliPicoV0MC::operator=(const AliPicoV0MC &src)
84 // AliPicoV0RD::operator=
87 if (&src==this) return *this;
89 AliPicoV0Base::operator=(src);
92 fV0Status = src.fV0Status;
93 fV0Kine = src.fV0Kine;
95 fMotherPDG = src.fMotherPDG;
96 fMotherStatus = src.fMotherStatus;
97 fMotherPt = src.fMotherPt;
98 fMotherEta = src.fMotherEta;
99 fMotherRap = src.fMotherRap;
104 //_____________________________________________________________________________
105 AliPicoV0MC::~AliPicoV0MC()
108 // AliPicoV0MC::~AliPicoV0MC
112 //_____________________________________________________________________________
113 Bool_t AliPicoV0MC::IsKshort(Double_t dCuts[9])
116 // AliPicoV0MC::IsKshort
119 if (!AliPicoV0Base::IsKshort()) return kFALSE;
120 //=============================================================================
122 if (!IsKa(dCuts[0],dCuts[1],dCuts[2],dCuts[3],dCuts[4],dCuts[5],dCuts[6],dCuts[7],dCuts[8])) return kFALSE;
127 //_____________________________________________________________________________
128 Bool_t AliPicoV0MC::IsLambda(Double_t dCuts[9])
131 // AliPicoV0MC::IsLambda
134 if (!AliPicoV0Base::IsLambda()) return kFALSE;
135 //=============================================================================
137 if (!IsLa(dCuts[0],dCuts[1],dCuts[2],dCuts[3],dCuts[4],dCuts[5],dCuts[6],dCuts[7],dCuts[8])) return kFALSE;
142 //_____________________________________________________________________________
143 Bool_t AliPicoV0MC::IsAntiLa(Double_t dCuts[9])
146 // AliPicoV0MC::IsAntiLa
149 if (!AliPicoV0Base::IsAntiLa()) return kFALSE;
150 //=============================================================================
152 if (!IsLa(dCuts[0],dCuts[1],dCuts[2],dCuts[3],dCuts[4],dCuts[5],dCuts[6],dCuts[7],dCuts[8])) return kFALSE;
157 //_____________________________________________________________________________
158 Bool_t AliPicoV0MC::IsV0InRapAcc(Double_t dMin, Double_t dMax)
161 // AliPicoV0MC::IsV0InRapAcc
164 Double_t dRap = fV0Kine.Rapidity();
165 return ((dRap>=dMin) && (dRap<dMax));
168 //_____________________________________________________________________________
169 void AliPicoV0MC::GetControlVariables(Float_t d[18])
172 // AliPicoV0MC::GetControlVariables
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;
182 d[ 7] = (Float_t)fDauXrowsOverFindableClusTPC;
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();