AliPhysics  2c6b7ad (2c6b7ad)
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  const TVector3 &KinePos() const { return fP3Pos; }
35  const TVector3 &KineNeg() const { return fP3Neg; }
36  const TVector3 KineRD() const { return (fP3Pos + fP3Neg); }
37 
38  const TLorentzVector KineKshort() const;
39  const TLorentzVector KineLambda() const;
40  const TLorentzVector KineAntiLa() const;
41 
42  const Double_t RapidityKa() const;
43  const Double_t RapidityLa() const;
44 //=============================================================================
45 
46  virtual Bool_t IsKshort(Double_t const */*dCuts*/=nullptr) const {
47  return ((fMask & AliPicoBase::kKshort) == AliPicoBase::kKshort);
48  }
49 
50  virtual Bool_t IsLambda(Double_t const */*dCuts*/=nullptr) const {
51  return ((fMask & AliPicoBase::kLambda) == AliPicoBase::kLambda);
52  }
53 
54  virtual Bool_t IsAntiLa(Double_t const */*dCuts*/=nullptr) const {
55  return ((fMask & AliPicoBase::kAntiLambda) == AliPicoBase::kAntiLambda);
56  }
57 
62 
63  Bool_t IsPosInJC() const { return fIsPosInJC; }
64  Bool_t IsNegInJC() const { return fIsNegInJC; }
65  Bool_t IsTwoInJC() const { return (fIsPosInJC && fIsNegInJC); }
66  Bool_t IsOneInJC() const { return (fIsPosInJC || fIsNegInJC); }
67 
68  virtual void GetControlVariables(Float_t */*d*/=nullptr) const = 0;
69 //=============================================================================
70 
71  void FillKshortPtInvM(TH2D* const h, Double_t const *dCuts=nullptr) const;
72  void FillLambdaPtInvM(TH2D* const h, Double_t const *dCuts=nullptr) const;
73  void FillAntiLaPtInvM(TH2D* const h, Double_t const *dCuts=nullptr) const;
74 //=============================================================================
75 
76  protected :
77 
78  Bool_t IsKa(const Double_t dCutMinV0Radius = 0.5,
79  const Double_t dCutMinV0CosPA = 0.97,
80  const Double_t dCutMaxV0Ctau = 20.,
81  const Double_t dCutMaxDausDCA = 1.,
82  const Double_t dCutMinPosDCAtoPV = 0.06,
83  const Double_t dCutMinNegDCAtoPV = 0.06,
84  const Float_t dCutMinDauXrowsTPC = 70.,
85  const Double_t dCutMinDauXrowsOverFindableClusTPC = 0.8,
86  const Double_t dCutMinDauDeltaM = 0.005) const;
87 
88  Bool_t IsLa(const Double_t dCutMinV0Radius = 0.5,
89  const Double_t dCutMinV0CosPA = 0.995,
90  const Double_t dCutMaxV0Ctau = 30.,
91  const Double_t dCutMaxDausDCA = 1.,
92  const Double_t dCutMinPosDCAtoPV = 0.06,
93  const Double_t dCutMinNegDCAtoPV = 0.06,
94  const Float_t dCutMinDauXrowsTPC = 70.,
95  const Double_t dCutMinDauXrowsOverFindableClusTPC = 0.8,
96  const Double_t dCutMinDauDeltaM = 0.01) const;
97 
98  Bool_t IsCandidateSelected(const Double_t dCutMinV0Radius,
99  const Double_t dCutMinV0CosPA,
100  const Double_t dCutMaxDausDCA,
101  const Double_t dCutMinPosDCAtoPV,
102  const Double_t dCutMinNegDCAtoPV,
103  const Float_t dCutMinDauXrowsTPC,
104  const Double_t dCutMinDauXrowsOverFindableClusTPC) const;
105 
106  Bool_t IsKaSelected(const Double_t dCutMaxV0Ctau, const Double_t dCutMinDauDeltaM) const;
107  Bool_t IsLaSelected(const Double_t dCutMaxV0Ctau, const Double_t dCutMinDauDeltaM) const;
108 //=============================================================================
109 
111 
115 
117 
120 
123 
124  TVector3 fP3Pos; //
125  TVector3 fP3Neg; //
126 
127  Bool_t fIsPosInJC; // match w/ jet consti
128  Bool_t fIsNegInJC; // match w/ jet consti
129 
130  ClassDef(AliPicoV0, 5)
131 };
132 
133 #endif
virtual Bool_t IsKshort(Double_t const *=nullptr) const
Definition: AliPicoV0.h:46
void FillLambdaPtInvM(TH2D *const h, Double_t const *dCuts=nullptr) const
Definition: AliPicoV0.cxx:260
const TLorentzVector KineAntiLa() const
Definition: AliPicoV0.cxx:390
Double_t fV0DistToPVoverP
Definition: AliPicoV0.h:114
Bool_t IsLaInRapAcc(Double_t dMin, Double_t dMax)
Definition: AliPicoV0.cxx:306
Bool_t IsPosInJC() const
Definition: AliPicoV0.h:63
AliPicoV0 & operator=(const AliPicoV0 &src)
Definition: AliPicoV0.cxx:88
double Double_t
Definition: External.C:58
Bool_t IsTwoInJC() const
Definition: AliPicoV0.h:65
void FillKshortPtInvM(TH2D *const h, Double_t const *dCuts=nullptr) const
Definition: AliPicoV0.cxx:242
Bool_t IsKaSelected(const Double_t dCutMaxV0Ctau, const Double_t dCutMinDauDeltaM) const
Definition: AliPicoV0.cxx:180
Double_t fNegDCAtoPV
Definition: AliPicoV0.h:119
UInt_t fMask
Definition: AliPicoV0.h:110
TVector3 fP3Pos
Definition: AliPicoV0.h:124
Bool_t IsKaInRapAcc(Double_t dMin, Double_t dMax)
Definition: AliPicoV0.cxx:296
Bool_t IsV0InEtaAcc(Double_t dMin, Double_t dMax)
Definition: AliPicoV0.cxx:316
TVector3 fP3Neg
Definition: AliPicoV0.h:125
virtual ~AliPicoV0()
Definition: AliPicoV0.cxx:116
Double_t fDauXrowsOverFindableClusTPC
Definition: AliPicoV0.h:122
Float_t fDauXrowsTPC
Definition: AliPicoV0.h:121
virtual void GetControlVariables(Float_t *=nullptr) const =0
const TLorentzVector KineLambda() const
Definition: AliPicoV0.cxx:377
const Double_t RapidityLa() const
Definition: AliPicoV0.cxx:353
void FillAntiLaPtInvM(TH2D *const h, Double_t const *dCuts=nullptr) const
Definition: AliPicoV0.cxx:278
Bool_t IsOneInJC() const
Definition: AliPicoV0.h:66
Bool_t IsCandidateSelected(const Double_t dCutMinV0Radius, const Double_t dCutMinV0CosPA, const Double_t dCutMaxDausDCA, const Double_t dCutMinPosDCAtoPV, const Double_t dCutMinNegDCAtoPV, const Float_t dCutMinDauXrowsTPC, const Double_t dCutMinDauXrowsOverFindableClusTPC) const
Definition: AliPicoV0.cxx:216
unsigned int UInt_t
Definition: External.C:33
const TVector3 KineRD() const
Definition: AliPicoV0.h:36
float Float_t
Definition: External.C:68
Definition: External.C:228
Double_t fPosDCAtoPV
Definition: AliPicoV0.h:118
Bool_t fIsNegInJC
Definition: AliPicoV0.h:128
Double_t fDausDCA
Definition: AliPicoV0.h:116
const TVector3 & KinePos() const
Definition: AliPicoV0.h:34
virtual Bool_t IsAntiLa(Double_t const *=nullptr) const
Definition: AliPicoV0.h:54
const Double_t RapidityKa() const
Definition: AliPicoV0.cxx:342
virtual Bool_t IsLambda(Double_t const *=nullptr) const
Definition: AliPicoV0.h:50
Bool_t fIsPosInJC
Definition: AliPicoV0.h:127
Double_t fV0Radius
Definition: AliPicoV0.h:112
Double_t fV0CosPA
Definition: AliPicoV0.h:113
Bool_t IsDausInEtaAcc(Double_t dMin, Double_t dMax)
Definition: AliPicoV0.cxx:329
const TVector3 & KineNeg() const
Definition: AliPicoV0.h:35
Bool_t IsLaSelected(const Double_t dCutMaxV0Ctau, const Double_t dCutMinDauDeltaM) const
Definition: AliPicoV0.cxx:199
Bool_t IsKa(const Double_t dCutMinV0Radius=0.5, const Double_t dCutMinV0CosPA=0.97, const Double_t dCutMaxV0Ctau=20., const Double_t dCutMaxDausDCA=1., const Double_t dCutMinPosDCAtoPV=0.06, const Double_t dCutMinNegDCAtoPV=0.06, const Float_t dCutMinDauXrowsTPC=70., const Double_t dCutMinDauXrowsOverFindableClusTPC=0.8, const Double_t dCutMinDauDeltaM=0.005) const
Definition: AliPicoV0.cxx:124
Bool_t IsLa(const Double_t dCutMinV0Radius=0.5, const Double_t dCutMinV0CosPA=0.995, const Double_t dCutMaxV0Ctau=30., const Double_t dCutMaxDausDCA=1., const Double_t dCutMinPosDCAtoPV=0.06, const Double_t dCutMinNegDCAtoPV=0.06, const Float_t dCutMinDauXrowsTPC=70., const Double_t dCutMinDauXrowsOverFindableClusTPC=0.8, const Double_t dCutMinDauDeltaM=0.01) const
Definition: AliPicoV0.cxx:152
bool Bool_t
Definition: External.C:53
const TLorentzVector KineKshort() const
Definition: AliPicoV0.cxx:364
Bool_t IsNegInJC() const
Definition: AliPicoV0.h:64