AliPhysics  9fe175b (9fe175b)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalTriggerSelectionCuts.h
Go to the documentation of this file.
1 #ifndef ALIEMCALTRIGGERSELECTIONCUTS_H
2 #define ALIEMCALTRIGGERSELECTIONCUTS_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 // Author: Markus Fasel
7 
8 #include <TObject.h>
9 
10 class AliEMCALTriggerPatchInfo;
11 
12 class AliEmcalTriggerSelectionCuts: public TObject {
13 public:
15  kADC = 0,
18  };
19  enum PatchType_t {
20  kAnyPatch = 0,
23  kL0Patch = 3,
28  };
29 
32 
33  PatchType_t GetPatchType() const { return fPatchType; }
35  Double_t GetThreshold() const { return fThreshold; }
37 
38  void SetPatchType(PatchType_t patchType) { fPatchType = patchType; }
39  void SetSelectionMethod(SelectionMethod_t selectionMethod) { fSelectionMethod = selectionMethod; }
40  void SetThreshold(Double_t threshold) { fThreshold = threshold; }
41  void SetUseSimpleOfflinePatches(Bool_t doUse = kTRUE) { fUseSimpleOffline = doUse; }
42 
43  Bool_t IsSelected(const AliEMCALTriggerPatchInfo * const patch) const;
44  Int_t CompareTriggerPatches(const AliEMCALTriggerPatchInfo *first, const AliEMCALTriggerPatchInfo *second) const;
45 
46 protected:
47  Double_t GetCutPrimitive(const AliEMCALTriggerPatchInfo * const patch) const;
48  Bool_t SelectPatchType(const AliEMCALTriggerPatchInfo * const patch) const;
49 
50  SelectionMethod_t fSelectionMethod; // Variable to cut on
51  PatchType_t fPatchType; // Type of the patch to be selected
52  Double_t fThreshold; // Threshold used
53  Bool_t fUseSimpleOffline; // Request simple offline patches
54 
55  ClassDef(AliEmcalTriggerSelectionCuts, 1); // Cuts for the EMCAL Trigger selection
56 };
57 
58 #endif /* ALIEMCALTRIGGERSELECTIONCUTS_H */
Bool_t IsSelected(const AliEMCALTriggerPatchInfo *const patch) const
Int_t CompareTriggerPatches(const AliEMCALTriggerPatchInfo *first, const AliEMCALTriggerPatchInfo *second) const
ClassDef(AliEmcalTriggerSelectionCuts, 1)
void SetUseSimpleOfflinePatches(Bool_t doUse=kTRUE)
void SetPatchType(PatchType_t patchType)
void SetSelectionMethod(SelectionMethod_t selectionMethod)
Bool_t SelectPatchType(const AliEMCALTriggerPatchInfo *const patch) const
SelectionMethod_t GetSelectionMethod() const
Double_t GetCutPrimitive(const AliEMCALTriggerPatchInfo *const patch) const