AliRoot Core  3dc7879 (3dc7879)
AliESDpidCuts Class Reference

Class for PID cuts. More...

#include <AliESDpidCuts.h>

Inheritance diagram for AliESDpidCuts:

Public Member Functions

 AliESDpidCuts (const Char_t *name="AliESDpidCuts", const Char_t *title="")
 
 AliESDpidCuts (const AliESDpidCuts &ref)
 
AliESDpidCutsoperator= (const AliESDpidCuts &ref)
 
virtual ~AliESDpidCuts ()
 
virtual void Init ()
 
virtual void Copy (TObject &c) const
 
virtual Long64_t Merge (TCollection *coll)
 
Bool_t HasHistograms () const
 
void DefineHistograms (Color_t color=kRed)
 
void DrawHistograms ()
 
void SaveHistograms (const Char_t *location=NULL)
 
virtual Bool_t IsSelected (TObject *)
 
virtual Bool_t IsSelected (TList *)
 
virtual Bool_t AcceptTrack (const AliESDtrack *track, const AliESDEvent *event)
 
void SetPIDResponse (AliPIDResponse *pidresponse)
 
AliPIDResponseGetPIDresponse ()
 
void SetTPCclusterRatioCut (Float_t clr)
 
void SetTPCnSigmaCut (AliPID::EParticleType itype, Float_t nSigma)
 
void SetTPCnSigmaCut (AliPID::EParticleType itype, Float_t negSigma, Float_t posSigma)
 
void SetTOFnSigmaCut (AliPID::EParticleType itype, Float_t nSigma)
 
void SetTOFnSigmaCut (AliPID::EParticleType itype, Float_t negSigma, Float_t posSigma)
 
void SetMinMomentumTOF (Float_t mom)
 
- Public Member Functions inherited from AliAnalysisCuts
 AliAnalysisCuts ()
 
 AliAnalysisCuts (const char *name, const char *title)
 
 AliAnalysisCuts (const AliAnalysisCuts &obj)
 
AliAnalysisCutsoperator= (const AliAnalysisCuts &obj)
 
virtual ~AliAnalysisCuts ()
 
virtual void SetFilterMask (UInt_t mask)
 
virtual UInt_t GetFilterMask () const
 
virtual void SetSelected (Bool_t dec)
 
virtual UInt_t Selected () const
 
virtual TList * GetOutput ()
 
virtual TObject * GetStatistics (Option_t *) const
 
- Public Member Functions inherited from AliVCuts
 AliVCuts ()
 
 AliVCuts (const char *name, const char *title)
 
virtual ~AliVCuts ()
 
 AliVCuts (const AliVCuts &evt)
 
AliVCutsoperator= (const AliVCuts &evt)
 
virtual UInt_t GetSelectionMask (const TObject *)
 

Protected Attributes

AliPIDResponsefPIDresponse
 ! PID helper (n-sigma-cut) More...
 
Char_t fTPCsigmaCutRequired
 Sigma cut Requirement for TPC and Particle Species. More...
 
Char_t fTOFsigmaCutRequired
 Sigma cut Requirement for TOF and Particle Species. More...
 
Float_t fCutTPCnSigma [AliPID::kSPECIES *2]
 Species dependent cut on the distance to the TPC dE/dx line. More...
 
Float_t fCutTOFnSigma [AliPID::kSPECIES *2]
 Species dependent cut on the distance to the TOF calculated time of flight line. More...
 
Float_t fCutTPCclusterRatio
 Cut on Ratio of found clusters with repect to findable clusters in the TPC. More...
 
Float_t fMinMomentumTOF
 Apply TOF PID only above a certain momentum. More...
 
TH1I * fHcutStatistics
 Cut Statistics. More...
 
TH2I * fHcutCorrelation
 Cut Correlation. More...
 
TH1F * fHclusterRatio [2]
 TPC cluster Ratio. More...
 
TH1F * fHnSigmaTPC [AliPID::kSPECIES][2]
 TPC n-sigma cut. More...
 
TH1F * fHnSigmaTOF [AliPID::kSPECIES][2]
 TOF n-sigma cut. More...
 

Static Protected Attributes

static const Int_t kNcuts = 3
 Number of Cuts. More...
 

Private Types

enum  { kHasHistograms = BIT(17) }
 

Detailed Description

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

Definition at line 28 of file AliESDpidCuts.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
kHasHistograms 

Definition at line 29 of file AliESDpidCuts.h.

Constructor & Destructor Documentation

AliESDpidCuts::AliESDpidCuts ( const Char_t *  name = "AliESDpidCuts",
const Char_t *  title = "" 
)

Default constructor

Definition at line 40 of file AliESDpidCuts.cxx.

AliESDpidCuts::AliESDpidCuts ( const AliESDpidCuts ref)

Copy constructor

Definition at line 61 of file AliESDpidCuts.cxx.

AliESDpidCuts::~AliESDpidCuts ( )
virtual

Destructor

Definition at line 98 of file AliESDpidCuts.cxx.

Member Function Documentation

Bool_t AliESDpidCuts::AcceptTrack ( const AliESDtrack track,
const AliESDEvent event 
)
virtual

Check whether the tracks survived the cuts

Definition at line 233 of file AliESDpidCuts.cxx.

Referenced by IsSelected().

void AliESDpidCuts::Copy ( TObject &  c) const
virtual

Copy function

Definition at line 142 of file AliESDpidCuts.cxx.

Referenced by operator=().

void AliESDpidCuts::DefineHistograms ( Color_t  color = kRed)

Swich on QA and create the histograms

Definition at line 203 of file AliESDpidCuts.cxx.

Referenced by HasHistograms().

void AliESDpidCuts::DrawHistograms ( )

Draw the Histograms

Definition at line 351 of file AliESDpidCuts.cxx.

Referenced by HasHistograms().

AliPIDResponse* AliESDpidCuts::GetPIDresponse ( )
inline

Definition at line 51 of file AliESDpidCuts.h.

Bool_t AliESDpidCuts::HasHistograms ( ) const
inline

Definition at line 42 of file AliESDpidCuts.h.

Referenced by AcceptTrack(), Merge(), and SaveHistograms().

void AliESDpidCuts::Init ( void  )
virtual

Init function, get PID response from the Analysis Manager

Reimplemented from AliAnalysisCuts.

Definition at line 112 of file AliESDpidCuts.cxx.

Referenced by AcceptTrack().

Bool_t AliESDpidCuts::IsSelected ( TObject *  obj)
virtual

Select Track

Reimplemented from AliAnalysisCuts.

Definition at line 125 of file AliESDpidCuts.cxx.

Referenced by HasHistograms().

virtual Bool_t AliESDpidCuts::IsSelected ( TList *  )
inlinevirtual

Implements AliAnalysisCuts.

Definition at line 47 of file AliESDpidCuts.h.

Long64_t AliESDpidCuts::Merge ( TCollection *  coll)
virtual

Merge Cut objects

Reimplemented from AliAnalysisCuts.

Definition at line 172 of file AliESDpidCuts.cxx.

AliESDpidCuts & AliESDpidCuts::operator= ( const AliESDpidCuts ref)

Assignment operator

Definition at line 89 of file AliESDpidCuts.cxx.

void AliESDpidCuts::SaveHistograms ( const Char_t *  location = NULL)

Save the histograms to a file

Definition at line 317 of file AliESDpidCuts.cxx.

Referenced by HasHistograms().

void AliESDpidCuts::SetMinMomentumTOF ( Float_t  mom)
inline

Definition at line 58 of file AliESDpidCuts.h.

void AliESDpidCuts::SetPIDResponse ( AliPIDResponse pidresponse)
inline

Definition at line 50 of file AliESDpidCuts.h.

void AliESDpidCuts::SetTOFnSigmaCut ( AliPID::EParticleType  itype,
Float_t  nSigma 
)
inline

symmetric sigma cut for TOF PID

Definition at line 101 of file AliESDpidCuts.h.

Referenced by SetTPCclusterRatioCut().

void AliESDpidCuts::SetTOFnSigmaCut ( AliPID::EParticleType  itype,
Float_t  negSigma,
Float_t  posSigma 
)
inline

assymetric sigma cut for TOF PID

Definition at line 110 of file AliESDpidCuts.h.

void AliESDpidCuts::SetTPCclusterRatioCut ( Float_t  clr)
inline

Definition at line 53 of file AliESDpidCuts.h.

void AliESDpidCuts::SetTPCnSigmaCut ( AliPID::EParticleType  itype,
Float_t  nSigma 
)
inline

symmetric sigma cut for TPC PID

Definition at line 83 of file AliESDpidCuts.h.

Referenced by SetTPCclusterRatioCut().

void AliESDpidCuts::SetTPCnSigmaCut ( AliPID::EParticleType  itype,
Float_t  negSigma,
Float_t  posSigma 
)
inline

assymetric sigma cut for TPC PID

Definition at line 92 of file AliESDpidCuts.h.

Member Data Documentation

Float_t AliESDpidCuts::fCutTOFnSigma[AliPID::kSPECIES *2]
protected

Species dependent cut on the distance to the TOF calculated time of flight line.

Definition at line 66 of file AliESDpidCuts.h.

Referenced by AcceptTrack(), AliESDpidCuts(), Copy(), and SetTOFnSigmaCut().

Float_t AliESDpidCuts::fCutTPCclusterRatio
protected

Cut on Ratio of found clusters with repect to findable clusters in the TPC.

Definition at line 67 of file AliESDpidCuts.h.

Referenced by AcceptTrack(), Copy(), and SetTPCclusterRatioCut().

Float_t AliESDpidCuts::fCutTPCnSigma[AliPID::kSPECIES *2]
protected

Species dependent cut on the distance to the TPC dE/dx line.

Definition at line 65 of file AliESDpidCuts.h.

Referenced by AcceptTrack(), AliESDpidCuts(), Copy(), and SetTPCnSigmaCut().

TH1F* AliESDpidCuts::fHclusterRatio[2]
protected

TPC cluster Ratio.

Definition at line 74 of file AliESDpidCuts.h.

Referenced by AcceptTrack(), AliESDpidCuts(), Copy(), DefineHistograms(), DrawHistograms(), Merge(), SaveHistograms(), and ~AliESDpidCuts().

TH2I* AliESDpidCuts::fHcutCorrelation
protected
TH1I* AliESDpidCuts::fHcutStatistics
protected

Cut Statistics.

Definition at line 72 of file AliESDpidCuts.h.

Referenced by AcceptTrack(), AliESDpidCuts(), Copy(), DefineHistograms(), DrawHistograms(), Merge(), and SaveHistograms().

TH1F* AliESDpidCuts::fHnSigmaTOF[AliPID::kSPECIES][2]
protected
TH1F* AliESDpidCuts::fHnSigmaTPC[AliPID::kSPECIES][2]
protected
Float_t AliESDpidCuts::fMinMomentumTOF
protected

Apply TOF PID only above a certain momentum.

Definition at line 68 of file AliESDpidCuts.h.

Referenced by AcceptTrack(), Copy(), and SetMinMomentumTOF().

AliPIDResponse* AliESDpidCuts::fPIDresponse
protected

! PID helper (n-sigma-cut)

Definition at line 62 of file AliESDpidCuts.h.

Referenced by AcceptTrack(), AliESDpidCuts(), Copy(), GetPIDresponse(), Init(), and SetPIDResponse().

Char_t AliESDpidCuts::fTOFsigmaCutRequired
protected

Sigma cut Requirement for TOF and Particle Species.

Definition at line 64 of file AliESDpidCuts.h.

Referenced by AcceptTrack(), Copy(), and SetTOFnSigmaCut().

Char_t AliESDpidCuts::fTPCsigmaCutRequired
protected

Sigma cut Requirement for TPC and Particle Species.

Definition at line 63 of file AliESDpidCuts.h.

Referenced by AcceptTrack(), Copy(), and SetTPCnSigmaCut().

const Int_t AliESDpidCuts::kNcuts = 3
staticprotected

Number of Cuts.

Definition at line 61 of file AliESDpidCuts.h.

Referenced by AcceptTrack(), and DefineHistograms().


The documentation for this class was generated from the following files: