AliPhysics  master (3d17d9d)
PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS 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 *ntracks_mc="", const char *tag="CDF")
 
AliJetContainerjetContSetParams (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)
 
bool PeriodIsMC (const char *str)
 
TString GetPeriod (const char *file_path)
 
TString GetPass (const char *file_path)
 
TString GetFileFromPath (const char *file_path="")
 
bool SaveManager (const char *file_name)
 
Double_t JetPtRho (const AliEmcalJet *jet, Double_t rho)
 
AliJetContainerAddJetContainerJetTask (AliAnalysisTaskEmcalJet *task, AliEmcalJetTask *jf, AliEmcalJet::JetAcceptanceType acc)
 
AliJetContainerAddJetContainerJetTaskCustomPartClus (AliAnalysisTaskEmcalJet *task, AliEmcalJetTask *jf, AliEmcalJet::JetAcceptanceType acc, AliParticleContainer *partcont, AliClusterContainer *cluscont)
 
void load_config (const char *file)
 

Typedef Documentation

Function Documentation

AliJetContainer* PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::AddJetContainerJetTask ( AliAnalysisTaskEmcalJet task,
AliEmcalJetTask jf,
AliEmcalJet::JetAcceptanceType  acc 
)
inline

Add to a AliAnalysisTaskEmcalJet task a jet container with attributes given by the AliEmcalJetTask jet finder

Parameters
AliAnalysisTaskEmcalJet*task
AliEmcalJetTask*jf
AliEmcalJet::JetAcceptanceTypeacc
Returns
Jet container

Definition at line 357 of file AliAnalysisTaskEmcalJetCDF.h.

AliJetContainer* PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::AddJetContainerJetTaskCustomPartClus ( AliAnalysisTaskEmcalJet task,
AliEmcalJetTask jf,
AliEmcalJet::JetAcceptanceType  acc,
AliParticleContainer partcont,
AliClusterContainer cluscont 
)
inline

Add to a AliAnalysisTaskEmcalJet task a jet container with attributes given by the AliEmcalJetTask jet finder and custom particle and cluster containers

Parameters
AliAnalysisTaskEmcalJet*task
AliEmcalJetTask*jf
AliEmcalJet::JetAcceptanceTypeacc
AliParticleContainer*partcont
AliClusterContainer*cluscont
Returns
Jet container

Definition at line 373 of file AliAnalysisTaskEmcalJetCDF.h.

AliAnalysisTaskEmcalJetCDF * PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::AddTaskEmcalJetCDF ( const char *  ntracks = "usedefault",
const char *  nclusters = "usedefault",
const char *  ncells = "usedefault",
const char *  ntracks_mc = "",
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 895 of file AliAnalysisTaskEmcalJetCDF.cxx.

Referenced by IdxInArray().

TChain * PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::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 1004 of file AliAnalysisTaskEmcalJetCDF.cxx.

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

Double_t PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::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 175 of file AliAnalysisTaskEmcalJetCDF.h.

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

Double_t PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::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 115 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by Perp2().

TString PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::GetFileFromPath ( const char *  file_path = "")
inline

Return the last sub-string from a / delimited char array

Parameters
file_pathchar array
Returns
TString file name

Definition at line 315 of file AliAnalysisTaskEmcalJetCDF.h.

TString PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::GetPass ( const char *  file_path)
inline

Return the first sub-string beggining with "pass" from a / delimited char array

Parameters
file_pathchar array
Returns
TString pass id

Definition at line 290 of file AliAnalysisTaskEmcalJetCDF.h.

TString PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::GetPeriod ( const char *  file_path)
inline

Return the first sub-string beggining with "lhc" from a / delimited char array

Parameters
file_pathchar array
Returns
TString period id

Definition at line 266 of file AliAnalysisTaskEmcalJetCDF.h.

Int_t PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::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 187 of file AliAnalysisTaskEmcalJetCDF.h.

AliJetContainer * PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::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

Definition at line 990 of file AliAnalysisTaskEmcalJetCDF.cxx.

Referenced by IdxInArray().

Double_t PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::JetPtRho ( const AliEmcalJet jet,
Double_t  rho 
)
inline

Get pt of jet with background substracted

Parameters
AliEmcalJet*jet
Double_trho
Returns
jet pt

Definition at line 348 of file AliAnalysisTaskEmcalJetCDF.h.

void PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::load_config ( const char *  file)
inline

Load in macro/task environment a file with key=value pairs. The environment variables can later be checked and acted upon

Parameters
constchar* file

Definition at line 386 of file AliAnalysisTaskEmcalJetCDF.h.

Double_t PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::Mag ( const AliVParticle &  trk)
inline

Computing the Mag of an AliVParticle derived object

Parameters
trkAliVParticle
Returns
Mag2

Definition at line 109 of file AliAnalysisTaskEmcalJetCDF.h.

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

Double_t PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::Mag2 ( const AliVParticle &  trk)
inline

Computing the Mag2 of an AliVParticle derived object

Parameters
trkAliVParticle
Returns
Mag2

Definition at line 103 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by Mag(), and Perp2().

bool PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::PeriodIsMC ( const char *  str)
inline

Return true if lhc beggining string have more than 6 characters

Parameters
strchar array
Returns
bool

Definition at line 253 of file AliAnalysisTaskEmcalJetCDF.h.

Double_t PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::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 135 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by AliAnalysisTaskEmcalJetCDF::FillHistograms().

Double_t PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::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 122 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by Perp().

bool PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::SaveManager ( const char *  file_name)
inline

Save AliAnalysisManager to file; return bool fo success

Parameters
file_namechar array
Returns
bool of sucess status

Definition at line 332 of file AliAnalysisTaskEmcalJetCDF.h.

std::vector< Int_t > PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::SortTracksPt ( AliVEvent *  event)

Sorting of tracks in the event by pt (descending)

Parameters
eventAliVEvent*
Returns
vector of indexes of constituents

Definition at line 836 of file AliAnalysisTaskEmcalJetCDF.cxx.

std::vector< Int_t > PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::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 866 of file AliAnalysisTaskEmcalJetCDF.cxx.

Referenced by Perp().

Double_t PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::Xi ( Double_t  z)
inline

Get Xi for a double value z

Returns
Xi

Definition at line 169 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by AliAnalysisTaskEmcalJetCDF::FillHistograms().

Double_t PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::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 161 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by AliAnalysisTaskEmcalJetCDF::FillHistograms().

Double_t PWGJE::EMCALJetTasks::AliAnalysisTaskEmcalJetCDF_NS::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 151 of file AliAnalysisTaskEmcalJetCDF.h.