1 #ifndef ALIANALYSISTASKEMCALTRIGGERBASE_H
2 #define ALIANALYSISTASKEMCALTRIGGERBASE_H
15 class AliOADBContainer;
17 namespace EMCalTriggerPtAnalysis {
std::vector< TString > fSelectedTriggers
! Triggers selected for given event
std::vector< TString > GetSupportedTriggers()
void SetExcludeNoiseEvents(Bool_t doExclude=true)
If true then noise events (events without recalc trigger patch above threshold) are excluded from the...
Int_t GetOnlineTriggerThresholdByIndex(AliEmcalTriggerOfflineSelection::EmcalTriggerClass trg) const
virtual void CreateUserHistos()=0
Bool_t fRejectNoiseEvents
Reject events triggered by noisy fastors.
void EnableT0Triggers(Bool_t doEnable)
THistManager * fHistos
Task Histogram container.
Bool_t fExclusiveMinBias
Only look at Min. Bias trigger.
Base task in the EMCAL framework.
void SetOnlineTriggerThreshold(const TString &triggerclass, Int_t threshold)
Setting trigger threshold for online trigger selection.
void EnableDCALTriggers(Bool_t doEnable)
Enable / Disable histograms for the DCAL triggers.
Double_t GetTriggerWeight(const TString &triggerclass) const
TString GetFiredTriggerClassesFromPatches(const TClonesArray *triggerpatches) const
AliAnalysisTaskEmcalTriggerBase()
Dummy I/O constructor.
AliEmcalTriggerOfflineSelection * fTriggerSelection
Offline trigger selection.
AliAnalysisTaskEmcalTriggerBase & operator=(const AliAnalysisTaskEmcalTriggerBase &)
void SetDownscaleOADB(TString oadbname)
Set the name of the OADB container with the downscale factors.
Helper class selecting events on the presence of a trigger patch for the given type above threshold...
virtual void UserCreateOutputObjects()
Steering of object creation.
void PrepareDownscaleFactorsFormOCDB()
Read the downscale factors from the OCDB.
void SetRequireBunchCrossing(Bool_t doRequire)
Defining whether to require bunch crossing events.
TObjArray fOnlineTriggerThresholds
Trigger thresholds applied at online level.
Bool_t fEnableDCALTriggers
Enable / Disable event selection for DCAL trigger classes.
void SetOfflineTriggerSelection(AliEmcalTriggerOfflineSelection *sel)
Set an offline trigger selection.
TObjArray * fDownscaleFactors
! Downscalfactors for given run
void SetLimits(t min, t max)
virtual void RunChanged(Int_t runnuber)
TString fNameMaskedFastorOADB
Name of the masked fastor OADB container.
Bool_t fRequireAnalysisUtils
Switch whether to require event selection in AliAnalysisUtils.
Bool_t fUseDownscaleCorrectionFormOCDB
Use downscale factors from OCDB.
bool SelectOnlineTrigger(AliEmcalTriggerOfflineSelection::EmcalTriggerClass trigger) const
void SetRequireL0ForL1(Bool_t doRequire=true)
Specify whether L0 is needed for L1.
Base class for analyses using EMCAL triggers.
Bool_t fRequireBunchCrossing
Require bunch-bunch events (tag -B- in trigger string)
AliEmcalTriggerOfflineSelection * GetOfflineTriggerSelection() const
Providing access to the offline trigger selection.
TString fNameClusterContainer
Name of the cluster container in the event.
EmcalTriggerClass
Definition of the various supported trigger types.
Bool_t fRequireL0forL1
Require L0 for L1.
Int_t GetOnlineTriggerThresholdByName(const TString &name) const
TString fNameDownscaleOADB
Name of the downscale OADB container.
void UseTriggerPatches(Bool_t doUse)
Specify whether the trigger decision should be done from trigger patches.
Bool_t fEnableT0Triggers
Enable triggers depending on T0 (INT8, EMC8, EMC8EGA, EMC8EJE)
virtual ~AliAnalysisTaskEmcalTriggerBase()
Destructor.
TString fNameAcceptanceOADB
Name of the OADB container with the trigger acceptance.
AliOADBContainer * fMaskedFastorOADB
! Container with masked fastors
bool OnlineThresholdsInitialized() const
Bool_t fSelectNoiseEvents
Explicitly select events triggered only by noisy fastors.
void SetUseTriggerBits(Bool_t doUse)
Defining whether to require trigger bits.
Bool_t fUseTriggerBits
Switch whether using trigger bits (relies on physics selection)
Bool_t fTriggerStringFromPatches
Do rebuild the trigger string from trigger patches.
void SetSelectNoiseEvents(Bool_t doSelect=true)
If true then noise events (events without recalc trigger patch above threshold) are explicitly select...
void SetExclusiveMinBias(Bool_t exclusivemb)
Run event loop only on min. bias events.
void SetApplyDownscaleCorrectionFromOCDB(Bool_t doApply)
Load the downscale factors run-by-run from the OCDB.
void SetClusterContainer(TString clustercontname)
virtual bool IsUserEventSelected()
std::vector< int > fMaskedFastors
List of masked fastors.
AliOADBContainer * fDownscaleOADB
! Container with downscale factors for different triggers
virtual bool IsEventSelected()
void AddMaskedFastor(int fastorID)
Add absolute ID of a FastOR to be masked (excluded from trigger patches)
Container class for histograms.
virtual void UserFillHistosBeforeEventSelection()
void SetTriggerAcceptanceOADB(const TString &nameAcceptanceOADB)
AliCutValueRange< double > fVertexCut
Cut on the z-position of the primary vertex.
Bool_t SelectFiredPatch(const TString &triggerclass, Int_t adc) const
void SetRequireAnalysisUtils(Bool_t doRequire)
Define whether cuts in AliAnalysisUtils are used in the event selection.
void SetMaskedFastorOADB(TString oadbname)
Set the name of the file with the OADB container containing the masked FastORs.
void SetVertexCut(double zmin, double zmax)
Set z-range of the primary vertex which is selected.
virtual void UserFillHistosAfterEventSelection()
virtual void CreateUserObjects()=0