#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"
AliESDpidCuts &operator=(const AliESDpidCuts &ref);
virtual ~AliESDpidCuts();
+ virtual void Init();
virtual void Copy(TObject &c) const;
virtual Long64_t Merge(TCollection *coll);
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);
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
TH1F *fHnSigmaTOF[AliPID::kSPECIES][2]; // TOF n-sigma cut
//------------------------------------------
- ClassDef(AliESDpidCuts, 2)
+ ClassDef(AliESDpidCuts, 3)
};
//_____________________________________________________________________