27 #ifndef __ALIANALYSISTASKMEMCALRECALCPATCHESREF_H__ 28 #define __ALIANALYSISTASKMEMCALRECALCPATCHESREF_H__ 34 class AliEMCALTriggerPatchInfo;
90 bool HasOverlap(
const AliEMCALTriggerPatchInfo &ref,
const AliEMCALTriggerPatchInfo &
test)
const;
91 bool InRange(
int test,
int includemin,
int includemax)
const {
return test >= includemin && test <= includemax; }
Bool_t fSwapPatches
Look explicitly for the wrong patches.
void SetOnlineThreshold(ETriggerThreshold_t trigger, Int_t value)
bool HasOverlap(const AliEMCALTriggerPatchInfo &ref, const AliEMCALTriggerPatchInfo &test) const
virtual ~AliAnalysisTaskEmcalRecalcPatchesRef()
void AddRequiredTriggerOverlap(const char *trigger)
void SetCentralityRange(double min, double max)
Set centrality selection.
AliAnalysisTaskEmcalRecalcPatchesRef()
virtual bool IsUserEventSelected()
TArrayI fOnlineThresholds
Online thresholds.
void SetLimits(t min, t max)
Double_t fEventCentrality
! Event centrality
AliCutValueRange< double > fCentralityRange
Range of accepted event centralities.
TObjArray fRequiredOverlaps
Add option to require overlap with certain triggers.
Base class for analyses using EMCAL triggers.
Bool_t fUseRecalcPatches
Switch between offline (FEE) and recalc (L1) patches.
static AliAnalysisTaskEmcalRecalcPatchesRef * AddTaskEmcalRecalcPatches(const char *suffix)
std::vector< const AliEMCALTriggerPatchInfo * > SelectFiredPatchesByTrigger(const TClonesArray &patches, ETriggerThreshold_t trigger) const
AliAnalysisTaskEmcalRecalcPatchesRef & operator=(const AliAnalysisTaskEmcalRecalcPatchesRef &)
bool InRange(int test, int includemin, int includemax) const
int GetNumberNonOverlappingPatchAreas(const std::vector< const AliEMCALTriggerPatchInfo * > &diredpatches) const
virtual void UserFillHistosAfterEventSelection()
virtual bool Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.
virtual void CreateUserHistos()
Bool_t fRequestCentrality
Switch for request of centrality selection.
void SetSwapPatches(Bool_t doSwap)
TObjArray fExcludedOverlaps
Add option to exclude overlap with certain triggers.
std::vector< std::string > GetAcceptedTriggerClusters(const char *triggerstring) const
Analysis of high- tracks in triggered events.
void test(int runnumber=195345)
void AddExcludedTriggerOverlap(const char *trigger)
std::vector< const AliEMCALTriggerPatchInfo * > SelectAllPatchesByType(const TClonesArray &patches, EPatchType_t patchtype) const
virtual void CreateUserObjects()
Bool_t fEnableSumw2
Enable sum of weights.
void SetEnableSumw2(Bool_t doEnable)