27 #ifndef __ALIANALYSISTASKMEMCALRECALCPATCHESREF_H__ 28 #define __ALIANALYSISTASKMEMCALRECALCPATCHESREF_H__ 34 class AliEMCALTriggerPatchInfo;
74 bool HasOverlap(
const AliEMCALTriggerPatchInfo &ref,
const AliEMCALTriggerPatchInfo &
test)
const;
75 bool InRange(
int test,
int includemin,
int includemax)
const {
return test >= includemin && test <= includemax; }
void SetOnlineThreshold(ETriggerThreshold_t trigger, Int_t value)
bool HasOverlap(const AliEMCALTriggerPatchInfo &ref, const AliEMCALTriggerPatchInfo &test) const
virtual ~AliAnalysisTaskEmcalRecalcPatchesRef()
AliAnalysisTaskEmcalRecalcPatchesRef()
TArrayI fOnlineThresholds
Online thresholds.
Base class for analyses using EMCAL triggers.
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()
std::vector< std::string > GetAcceptedTriggerClusters(const char *triggerstring) const
Analysis of high- tracks in triggered events.
void test(int runnumber=195345)
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)