AliPhysics  05c4c93 (05c4c93)
AliEmcalTriggerMakerTask Class Reference

EMCAL trigger maker task. More...

#include <AliEmcalTriggerMakerTask.h>

Inheritance diagram for AliEmcalTriggerMakerTask:

Public Types

enum  TriggerMakerBitConfig_t { kOldConfig = 0, kNewConfig = 1 }
 
enum  Exception_t { kInvalidChannelException = 1 }
 Definition of various exception codes used in the trigger maker. More...
 
- Public Types inherited from AliAnalysisTaskEmcal
enum  EDataType_t { kUnknownDataType, kESD, kAOD }
 Switch for the data type. More...
 
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

 AliEmcalTriggerMakerTask ()
 Dummy constructor. More...
 
 AliEmcalTriggerMakerTask (const char *name, Bool_t doQA=kFALSE)
 Main constructor. More...
 
virtual ~AliEmcalTriggerMakerTask ()
 Destructor. More...
 
virtual void UserCreateOutputObjects ()
 Initializing output objects. More...
 
virtual void ExecOnce ()
 Initialize the trigger maker kernel. More...
 
virtual Bool_t Run ()
 Run trigger patch finding. More...
 
void SetL0TimeRange (Int_t min, Int_t max)
 Set range for L0 time. More...
 
void SetCaloTriggersOutName (const char *name)
 Set the name of the output container. More...
 
void SetV0InName (const char *name)
 Set the name of the V0 input object. More...
 
void SetMaskedFEEChannelOADBContainer (const TString &name)
 Set the name of the OADB container providing a list of absolute IDs of FEE channels to be masked (TObjArray of TParameter<int>) More...
 
void SetUseTriggerBitConfig (TriggerMakerBitConfig_t bitConfig)
 Trigger bit configuration to be used in the trigger patch maker. More...
 
void SetLoadFastORMaskingFromOCDB (Bool_t doLoad=kTRUE)
 Defining whether to use the FastOR masking from the OCDB. More...
 
void SetMaskedFastorOADBContainer (const TString &name)
 Specify nane of the OADB container with masked FastOR absolute IDs. More...
 
void SetApplyTRUMaskingToFEE (Bool_t doApply=kTRUE)
 Apply online bad channels (FastOR masking) to offline FEE energies. More...
 
void SetTriggerThresholdJetLow (Int_t a, Int_t b, Int_t c)
 
void SetTriggerThresholdJetHigh (Int_t a, Int_t b, Int_t c)
 
void SetTriggerThresholdGammaLow (Int_t a, Int_t b, Int_t c)
 
void SetTriggerThresholdGammaHigh (Int_t a, Int_t b, Int_t c)
 
AliEmcalTriggerMakerKernelGetTriggerMaker () const
 Getter providing external access to the trigger maker kernel. More...
 
void SetUseL0Amplitudes (Bool_t b)
 Switch whether to use L0 or L1 amplitudes in the patch finder. More...
 
- Public Member Functions inherited from AliAnalysisTaskEmcal
 AliAnalysisTaskEmcal ()
 Default constructor. More...
 
 AliAnalysisTaskEmcal (const char *name, Bool_t histo=kFALSE)
 Standard constructor. Should be used by the user. More...
 
virtual ~AliAnalysisTaskEmcal ()
 Destructor. More...
 
AliParticleContainerAddParticleContainer (const char *n)
 Create new particle container and attach it to the task. More...
 
AliTrackContainerAddTrackContainer (const char *n)
 Create new track container and attach it to the task. More...
 
AliMCParticleContainerAddMCParticleContainer (const char *n)
 Create new container for MC particles and attach it to the task. More...
 
AliClusterContainerAddClusterContainer (const char *n)
 Create new cluster container and attach it to the task. More...
 
void AdoptParticleContainer (AliParticleContainer *cont)
 
void AdoptTrackContainer (AliTrackContainer *cont)
 
void AdoptMCParticleContainer (AliMCParticleContainer *cont)
 
void AdoptClusterContainer (AliClusterContainer *cont)
 
AliParticleContainerGetParticleContainer (Int_t i=0) const
 Get \( i^{th} \) particle container attached to this task. More...
 
AliParticleContainerGetParticleContainer (const char *name) const
 Find particle container attached to this task according to its name. More...
 
AliClusterContainerGetClusterContainer (Int_t i=0) const
 Get \( i^{th} \) cluster container attached to this task. More...
 
AliClusterContainerGetClusterContainer (const char *name) const
 Find cluster container attached to this task according to its name. More...
 
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)
 Apply cut on \( p_{t} \) for all clusters in container with index c. More...
 
void SetClusTimeCut (Double_t min, Double_t max, Int_t c=0)
 Apply cut on cluster time for clusters in container with index c. More...
 
void SetEventPlaneVsEmcal (Double_t ep)
 
void SetForceBeamType (BeamType f)
 
void SetHistoBins (Int_t nbins, Double_t min, Double_t max)
 
void SetRecycleUnusedEmbeddedEventsMode (Bool_t b)
 
void SetIsEmbedded (Bool_t i)
 
void SetIsPythia (Bool_t i)
 
void SetIsHerwig (Bool_t i)
 
void SetMakeGeneralHistograms (Bool_t g)
 
void SetGetPtHardBinFromPath (Bool_t docheck)
 Switch on/off getting \( p_{t,hard}\) bin from the file path. More...
 
void SetNumberOfPtHardBins (Int_t nbins)
 Set the number of \( p_{t}\)-hard bins. More...
 
void SetUserPtHardBinning (const TArrayI &binning)
 Set a non-standard \( p_{t}\)-hard binning. More...
 
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 SetCountDownscaleCorrectedEvents (Bool_t d)
 
void SetOffTrigger (UInt_t t)
 
void SetTrackEtaLimits (Double_t min, Double_t max, Int_t c=0)
 Apply cut on the pseudorapidity \( \eta \) of the all tracks in the track container with index c. More...
 
void SetTrackPhiLimits (Double_t min, Double_t max, Int_t c=0)
 Apply cut on azimuthal angle \( \phi \) of the all tracks in the track container with index c. More...
 
void SetTrackPtCut (Double_t cut, Int_t c=0)
 Apply cut on the transverse momentum \( p_{t} \) of all tracks in the track container with index c. More...
 
void SetTrigClass (const char *n)
 
void SetMinBiasTriggerClassName (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 ()
 

Protected Member Functions

std::function< int(unsigned int, unsigned int)> GetMaskHandler () const
 
void FillQAHistos (const TString &patchtype, const AliEMCALTriggerPatchInfo &recpatch)
 Internal QA handler for trigger pathches of given type. More...
 
virtual void RunChanged (Int_t newrun)
 RunChanged method of the trigger maker. More...
 
void InitializeBadFEEChannels ()
 Initialize bad channels from the OADB container. More...
 
void InitializeFastORMaskingFromOCDB ()
 Initialize the FastOR masking from the OCDB. More...
 
void InitializeFastORMaskingFromOADB ()
 Initialize the FastOR masking from the OADB. More...
 
- Protected Member Functions inherited from AliAnalysisTaskEmcal
void LoadPythiaInfo (AliVEvent *event)
 Load parton info. More...
 
void SetRejectionReasonLabels (TAxis *axis)
 
Bool_t AcceptCluster (AliVCluster *clus, Int_t c=0) const
 Cluster selection. More...
 
Bool_t AcceptTrack (AliVParticle *track, Int_t c=0) const
 
void AddObjectToEvent (TObject *obj, Bool_t attempt=kFALSE)
 Add object to event. More...
 
AliVParticle * GetAcceptParticleFromArray (Int_t p, Int_t c=0) const
 Get particle p if accepted from container with index c If particle not accepted return 0. More...
 
AliVCluster * GetAcceptClusterFromArray (Int_t cl, Int_t c=0) const
 Get cluster cl if accepted from container c If particle not accepted return 0. More...
 
TClonesArray * GetArrayFromEvent (const char *name, const char *clname=0)
 Read a TClonesArray from event. More...
 
BeamType GetBeamType () const
 Get beam type. More...
 
TClonesArray * GetParticleArray (Int_t i=0) const
 Get \( i^{th} \) TClonesArray with particles. More...
 
TClonesArray * GetClusterArray (Int_t i=0) const
 Get \( i^{th} \) TClonesArray with EMCAL clusters. More...
 
Int_t GetNParticles (Int_t i=0) const
 Get number of particles in container attached to this task with index i. More...
 
Int_t GetNClusters (Int_t i=0) const
 Get number of clusters in the cluster container attached to this task with index i. More...
 
AliEMCALTriggerPatchInfo * GetMainTriggerPatch (TriggerCategory triggersel=kTriggerLevel1Jet, Bool_t doSimpleOffline=kFALSE)
 Get main trigger match. More...
 
Bool_t HasTriggerType (TriggerType triggersel)
 Check if event has a given trigger type. More...
 
ULong_t GetTriggerList ()
 Get list of selected triggers of the given event. More...
 
Bool_t PythiaInfoFromFile (const char *currFile, Float_t &fXsec, Float_t &fTrials, Int_t &pthard)
 Loading PYTHIA information from external cross section file into the task. More...
 
Bool_t IsTrackInEmcalAcceptance (AliVParticle *part, Double_t edges=0.9) const
 Determines if a track is inside the EMCal acceptance. More...
 
void GeneratePythiaInfoObject (AliMCEvent *mcEvent)
 Copy some information about the Pythia event in a PythaInfo object. More...
 
Bool_t CheckMCOutliers ()
 Filter the mc tails in pt-hard distributions. More...
 
void UserCreateOutputObjects ()
 Main initialization function on the worker. More...
 
void UserExec (Option_t *option)
 Event loop, called for each event. More...
 
Bool_t UserNotify ()
 Notifying the user that the input data file has changed and performing steps needed to be done. More...
 
Bool_t FileChanged ()
 Steps to be executed when a few file is loaded into the input handler. More...
 
virtual Bool_t FillGeneralHistograms ()
 Filling general histograms. More...
 
virtual Bool_t IsEventSelected ()
 Performing event selection. More...
 
virtual Bool_t RetrieveEventObjects ()
 Retrieve common objects from event. More...
 
virtual void UserExecOnce ()
 Task initializations handled in user tasks. More...
 
virtual void UserFileChanged ()
 Virtual method for user code to be executed when a file changed. More...
 
virtual Bool_t FillHistograms ()
 Function filling histograms. More...
 

Protected Attributes

AliEmcalTriggerMakerKernelfTriggerMaker
 The actual trigger maker kernel. More...
 
AliVVZERO * fV0
 ! VZERO data More...
 
TString fCaloTriggersOutName
 name of output track array More...
 
TString fV0InName
 name of output track array More...
 
TString fBadFEEChannelOADB
 name of the OADB container containing channels to be masked inside the trigger maker More...
 
TString fMaskedFastorOADB
 name of the OADB container containing fastors to be masked inside the trigger maker More...
 
Bool_t fUseL0Amplitudes
 Use L0 amplitudes instead of L1 time sum (useful for runs where STU was not read) More...
 
Bool_t fLoadFastORMaskingFromOCDB
 Load FastOR masking from the OCDB. More...
 
TClonesArray * fCaloTriggersOut
 ! trigger array out More...
 
Bool_t fDoQA
 Fill QA histograms. More...
 
THistManagerfQAHistos
 ! Histograms for QA 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 fLocalInitialized
 whether or not the task has been already initialized More...
 
Bool_t fFileChanged
 ! Signal triggered when the file has changed 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...
 
TString fMinBiasRefTrigger
 Name of the minmum bias reference trigger, used in the calculation of downscale-corrected event numbers. 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 fRecycleUnusedEmbeddedEventsMode
 Allows the recycling of embedded events which fail internal event selection. See the embedding helper. More...
 
Bool_t fIsEmbedded
 trigger, embedded signal More...
 
Bool_t fIsPythia
 trigger, if it is a PYTHIA production More...
 
Bool_t fIsHerwig
 trigger, if it is a HERWIG production More...
 
Bool_t fGetPtHardBinFromName
 Obtain pt-hard bin from file path. 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 \( p_{t}\)-hard bin scaling in merging. More...
 
Bool_t fUseXsecFromHeader
 ! Use cross section from header instead of pyxsec.root (purely transient) More...
 
Bool_t fMCRejectFilter
 enable the filtering of events by tail rejection More...
 
Bool_t fCountDownscaleCorrectedEvents
 Count event number corrected for downscaling. 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...
 
AliGenHerwigEventHeader * fHerwigHeader
 !event Herwig header More...
 
Float_t fPtHard
 !event \( p_{t}\)-hard More...
 
Int_t fPtHardBin
 !event \( p_{t}\)-hard bin More...
 
Int_t fPtHardBinGlobal
 !event \( p_{t}\)-hard bin, detected from filename More...
 
Bool_t fPtHardInitialized
 !flag whether the \( p_{t}\)-hard bin was initialized, purely for internal processing More...
 
Int_t fNPtHardBins
 Number of \( p_{t}\)-hard bins in the dataset. More...
 
TArrayI fPtHardBinning
 \( p_{t}\)-hard binning 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
 ! \( p_{t}\)-hard distribution More...
 
TH2fHistPtHardCorr
 !Correlation between \( p_{t}\)-hard value and bin More...
 
TH2fHistPtHardCorrGlobal
 !Correlation between \( p_{t}\)-hard value and global bin More...
 
TH2fHistPtHardBinCorr
 !Correlation between global and local (per-event) \( p_{t}\)-hard bin 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...
 
TH1fHistTriggerClassesCorr
 !corrected number of events in each trigger class More...
 

Private Member Functions

 AliEmcalTriggerMakerTask (const AliEmcalTriggerMakerTask &)
 
AliEmcalTriggerMakerTaskoperator= (const AliEmcalTriggerMakerTask &)
 

Additional Inherited Members

- Static Public Member Functions inherited from AliAnalysisTaskEmcal
static AliAODInputHandler * AddAODHandler ()
 Add an AOD handler to the analysis manager. More...
 
static AliESDInputHandler * AddESDHandler ()
 Add a ESD handler to the analysis manager. More...
 
- Static Protected Member Functions inherited from AliAnalysisTaskEmcal
static void GetEtaPhiDiff (const AliVTrack *t, const AliVCluster *v, Double_t &phidiff, Double_t &etadiff)
 Calculate \(\phi\) and \(\eta\) difference between a track (t) and a cluster (c). More...
 
static Byte_t GetTrackType (const AliVTrack *t)
 Get track type encoded from bits 20 and 21. More...
 
static Byte_t GetTrackType (const AliAODTrack *aodTrack, UInt_t filterBit1, UInt_t filterBit2)
 Decode track type. More...
 
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)
 Calculates the fraction of momentum z of part 1 w.r.t. part 2 in the direction of part 2. More...
 
static Double_t GetParallelFraction (const TVector3 &vect1, AliVParticle *part2)
 Calculates the fraction of momentum z of vect 1 w.r.t. part 2 in the direction of part 2. More...
 
- Static Protected Attributes inherited from AliAnalysisTaskEmcal
static Double_t fgkEMCalDCalPhiDivide = 4.
 phi value used to distinguish between DCal and EMCal More...
 

Detailed Description

EMCAL trigger maker task.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Lawrence Berkeley National Laboratory
Salvatore Aiola, Yale University
Since
Oct. 22nd, 2015

The EMCAL trigger maker task steers the process building trigger patches, performed via the trigger maker kernel, and provides the interface to the user. As this, it forwards necessary data like FASTor amplitudes and time sums as well as cell data to the trigger maker kernel and reads out the patches. The patches as type of raw patches are converted into full patches (AliEMCALTriggerPatchInfo) and stored in a TClonesArray which is added to the input event. On user request it can also fill QA histograms which are added to the common root file.

Definition at line 37 of file AliEmcalTriggerMakerTask.h.

Member Enumeration Documentation

Definition of various exception codes used in the trigger maker.

Collection of all possible error codes issued in the trigger maker task class.

Enumerator
kInvalidChannelException 

kInvalidChannelException

Definition at line 59 of file AliEmcalTriggerMakerTask.h.

Enumerator
kOldConfig 

Old configuration, no distinction between high and low threshold.

kNewConfig 

New configuration, distinction between high and low threshold.

Definition at line 47 of file AliEmcalTriggerMakerTask.h.

Constructor & Destructor Documentation

AliEmcalTriggerMakerTask::AliEmcalTriggerMakerTask ( )

Dummy constructor.

Definition at line 50 of file AliEmcalTriggerMakerTask.cxx.

AliEmcalTriggerMakerTask::AliEmcalTriggerMakerTask ( const char *  name,
Bool_t  doQA = kFALSE 
)

Main constructor.

Initializing also AliAnalysisTaskEmcal and create the Kernel.

Parameters
nameName of the task
doQAIf true we switch on QA

Definition at line 67 of file AliEmcalTriggerMakerTask.cxx.

AliEmcalTriggerMakerTask::~AliEmcalTriggerMakerTask ( )
virtual

Destructor.

Definition at line 84 of file AliEmcalTriggerMakerTask.cxx.

AliEmcalTriggerMakerTask::AliEmcalTriggerMakerTask ( const AliEmcalTriggerMakerTask )
private

Member Function Documentation

void AliEmcalTriggerMakerTask::ExecOnce ( )
virtual

Initialize the trigger maker kernel.

Initializations performed:

  • auto-configure patch finder (if not configured from outside)
  • connect output container (TClonesArray) for reconstructed trigger patches

This function is called for the first event in order to obtain the run number from it. Also initializes AliAnalysisTaskEmcal.

Reimplemented from AliAnalysisTaskEmcal.

Definition at line 182 of file AliEmcalTriggerMakerTask.cxx.

void AliEmcalTriggerMakerTask::FillQAHistos ( const TString patchtype,
const AliEMCALTriggerPatchInfo &  recpatch 
)
protected

Internal QA handler for trigger pathches of given type.

Filling basic QA histograms implemented in the trigger maker task for a given trigger patch which is of a certain patch type. Note that the patchtype provided here defines the histograms to be filled (a trigger patch can be of multiple types).

Parameters
[in]patchtypePatchtype of the histograms to be filled
[in]recpatchPatch to be monitored

Definition at line 436 of file AliEmcalTriggerMakerTask.cxx.

Referenced by Run(), and SetUseL0Amplitudes().

std::function< int(unsigned int, unsigned int)> AliEmcalTriggerMakerTask::GetMaskHandler ( ) const
protected

Closure producing a handler converting a set of mask / bit number into a channel ID. In case the mask / bit number is invalid the function will return -1

Returns
function that converts a set of mask / bit number into a channel ID

Definition at line 414 of file AliEmcalTriggerMakerTask.cxx.

Referenced by InitializeFastORMaskingFromOCDB(), and SetUseL0Amplitudes().

AliEmcalTriggerMakerKernel* AliEmcalTriggerMakerTask::GetTriggerMaker ( ) const
inline

Getter providing external access to the trigger maker kernel.

Attention: Settings can be overwritten. Use this function with care!

Returns
Trigger maker kernel

Definition at line 193 of file AliEmcalTriggerMakerTask.h.

void AliEmcalTriggerMakerTask::InitializeBadFEEChannels ( )
protected

Initialize bad channels from the OADB container.

Called by the RunChanged() method.

Definition at line 338 of file AliEmcalTriggerMakerTask.cxx.

Referenced by RunChanged(), and SetUseL0Amplitudes().

void AliEmcalTriggerMakerTask::InitializeFastORMaskingFromOADB ( )
protected

Initialize the FastOR masking from the OADB.

Definition at line 399 of file AliEmcalTriggerMakerTask.cxx.

Referenced by RunChanged(), and SetUseL0Amplitudes().

void AliEmcalTriggerMakerTask::InitializeFastORMaskingFromOCDB ( )
protected

Initialize the FastOR masking from the OCDB.

Definition at line 352 of file AliEmcalTriggerMakerTask.cxx.

Referenced by RunChanged(), and SetUseL0Amplitudes().

AliEmcalTriggerMakerTask& AliEmcalTriggerMakerTask::operator= ( const AliEmcalTriggerMakerTask )
private
Bool_t AliEmcalTriggerMakerTask::Run ( )
virtual

Run trigger patch finding.

As the patch finding is implemented in the class AliEmcalTriggerMakerKernel, the analysis task only takes care about propagating necessary information to the kernel (ADCs, cell energy, V0 amplitudes), steering the patch finder, and appending the output to the ESD event.

Returns
Always true.

Run the trigger maker Move patches found by the trigger maker to the output clones array Fill QA histograms if requested

Returns
True

Reimplemented from AliAnalysisTaskEmcal.

Definition at line 248 of file AliEmcalTriggerMakerTask.cxx.

void AliEmcalTriggerMakerTask::RunChanged ( Int_t  newrun)
protectedvirtual

RunChanged method of the trigger maker.

In case of a bad channel container provided, initialize bad channel map for the new run.

Parameters
[in]newrunNew run number

Reimplemented from AliAnalysisTaskEmcal.

Definition at line 321 of file AliEmcalTriggerMakerTask.cxx.

Referenced by SetUseL0Amplitudes().

void AliEmcalTriggerMakerTask::SetApplyTRUMaskingToFEE ( Bool_t  doApply = kTRUE)
inline

Apply online bad channels (FastOR masking) to offline FEE energies.

With this setting the same acceptance which was available online can be applied to offline patches. The masking is handled inside the trigger maker kernel.

Parameters
[in]doApplyIf true the online FastOR masking is applied to offline energies

Definition at line 170 of file AliEmcalTriggerMakerTask.h.

void AliEmcalTriggerMakerTask::SetCaloTriggersOutName ( const char *  name)
inline

Set the name of the output container.

Parameters
[in]nameName of the output container

Definition at line 126 of file AliEmcalTriggerMakerTask.h.

void AliEmcalTriggerMakerTask::SetL0TimeRange ( Int_t  min,
Int_t  max 
)
inline

Set range for L0 time.

Parameters
[in]minMinimum L0 time (default is 7)
[in]maxMaximum L0 time (default is 10)

Definition at line 119 of file AliEmcalTriggerMakerTask.h.

void AliEmcalTriggerMakerTask::SetLoadFastORMaskingFromOCDB ( Bool_t  doLoad = kTRUE)
inline

Defining whether to use the FastOR masking from the OCDB.

Attention: In case the option is set to true the CDBconnect task is required to run before the trigger maker task.

Parameters
[in]doLoadIf true the FastOR masking is obtained from the OCDB

Definition at line 155 of file AliEmcalTriggerMakerTask.h.

void AliEmcalTriggerMakerTask::SetMaskedFastorOADBContainer ( const TString name)
inline

Specify nane of the OADB container with masked FastOR absolute IDs.

Parameters
[in]nameName of the OADB container

Definition at line 161 of file AliEmcalTriggerMakerTask.h.

void AliEmcalTriggerMakerTask::SetMaskedFEEChannelOADBContainer ( const TString name)
inline

Set the name of the OADB container providing a list of absolute IDs of FEE channels to be masked (TObjArray of TParameter<int>)

Parameters
[in]nameName of the container providing masked channel abs IDs

Definition at line 139 of file AliEmcalTriggerMakerTask.h.

void AliEmcalTriggerMakerTask::SetTriggerThresholdGammaHigh ( Int_t  a,
Int_t  b,
Int_t  c 
)
inline

Definition at line 183 of file AliEmcalTriggerMakerTask.h.

void AliEmcalTriggerMakerTask::SetTriggerThresholdGammaLow ( Int_t  a,
Int_t  b,
Int_t  c 
)
inline

Definition at line 180 of file AliEmcalTriggerMakerTask.h.

void AliEmcalTriggerMakerTask::SetTriggerThresholdJetHigh ( Int_t  a,
Int_t  b,
Int_t  c 
)
inline

Definition at line 177 of file AliEmcalTriggerMakerTask.h.

void AliEmcalTriggerMakerTask::SetTriggerThresholdJetLow ( Int_t  a,
Int_t  b,
Int_t  c 
)
inline

Definition at line 174 of file AliEmcalTriggerMakerTask.h.

void AliEmcalTriggerMakerTask::SetUseL0Amplitudes ( Bool_t  b)
inline

Switch whether to use L0 or L1 amplitudes in the patch finder.

Parameters
[in]bIf true L0 amplitudes are used instead of L1 ADC counts

Definition at line 199 of file AliEmcalTriggerMakerTask.h.

void AliEmcalTriggerMakerTask::SetUseTriggerBitConfig ( TriggerMakerBitConfig_t  bitConfig)

Trigger bit configuration to be used in the trigger patch maker.

Parameters
[in]bitConfigType of the trigger bit config (old - 3 bit, new - 5 bit)

Definition at line 168 of file AliEmcalTriggerMakerTask.cxx.

Referenced by SetMaskedFEEChannelOADBContainer().

void AliEmcalTriggerMakerTask::SetV0InName ( const char *  name)
inline

Set the name of the V0 input object.

Parameters
[in]nameName of the V0 input object

Definition at line 132 of file AliEmcalTriggerMakerTask.h.

void AliEmcalTriggerMakerTask::UserCreateOutputObjects ( )
virtual

Initializing output objects.

Kernel is initialized in ExecOnce as geometry - which depends on the run number - is needed for this.

Initialize output objects

Definition at line 93 of file AliEmcalTriggerMakerTask.cxx.

Member Data Documentation

TString AliEmcalTriggerMakerTask::fBadFEEChannelOADB
protected

name of the OADB container containing channels to be masked inside the trigger maker

Definition at line 255 of file AliEmcalTriggerMakerTask.h.

Referenced by InitializeBadFEEChannels(), RunChanged(), and SetMaskedFEEChannelOADBContainer().

TClonesArray* AliEmcalTriggerMakerTask::fCaloTriggersOut
protected

! trigger array out

Definition at line 259 of file AliEmcalTriggerMakerTask.h.

Referenced by ExecOnce(), Run(), and ~AliEmcalTriggerMakerTask().

TString AliEmcalTriggerMakerTask::fCaloTriggersOutName
protected

name of output track array

Definition at line 253 of file AliEmcalTriggerMakerTask.h.

Referenced by ExecOnce(), and SetCaloTriggersOutName().

Bool_t AliEmcalTriggerMakerTask::fDoQA
protected

Fill QA histograms.

Definition at line 261 of file AliEmcalTriggerMakerTask.h.

Referenced by Run(), RunChanged(), and UserCreateOutputObjects().

Bool_t AliEmcalTriggerMakerTask::fLoadFastORMaskingFromOCDB
protected

Load FastOR masking from the OCDB.

Definition at line 258 of file AliEmcalTriggerMakerTask.h.

Referenced by RunChanged(), and SetLoadFastORMaskingFromOCDB().

TString AliEmcalTriggerMakerTask::fMaskedFastorOADB
protected

name of the OADB container containing fastors to be masked inside the trigger maker

Definition at line 256 of file AliEmcalTriggerMakerTask.h.

Referenced by InitializeFastORMaskingFromOADB(), RunChanged(), and SetMaskedFastorOADBContainer().

THistManager* AliEmcalTriggerMakerTask::fQAHistos
protected

! Histograms for QA

Definition at line 262 of file AliEmcalTriggerMakerTask.h.

Referenced by FillQAHistos(), Run(), RunChanged(), UserCreateOutputObjects(), and ~AliEmcalTriggerMakerTask().

Bool_t AliEmcalTriggerMakerTask::fUseL0Amplitudes
protected

Use L0 amplitudes instead of L1 time sum (useful for runs where STU was not read)

Definition at line 257 of file AliEmcalTriggerMakerTask.h.

Referenced by Run(), and SetUseL0Amplitudes().

AliVVZERO* AliEmcalTriggerMakerTask::fV0
protected

! VZERO data

Definition at line 251 of file AliEmcalTriggerMakerTask.h.

Referenced by ExecOnce(), and Run().

TString AliEmcalTriggerMakerTask::fV0InName
protected

name of output track array

Definition at line 254 of file AliEmcalTriggerMakerTask.h.

Referenced by ExecOnce(), and SetV0InName().


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