]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliESDpidCuts.h
switch to fill only events added
[u/mrichter/AliRoot.git] / ANALYSIS / AliESDpidCuts.h
index 239ea7a9e50638b5181e0671954221731041ea86..683896391ebc25ea2a300e31ac314ff23e01d3d3 100644 (file)
@@ -1,5 +1,12 @@
 #ifndef ALIESDPIDCUTS_H
 #define ALIESDPIDCUTS_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+//
+// Class for PID cuts
+// Cuts the track based on numbers of sigmas in the detectors TPC and TOF
+// The sigma cuts can be applied symmetrically or assymetrically
+//
 
 #ifndef ALIANALYSISCUTS_H
 #include "AliAnalysisCuts.h"
@@ -28,6 +35,7 @@ class AliESDpidCuts : public AliAnalysisCuts{
     AliESDpidCuts &operator=(const AliESDpidCuts &ref);
     virtual ~AliESDpidCuts();
 
+    virtual void Init();
     virtual void Copy(TObject &c) const;
     virtual Long64_t Merge(TCollection *coll);
 
@@ -35,9 +43,12 @@ class AliESDpidCuts : public AliAnalysisCuts{
     void DefineHistograms(Color_t color = kRed);
     void DrawHistograms();
     void SaveHistograms(const Char_t *location = NULL);
-    virtual Bool_t IsSelected(TObject *){ return kTRUE; }
-    virtual Bool_t IsSelected(TList * lst);
+    virtual Bool_t IsSelected(TObject *);
+    virtual Bool_t IsSelected(TList * /*lst*/) {return kTRUE; }
     virtual Bool_t AcceptTrack(const AliESDtrack *track, const AliESDEvent *event);
+
+    void SetPIDResponse(AliPIDResponse * pidresponse) { fPIDresponse = pidresponse; }
+    AliPIDResponse *GetPIDresponse() { return fPIDresponse; };
     
     void SetTPCclusterRatioCut(Float_t clr) { fCutTPCclusterRatio = clr; }
     inline void SetTPCnSigmaCut(AliPID::EParticleType itype, Float_t nSigma);
@@ -48,11 +59,11 @@ class AliESDpidCuts : public AliAnalysisCuts{
   
   protected:
     static const Int_t kNcuts;                      // Number of Cuts
-    AliESDpid *fESDpid;                             //! PID helper (n-sigma-cut)
+    AliPIDResponse *fPIDresponse;                   //! PID helper (n-sigma-cut)
     Char_t  fTPCsigmaCutRequired;                   // Sigma cut Requirement for TPC and Particle Species
     Char_t  fTOFsigmaCutRequired;                   // Sigma cut Requirement for TOF and Particle Species
     Float_t fCutTPCnSigma[AliPID::kSPECIES * 2];    // Species dependent cut on the distance to the TPC dE/dx line
-    Float_t fCutTOFnSigma[AliPID::kSPECIES];        // Species dependent cut on the distance to the TOF calculated time of flight line
+    Float_t fCutTOFnSigma[AliPID::kSPECIES * 2];    // Species dependent cut on the distance to the TOF calculated time of flight line
     Float_t fCutTPCclusterRatio;                    // Cut on Ratio of found clusters with repect to findable clusters in the TPC
     Float_t fMinMomentumTOF;                        // Apply TOF PID only above a certain momentum
 
@@ -65,7 +76,7 @@ class AliESDpidCuts : public AliAnalysisCuts{
     TH1F *fHnSigmaTOF[AliPID::kSPECIES][2];      // TOF n-sigma cut
     //------------------------------------------
     
-    ClassDef(AliESDpidCuts, 2)
+    ClassDef(AliESDpidCuts, 3)
 };
 
 //_____________________________________________________________________