]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnCutKaonForPhi2010PP.h
Ad-hoc implementation of cuts for pions/kaons/protons for 2010 analysis
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnCutKaonForPhi2010PP.h
index 41b19b8a9d68c3dec0a382f38308e4d7781b282b..6c722e1d063f4911245382e9ee686babeee43320 100644 (file)
@@ -1,8 +1,11 @@
-#ifndef AliRsnCutKaonForPhi2010PP_H
-#define AliRsnCutKaonForPhi2010PP_H
+#ifndef ALIRSNCUTKAONFORPHI2010PP_H
+#define ALIRSNCUTKAONFORPHI2010PP_H
 
 //
-// All cuts for single kaons in phi analysis 2010
+// This cut implements all the checks done to accept a track as a Kaon
+// for the pp analysis using 2010 runs. 
+// It is based on standard cuts on track quality and nsigma cuts
+// with respect to the TPC and TOF signals for the PID.
 //
 
 #include "AliVTrack.h"
@@ -14,6 +17,7 @@ class AliRsnCutKaonForPhi2010PP : public AliRsnCut {
 public:
 
    AliRsnCutKaonForPhi2010PP(const char *name = "");
+   virtual ~AliRsnCutKaonForPhi2010PP() { }
    
    void           SetTPCNSigmaLow (Double_t v) {fNSigmaTPCLow  = v;}
    void           SetTPCNSigmaHigh(Double_t v) {fNSigmaTPCHigh = v;}
@@ -26,7 +30,7 @@ public:
 
 private:
 
-   Bool_t MatchTOF(AliVTrack *vtrack);
+   Bool_t MatchTOF(const AliVTrack *vtrack);
    
    Double_t              fNSigmaTPCLow;   // TPC: nsigma cut below limit
    Double_t              fNSigmaTPCHigh;  // TPC: nsigma cut above limit
@@ -40,7 +44,7 @@ private:
 };
 
 //__________________________________________________________________________________________________
-inline Bool_t AliRsnCutKaonForPhi2010PP::MatchTOF(AliVTrack *vtrack)
+inline Bool_t AliRsnCutKaonForPhi2010PP::MatchTOF(const AliVTrack *vtrack)
 {
 //
 // Checks if the track has matched the TOF detector