AliPhysics  master (3d17d9d)
AliESDtools Class Reference

Set of tools to define derived ESD variables. To be used in the AnalysisTasks, but can be used also in the TTreeFormulas. More...

#include <AliESDtools.h>

Inheritance diagram for AliESDtools:

Public Member Functions

 AliESDtools ()
 
void Init (TTree *tree, AliESDEvent *event=nullptr)
 
void SetStreamer (TTreeSRedirector *streamer)
 
Int_t CacheTPCEventInformation ()
 caching More...
 
Int_t CacheITSVertexInformation (Bool_t doReset=1, Double_t dcaCut=0.05, Double_t dcaZcut=0.15)
 
Int_t CacheTOFEventInformation (Bool_t dumpStreamer=0)
 cache TOF information for the mutplicity More...
 
Int_t CalculateEventVariables ()
 
void TPCVertexFit (TH1F *hisVertex)
 
Int_t GetNearestTrack (const AliExternalTrackParam *trackMatch, Int_t indexSkip, AliESDEvent *event, Int_t trackType, Int_t paramType, AliExternalTrackParam &paramNearest)
 
void ProcessITSTPCmatchOut (AliESDEvent *const esdEvent, AliESDfriend *const esdFriend, TTreeStream *pcstream)
 
Double_t CachePileupVertexTPC (Int_t entry, Int_t doReset=0, Int_t verbose=0)
 
Int_t DumpEventVariables ()
 

Static Public Member Functions

static Double_t LoadESD (Int_t entry, Int_t verbose=0)
 
static Int_t SDumpEventVariables ()
 
static Int_t SCalculateEventVariables (Int_t entry)
 
static Double_t GetTrackCounters (Int_t index, Int_t toolIndex)
 
static Double_t GetTrackTPCCountersZ (Int_t index, Int_t toolIndex)
 
static Double_t GetTrackdEdxRatio (Int_t index, Int_t toolIndex)
 
static Double_t GetTrackNcl (Int_t index, Int_t toolIndex)
 
static Double_t GetTrackChi2 (Int_t index, Int_t toolIndex)
 
static Double_t GetTrackMatchEff (Int_t index, Int_t toolIndex)
 
static Double_t GetMeanHisTPCVertexA ()
 
static Double_t GetMeanHisTPCVertexC ()
 
static Double_t GetVertexInfo (Int_t index)
 
static Int_t SetDefaultAliases (TTree *tree)
 
static Double_t SCachePileupVertexTPC (Int_t entry, Int_t doReset, Int_t verbose=0)
 
static Double_t SCacheITSVertexInformation (Bool_t doReset=1, Double_t dcaCut=0.05, Double_t dcaZcut=0.15)
 
static Double_t SCacheTOFEventInformation (Bool_t dumpStreamer)
 
static Double_t SGetTOFHitInfo (Int_t number, Int_t coord)
 

Public Attributes

Int_t fVerbose
 
TTreefESDtree
 
AliESDEventfEvent
 esd Tree pointer - class is not owner More...
 
AliPIDResponse * fPIDResponse
 esd event pointer - class is not owner More...
 
Bool_t fTaskMode
 PID response object. More...
 
TH1F * fHisITSVertex
 
TH1F * fHisTPCVertexA
 
TH1F * fHisTPCVertexC
 
TH1F * fHisTPCVertex
 
TH1F * fHisTPCVertexACut
 
TH1F * fHisTPCVertexCCut
 
TVectorF * fTPCVertexInfo
 
TVectorF * fITSVertexInfo
 
TH1F * fHistPhiTPCCounterA
 
TH1F * fHistPhiTPCCounterC
 
TH1F * fHistPhiTPCCounterAITS
 
TH1F * fHistPhiTPCCounterCITS
 
TH1F * fHistPhiITSCounterA
 
TH1F * fHistPhiITSCounterC
 
TVectorF * fCacheTrackCounters
 
TVectorF * fCacheTrackTPCCountersZ
 
TVectorF * fCacheTrackdEdxRatio
 
TVectorF * fCacheTrackNcl
 
TVectorF * fCacheTrackChi2
 
TVectorF * fCacheTrackMatchEff
 
TGraphfLumiGraph
 
TTreeSRedirector * fStreamer
 

Static Public Attributes

static AliESDtoolsfgInstance
 streamer More...
 

Private Member Functions

 AliESDtools (AliESDtools &)
 instance of the tool -needed in order to use static functions (for TTreeFormula) More...
 
AliESDtoolsoperator= (const AliESDtools &)
 

Detailed Description

Set of tools to define derived ESD variables. To be used in the AnalysisTasks, but can be used also in the TTreeFormulas.

Authors
maria.nosp@m.n.iv.nosp@m.anov@.nosp@m.cern.nosp@m..ch

Definition at line 16 of file AliESDtools.h.

Constructor & Destructor Documentation

AliESDtools::AliESDtools ( )

Definition at line 83 of file AliESDtools.cxx.

AliESDtools::AliESDtools ( AliESDtools )
private

instance of the tool -needed in order to use static functions (for TTreeFormula)

Member Function Documentation

Int_t AliESDtools::CacheITSVertexInformation ( Bool_t  doReset = 1,
Double_t  dcaCut = 0.05,
Double_t  dcaZcut = 0.15 
)

cache TPC event information

Returns

median position

LTM

Definition at line 1169 of file AliESDtools.cxx.

Referenced by CalculateEventVariables(), SCacheITSVertexInformation(), and SetStreamer().

Double_t AliESDtools::CachePileupVertexTPC ( Int_t  entry,
Int_t  doReset = 0,
Int_t  verbose = 0 
)

Find (biggest) pile-up TPC vertex - high efficiency for the PbPb - for pp should be still optimized Cache pileup vertex information into fTPCVertexInfo

Parameters
entry
verbose
Returns

Definition at line 771 of file AliESDtools.cxx.

Referenced by CalculateEventVariables(), SCachePileupVertexTPC(), and SetStreamer().

Int_t AliESDtools::CacheTOFEventInformation ( Bool_t  dumpStreamer = 0)

cache TOF information for the mutplicity

Definition at line 1113 of file AliESDtools.cxx.

Referenced by SCacheTOFEventInformation(), and SetStreamer().

Int_t AliESDtools::CacheTPCEventInformation ( )

caching

cache TPC event information

Returns

TODO - activating TPC vertex Z finder ?

Definition at line 166 of file AliESDtools.cxx.

Referenced by CalculateEventVariables(), and SetStreamer().

Int_t AliESDtools::CalculateEventVariables ( )

TODO -decide should we monitor DCA?

default closet mass

GetExpecteds(track,closestPar); /// TODO - enable calculation of closest mass

Definition at line 474 of file AliESDtools.cxx.

Referenced by SCalculateEventVariables(), and SetStreamer().

Int_t AliESDtools::DumpEventVariables ( )

DumpEvent variables ito the tree

Returns

Definition at line 839 of file AliESDtools.cxx.

Referenced by SDumpEventVariables(), and SetStreamer().

static Double_t AliESDtools::GetMeanHisTPCVertexA ( )
inlinestatic

Definition at line 42 of file AliESDtools.h.

static Double_t AliESDtools::GetMeanHisTPCVertexC ( )
inlinestatic

Definition at line 43 of file AliESDtools.h.

Int_t AliESDtools::GetNearestTrack ( const AliExternalTrackParam *  trackMatch,
Int_t  indexSkip,
AliESDEvent event,
Int_t  trackType,
Int_t  paramType,
AliExternalTrackParam &  paramNearest 
)
Parameters
trackMatch- input track parameter
indexSkip- index to skip index of track itself
event- ESD event pointer
trackType0 - find closets ITS standalone 1 - find closest track with TPC 2 - closest track with ITS and TPC
paramType
paramNearest- parameter for closest track according trackType
Returns
- index of the closets track (chi2 distance)

Definition at line 245 of file AliESDtools.cxx.

Referenced by SetStreamer().

static Double_t AliESDtools::GetTrackChi2 ( Int_t  index,
Int_t  toolIndex 
)
inlinestatic

Definition at line 40 of file AliESDtools.h.

static Double_t AliESDtools::GetTrackCounters ( Int_t  index,
Int_t  toolIndex 
)
inlinestatic

Definition at line 36 of file AliESDtools.h.

static Double_t AliESDtools::GetTrackdEdxRatio ( Int_t  index,
Int_t  toolIndex 
)
inlinestatic

Definition at line 38 of file AliESDtools.h.

static Double_t AliESDtools::GetTrackMatchEff ( Int_t  index,
Int_t  toolIndex 
)
inlinestatic

Definition at line 41 of file AliESDtools.h.

static Double_t AliESDtools::GetTrackNcl ( Int_t  index,
Int_t  toolIndex 
)
inlinestatic

Definition at line 39 of file AliESDtools.h.

static Double_t AliESDtools::GetTrackTPCCountersZ ( Int_t  index,
Int_t  toolIndex 
)
inlinestatic

Definition at line 37 of file AliESDtools.h.

static Double_t AliESDtools::GetVertexInfo ( Int_t  index)
inlinestatic

Definition at line 44 of file AliESDtools.h.

void AliESDtools::Init ( TTree tree,
AliESDEvent event = nullptr 
)

Initialize tool - set ESD address and book histogram counters

Parameters
tree- input tree
taskMode- in task mode external event and trees are used AliESDtool not owner

Definition at line 118 of file AliESDtools.cxx.

Double_t AliESDtools::LoadESD ( Int_t  entry,
Int_t  verbose = 0 
)
static

Load ESD - used for the ESD event proper caching - to be executed as first action in TTree::Draw function is static - NOT NEEDED in task mode

Parameters
entry- entry number
verbose- verbosity
Returns
- 1 - no load needed, 2 - reset event and load branches

Definition at line 753 of file AliESDtools.cxx.

Referenced by CachePileupVertexTPC(), SCalculateEventVariables(), and SetStreamer().

AliESDtools& AliESDtools::operator= ( const AliESDtools )
private
void AliESDtools::ProcessITSTPCmatchOut ( AliESDEvent *const  esdEvent,
AliESDfriend *const  esdFriend,
TTreeStream *  pcstream 
)

Function to find match of the TPC standalone tracks and ITS standalone tracks

Parameters
esdEvent-
esdFriend- in case ESD friend not available - ITS tracks from vertex to be used
pcstream- debug output NOT FINISHED code 1: find optimal set of cuts to reduce fka matches 2: sign the track pairs and create "combined TPC-ITS tracks"

Definition at line 310 of file AliESDtools.cxx.

Referenced by SetStreamer().

static Double_t AliESDtools::SCacheITSVertexInformation ( Bool_t  doReset = 1,
Double_t  dcaCut = 0.05,
Double_t  dcaZcut = 0.15 
)
inlinestatic

Definition at line 47 of file AliESDtools.h.

static Double_t AliESDtools::SCachePileupVertexTPC ( Int_t  entry,
Int_t  doReset,
Int_t  verbose = 0 
)
inlinestatic

Definition at line 46 of file AliESDtools.h.

static Double_t AliESDtools::SCacheTOFEventInformation ( Bool_t  dumpStreamer)
inlinestatic

Definition at line 49 of file AliESDtools.h.

static Int_t AliESDtools::SCalculateEventVariables ( Int_t  entry)
inlinestatic

Definition at line 35 of file AliESDtools.h.

static Int_t AliESDtools::SDumpEventVariables ( )
inlinestatic

Definition at line 33 of file AliESDtools.h.

Int_t AliESDtools::SetDefaultAliases ( TTree tree)
static

Set default tree aliases and corresponding metadata for anotation

Parameters
tree- input tree
Returns

FLAGS

Track properties

dEdx ratios

Faction of clusters and n-crossed rows

mass and PID aliases

Definition at line 990 of file AliESDtools.cxx.

Referenced by GetVertexInfo().

void AliESDtools::SetStreamer ( TTreeSRedirector *  streamer)
inline

Definition at line 20 of file AliESDtools.h.

Double_t AliESDtools::SGetTOFHitInfo ( Int_t  number,
Int_t  coord 
)
static

GetTOFHitInfo

Parameters
numberIndex of TOF hit in the container
coordcoordinate 0,1,2 - x,y,z 3 - |hit-vertex| 4 - |hit-vertex|/time
Returns

Definition at line 1143 of file AliESDtools.cxx.

Referenced by SCacheTOFEventInformation().

void AliESDtools::TPCVertexFit ( TH1F *  hisVertex)

Fit Vertex histogram

Parameters
hisVertexTODO - Not finished. Either finish or remove the function

Definition at line 215 of file AliESDtools.cxx.

Referenced by SetStreamer().

Member Data Documentation

TVectorF* AliESDtools::fCacheTrackChi2

Definition at line 76 of file AliESDtools.h.

Referenced by CalculateEventVariables(), DumpEventVariables(), GetTrackChi2(), and Init().

TVectorF* AliESDtools::fCacheTrackCounters

Definition at line 72 of file AliESDtools.h.

Referenced by CalculateEventVariables(), DumpEventVariables(), GetTrackCounters(), and Init().

TVectorF* AliESDtools::fCacheTrackdEdxRatio

Definition at line 74 of file AliESDtools.h.

Referenced by CalculateEventVariables(), DumpEventVariables(), GetTrackdEdxRatio(), and Init().

TVectorF* AliESDtools::fCacheTrackMatchEff

Definition at line 77 of file AliESDtools.h.

Referenced by CalculateEventVariables(), DumpEventVariables(), GetTrackMatchEff(), and Init().

TVectorF* AliESDtools::fCacheTrackNcl

Definition at line 75 of file AliESDtools.h.

Referenced by CalculateEventVariables(), DumpEventVariables(), GetTrackNcl(), and Init().

TVectorF* AliESDtools::fCacheTrackTPCCountersZ
TTree* AliESDtools::fESDtree

Definition at line 53 of file AliESDtools.h.

Referenced by Init(), and LoadESD().

AliESDtools * AliESDtools::fgInstance
static

streamer

Example usage for Tree queries mode (used e.g in N-Dimensional analysis pipeline):

Definition at line 81 of file AliESDtools.h.

Referenced by GetMeanHisTPCVertexA(), GetMeanHisTPCVertexC(), GetTrackChi2(), GetTrackCounters(), GetTrackdEdxRatio(), GetTrackMatchEff(), GetTrackNcl(), GetTrackTPCCountersZ(), GetVertexInfo(), LoadESD(), SCacheITSVertexInformation(), SCachePileupVertexTPC(), SCacheTOFEventInformation(), SCalculateEventVariables(), SDumpEventVariables(), and SGetTOFHitInfo().

TH1F* AliESDtools::fHisITSVertex

Definition at line 57 of file AliESDtools.h.

Referenced by CacheITSVertexInformation(), and Init().

TH1F* AliESDtools::fHisTPCVertex

Definition at line 60 of file AliESDtools.h.

Referenced by CacheTPCEventInformation(), and Init().

TH1F* AliESDtools::fHisTPCVertexA
TH1F* AliESDtools::fHisTPCVertexACut

Definition at line 61 of file AliESDtools.h.

Referenced by CacheTPCEventInformation(), and Init().

TH1F* AliESDtools::fHisTPCVertexC
TH1F* AliESDtools::fHisTPCVertexCCut

Definition at line 62 of file AliESDtools.h.

Referenced by CacheTPCEventInformation(), and Init().

TH1F* AliESDtools::fHistPhiITSCounterA

Definition at line 70 of file AliESDtools.h.

Referenced by CalculateEventVariables(), DumpEventVariables(), and Init().

TH1F* AliESDtools::fHistPhiITSCounterC

Definition at line 71 of file AliESDtools.h.

Referenced by CalculateEventVariables(), DumpEventVariables(), and Init().

TH1F* AliESDtools::fHistPhiTPCCounterA

Definition at line 66 of file AliESDtools.h.

Referenced by CalculateEventVariables(), DumpEventVariables(), and Init().

TH1F* AliESDtools::fHistPhiTPCCounterAITS

Definition at line 68 of file AliESDtools.h.

Referenced by CalculateEventVariables(), DumpEventVariables(), and Init().

TH1F* AliESDtools::fHistPhiTPCCounterC

Definition at line 67 of file AliESDtools.h.

Referenced by CalculateEventVariables(), DumpEventVariables(), and Init().

TH1F* AliESDtools::fHistPhiTPCCounterCITS

Definition at line 69 of file AliESDtools.h.

Referenced by CalculateEventVariables(), DumpEventVariables(), and Init().

TVectorF* AliESDtools::fITSVertexInfo

Definition at line 65 of file AliESDtools.h.

Referenced by DumpEventVariables(), and Init().

TGraph* AliESDtools::fLumiGraph

Definition at line 78 of file AliESDtools.h.

AliPIDResponse* AliESDtools::fPIDResponse

esd event pointer - class is not owner

Definition at line 55 of file AliESDtools.h.

TTreeSRedirector* AliESDtools::fStreamer

Definition at line 80 of file AliESDtools.h.

Referenced by DumpEventVariables(), and SetStreamer().

Bool_t AliESDtools::fTaskMode

PID response object.

Definition at line 56 of file AliESDtools.h.

Referenced by CachePileupVertexTPC(), and Init().

TVectorF* AliESDtools::fTPCVertexInfo

Definition at line 64 of file AliESDtools.h.

Referenced by DumpEventVariables(), GetVertexInfo(), and Init().

Int_t AliESDtools::fVerbose

Definition at line 52 of file AliESDtools.h.

Referenced by CacheTPCEventInformation().


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