28 #include "AliEMCALTriggerPatchInfo.h"
36 AliEmcalTriggerSelectionCuts::AliEmcalTriggerSelectionCuts() :
38 fSelectionMethod(kADC),
39 fPatchType(kAnyPatch),
40 fAcceptanceType(kEMCALDCALAcceptance),
42 fUseSimpleOffline(kFALSE),
58 if(valfirst == valsecond)
return 0;
59 if(valfirst > valsecond)
return 1;
66 case kADC: energy =
static_cast<Double_t>(patch->GetADCAmp());
break;
67 case kEnergyRough: energy = patch->GetADCAmpGeVRough();
break;
70 default: energy = -1.;
103 default: selected =
false;
Class for the selection of trigger patches in the EMCAL triggered event selection.
Bool_t SelectPatchType(const AliEMCALTriggerPatchInfo *const patch) const
Select type of the patch according the definitions in the header file.
Bool_t SelectAcceptance(const AliEMCALTriggerPatchInfo *const patch) const
Select detector acceptance.
Bool_t fUseSimpleOffline
Request simple offline patches.
Bool_t IsSelected(const AliEMCALTriggerPatchInfo *const patch) const
Apply selection of the given trigger patch according to the selections described in the object...
Bool_t fUseRecalc
Request recalc patch.
Double_t GetCutPrimitive(const AliEMCALTriggerPatchInfo *const patch) const
Return (energy) measure we cut on, depending on the selection method specified.
SelectionMethod_t fSelectionMethod
Variable to cut on.
Int_t CompareTriggerPatches(const AliEMCALTriggerPatchInfo *first, const AliEMCALTriggerPatchInfo *second) const
Compare two patches according to the energy measure specified in the cut object.
AcceptanceType_t fAcceptanceType
Acceptance type (EMCAL or DCAL acceptance)
Double_t fThreshold
Threshold used.
PatchType_t fPatchType
Type of the patch to be selected.