AliPhysics  c7b8e89 (c7b8e89)
NS_AliAnalysisTaskEmcalJetCDF Namespace Reference

Classes

struct  sort_descend
 functional for sorting pair by first element - descending More...
 

Typedefs

typedef std::pair< Double_t, Int_tptidx_pair
 (pt,index) pair More...
 

Functions

Double_t Mag2 (const AliVParticle &trk)
 
Double_t Mag (const AliVParticle &trk)
 
Double_t Dot (const AliVParticle &trk1, const AliVParticle &trk2)
 
Double_t Perp2 (const AliVParticle &trk1, const AliVParticle &trk2)
 
Double_t Perp (const AliVParticle &trk1, const AliVParticle &trk2)
 
std::vector< Int_tSortTracksPt (AliVEvent *event)
 
std::vector< Int_tSortTracksPt (AliParticleContainer *track_container)
 
Double_t Z_ptot (const AliEmcalJet *jet, const AliVParticle *trk)
 
Double_t Z_pt (const AliEmcalJet *jet, const AliVParticle *trk)
 
Double_t Xi (Double_t z)
 
Double_t DeltaR (const AliVParticle *part1, const AliVParticle *part2)
 
Int_t IdxInArray (Int_t index, TArrayI &array)
 
AliAnalysisTaskEmcalJetCDFAddTaskEmcalJetCDF (const char *ntracks="usedefault", const char *nclusters="usedefault", const char *ncells="usedefault", const char *tag="CDF")
 
void jetContSetParams (AliJetContainer *jetCont, Float_t jetptmin=1., Float_t jetptmax=500., Float_t jetareacutperc=0., Int_t leadhadtype=2, Int_t nLeadJets=1, Float_t mintrackpt=0.15, Float_t maxtrackpt=1000.)
 
TChainCreateChain (const char *filelist="filelist.txt", const char *cTreeNameArg="auto", const char *friends="", UInt_t iNumFiles=-1, UInt_t iStartWithFile=1)
 

Typedef Documentation

(pt,index) pair

Definition at line 62 of file AliAnalysisTaskEmcalJetCDF.h.

Function Documentation

AliAnalysisTaskEmcalJetCDF * NS_AliAnalysisTaskEmcalJetCDF::AddTaskEmcalJetCDF ( const char *  ntracks = "usedefault",
const char *  nclusters = "usedefault",
const char *  ncells = "usedefault",
const char *  tag = "CDF" 
)

Add a AliAnalysisTaskEmcalJetCDF task - detailed signature

Parameters
ntracksname of tracks collection
nclustersname of clusters collection
ncellsname of EMCAL cell collection
tagtag name of analysis task
Returns
AliAnalysisTaskEmcalJetCDF* task

Definition at line 1606 of file AliAnalysisTaskEmcalJetCDF.cxx.

Referenced by IdxInArray().

TChain * NS_AliAnalysisTaskEmcalJetCDF::CreateChain ( const char *  filelist = "filelist.txt",
const char *  cTreeNameArg = "auto",
const char *  friends = "",
UInt_t  iNumFiles = -1,
UInt_t  iStartWithFile = 1 
)

Creates a chain from an list of files Using list of directories is not supported; use find to create a list of files; Ex: find /alice/data/2016/LHC16r/ -path "_*_/000266189/_*_" -path "_*_/pass1_CENT_wSDD/_*_" -name AliAOD.root -printf "file://%p\n" NB! on macos you need gfind that is installed with "brew install findutils"

Parameters
filelistName of the file containing the list of files
iNumFilesIf iNumFiles > 0 only nfiles files are added
iStartWithFilestarting from file 'iStartWithFile' (>= 1).
cTreeNameArgTree name for chaining. if "auto" it will be taken as the first tree name from the first file from filelist
friendsSpecify the root_file/friend_tree that is assumed to be in the same directory as the each input file; if friend_tree is not specified we will assume the defaults
Returns
TChain*

Definition at line 1735 of file AliAnalysisTaskEmcalJetCDF.cxx.

Referenced by IdxInArray(), and VirtualTrain::Run().

Double_t NS_AliAnalysisTaskEmcalJetCDF::DeltaR ( const AliVParticle *  part1,
const AliVParticle *  part2 
)
inline

Return dR dinstance in eta,phi plane between 2 AliVParticle derived objects

Parameters
part1AliVParticle*
part2AliVParticle*
Returns
#eta-#phi distance from jet axis

Definition at line 145 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by AliAnalysisTaskRecoilJetYield::SoftDrop(), and AliAnalysisTaskEmcalJetShapesMC::SoftDrop().

Double_t NS_AliAnalysisTaskEmcalJetCDF::Dot ( const AliVParticle &  trk1,
const AliVParticle &  trk2 
)
inline

Computing the Dot product of two AliVParticle derived objects

Parameters
trk1AliVParticle 1
trk2AliVParticle 2
Returns
Mag2

Definition at line 85 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by AliAODConversionMother::CalculateDistanceBetweenPhotons(), and Perp2().

Int_t NS_AliAnalysisTaskEmcalJetCDF::IdxInArray ( Int_t  index,
TArrayI array 
)
inline

Search for index(int) in array of ints

Parameters
indexthe index to be searched
arrayarray of ints
Returns
kTRUE if found

Definition at line 157 of file AliAnalysisTaskEmcalJetCDF.h.

void NS_AliAnalysisTaskEmcalJetCDF::jetContSetParams ( AliJetContainer jetCont,
Float_t  jetptmin = 1.,
Float_t  jetptmax = 500.,
Float_t  jetareacutperc = 0.,
Int_t  leadhadtype = 2,
Int_t  nLeadJets = 1,
Float_t  mintrackpt = 0.15,
Float_t  maxtrackpt = 1000. 
)

Set parameters of a jet container

Parameters
jetContAliJetContainer*
jetptmin: min pt of jets in this container (default = 1.)
jetptmax: max pt of jets in this container (default = 500.)
jetareacutperc: cut jets under percentage of area given by algo radius (default = 0.)
leadhadtype: 0 = charged, 1 = neutral, 2 = both (default = 2)
nLeadJets: how many jets are to be considered the leading jet(s) (default = 1)
mintrackpt: min track constituent pt to accept the jet (default = 0.15)
maxtrackpt: max track constituent pt to accept the jet (default = 1000.)
Returns

Set parameters of a jet container

Parameters
jetContAliJetContainer*
jetptmin: min pt of jets in this container (default = 1.)
jetptmax: max pt of jets in this container (default = 500.)
jetareacutperc: cut jets under percentage of area given by algo radius (default = 0.)
leadhadtype: 0 = charged, 1 = neutral, 2 = both (default = 2)
nLeadJets: how many jets are to be considered the leading jet(s) (default = 1)
mintrackpt: min track constituent pt to accept the jet (default = 0.15)
maxtrackpt: max track constituent pt to accept the jet (default = 1000.)

Definition at line 1711 of file AliAnalysisTaskEmcalJetCDF.cxx.

Referenced by IdxInArray().

Double_t NS_AliAnalysisTaskEmcalJetCDF::Mag ( const AliVParticle &  trk)
inline

Computing the Mag of an AliVParticle derived object

Parameters
trkAliVParticle
Returns
Mag2

Definition at line 79 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by AliAODConversionMother::CalculateDistanceBetweenPhotons(), AliAnalysisTaskJetsEvshape::CalculateThrust(), and AliAnalysisHelperJetTasks::GetEventShapes().

Double_t NS_AliAnalysisTaskEmcalJetCDF::Mag2 ( const AliVParticle &  trk)
inline

Computing the Mag2 of an AliVParticle derived object

Parameters
trkAliVParticle
Returns
Mag2

Definition at line 73 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by Mag(), and Perp2().

Double_t NS_AliAnalysisTaskEmcalJetCDF::Perp ( const AliVParticle &  trk1,
const AliVParticle &  trk2 
)
inline

Computing the transverse component of trk1 w.r.t trk2

Parameters
trk1AliVParticle 1
trk2AliVParticle 2
Returns
Perp of trk1 w.r.t. trk2

Definition at line 105 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by AliAnalysisTaskEmcalJetCDF::FillHistograms().

Double_t NS_AliAnalysisTaskEmcalJetCDF::Perp2 ( const AliVParticle &  trk1,
const AliVParticle &  trk2 
)
inline

Computing the transverse component squared of trk1 w.r.t trk2

Parameters
trk1AliVParticle 1
trk2AliVParticle 2
Returns
Perp2 of trk1 w.r.t. trk2

Definition at line 92 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by Perp().

std::vector< Int_t > NS_AliAnalysisTaskEmcalJetCDF::SortTracksPt ( AliVEvent *  event)

Sorting of tracks in the event by pt (descending)

Parameters
eventAliVEvent*
Returns
vector of indexes of constituents

Definition at line 1541 of file AliAnalysisTaskEmcalJetCDF.cxx.

std::vector< Int_t > NS_AliAnalysisTaskEmcalJetCDF::SortTracksPt ( AliParticleContainer track_container)

Sorting of tracks in the event by pt (descending) - using a particle container

Parameters
track_containerAliParticleContainer*
Returns
vector of indexes of constituents

Definition at line 1571 of file AliAnalysisTaskEmcalJetCDF.cxx.

Referenced by Perp().

Double_t NS_AliAnalysisTaskEmcalJetCDF::Xi ( Double_t  z)
inline

Get Xi for a double value z

Returns
Xi

Definition at line 139 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by AliAnalysisTaskEmcalJetCDF::FillHistograms().

Double_t NS_AliAnalysisTaskEmcalJetCDF::Z_pt ( const AliEmcalJet jet,
const AliVParticle *  trk 
)
inline

Get Pt() fraction of constituent to jet

Parameters
jetAliEmcalJet*
trkAliVParticle*
Returns
Z = trk->Pt()/jet->Pt()

Definition at line 131 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by AliAnalysisTaskEmcalJetCDF::FillHistograms().

Double_t NS_AliAnalysisTaskEmcalJetCDF::Z_ptot ( const AliEmcalJet jet,
const AliVParticle *  trk 
)
inline

Get P() fraction of constituent to jet

Parameters
jetAliEmcalJet*
trkAliVParticle*
Returns
Z = trk->P()/jet->P()

Definition at line 121 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by AliAnalysisTaskEmcalJetCDF::FillHistograms().