AliPhysics  9b6b435 (9b6b435)
AliAnalysisTaskSEHFSystPID Class Reference

#include <AliAnalysisTaskSEHFSystPID.h>

Inheritance diagram for AliAnalysisTaskSEHFSystPID:

Public Types

enum  tagflags {
  kIsPionFromK0s = BIT(0), kIsPionFromL = BIT(1), kIsProtonFromL = BIT(2), kIsElectronFromGamma = BIT(3),
  kIsKaonFromKinks = BIT(4), kIsKaonFromTOF = BIT(5), kIsKaonFromTPC = BIT(6)
}
 
enum  centest {
  kCentOff, kCentV0M, kCentV0A, kCentZNA,
  kCentCL0, kCentCL1
}
 

Public Member Functions

 AliAnalysisTaskSEHFSystPID ()
 
 AliAnalysisTaskSEHFSystPID (const char *name, int system=0)
 
virtual ~AliAnalysisTaskSEHFSystPID ()
 
virtual void UserCreateOutputObjects ()
 
virtual void UserExec (Option_t *option)
 
void SetReadMC (bool flag=true)
 
void SetCentralityLimits (int mincent, int maxcent)
 
void SetCentralityEstimator (int centest=kCentV0M)
 
void SetESDtrackCuts (AliESDtrackCuts *trackCuts)
 
void SetTriggerInfo (TString trigClass, unsigned long long mask=0)
 
void SetNsigmaKaonForTagging (float nsigmamax=0.02)
 
void SetKinksSelections (float qtmin=0.15, float Rmin=120, float Rmax=210)
 
void SetfFillTreeWithNsigmaPIDOnly (bool fillonlyNsigma=true)
 
void EnableDownSampling (double fractokeep=0.1, double ptmax=1.5)
 

Private Types

enum  hypos { kPion, kKaon, kProton }
 

Private Member Functions

bool IsVertexAccepted ()
 
bool IsCentralitySelected ()
 
void GetTaggedV0s (vector< short > &idPionFromK0s, vector< short > &idPionFromL, vector< short > &idProtonFromL, vector< short > &idElectronFromGamma)
 
short GetPDGcodeFromMC (AliAODTrack *track, TClonesArray *arrayMC)
 
AliAODTrack * IsKinkDaughter (AliAODTrack *track)
 
void GetTaggedKaonsFromKinks (vector< short > &idKaonFromKinks)
 
float MaxOpeningAngleKnu (float p)
 
float GetTOFmomentum (AliAODTrack *track)
 
short ConvertFloatToShort (float num)
 
unsigned short ConvertFloatToUnsignedShort (float num)
 

Private Attributes

const TString hyponames [kNHypo] = {"Pion","Kaon","Proton"}
 
const float kCSPEED = 2.99792457999999984e-02
 
TListfOutputList
 ! output list for histograms More...
 
TH1F * fHistNEvents
 ! histo with number of events More...
 
TH2FfHistArmenteroPlot [5]
 ! histo for armenteros-podolanski plot More...
 
TH2FfHistQtVsMassKinks
 ! histo for mother-kink qt vs. mass distribution More...
 
TH2FfHistPDaughterVsMotherKink
 ! histo for pT daughter vs. pT mother kink More...
 
TH2FfHistdEdxVsPMotherKink
 ! histo for mother kink TPC dEdx vs. p More...
 
TH2FfHistOpeningAngleVsPMotherKink
 ! histo for opening angle vs. pT mother kink More...
 
TH2FfHistNTPCclsVsRadius
 ! histo for nTPC clusters vs. R mother kink More...
 
TH2FfHistNsigmaTPCvsPt [kNHypo]
 ! array of histos for nsigmaTPC vs pt (MC truth) More...
 
TH2FfHistNsigmaTOFvsPt [kNHypo]
 ! array of histos for nsigmaTPC vs pt (MC truth) More...
 
TTreefPIDtree
 ! tree with PID info More...
 
short fPIDNsigma [6]
 
unsigned short fPTPC
 Nsigma PID to fill the tree. More...
 
unsigned short fPTOF
 TPC momentum to fill the tree. More...
 
unsigned short fdEdxTPC
 TOF momentum to fill the tree. More...
 
unsigned short fToF
 TPC dEdX to fill the tree. More...
 
unsigned short fPt
 ToF signal to fill the tree. More...
 
unsigned char fTPCNcls
 transverse momentum to fill the tree More...
 
unsigned char fTPCNclsPID
 number of clusters in TPC to fill the tree More...
 
unsigned short fTrackLength
 number of PID clusters in TPC to fill the tree More...
 
unsigned short fStartTimeRes
 track length for TOF PID More...
 
short fPDGcode
 start time resolution for TOF PID More...
 
unsigned char fTag
 PDG code in case of MC to fill the tree. More...
 
float fNsigmaMaxForTag
 bit map for tag (see enum above) More...
 
float fQtMinKinks
 max nSigma value to tag kaons More...
 
float fRMinKinks
 min qt for kinks More...
 
float fRMaxKinks
 min radius in XY for kinks More...
 
float fCentMin
 max radius in XY for kinks More...
 
float fCentMax
 min centrality More...
 
int fCentEstimator
 max centrality More...
 
TString fTriggerClass
 centrality estimator More...
 
unsigned long long fTriggerMask
 trigger class More...
 
bool fIsMC
 trigger mask More...
 
int fSystem
 flag to switch on the MC analysis for the efficiency estimation More...
 
AliESDtrackCuts * fESDtrackCuts
 system: 0->pp,pPb 1->PbPb More...
 
AliAODEventfAOD
 single-track cut set More...
 
AliPIDResponse * fPIDresp
 AOD object. More...
 
AliAODv0KineCuts * fV0cuts
 basic pid object More...
 
bool fFillTreeWithNsigmaPIDOnly
 AOD V0 cuts. More...
 
bool fEnabledDownSampling
 flag to enable filling of the tree with only Nsigma variables for the PID More...
 
double fFracToKeepDownSampling
 flag to enable/disable downsampling More...
 
double fPtMaxDownSampling
 fraction to keep when downsampling activated More...
 

Static Private Attributes

static const int kNHypo = 3
 

Detailed Description

Definition at line 27 of file AliAnalysisTaskSEHFSystPID.h.

Member Enumeration Documentation

Enumerator
kCentOff 
kCentV0M 
kCentV0A 
kCentZNA 
kCentCL0 
kCentCL1 

Definition at line 41 of file AliAnalysisTaskSEHFSystPID.h.

Enumerator
kPion 
kKaon 
kProton 

Definition at line 80 of file AliAnalysisTaskSEHFSystPID.h.

Enumerator
kIsPionFromK0s 
kIsPionFromL 
kIsProtonFromL 
kIsElectronFromGamma 
kIsKaonFromKinks 
kIsKaonFromTOF 
kIsKaonFromTPC 

Definition at line 31 of file AliAnalysisTaskSEHFSystPID.h.

Constructor & Destructor Documentation

AliAnalysisTaskSEHFSystPID::AliAnalysisTaskSEHFSystPID ( )

Definition at line 27 of file AliAnalysisTaskSEHFSystPID.cxx.

AliAnalysisTaskSEHFSystPID::AliAnalysisTaskSEHFSystPID ( const char *  name,
int  system = 0 
)

Definition at line 81 of file AliAnalysisTaskSEHFSystPID.cxx.

AliAnalysisTaskSEHFSystPID::~AliAnalysisTaskSEHFSystPID ( )
virtual

Definition at line 139 of file AliAnalysisTaskSEHFSystPID.cxx.

Member Function Documentation

short AliAnalysisTaskSEHFSystPID::ConvertFloatToShort ( float  num)
private

Definition at line 669 of file AliAnalysisTaskSEHFSystPID.cxx.

Referenced by UserExec().

unsigned short AliAnalysisTaskSEHFSystPID::ConvertFloatToUnsignedShort ( float  num)
private

Definition at line 677 of file AliAnalysisTaskSEHFSystPID.cxx.

Referenced by UserExec().

void AliAnalysisTaskSEHFSystPID::EnableDownSampling ( double  fractokeep = 0.1,
double  ptmax = 1.5 
)
inline

Definition at line 65 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by AddTaskHFSystPID().

short AliAnalysisTaskSEHFSystPID::GetPDGcodeFromMC ( AliAODTrack *  track,
TClonesArray *  arrayMC 
)
private

Definition at line 561 of file AliAnalysisTaskSEHFSystPID.cxx.

Referenced by UserExec().

void AliAnalysisTaskSEHFSystPID::GetTaggedKaonsFromKinks ( vector< short > &  idKaonFromKinks)
private

Definition at line 587 of file AliAnalysisTaskSEHFSystPID.cxx.

Referenced by UserExec().

void AliAnalysisTaskSEHFSystPID::GetTaggedV0s ( vector< short > &  idPionFromK0s,
vector< short > &  idPionFromL,
vector< short > &  idProtonFromL,
vector< short > &  idElectronFromGamma 
)
private

Definition at line 511 of file AliAnalysisTaskSEHFSystPID.cxx.

Referenced by UserExec().

float AliAnalysisTaskSEHFSystPID::GetTOFmomentum ( AliAODTrack *  track)
private

Definition at line 657 of file AliAnalysisTaskSEHFSystPID.cxx.

Referenced by UserExec().

bool AliAnalysisTaskSEHFSystPID::IsCentralitySelected ( )
private

Definition at line 485 of file AliAnalysisTaskSEHFSystPID.cxx.

Referenced by UserExec().

AliAODTrack * AliAnalysisTaskSEHFSystPID::IsKinkDaughter ( AliAODTrack *  track)
private

Definition at line 576 of file AliAnalysisTaskSEHFSystPID.cxx.

Referenced by GetTaggedKaonsFromKinks().

bool AliAnalysisTaskSEHFSystPID::IsVertexAccepted ( )
private

Definition at line 435 of file AliAnalysisTaskSEHFSystPID.cxx.

Referenced by UserExec().

float AliAnalysisTaskSEHFSystPID::MaxOpeningAngleKnu ( float  p)
private

Definition at line 647 of file AliAnalysisTaskSEHFSystPID.cxx.

Referenced by GetTaggedKaonsFromKinks().

void AliAnalysisTaskSEHFSystPID::SetCentralityEstimator ( int  centest = kCentV0M)
inline

Definition at line 59 of file AliAnalysisTaskSEHFSystPID.h.

void AliAnalysisTaskSEHFSystPID::SetCentralityLimits ( int  mincent,
int  maxcent 
)
inline

Definition at line 58 of file AliAnalysisTaskSEHFSystPID.h.

void AliAnalysisTaskSEHFSystPID::SetESDtrackCuts ( AliESDtrackCuts *  trackCuts)
inline

Definition at line 60 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by AddTaskHFSystPID().

void AliAnalysisTaskSEHFSystPID::SetfFillTreeWithNsigmaPIDOnly ( bool  fillonlyNsigma = true)
inline

Definition at line 64 of file AliAnalysisTaskSEHFSystPID.h.

void AliAnalysisTaskSEHFSystPID::SetKinksSelections ( float  qtmin = 0.15,
float  Rmin = 120,
float  Rmax = 210 
)
inline

Definition at line 63 of file AliAnalysisTaskSEHFSystPID.h.

void AliAnalysisTaskSEHFSystPID::SetNsigmaKaonForTagging ( float  nsigmamax = 0.02)
inline

Definition at line 62 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by AddTaskHFSystPID().

void AliAnalysisTaskSEHFSystPID::SetReadMC ( bool  flag = true)
inline

Definition at line 57 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by AddTaskHFSystPID().

void AliAnalysisTaskSEHFSystPID::SetTriggerInfo ( TString  trigClass,
unsigned long long  mask = 0 
)
inline

Definition at line 61 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by AddTaskHFSystPID().

void AliAnalysisTaskSEHFSystPID::UserCreateOutputObjects ( )
virtual

Definition at line 159 of file AliAnalysisTaskSEHFSystPID.cxx.

void AliAnalysisTaskSEHFSystPID::UserExec ( Option_t option)
virtual

Definition at line 245 of file AliAnalysisTaskSEHFSystPID.cxx.

Member Data Documentation

AliAODEvent* AliAnalysisTaskSEHFSystPID::fAOD
private

single-track cut set

Definition at line 125 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by GetTaggedKaonsFromKinks(), GetTaggedV0s(), IsCentralitySelected(), IsVertexAccepted(), and UserExec().

int AliAnalysisTaskSEHFSystPID::fCentEstimator
private

max centrality

Definition at line 118 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by IsCentralitySelected().

float AliAnalysisTaskSEHFSystPID::fCentMax
private

min centrality

Definition at line 117 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by IsCentralitySelected().

float AliAnalysisTaskSEHFSystPID::fCentMin
private

max radius in XY for kinks

Definition at line 116 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by IsCentralitySelected().

unsigned short AliAnalysisTaskSEHFSystPID::fdEdxTPC
private

TOF momentum to fill the tree.

Definition at line 102 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects(), and UserExec().

bool AliAnalysisTaskSEHFSystPID::fEnabledDownSampling
private

flag to enable filling of the tree with only Nsigma variables for the PID

Definition at line 130 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserExec().

AliESDtrackCuts* AliAnalysisTaskSEHFSystPID::fESDtrackCuts
private
bool AliAnalysisTaskSEHFSystPID::fFillTreeWithNsigmaPIDOnly
private

AOD V0 cuts.

Definition at line 129 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects(), and UserExec().

double AliAnalysisTaskSEHFSystPID::fFracToKeepDownSampling
private

flag to enable/disable downsampling

Definition at line 131 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserExec().

TH2F* AliAnalysisTaskSEHFSystPID::fHistArmenteroPlot[5]
private

! histo for armenteros-podolanski plot

Definition at line 89 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by AliAnalysisTaskSEHFSystPID(), GetTaggedV0s(), UserCreateOutputObjects(), and ~AliAnalysisTaskSEHFSystPID().

TH2F* AliAnalysisTaskSEHFSystPID::fHistdEdxVsPMotherKink
private

! histo for mother kink TPC dEdx vs. p

Definition at line 92 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by GetTaggedKaonsFromKinks(), UserCreateOutputObjects(), and ~AliAnalysisTaskSEHFSystPID().

TH1F* AliAnalysisTaskSEHFSystPID::fHistNEvents
private

! histo with number of events

Definition at line 88 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by IsVertexAccepted(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskSEHFSystPID().

TH2F* AliAnalysisTaskSEHFSystPID::fHistNsigmaTOFvsPt[kNHypo]
private

! array of histos for nsigmaTPC vs pt (MC truth)

Definition at line 96 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by AliAnalysisTaskSEHFSystPID(), UserCreateOutputObjects(), and UserExec().

TH2F* AliAnalysisTaskSEHFSystPID::fHistNsigmaTPCvsPt[kNHypo]
private

! array of histos for nsigmaTPC vs pt (MC truth)

Definition at line 95 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by AliAnalysisTaskSEHFSystPID(), UserCreateOutputObjects(), and UserExec().

TH2F* AliAnalysisTaskSEHFSystPID::fHistNTPCclsVsRadius
private

! histo for nTPC clusters vs. R mother kink

Definition at line 94 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by GetTaggedKaonsFromKinks(), UserCreateOutputObjects(), and ~AliAnalysisTaskSEHFSystPID().

TH2F* AliAnalysisTaskSEHFSystPID::fHistOpeningAngleVsPMotherKink
private

! histo for opening angle vs. pT mother kink

Definition at line 93 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by GetTaggedKaonsFromKinks(), UserCreateOutputObjects(), and ~AliAnalysisTaskSEHFSystPID().

TH2F* AliAnalysisTaskSEHFSystPID::fHistPDaughterVsMotherKink
private

! histo for pT daughter vs. pT mother kink

Definition at line 91 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by GetTaggedKaonsFromKinks(), UserCreateOutputObjects(), and ~AliAnalysisTaskSEHFSystPID().

TH2F* AliAnalysisTaskSEHFSystPID::fHistQtVsMassKinks
private

! histo for mother-kink qt vs. mass distribution

Definition at line 90 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by GetTaggedKaonsFromKinks(), UserCreateOutputObjects(), and ~AliAnalysisTaskSEHFSystPID().

bool AliAnalysisTaskSEHFSystPID::fIsMC
private

trigger mask

Definition at line 121 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects(), and UserExec().

float AliAnalysisTaskSEHFSystPID::fNsigmaMaxForTag
private

bit map for tag (see enum above)

Definition at line 111 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserExec().

TList* AliAnalysisTaskSEHFSystPID::fOutputList
private

! output list for histograms

Definition at line 86 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskSEHFSystPID().

short AliAnalysisTaskSEHFSystPID::fPDGcode
private

start time resolution for TOF PID

Definition at line 109 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects(), and UserExec().

short AliAnalysisTaskSEHFSystPID::fPIDNsigma[6]
private
AliPIDResponse* AliAnalysisTaskSEHFSystPID::fPIDresp
private

AOD object.

Definition at line 126 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by GetTaggedKaonsFromKinks(), GetTOFmomentum(), and UserExec().

TTree* AliAnalysisTaskSEHFSystPID::fPIDtree
private

! tree with PID info

Definition at line 97 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskSEHFSystPID().

unsigned short AliAnalysisTaskSEHFSystPID::fPt
private

ToF signal to fill the tree.

Definition at line 104 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects(), and UserExec().

double AliAnalysisTaskSEHFSystPID::fPtMaxDownSampling
private

fraction to keep when downsampling activated

Definition at line 132 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserExec().

unsigned short AliAnalysisTaskSEHFSystPID::fPTOF
private

TPC momentum to fill the tree.

Definition at line 101 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects(), and UserExec().

unsigned short AliAnalysisTaskSEHFSystPID::fPTPC
private

Nsigma PID to fill the tree.

Definition at line 100 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects(), and UserExec().

float AliAnalysisTaskSEHFSystPID::fQtMinKinks
private

max nSigma value to tag kaons

Definition at line 112 of file AliAnalysisTaskSEHFSystPID.h.

float AliAnalysisTaskSEHFSystPID::fRMaxKinks
private

min radius in XY for kinks

Definition at line 114 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by GetTaggedKaonsFromKinks().

float AliAnalysisTaskSEHFSystPID::fRMinKinks
private

min qt for kinks

Definition at line 113 of file AliAnalysisTaskSEHFSystPID.h.

unsigned short AliAnalysisTaskSEHFSystPID::fStartTimeRes
private

track length for TOF PID

Definition at line 108 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects(), and UserExec().

int AliAnalysisTaskSEHFSystPID::fSystem
private

flag to switch on the MC analysis for the efficiency estimation

Definition at line 122 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserExec().

unsigned char AliAnalysisTaskSEHFSystPID::fTag
private

PDG code in case of MC to fill the tree.

Definition at line 110 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects(), and UserExec().

unsigned short AliAnalysisTaskSEHFSystPID::fToF
private

TPC dEdX to fill the tree.

Definition at line 103 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects(), and UserExec().

unsigned char AliAnalysisTaskSEHFSystPID::fTPCNcls
private

transverse momentum to fill the tree

Definition at line 105 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects(), and UserExec().

unsigned char AliAnalysisTaskSEHFSystPID::fTPCNclsPID
private

number of clusters in TPC to fill the tree

Definition at line 106 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects(), and UserExec().

unsigned short AliAnalysisTaskSEHFSystPID::fTrackLength
private

number of PID clusters in TPC to fill the tree

Definition at line 107 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TString AliAnalysisTaskSEHFSystPID::fTriggerClass
private

centrality estimator

Definition at line 119 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserExec().

unsigned long long AliAnalysisTaskSEHFSystPID::fTriggerMask
private

trigger class

Definition at line 120 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserExec().

AliAODv0KineCuts* AliAnalysisTaskSEHFSystPID::fV0cuts
private

basic pid object

Definition at line 127 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by GetTaggedV0s(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskSEHFSystPID().

const TString AliAnalysisTaskSEHFSystPID::hyponames[kNHypo] = {"Pion","Kaon","Proton"}
private

Definition at line 82 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by UserCreateOutputObjects().

const float AliAnalysisTaskSEHFSystPID::kCSPEED = 2.99792457999999984e-02
private

Definition at line 84 of file AliAnalysisTaskSEHFSystPID.h.

Referenced by GetTOFmomentum().

const int AliAnalysisTaskSEHFSystPID::kNHypo = 3
staticprivate

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