AliPhysics  d497547 (d497547)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliPicoV0.h
Go to the documentation of this file.
1 #ifndef ALIPICOV0BASE_H
2 #define ALIPICOV0BASE_H
3 
4 #include <TObject.h>
5 #include <TVector3.h>
6 
7 #include "AliPicoBase.h"
8 
9 class TH2D;
10 class TLorentzVector;
11 
12 class AliPicoV0 : public TObject {
13 
14  public :
15 
16  AliPicoV0();
17  AliPicoV0(UInt_t wMask,
18  Double_t dV0Radius,
19  Double_t dV0CosPA,
20  Double_t dV0DistToPVoverP,
21  Double_t dDausDCA,
22  Double_t dPosDCAtoPV,
23  Double_t dNegDCAtoPV,
24  Float_t dDauXrowsTPC,
25  Double_t dDauXrowsOverFindableClusTPC,
26  Double_t dPosPx, Double_t dPosPy, Double_t dPosPz,
27  Double_t dNegPx, Double_t dNegPy, Double_t dNegPz,
28  Bool_t bPosInJC, Bool_t bNegInJC);
29  AliPicoV0(const AliPicoV0 &src);
30  AliPicoV0& operator=(const AliPicoV0 &src);
31  virtual ~AliPicoV0();
32 //=============================================================================
33 
34  TVector3 KinePos() const { return fP3Pos; }
35  TVector3 KineNeg() const { return fP3Neg; }
36  TVector3 KineRD() const { return (fP3Pos + fP3Neg); }
37 
38  TLorentzVector KineKshort();
39  TLorentzVector KineLambda();
40  TLorentzVector KineAntiLa();
41 
44 //=============================================================================
45 
46  Bool_t IsKshort() const { return ((fMask & AliPicoBase::kKshort) == AliPicoBase::kKshort); }
47  Bool_t IsLambda() const { return ((fMask & AliPicoBase::kLambda) == AliPicoBase::kLambda); }
48  Bool_t IsAntiLa() const { return ((fMask & AliPicoBase::kAntiLambda) == AliPicoBase::kAntiLambda); }
49 
54 
55  Bool_t IsPosInJC() const { return fIsPosInJC; }
56  Bool_t IsNegInJC() const { return fIsNegInJC; }
57  Bool_t IsTwoInJC() const { return (fIsPosInJC && fIsNegInJC); }
58  Bool_t IsOneInJC() const { return (fIsPosInJC || fIsNegInJC); }
59 
60  void FillKshortPtInvM(TH2D *h);
61  void FillLambdaPtInvM(TH2D *h);
62  void FillAntiLaPtInvM(TH2D *h);
63 //=============================================================================
64 
65  protected :
66 
67  Bool_t IsKa(Double_t dCutMinV0Radius = 0.5,
68  Double_t dCutMinV0CosPA = 0.97,
69  Double_t dCutMaxV0Ctau = 20.,
70  Double_t dCutMaxDausDCA = 1.,
71  Double_t dCutMinPosDCAtoPV = 0.06,
72  Double_t dCutMinNegDCAtoPV = 0.06,
73  Float_t dCutMinDauXrowsTPC = 70.,
74  Double_t dCutMinDauXrowsOverFindableClusTPC = 0.8,
75  Double_t dCutMinDauDeltaM = 0.005);
76 
77  Bool_t IsLa(Double_t dCutMinV0Radius = 0.5,
78  Double_t dCutMinV0CosPA = 0.995,
79  Double_t dCutMaxV0Ctau = 30.,
80  Double_t dCutMaxDausDCA = 1.,
81  Double_t dCutMinPosDCAtoPV = 0.06,
82  Double_t dCutMinNegDCAtoPV = 0.06,
83  Float_t dCutMinDauXrowsTPC = 70.,
84  Double_t dCutMinDauXrowsOverFindableClusTPC = 0.8,
85  Double_t dCutMinDauDeltaM = 0.01);
86 
87  Bool_t IsCandidateSelected(Double_t dCutMinV0Radius,
88  Double_t dCutMinV0CosPA,
89  Double_t dCutMaxDausDCA,
90  Double_t dCutMinPosDCAtoPV,
91  Double_t dCutMinNegDCAtoPV,
92  Float_t dCutMinDauXrowsTPC,
93  Double_t dCutMinDauXrowsOverFindableClusTPC);
94 
95  Bool_t IsKaSelected(Double_t dCutMaxV0Ctau, Double_t dCutMinDauDeltaM);
96  Bool_t IsLaSelected(Double_t dCutMaxV0Ctau, Double_t dCutMinDauDeltaM);
97 //=============================================================================
98 
100 
104 
106 
109 
112 
113  TVector3 fP3Pos; //
114  TVector3 fP3Neg; //
115 
116  Bool_t fIsPosInJC; // match w/ jet consti
117  Bool_t fIsNegInJC; // match w/ jet consti
118 
119  ClassDef(AliPicoV0, 4)
120 };
121 
122 #endif
Double_t fV0DistToPVoverP
Definition: AliPicoV0.h:103
Bool_t IsLaInRapAcc(Double_t dMin, Double_t dMax)
Definition: AliPicoV0.cxx:307
TVector3 KineNeg() const
Definition: AliPicoV0.h:35
Bool_t IsPosInJC() const
Definition: AliPicoV0.h:55
AliPicoV0 & operator=(const AliPicoV0 &src)
Definition: AliPicoV0.cxx:88
double Double_t
Definition: External.C:58
Bool_t IsTwoInJC() const
Definition: AliPicoV0.h:57
TLorentzVector KineKshort()
Definition: AliPicoV0.cxx:366
Double_t fNegDCAtoPV
Definition: AliPicoV0.h:108
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)
Definition: AliPicoV0.cxx:124
UInt_t fMask
Definition: AliPicoV0.h:99
Bool_t IsKshort() const
Definition: AliPicoV0.h:46
Bool_t IsKaSelected(Double_t dCutMaxV0Ctau, Double_t dCutMinDauDeltaM)
Definition: AliPicoV0.cxx:180
TVector3 fP3Pos
Definition: AliPicoV0.h:113
Bool_t IsKaInRapAcc(Double_t dMin, Double_t dMax)
Definition: AliPicoV0.cxx:296
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)
Definition: AliPicoV0.cxx:152
Bool_t IsV0InEtaAcc(Double_t dMin, Double_t dMax)
Definition: AliPicoV0.cxx:318
TVector3 fP3Neg
Definition: AliPicoV0.h:114
virtual ~AliPicoV0()
Definition: AliPicoV0.cxx:116
Double_t fDauXrowsOverFindableClusTPC
Definition: AliPicoV0.h:111
Float_t fDauXrowsTPC
Definition: AliPicoV0.h:110
TVector3 KineRD() const
Definition: AliPicoV0.h:36
Double_t RapidityKa()
Definition: AliPicoV0.cxx:344
Bool_t IsCandidateSelected(Double_t dCutMinV0Radius, Double_t dCutMinV0CosPA, Double_t dCutMaxDausDCA, Double_t dCutMinPosDCAtoPV, Double_t dCutMinNegDCAtoPV, Float_t dCutMinDauXrowsTPC, Double_t dCutMinDauXrowsOverFindableClusTPC)
Definition: AliPicoV0.cxx:216
Bool_t IsOneInJC() const
Definition: AliPicoV0.h:58
unsigned int UInt_t
Definition: External.C:33
float Float_t
Definition: External.C:68
TVector3 KinePos() const
Definition: AliPicoV0.h:34
Double_t RapidityLa()
Definition: AliPicoV0.cxx:355
Definition: External.C:228
Bool_t IsAntiLa() const
Definition: AliPicoV0.h:48
Double_t fPosDCAtoPV
Definition: AliPicoV0.h:107
void FillLambdaPtInvM(TH2D *h)
Definition: AliPicoV0.cxx:260
Bool_t fIsNegInJC
Definition: AliPicoV0.h:117
Double_t fDausDCA
Definition: AliPicoV0.h:105
void FillKshortPtInvM(TH2D *h)
Definition: AliPicoV0.cxx:242
void FillAntiLaPtInvM(TH2D *h)
Definition: AliPicoV0.cxx:278
TLorentzVector KineAntiLa()
Definition: AliPicoV0.cxx:392
Bool_t fIsPosInJC
Definition: AliPicoV0.h:116
Double_t fV0Radius
Definition: AliPicoV0.h:101
Bool_t IsLaSelected(Double_t dCutMaxV0Ctau, Double_t dCutMinDauDeltaM)
Definition: AliPicoV0.cxx:199
Double_t fV0CosPA
Definition: AliPicoV0.h:102
Bool_t IsDausInEtaAcc(Double_t dMin, Double_t dMax)
Definition: AliPicoV0.cxx:331
TLorentzVector KineLambda()
Definition: AliPicoV0.cxx:379
bool Bool_t
Definition: External.C:53
Bool_t IsLambda() const
Definition: AliPicoV0.h:47
Bool_t IsNegInJC() const
Definition: AliPicoV0.h:56