]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/RESONANCES/AliRsnCutV0.h
Update in cuts for Sigma* and update for lego_train macros (M.Vala)
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / AliRsnCutV0.h
index 05a7dfec8eddc92ccf962d1046ed03a34421244b..9ca7b15f4164e61eb745b42f73c36f4200eb0f69 100644 (file)
@@ -5,15 +5,19 @@
 #include <TString.h>
 
 #include "AliRsnCut.h"
+#include "AliPIDResponse.h"
 
 class AliESDtrack;
 class AliAODTrack;
 
+
 class AliRsnCutV0 : public AliRsnCut {
 
 public:
 
-   AliRsnCutV0(const char *name = "AliRsnCutV0", Int_t hypothesis = kLambda0);
+
+   //AliRsnCutV0(const char *name = "AliRsnCutV0", Int_t hypothesis = kLambda0);
+   AliRsnCutV0(const char *name = "AliRsnCutV0", Int_t hypothesis = kLambda0, AliPID::EParticleType pid = AliPID::kProton, AliPID::EParticleType pid2 = AliPID::kPion);
    AliRsnCutV0(const AliRsnCutV0 &copy);
    AliRsnCutV0 &operator=(const AliRsnCutV0 &copy);
    virtual ~AliRsnCutV0() { }
@@ -24,6 +28,11 @@ public:
    void           SetMaxDCAVertex(Double_t value)          {fMaxDCAVertex = value;}
    void           SetMinCosPointingAngle(Double_t value)   {fMinCosPointAngle = value;}
    void           SetMaxDaughtersDCA(Double_t value)       {fMaxDaughtersDCA = value;}
+   void           SetMaxRapidity(Double_t value)           {fMaxRapidity = value;}
+
+   void           SetPIDCut1(Double_t value)               {fPIDCut1 = value;}
+   void           SetPIDCut2(Double_t value)               {fPIDCut2 = value;}
+   void           SetPIDCut3(Double_t value)               {fPIDCut3 = value;}
 
    virtual Bool_t IsSelected(TObject *obj);
    virtual void   Print(const Option_t *option = "") const;
@@ -39,9 +48,15 @@ protected:
    Double_t         fMaxDCAVertex;     // max allowed DCA from primary vertex
    Double_t         fMinCosPointAngle; // min allowed cosine of pointing angle
    Double_t         fMaxDaughtersDCA;  // max allowed DCA between the two daughers
-   //AliPID::EParticleType fRefPID[2];
-   //Double_t              fNSigmaTPC[2];
-   //Double_t              fNSigmaTOF[3];
+   Double_t         fMaxRapidity;      // max allowed V0 rapidity
+
+   AliPID::EParticleType fPID;         // PID for track
+   AliPID::EParticleType fPID2;        // PID for track
+
+   Double_t         fPIDCut1;          // nsigmas for protons < 600 MeV/c
+   Double_t         fPIDCut2;          // nsigmas for protons > 600 MeV/c
+   Double_t         fPIDCut3;          // nsigmas for pions
+
 
    AliESDtrackCuts *fESDtrackCuts;     // quality cuts for v0 daughters
 
@@ -59,6 +74,7 @@ inline void AliRsnCutV0::SetHypothesis(Int_t code)
 
    switch (fHypothesis) {
       case kLambda0:
+         fMass = 1.11568;
       case kLambda0Bar:
          fMass = 1.11568;
          break;