AliPhysics  32b88a8 (32b88a8)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalJetTask Class Reference

General jet finder task implementing a wrapper for FastJet. More...

#include <AliEmcalJetTask.h>

Inheritance diagram for AliEmcalJetTask:

Public Types

typedef AliJetContainer::EJetType_t EJetType_t
 
typedef AliJetContainer::EJetAlgo_t EJetAlgo_t
 
typedef
AliJetContainer::ERecoScheme_t 
ERecoScheme_t
 
typedef fastjet::JetAlgorithm FJJetAlgo
 
typedef
fastjet::RecombinationScheme 
FJRecoScheme
 
- Public Types inherited from AliAnalysisTaskEmcal
enum  BeamType { kNA = -1, kpp = 0, kAA = 1, kpA = 2 }
 Switch for the beam type. More...
 
enum  TriggerType {
  kND = -1, kJ1 = 0, kJ2 = 1, kG1 = 2,
  kG2 = 3, kL0 = 4
}
 Switch for EMCAL trigger types. More...
 
enum  TriggerCategory {
  kTriggerLevel0 = 0, kTriggerLevel1Jet = 1, kTriggerLevel1Gamma = 2, kTriggerRecalcJet = 3,
  kTriggerRecalcGamma = 4
}
 Online trigger categories. More...
 
enum  EMCalTriggerMode_t { kNoSpecialTreatment, kOverlapWithLowThreshold }
 Handling of the EMCAL trigger thresholds. More...
 

Public Member Functions

 AliEmcalJetTask ()
 
 AliEmcalJetTask (const char *name)
 
virtual ~AliEmcalJetTask ()
 
Bool_t Run ()
 
void SetGhostArea (Double_t gharea)
 
void SetJetsName (const char *n)
 
void SetJetEtaRange (Double_t emi, Double_t ema)
 
void SetJetPhiRange (Double_t pmi, Double_t pma)
 
void SetJetAlgo (EJetAlgo_t a)
 
void SetJetType (EJetType_t t)
 
void SetLocked ()
 
void SetMinJetArea (Double_t a)
 
void SetMinJetPt (Double_t j)
 
void SetRecombScheme (ERecoScheme_t scheme)
 
void SetTrackEfficiency (Double_t t)
 
void SetLegacyMode (Bool_t mode)
 
void SetFillGhost (Bool_t b=kTRUE)
 
void SetRadius (Double_t r)
 
void SetEtaRange (Double_t emi, Double_t ema)
 
void SetMinJetClusPt (Double_t min)
 
void SetMinJetClusE (Double_t min)
 
void SetMinJetTrackPt (Double_t min)
 
void SetPhiRange (Double_t pmi, Double_t pma)
 
AliEmcalJetUtilityAddUtility (AliEmcalJetUtility *utility)
 
Double_t GetGhostArea ()
 
const char * GetJetsName ()
 
Double_t GetJetEtaMin ()
 
Double_t GetJetEtaMax ()
 
Double_t GetJetPhiMin ()
 
Double_t GetJetPhiMax ()
 
UInt_t GetJetType ()
 
UInt_t GetJetAlgo ()
 
Bool_t GetLegacyMode ()
 
Double_t GetMinJetArea ()
 
Double_t GetMinJetPt ()
 
Int_t GetMinMCLabel ()
 
Double_t GetRadius ()
 
Int_t GetRecombScheme ()
 
Double_t GetTrackEfficiency ()
 
TClonesArray * GetJets ()
 
TObjArrayGetUtilities ()
 
void FillJetConstituents (AliEmcalJet *jet, std::vector< fastjet::PseudoJet > &constituents, std::vector< fastjet::PseudoJet > &constituents_sub, Int_t flag=0, TClonesArray *particles_sub=0)
 
UInt_t FindJetAcceptanceType (Double_t eta, Double_t phi, Double_t r)
 
Int_t GetIndexSub (Double_t phi_sub, std::vector< fastjet::PseudoJet > &constituents_unsub)
 
Bool_t IsLocked () const
 
void SelectCollisionCandidates (UInt_t offlineTriggerMask=AliVEvent::kMB)
 
void SetType (Int_t t)
 
- Public Member Functions inherited from AliAnalysisTaskEmcal
 AliAnalysisTaskEmcal ()
 
 AliAnalysisTaskEmcal (const char *name, Bool_t histo=kFALSE)
 
virtual ~AliAnalysisTaskEmcal ()
 
AliParticleContainerAddParticleContainer (const char *n)
 
AliTrackContainerAddTrackContainer (const char *n)
 
AliMCParticleContainerAddMCParticleContainer (const char *n)
 
AliClusterContainerAddClusterContainer (const char *n)
 
void AdoptParticleContainer (AliParticleContainer *cont)
 
void AdoptTrackContainer (AliTrackContainer *cont)
 
void AdoptMCParticleContainer (AliMCParticleContainer *cont)
 
void AdoptClusterContainer (AliClusterContainer *cont)
 
AliParticleContainerGetParticleContainer (Int_t i=0) const
 
AliParticleContainerGetParticleContainer (const char *name) const
 
AliClusterContainerGetClusterContainer (Int_t i=0) const
 
AliClusterContainerGetClusterContainer (const char *name) const
 
AliMCParticleContainerGetMCParticleContainer (Int_t i=0) const
 
AliMCParticleContainerGetMCParticleContainer (const char *name) const
 
AliTrackContainerGetTrackContainer (Int_t i=0) const
 
AliTrackContainerGetTrackContainer (const char *name) const
 
void RemoveParticleContainer (Int_t i=0)
 
void RemoveClusterContainer (Int_t i=0)
 
void SetCaloCellsName (const char *n)
 
void SetCaloTriggerPatchInfoName (const char *n)
 
void SetCaloTriggersName (const char *n)
 
void SetCentRange (Double_t min, Double_t max)
 
void SetCentralityEstimator (const char *c)
 
void SetClusPtCut (Double_t cut, Int_t c=0)
 
void SetClusTimeCut (Double_t min, Double_t max, Int_t c=0)
 
void SetEventPlaneVsEmcal (Double_t ep)
 
void SetForceBeamType (BeamType f)
 
void SetHistoBins (Int_t nbins, Double_t min, Double_t max)
 
void SetIsEmbedded (Bool_t i)
 
void SetIsPythia (Bool_t i)
 
void SetMakeGeneralHistograms (Bool_t g)
 
void SetMCLabelShift (Int_t s)
 
void SetMinMCLabel (Int_t s)
 
void SetMinNTrack (Int_t min)
 
void SetZvertexDiffValue (Double_t cut)
 
void SetMinPtTrackInEmcal (Double_t min)
 
virtual void SetNCentBins (Int_t n)
 
void SetNeedEmcalGeom (Bool_t n)
 
void SetOffTrigger (UInt_t t)
 
void SetTrackEtaLimits (Double_t min, Double_t max, Int_t c=0)
 
void SetTrackPhiLimits (Double_t min, Double_t max, Int_t c=0)
 
void SetTrackPtCut (Double_t cut, Int_t c=0)
 
void SetTrigClass (const char *n)
 
void SetTriggerTypeSel (TriggerType t)
 
void SetUseAliAnaUtils (Bool_t b, Bool_t bRejPilup=kTRUE)
 
void SetVzRange (Double_t min, Double_t max)
 
void SetUseSPDTrackletVsClusterBG (Bool_t b)
 
void SetEMCalTriggerMode (EMCalTriggerMode_t m)
 
void SetUseNewCentralityEstimation (Bool_t b)
 
void SetGeneratePythiaInfoObject (Bool_t b)
 
void SetPythiaInfoName (const char *n)
 
const TStringGetPythiaInfoName () const
 
const AliEmcalPythiaInfoGetPythiaInfo () const
 
void SetUsePtHardBinScaling (Bool_t b)
 
void SetMCFilter ()
 
void ResetMCFilter ()
 
void SetJetPtFactor (Float_t f)
 
Float_t JetPtFactor ()
 
void SetClusterPtFactor (Float_t f)
 
Float_t ClusterPtFactor ()
 
void SetTrackPtFactor (Float_t f)
 
Float_t TrackPtFactor ()
 

Static Public Member Functions

static FJJetAlgo ConvertToFJAlgo (EJetAlgo_t algo)
 
static FJRecoScheme ConvertToFJRecoScheme (ERecoScheme_t reco)
 

Protected Member Functions

Int_t FindJets ()
 
void FillJetBranch ()
 
void ExecOnce ()
 
void InitUtilities ()
 
void PrepareUtilities ()
 
void ExecuteUtilities (AliEmcalJet *jet, Int_t ij)
 
void TerminateUtilities ()
 
Bool_t GetSortedArray (Int_t indexes[], std::vector< fastjet::PseudoJet > array) const
 
Bool_t IsJetInEmcal (Double_t eta, Double_t phi, Double_t r)
 
Bool_t IsJetInDcal (Double_t eta, Double_t phi, Double_t r)
 
- Protected Member Functions inherited from AliAnalysisTaskEmcal
void LoadPythiaInfo (AliVEvent *event)
 
void SetRejectionReasonLabels (TAxis *axis)
 
Bool_t AcceptCluster (AliVCluster *clus, Int_t c=0) const
 
Bool_t AcceptTrack (AliVParticle *track, Int_t c=0) const
 
void AddObjectToEvent (TObject *obj, Bool_t attempt=kFALSE)
 
AliVParticle * GetAcceptParticleFromArray (Int_t p, Int_t c=0) const
 
AliVCluster * GetAcceptClusterFromArray (Int_t cl, Int_t c=0) const
 
TClonesArray * GetArrayFromEvent (const char *name, const char *clname=0)
 
BeamType GetBeamType ()
 
TClonesArray * GetParticleArray (Int_t i=0) const
 
TClonesArray * GetClusterArray (Int_t i=0) const
 
Int_t GetNParticles (Int_t i=0) const
 
Int_t GetNClusters (Int_t i=0) const
 
AliEMCALTriggerPatchInfo * GetMainTriggerPatch (TriggerCategory triggersel=kTriggerLevel1Jet, Bool_t doOfflinSimple=kFALSE)
 
Bool_t HasTriggerType (TriggerType triggersel)
 
ULong_t GetTriggerList ()
 
Bool_t PythiaInfoFromFile (const char *currFile, Float_t &fXsec, Float_t &fTrials, Int_t &pthard)
 
Bool_t IsTrackInEmcalAcceptance (AliVParticle *part, Double_t edges=0.9) const
 
void GeneratePythiaInfoObject (AliMCEvent *mcEvent)
 
Bool_t CheckMCOutliers ()
 
void UserCreateOutputObjects ()
 
void UserExec (Option_t *option)
 
Bool_t UserNotify ()
 
virtual Bool_t FillGeneralHistograms ()
 
virtual Bool_t IsEventSelected ()
 
virtual Bool_t RetrieveEventObjects ()
 
virtual void RunChanged ()
 
virtual void UserExecOnce ()
 
virtual Bool_t FillHistograms ()
 

Protected Attributes

TString fJetsTag
 
EJetType_t fJetType
 
EJetAlgo_t fJetAlgo
 
ERecoScheme_t fRecombScheme
 
Double_t fRadius
 
Double_t fMinJetArea
 
Double_t fMinJetPt
 
Double_t fJetPhiMin
 
Double_t fJetPhiMax
 
Double_t fJetEtaMin
 
Double_t fJetEtaMax
 
Double_t fGhostArea
 
Double_t fTrackEfficiency
 
TObjArrayfUtilities
 
Bool_t fLocked
 
TString fJetsName
 
Bool_t fIsInit
 name of jet collection More...
 
Bool_t fIsPSelSet
 =true if already initialized More...
 
Bool_t fIsEmcPart
 =true if physics selection was set More...
 
Bool_t fLegacyMode
 =true if emcal particles are given as input (for clusters) More...
 
Bool_t fFillGhost
 =true to enable FJ 2.x behavior More...
 
TClonesArray * fJets
 =true ghost particles will be filled in AliEmcalJet obj More...
 
AliFJWrapper fFastJetWrapper
 jet collection More...
 
- Protected Attributes inherited from AliAnalysisTaskEmcal
TString fPythiaInfoName
 name of pythia info object More...
 
BeamType fForceBeamType
 forced beam type More...
 
Bool_t fGeneralHistograms
 whether or not it should fill some general histograms More...
 
Bool_t fInitialized
 whether or not the task has been already initialized More...
 
Bool_t fCreateHisto
 whether or not create histograms More...
 
TString fCaloCellsName
 name of calo cell collection More...
 
TString fCaloTriggersName
 name of calo triggers collection More...
 
TString fCaloTriggerPatchInfoName
 trigger patch info array name More...
 
Double_t fMinCent
 min centrality for event selection More...
 
Double_t fMaxCent
 max centrality for event selection More...
 
Double_t fMinVz
 min vertex for event selection More...
 
Double_t fMaxVz
 max vertex for event selection More...
 
Double_t fTrackPtCut
 cut on track pt in event selection More...
 
Int_t fMinNTrack
 minimum nr of tracks in event with pT>fTrackPtCut More...
 
Double_t fZvertexDiff
 upper limit for distance between primary and SPD vertex More...
 
Bool_t fUseAliAnaUtils
 used for LHC13* data: z-vtx, Ncontributors, z-vtx resolution cuts More...
 
Bool_t fRejectPileup
 Reject pilup using function AliAnalysisUtils::IsPileUpEvent() More...
 
Bool_t fTklVsClusSPDCut
 Apply tracklet-vs-cluster SPD cut to reject background events in pp. More...
 
UInt_t fOffTrigger
 offline trigger for event selection More...
 
TString fTrigClass
 trigger class name for event selection More...
 
TriggerType fTriggerTypeSel
 trigger type to select based on trigger patches More...
 
Int_t fNbins
 no. of pt bins More...
 
Double_t fMinBinPt
 min pt in histograms More...
 
Double_t fMaxBinPt
 max pt in histograms More...
 
Double_t fMinPtTrackInEmcal
 min pt track in emcal More...
 
Double_t fEventPlaneVsEmcal
 select events which have a certain event plane wrt the emcal More...
 
Double_t fMinEventPlane
 minimum event plane value More...
 
Double_t fMaxEventPlane
 maximum event plane value More...
 
TString fCentEst
 name of V0 centrality estimator More...
 
Bool_t fIsEmbedded
 trigger, embedded signal More...
 
Bool_t fIsPythia
 trigger, if it is a PYTHIA production More...
 
Int_t fSelectPtHardBin
 select one pt hard bin for analysis More...
 
Int_t fMinMCLabel
 minimum MC label value for the tracks/clusters being considered MC particles More...
 
Int_t fMCLabelShift
 if MC label > fMCLabelShift, MC label -= fMCLabelShift More...
 
Int_t fNcentBins
 how many centrality bins More...
 
Bool_t fNeedEmcalGeom
 whether or not the task needs the emcal geometry More...
 
TObjArray fParticleCollArray
 particle/track collection array More...
 
TObjArray fClusterCollArray
 cluster collection array More...
 
ULong_t fTriggers
 list of fired triggers More...
 
EMCalTriggerMode_t fEMCalTriggerMode
 EMCal trigger selection mode. More...
 
Bool_t fUseNewCentralityEstimation
 Use new centrality estimation (for 2015 data) More...
 
Bool_t fGeneratePythiaInfoObject
 Generate Pythia info object. More...
 
Bool_t fUsePtHardBinScaling
 Use pt hard bin scaling in merging. More...
 
Bool_t fMCRejectFilter
 enable the filtering of events by tail rejection More...
 
Float_t fPtHardAndJetPtFactor
 Factor between ptHard and jet pT to reject/accept event. More...
 
Float_t fPtHardAndClusterPtFactor
 Factor between ptHard and cluster pT to reject/accept event. More...
 
Float_t fPtHardAndTrackPtFactor
 Factor between ptHard and track pT to reject/accept event. More...
 
Int_t fRunNumber
 !run number (triggering RunChanged() More...
 
AliAnalysisUtils * fAliAnalysisUtils
 !vertex selection (optional) More...
 
Bool_t fIsEsd
 !whether it's an ESD analysis More...
 
AliEMCALGeometry * fGeom
 !emcal geometry More...
 
TClonesArray * fTracks
 !tracks More...
 
TClonesArray * fCaloClusters
 !clusters More...
 
AliVCaloCells * fCaloCells
 !cells More...
 
AliVCaloTrigger * fCaloTriggers
 !calo triggers More...
 
TClonesArray * fTriggerPatchInfo
 !trigger patch info array More...
 
Double_t fCent
 !event centrality More...
 
Int_t fCentBin
 !event centrality bin More...
 
Double_t fEPV0
 !event plane V0 More...
 
Double_t fEPV0A
 !event plane V0A More...
 
Double_t fEPV0C
 !event plane V0C More...
 
Double_t fVertex [3]
 !event vertex More...
 
Double_t fVertexSPD [3]
 !event Svertex More...
 
Int_t fNVertCont
 !event vertex number of contributors More...
 
Int_t fNVertSPDCont
 !event SPD vertex number of contributors More...
 
BeamType fBeamType
 !event beam type More...
 
AliGenPythiaEventHeader * fPythiaHeader
 !event Pythia header More...
 
Double_t fPtHard
 !event pt hard More...
 
Int_t fPtHardBin
 !event pt hard bin More...
 
Int_t fNTrials
 !event trials More...
 
Float_t fXsection
 !x-section from pythia header More...
 
AliEmcalPythiaInfofPythiaInfo
 !event parton info More...
 
AliEmcalListfOutput
 !output list More...
 
TH1fHistEventCount
 !incoming and selected events More...
 
TH1fHistTrialsAfterSel
 !total number of trials per pt hard bin after selection More...
 
TH1fHistEventsAfterSel
 !total number of events per pt hard bin after selection More...
 
TProfile * fHistXsectionAfterSel
 !x section from pythia header More...
 
TH1fHistTrials
 !trials from pyxsec.root More...
 
TH1fHistEvents
 !total number of events per pt hard bin More...
 
TProfile * fHistXsection
 !x section from pyxsec.root More...
 
TH1fHistPtHard
 !pt hard distribution More...
 
TH1fHistCentrality
 !event centrality distribution More...
 
TH1fHistZVertex
 !z vertex position More...
 
TH1fHistEventPlane
 !event plane distribution More...
 
TH1fHistEventRejection
 !book keep reasons for rejecting event More...
 
TH1fHistTriggerClasses
 !number of events in each trigger class More...
 

Static Protected Attributes

static const Int_t fgkConstIndexShift = 100000
 fastjet wrapper More...
 
- Static Protected Attributes inherited from AliAnalysisTaskEmcal
static Double_t fgkEMCalDCalPhiDivide = 4.
 phi value used to distinguish between DCal and EMCal More...
 

Private Member Functions

 AliEmcalJetTask (const AliEmcalJetTask &)
 contituent index shift More...
 
AliEmcalJetTaskoperator= (const AliEmcalJetTask &)
 

Additional Inherited Members

- Static Protected Member Functions inherited from AliAnalysisTaskEmcal
static void GetEtaPhiDiff (const AliVTrack *t, const AliVCluster *v, Double_t &phidiff, Double_t &etadiff)
 
static Byte_t GetTrackType (const AliVTrack *t)
 
static Byte_t GetTrackType (const AliAODTrack *aodTrack, UInt_t filterBit1, UInt_t filterBit2)
 
static Double_t DeltaPhi (Double_t phia, Double_t phib, Double_t rMin=-TMath::Pi()/2, Double_t rMax=3 *TMath::Pi()/2)
 
static Double_tGenerateFixedBinArray (Int_t n, Double_t min, Double_t max)
 
static void GenerateFixedBinArray (Int_t n, Double_t min, Double_t max, Double_t *array)
 
static Double_t GetParallelFraction (AliVParticle *part1, AliVParticle *part2)
 
static Double_t GetParallelFraction (const TVector3 &vect1, AliVParticle *part2)
 

Detailed Description

General jet finder task implementing a wrapper for FastJet.

Author
Constantin Lozides cloiz.nosp@m.ides.nosp@m.@lbl..nosp@m.gov, Lawrence Berkeley National Laboratory
Marta Verweij
Salvatore Aiola salva.nosp@m.tore.nosp@m..aiol.nosp@m.a@ce.nosp@m.rn.ch, Yale University

This class implements a wrapper for the FastJet jet finder. It allows to set a jet definition (jet algorithm, recombination scheme) and the list of jet constituents. Jet constituents are provided via multiple instances of AliParticleContainer and AliClusterContainer. These classes are delegated for applying cuts and filtering constituents that are then fed to the jet finder. This task will further filter constituents based on whether the jet was defined as being charged, neutral or full. The jet finding is delegated to the class AliFJWrapper which implements an interface to FastJet.

The FastJet contrib utilities are available via the AliEmcalJetUtility base class and its derived classes. Utilities can be added via the AddUtility(AliEmcalJetUtility*) method. All the utilities added in the list will be executed. Users can implement new utilities deriving a new class from AliEmcalJetUtility to interface functionalities of the FastJet contribs.

Definition at line 45 of file AliEmcalJetTask.h.

Member Typedef Documentation

typedef fastjet::JetAlgorithm AliEmcalJetTask::FJJetAlgo

Definition at line 53 of file AliEmcalJetTask.h.

typedef fastjet::RecombinationScheme AliEmcalJetTask::FJRecoScheme

Definition at line 54 of file AliEmcalJetTask.h.

Constructor & Destructor Documentation

AliEmcalJetTask::AliEmcalJetTask ( )

Default constructor. This constructor is only for ROOT I/O and not to be used by users.

Definition at line 51 of file AliEmcalJetTask.cxx.

AliEmcalJetTask::AliEmcalJetTask ( const char *  name)

Standard named constructor.

Parameters
nameName of the task.

Definition at line 83 of file AliEmcalJetTask.cxx.

AliEmcalJetTask::~AliEmcalJetTask ( )
virtual

Destructor

Definition at line 114 of file AliEmcalJetTask.cxx.

AliEmcalJetTask::AliEmcalJetTask ( const AliEmcalJetTask )
private

contituent index shift

Member Function Documentation

AliEmcalJetUtility * AliEmcalJetTask::AddUtility ( AliEmcalJetUtility utility)

Add a utility to the utility list. Utilities are instances of classes derived from AliEmcalJetUtility that implements wrappers to FastJet contribs.

Definition at line 122 of file AliEmcalJetTask.cxx.

fastjet::JetAlgorithm AliEmcalJetTask::ConvertToFJAlgo ( EJetAlgo_t  algo)
static

Converts the internal enum values representing jet algorithms in the corresponding values accepted by the FastJet wrapper.

Parameters
algoAlgorithm represented in the EJetAlgo_t enum
Returns
Algortithm represented in the fastjet::JetAlgorithm enum

Definition at line 715 of file AliEmcalJetTask.cxx.

Referenced by ExecOnce(), AliAnalysisTaskDmesonJets::AnalysisEngine::FindJet(), AliAnalysisTaskDmesonJets::AnalysisEngine::FindJets(), and AliAnalysisTaskDmesonJets::AnalysisEngine::RunParticleLevelAnalysis().

fastjet::RecombinationScheme AliEmcalJetTask::ConvertToFJRecoScheme ( ERecoScheme_t  reco)
static

Converts the internal enum values representing jet recombination schemes in the corresponding values accepted by the FastJet wrapper.

Parameters
recoRecombination scheme represented in the EJetAlgo_t enum
Returns
Recombination scheme represented in the fastjet::JetAlgorithm enum

Definition at line 747 of file AliEmcalJetTask.cxx.

Referenced by ExecOnce(), AliAnalysisTaskDmesonJets::AnalysisEngine::FindJet(), AliAnalysisTaskDmesonJets::AnalysisEngine::FindJets(), and AliAnalysisTaskDmesonJets::AnalysisEngine::RunParticleLevelAnalysis().

void AliEmcalJetTask::ExecOnce ( )
protectedvirtual

This method is called once before analzying the first event. It generates the output jet branch name, initializes the FastJet wrapper and the utilities (FJ contribs).

Reimplemented from AliAnalysisTaskEmcal.

Definition at line 347 of file AliEmcalJetTask.cxx.

void AliEmcalJetTask::ExecuteUtilities ( AliEmcalJet jet,
Int_t  ij 
)
protected

This method is called in the event loop for each jet found, while filling the output jet branch. It executes the ProcessJet() method of all utilities (if any).

Definition at line 162 of file AliEmcalJetTask.cxx.

Referenced by FillJetBranch().

void AliEmcalJetTask::FillJetBranch ( )
protected

This method fills the jet output branch (TClonesArray) with the jet found by the FastJet wrapper. Before filling the jet branch, the utilities are prepared. Then the utilities are called for each jet and finally after jet finding the terminate method of all utilities is called.

Definition at line 266 of file AliEmcalJetTask.cxx.

Referenced by Run().

void AliEmcalJetTask::FillJetConstituents ( AliEmcalJet jet,
std::vector< fastjet::PseudoJet > &  constituents,
std::vector< fastjet::PseudoJet > &  constituents_unsub,
Int_t  flag = 0,
TClonesArray *  particles_sub = 0 
)

This method is called for each jet. It loops over the jet constituents and adds them to the jet object.

Parameters
jetPointer to the AliEmcalJet object where the jet constituents will be added
constituentsList of the jet constituents returned by the FastJet wrapper
constituents_unsubList of jet constituents before background subtraction
flagIf kTRUE it means that the argument "constituents" is a list of subtracted constituents
particles_subArray containing subtracted constituents

Definition at line 395 of file AliEmcalJetTask.cxx.

Referenced by FillJetBranch(), and AliEmcalJetUtilityConstSubtractor::Terminate().

UInt_t AliEmcalJetTask::FindJetAcceptanceType ( Double_t  eta,
Double_t  phi,
Double_t  r 
)

Finds which geometrical acceptance types the jet satisfies.

Returns
bitwise jet acceptance type

Definition at line 784 of file AliEmcalJetTask.cxx.

Referenced by FillJetBranch(), and AliEmcalJetUtilityConstSubtractor::Terminate().

Int_t AliEmcalJetTask::FindJets ( )
protected

This method steers the jet finding. It first loops over all particle and cluster containers that were provided when the task was initialized. All accepted objects (tracks, particle, clusters) are added as input vectors to the FastJet wrapper. Then the jet finding is launched in the wrapper.

Returns
Total number of jets found.

Definition at line 205 of file AliEmcalJetTask.cxx.

Referenced by Run().

Double_t AliEmcalJetTask::GetGhostArea ( )
inline

Definition at line 86 of file AliEmcalJetTask.h.

Int_t AliEmcalJetTask::GetIndexSub ( Double_t  phi_sub,
std::vector< fastjet::PseudoJet > &  constituents_unsub 
)

Search for the index of the unsubtracted constituents by comparing the azimuthal angles

Parameters
phi_subAzimuthal angle of the subtracted constituent
constituents_unsubVector containing the list of unsubtracted constituents
Returns
Index of the subtracted constituent

Definition at line 579 of file AliEmcalJetTask.cxx.

Referenced by FillJetConstituents().

UInt_t AliEmcalJetTask::GetJetAlgo ( )
inline

Definition at line 93 of file AliEmcalJetTask.h.

Double_t AliEmcalJetTask::GetJetEtaMax ( )
inline

Definition at line 89 of file AliEmcalJetTask.h.

Double_t AliEmcalJetTask::GetJetEtaMin ( )
inline

Definition at line 88 of file AliEmcalJetTask.h.

Double_t AliEmcalJetTask::GetJetPhiMax ( )
inline

Definition at line 91 of file AliEmcalJetTask.h.

Double_t AliEmcalJetTask::GetJetPhiMin ( )
inline

Definition at line 90 of file AliEmcalJetTask.h.

TClonesArray* AliEmcalJetTask::GetJets ( )
inline

Definition at line 102 of file AliEmcalJetTask.h.

const char* AliEmcalJetTask::GetJetsName ( )
inline

Definition at line 87 of file AliEmcalJetTask.h.

UInt_t AliEmcalJetTask::GetJetType ( )
inline

Definition at line 92 of file AliEmcalJetTask.h.

Bool_t AliEmcalJetTask::GetLegacyMode ( )
inline

Definition at line 94 of file AliEmcalJetTask.h.

Double_t AliEmcalJetTask::GetMinJetArea ( )
inline

Definition at line 95 of file AliEmcalJetTask.h.

Double_t AliEmcalJetTask::GetMinJetPt ( )
inline

Definition at line 96 of file AliEmcalJetTask.h.

Int_t AliEmcalJetTask::GetMinMCLabel ( )
inline

Definition at line 97 of file AliEmcalJetTask.h.

Double_t AliEmcalJetTask::GetRadius ( )
inline
Int_t AliEmcalJetTask::GetRecombScheme ( )
inline

Definition at line 99 of file AliEmcalJetTask.h.

Bool_t AliEmcalJetTask::GetSortedArray ( Int_t  indexes[],
std::vector< fastjet::PseudoJet >  array 
) const
protected

Sorts jets by pT (decreasing)

Parameters
[out]indexesThis array is used to return the indexes of the jets ordered by pT
[in]arrayVector containing the list of jets obtained by the FastJet wrapper
Returns
kTRUE if at least one jet was found in array; kFALSE otherwise

Definition at line 325 of file AliEmcalJetTask.cxx.

Referenced by FillJetBranch().

Double_t AliEmcalJetTask::GetTrackEfficiency ( )
inline

Definition at line 100 of file AliEmcalJetTask.h.

TObjArray* AliEmcalJetTask::GetUtilities ( )
inline

Definition at line 103 of file AliEmcalJetTask.h.

void AliEmcalJetTask::InitUtilities ( )
protected

This method is called once before analyzing the first event. It executes the Init() method of all utilities (if any).

Definition at line 139 of file AliEmcalJetTask.cxx.

Referenced by ExecOnce().

Bool_t AliEmcalJetTask::IsJetInDcal ( Double_t  eta,
Double_t  phi,
Double_t  r 
)
protected

Returns whether or not jet with given eta, phi, R is in DCal.

Definition at line 841 of file AliEmcalJetTask.cxx.

Referenced by FindJetAcceptanceType().

Bool_t AliEmcalJetTask::IsJetInEmcal ( Double_t  eta,
Double_t  phi,
Double_t  r 
)
protected

Returns whether or not jet with given eta, phi, R is in EMCal.

Definition at line 820 of file AliEmcalJetTask.cxx.

Referenced by FindJetAcceptanceType().

Bool_t AliEmcalJetTask::IsLocked ( ) const

An instance of this class can be "locked". Once locked, it cannot be unlocked. If the instance is locked, attempting to change the configuration will throw a fatal and stop the execution of the program. This method checks whether the instance is locked and throw a fatal if it is locked.

Definition at line 603 of file AliEmcalJetTask.cxx.

Referenced by SetEtaRange(), SetFillGhost(), SetGhostArea(), SetJetAlgo(), SetJetEtaRange(), SetJetPhiRange(), SetJetsName(), SetJetType(), SetLegacyMode(), SetMinJetArea(), SetMinJetClusE(), SetMinJetClusPt(), SetMinJetPt(), SetMinJetTrackPt(), SetPhiRange(), SetRadius(), SetRecombScheme(), and SetTrackEfficiency().

AliEmcalJetTask& AliEmcalJetTask::operator= ( const AliEmcalJetTask )
private
void AliEmcalJetTask::PrepareUtilities ( )
protected

This method is called in the event loop after jet finding but before filling the output jet branch to prepare the utilities. It executes the Prepare() method of all utilities (if any).

Definition at line 151 of file AliEmcalJetTask.cxx.

Referenced by FillJetBranch().

Bool_t AliEmcalJetTask::Run ( )
virtual

This method is called for each event.

Returns
Always kTRUE

Reimplemented from AliAnalysisTaskEmcal.

Definition at line 184 of file AliEmcalJetTask.cxx.

void AliEmcalJetTask::SelectCollisionCandidates ( UInt_t  offlineTriggerMask = AliVEvent::kMB)

This overloads the method of AliAnalysisTaskSE to set the trigger bits. Since the output of this task is often a shared input of several consumer task the event selection is not allwed.

Parameters
offlineTriggerMaskTrigger bit mask

Definition at line 620 of file AliEmcalJetTask.cxx.

void AliEmcalJetTask::SetEtaRange ( Double_t  emi,
Double_t  ema 
)

Set the eta range of the track constituents.

Parameters
emiMinimum eta
emaMaximum eta

Definition at line 637 of file AliEmcalJetTask.cxx.

void AliEmcalJetTask::SetFillGhost ( Bool_t  b = kTRUE)
inline

Definition at line 75 of file AliEmcalJetTask.h.

void AliEmcalJetTask::SetGhostArea ( Double_t  gharea)
inline

Definition at line 63 of file AliEmcalJetTask.h.

void AliEmcalJetTask::SetJetAlgo ( EJetAlgo_t  a)
inline

Definition at line 67 of file AliEmcalJetTask.h.

void AliEmcalJetTask::SetJetEtaRange ( Double_t  emi,
Double_t  ema 
)
inline

Definition at line 65 of file AliEmcalJetTask.h.

void AliEmcalJetTask::SetJetPhiRange ( Double_t  pmi,
Double_t  pma 
)
inline

Definition at line 66 of file AliEmcalJetTask.h.

void AliEmcalJetTask::SetJetsName ( const char *  n)
inline

Definition at line 64 of file AliEmcalJetTask.h.

void AliEmcalJetTask::SetJetType ( EJetType_t  t)
inline

Definition at line 68 of file AliEmcalJetTask.h.

void AliEmcalJetTask::SetLegacyMode ( Bool_t  mode)
inline

Definition at line 74 of file AliEmcalJetTask.h.

void AliEmcalJetTask::SetLocked ( )
inline

Definition at line 69 of file AliEmcalJetTask.h.

void AliEmcalJetTask::SetMinJetArea ( Double_t  a)
inline

Definition at line 70 of file AliEmcalJetTask.h.

void AliEmcalJetTask::SetMinJetClusE ( Double_t  min)

Set the minimum energy of the cluster constituents.

Parameters
minMinimum energy

Definition at line 667 of file AliEmcalJetTask.cxx.

void AliEmcalJetTask::SetMinJetClusPt ( Double_t  min)

Set the minimum pT of the cluster constituents.

Parameters
minMinimum pT

Definition at line 652 of file AliEmcalJetTask.cxx.

void AliEmcalJetTask::SetMinJetPt ( Double_t  j)
inline

Definition at line 71 of file AliEmcalJetTask.h.

void AliEmcalJetTask::SetMinJetTrackPt ( Double_t  min)

Set the minimum pT of the track constituents.

Parameters
minMinimum pT

Definition at line 682 of file AliEmcalJetTask.cxx.

void AliEmcalJetTask::SetPhiRange ( Double_t  pmi,
Double_t  pma 
)

Set the phi range of the track constituents.

Parameters
pmiMinimum phi
pmaMaximum phi

Definition at line 698 of file AliEmcalJetTask.cxx.

void AliEmcalJetTask::SetRadius ( Double_t  r)
inline

Definition at line 76 of file AliEmcalJetTask.h.

void AliEmcalJetTask::SetRecombScheme ( ERecoScheme_t  scheme)
inline

Definition at line 72 of file AliEmcalJetTask.h.

void AliEmcalJetTask::SetTrackEfficiency ( Double_t  t)
inline

Definition at line 73 of file AliEmcalJetTask.h.

void AliEmcalJetTask::SetType ( Int_t  t)
void AliEmcalJetTask::TerminateUtilities ( )
protected

This method is called in the event loop after jet finding has been completed. It executes the Terminate() method of all utilities (if any).

Definition at line 173 of file AliEmcalJetTask.cxx.

Referenced by FillJetBranch().

Member Data Documentation

AliFJWrapper AliEmcalJetTask::fFastJetWrapper
protected

jet collection

Definition at line 159 of file AliEmcalJetTask.h.

Referenced by ExecOnce(), ExecuteUtilities(), FillJetBranch(), FindJets(), PrepareUtilities(), and TerminateUtilities().

Bool_t AliEmcalJetTask::fFillGhost
protected

=true to enable FJ 2.x behavior

Definition at line 156 of file AliEmcalJetTask.h.

Referenced by FillJetConstituents(), and SetFillGhost().

Double_t AliEmcalJetTask::fGhostArea
protected

Definition at line 146 of file AliEmcalJetTask.h.

Referenced by ExecOnce(), GetGhostArea(), and SetGhostArea().

const Int_t AliEmcalJetTask::fgkConstIndexShift = 100000
staticprotected

fastjet wrapper

Definition at line 161 of file AliEmcalJetTask.h.

Referenced by FillJetConstituents(), and FindJets().

Bool_t AliEmcalJetTask::fIsEmcPart
protected

=true if physics selection was set

Definition at line 154 of file AliEmcalJetTask.h.

Bool_t AliEmcalJetTask::fIsInit
protected

name of jet collection

Definition at line 152 of file AliEmcalJetTask.h.

Bool_t AliEmcalJetTask::fIsPSelSet
protected

=true if already initialized

Definition at line 153 of file AliEmcalJetTask.h.

Referenced by SelectCollisionCandidates().

EJetAlgo_t AliEmcalJetTask::fJetAlgo
protected

Definition at line 137 of file AliEmcalJetTask.h.

Referenced by ExecOnce(), GetJetAlgo(), and SetJetAlgo().

Double_t AliEmcalJetTask::fJetEtaMax
protected

Definition at line 145 of file AliEmcalJetTask.h.

Referenced by FillJetBranch(), GetJetEtaMax(), and SetJetEtaRange().

Double_t AliEmcalJetTask::fJetEtaMin
protected

Definition at line 144 of file AliEmcalJetTask.h.

Referenced by FillJetBranch(), GetJetEtaMin(), and SetJetEtaRange().

Double_t AliEmcalJetTask::fJetPhiMax
protected

Definition at line 143 of file AliEmcalJetTask.h.

Referenced by FillJetBranch(), GetJetPhiMax(), and SetJetPhiRange().

Double_t AliEmcalJetTask::fJetPhiMin
protected

Definition at line 142 of file AliEmcalJetTask.h.

Referenced by FillJetBranch(), GetJetPhiMin(), and SetJetPhiRange().

TClonesArray* AliEmcalJetTask::fJets
protected

=true ghost particles will be filled in AliEmcalJet obj

Definition at line 158 of file AliEmcalJetTask.h.

Referenced by ExecOnce(), GetJets(), and Run().

TString AliEmcalJetTask::fJetsName
protected

Definition at line 151 of file AliEmcalJetTask.h.

Referenced by ExecOnce(), and GetJetsName().

TString AliEmcalJetTask::fJetsTag
protected

Definition at line 134 of file AliEmcalJetTask.h.

Referenced by ExecOnce(), and SetJetsName().

EJetType_t AliEmcalJetTask::fJetType
protected

Definition at line 136 of file AliEmcalJetTask.h.

Referenced by ExecOnce(), FindJets(), GetJetType(), and SetJetType().

Bool_t AliEmcalJetTask::fLegacyMode
protected

=true if emcal particles are given as input (for clusters)

Definition at line 155 of file AliEmcalJetTask.h.

Referenced by ExecOnce(), GetLegacyMode(), and SetLegacyMode().

Bool_t AliEmcalJetTask::fLocked
protected

Definition at line 149 of file AliEmcalJetTask.h.

Referenced by IsLocked(), and SetLocked().

Double_t AliEmcalJetTask::fMinJetArea
protected

Definition at line 140 of file AliEmcalJetTask.h.

Referenced by FillJetBranch(), GetMinJetArea(), and SetMinJetArea().

Double_t AliEmcalJetTask::fMinJetPt
protected

Definition at line 141 of file AliEmcalJetTask.h.

Referenced by FillJetBranch(), GetMinJetPt(), and SetMinJetPt().

Double_t AliEmcalJetTask::fRadius
protected

Definition at line 139 of file AliEmcalJetTask.h.

Referenced by ExecOnce(), FillJetBranch(), GetRadius(), and SetRadius().

ERecoScheme_t AliEmcalJetTask::fRecombScheme
protected

Definition at line 138 of file AliEmcalJetTask.h.

Referenced by ExecOnce(), GetRecombScheme(), and SetRecombScheme().

Double_t AliEmcalJetTask::fTrackEfficiency
protected

Definition at line 147 of file AliEmcalJetTask.h.

Referenced by ExecOnce(), FindJets(), GetTrackEfficiency(), and SetTrackEfficiency().

TObjArray* AliEmcalJetTask::fUtilities
protected

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