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)
Int_t GetOnlineTriggerThresholdByIndex(AliEmcalTriggerOfflineSelection::EmcalTriggerClass trg) const
virtual void CreateUserHistos()=0
Bool_t fRejectNoiseEvents
Reject events triggered by noisy fastors.
THistManager * fHistos
Task Histogram container.
Base task in the EMCAL framework.
void SetOnlineTriggerThreshold(const TString &triggerclass, Int_t threshold)
Double_t GetTriggerWeight(const TString &triggerclass) const
TString GetFiredTriggerClassesFromPatches(const TClonesArray *triggerpatches) const
AliAnalysisTaskEmcalTriggerBase()
AliEmcalTriggerOfflineSelection * fTriggerSelection
Offline trigger selection.
AliAnalysisTaskEmcalTriggerBase & operator=(const AliAnalysisTaskEmcalTriggerBase &)
void SetDownscaleOADB(TString oadbname)
Helper class selecting events on the presence of a trigger patch for the given type above threshold...
virtual void UserCreateOutputObjects()
TObjArray fOnlineTriggerThresholds
Trigger thresholds applied at online level.
void SetOfflineTriggerSelection(AliEmcalTriggerOfflineSelection *sel)
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 SelectOnlineTrigger(AliEmcalTriggerOfflineSelection::EmcalTriggerClass trigger) const
Base class for analyses using EMCAL triggers.
EmcalTriggerClass
Definition of the various supported trigger types.
Int_t GetOnlineTriggerThresholdByName(const TString &name) const
TString fNameDownscaleOADB
Name of the downscale OADB container.
void UseTriggerPatches(Bool_t doUse)
virtual ~AliAnalysisTaskEmcalTriggerBase()
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.
Bool_t fTriggerStringFromPatches
Do rebuild the trigger string from trigger patches.
void SetSelectNoiseEvents(Bool_t doSelect=true)
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)
Container class for histograms for the high- charged particle analysis.
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 SetMaskedFastorOADB(TString oadbname)
void SetVertexCut(double zmin, double zmax)
virtual void UserFillHistosAfterEventSelection()
virtual void CreateUserObjects()=0