AliPhysics  ff07904 (ff07904)
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.)
 

Typedef Documentation

(pt,index) pair

Definition at line 61 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 1589 of file AliAnalysisTaskEmcalJetCDF.cxx.

Referenced by IdxInArray().

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 144 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 84 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 156 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 1694 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 78 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 72 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 104 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 91 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 1524 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 1554 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 138 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 130 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 120 of file AliAnalysisTaskEmcalJetCDF.h.

Referenced by AliAnalysisTaskEmcalJetCDF::FillHistograms().