AliPhysics  d497afb (d497afb)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PWG::EMCAL::AliEmcalTriggerSelectionCuts Class Reference

Class for the selection of trigger patches in the EMCAL triggered event selection. More...

#include <AliEmcalTriggerSelectionCuts.h>

Inheritance diagram for PWG::EMCAL::AliEmcalTriggerSelectionCuts:

Public Types

enum  SelectionMethod_t { kADC = 0, kEnergyRough = 1, kEnergyOffline = 2, kEnergyOfflineSmeared = 3 }
 
enum  PatchType_t {
  kAnyPatch = 0, kL1JetPatch = 1, kL1GammaPatch = 2, kL0Patch = 3,
  kL1JetLowPatch = 4, kL1JetHighPatch = 5, kL1GammaLowPatch = 6, kL1GammaHighPatch = 7
}
 
enum  AcceptanceType_t { kEMCALAcceptance = 0, kDCALAcceptance = 1, kEMCALDCALAcceptance = 2 }
 

Public Member Functions

 AliEmcalTriggerSelectionCuts ()
 Dummy constructor. More...
 
virtual ~AliEmcalTriggerSelectionCuts ()
 
PatchType_t GetPatchType () const
 
SelectionMethod_t GetSelectionMethod () const
 
Double_t GetThreshold () const
 
Bool_t IsRequestingSimpleOfflinePatches () const
 
void SetPatchType (PatchType_t patchType)
 
void SetAcceptanceType (AcceptanceType_t acceptance)
 
void SetSelectionMethod (SelectionMethod_t selectionMethod)
 
void SetThreshold (Double_t threshold)
 
void SetUseSimpleOfflinePatches (Bool_t doUse=kTRUE)
 
void SetUseRecalcPatches (Bool_t doUse=kTRUE)
 
Bool_t IsSelected (const AliEMCALTriggerPatchInfo *const patch) const
 Apply selection of the given trigger patch according to the selections described in the object. More...
 
Int_t CompareTriggerPatches (const AliEMCALTriggerPatchInfo *first, const AliEMCALTriggerPatchInfo *second) const
 Compare two patches according to the energy measure specified in the cut object. More...
 

Protected Member Functions

Double_t GetCutPrimitive (const AliEMCALTriggerPatchInfo *const patch) const
 Return (energy) measure we cut on, depending on the selection method specified. More...
 
Bool_t SelectPatchType (const AliEMCALTriggerPatchInfo *const patch) const
 Select type of the patch according the definitions in the header file. More...
 
Bool_t SelectAcceptance (const AliEMCALTriggerPatchInfo *const patch) const
 Select detector acceptance. More...
 

Protected Attributes

SelectionMethod_t fSelectionMethod
 Variable to cut on. More...
 
PatchType_t fPatchType
 Type of the patch to be selected. More...
 
AcceptanceType_t fAcceptanceType
 Acceptance type (EMCAL or DCAL acceptance) More...
 
Double_t fThreshold
 Threshold used. More...
 
Bool_t fUseSimpleOffline
 Request simple offline patches. More...
 
Bool_t fUseRecalc
 Request recalc patch. More...
 

Detailed Description

Class for the selection of trigger patches in the EMCAL triggered event selection.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch Oak Ridge National Laboratory
Since
Dec 17, 2014

Definition at line 44 of file AliEmcalTriggerSelectionCuts.h.

Member Enumeration Documentation

Enumerator
kEMCALAcceptance 
kDCALAcceptance 
kEMCALDCALAcceptance 

Definition at line 62 of file AliEmcalTriggerSelectionCuts.h.

Enumerator
kAnyPatch 
kL1JetPatch 
kL1GammaPatch 
kL0Patch 
kL1JetLowPatch 
kL1JetHighPatch 
kL1GammaLowPatch 
kL1GammaHighPatch 

Definition at line 52 of file AliEmcalTriggerSelectionCuts.h.

Enumerator
kADC 
kEnergyRough 
kEnergyOffline 
kEnergyOfflineSmeared 

Definition at line 46 of file AliEmcalTriggerSelectionCuts.h.

Constructor & Destructor Documentation

PWG::EMCAL::AliEmcalTriggerSelectionCuts::AliEmcalTriggerSelectionCuts ( )

Dummy constructor.

Definition at line 36 of file AliEmcalTriggerSelectionCuts.cxx.

virtual PWG::EMCAL::AliEmcalTriggerSelectionCuts::~AliEmcalTriggerSelectionCuts ( )
inlinevirtual

Definition at line 72 of file AliEmcalTriggerSelectionCuts.h.

Member Function Documentation

Int_t PWG::EMCAL::AliEmcalTriggerSelectionCuts::CompareTriggerPatches ( const AliEMCALTriggerPatchInfo *  first,
const AliEMCALTriggerPatchInfo *  second 
) const

Compare two patches according to the energy measure specified in the cut object.

Parameters
[in]firstthe first patch
[in]secondthe second patch
Returns
the result of the comparison (0 if equal, 1 if the first patch has a larger primitive, -1 if the second patch has a larger primitive)

Definition at line 56 of file AliEmcalTriggerSelectionCuts.cxx.

Referenced by PWG::EMCAL::AliEmcalTriggerSelection::MakeDecison().

Double_t PWG::EMCAL::AliEmcalTriggerSelectionCuts::GetCutPrimitive ( const AliEMCALTriggerPatchInfo *const  patch) const
protected

Return (energy) measure we cut on, depending on the selection method specified.

Parameters
[in]patchThe patch from which to obtain the value
Returns
The energy measure of the patch

Definition at line 63 of file AliEmcalTriggerSelectionCuts.cxx.

Referenced by CompareTriggerPatches(), and IsSelected().

PatchType_t PWG::EMCAL::AliEmcalTriggerSelectionCuts::GetPatchType ( ) const
inline

Definition at line 74 of file AliEmcalTriggerSelectionCuts.h.

SelectionMethod_t PWG::EMCAL::AliEmcalTriggerSelectionCuts::GetSelectionMethod ( ) const
inline

Definition at line 75 of file AliEmcalTriggerSelectionCuts.h.

Double_t PWG::EMCAL::AliEmcalTriggerSelectionCuts::GetThreshold ( ) const
inline

Definition at line 76 of file AliEmcalTriggerSelectionCuts.h.

Bool_t PWG::EMCAL::AliEmcalTriggerSelectionCuts::IsRequestingSimpleOfflinePatches ( ) const
inline

Definition at line 77 of file AliEmcalTriggerSelectionCuts.h.

Bool_t PWG::EMCAL::AliEmcalTriggerSelectionCuts::IsSelected ( const AliEMCALTriggerPatchInfo *const  patch) const

Apply selection of the given trigger patch according to the selections described in the object.

Parameters
[in]patchthe trigger patch to check
Returns
the decision (true if selected, false otherwise)

Definition at line 47 of file AliEmcalTriggerSelectionCuts.cxx.

Referenced by PWG::EMCAL::AliEmcalTriggerSelection::MakeDecison().

Bool_t PWG::EMCAL::AliEmcalTriggerSelectionCuts::SelectAcceptance ( const AliEMCALTriggerPatchInfo *const  patch) const
protected

Select detector acceptance.

Detector acceptance can be either of

  • EMCAL
  • DCAL
  • EMCAL and DCAL
    Parameters
    patchTrigger patch to be checked
    Returns
    True if the patch is within the acceptance, false otherwise

Definition at line 97 of file AliEmcalTriggerSelectionCuts.cxx.

Referenced by IsSelected().

Bool_t PWG::EMCAL::AliEmcalTriggerSelectionCuts::SelectPatchType ( const AliEMCALTriggerPatchInfo *const  patch) const
protected

Select type of the patch according the definitions in the header file.

Parameters
[in]patchthe patch to be checked
Returns
selection result (true ig the patch is selected)

Definition at line 75 of file AliEmcalTriggerSelectionCuts.cxx.

Referenced by IsSelected().

void PWG::EMCAL::AliEmcalTriggerSelectionCuts::SetAcceptanceType ( AcceptanceType_t  acceptance)
inline
void PWG::EMCAL::AliEmcalTriggerSelectionCuts::SetPatchType ( PatchType_t  patchType)
inline
void PWG::EMCAL::AliEmcalTriggerSelectionCuts::SetSelectionMethod ( SelectionMethod_t  selectionMethod)
inline
void PWG::EMCAL::AliEmcalTriggerSelectionCuts::SetThreshold ( Double_t  threshold)
inline
void PWG::EMCAL::AliEmcalTriggerSelectionCuts::SetUseRecalcPatches ( Bool_t  doUse = kTRUE)
inline
void PWG::EMCAL::AliEmcalTriggerSelectionCuts::SetUseSimpleOfflinePatches ( Bool_t  doUse = kTRUE)
inline

Member Data Documentation

AcceptanceType_t PWG::EMCAL::AliEmcalTriggerSelectionCuts::fAcceptanceType
protected

Acceptance type (EMCAL or DCAL acceptance)

Definition at line 136 of file AliEmcalTriggerSelectionCuts.h.

Referenced by SelectAcceptance(), and SetAcceptanceType().

PatchType_t PWG::EMCAL::AliEmcalTriggerSelectionCuts::fPatchType
protected

Type of the patch to be selected.

Definition at line 135 of file AliEmcalTriggerSelectionCuts.h.

Referenced by GetPatchType(), SelectPatchType(), and SetPatchType().

SelectionMethod_t PWG::EMCAL::AliEmcalTriggerSelectionCuts::fSelectionMethod
protected

Variable to cut on.

Definition at line 134 of file AliEmcalTriggerSelectionCuts.h.

Referenced by GetCutPrimitive(), GetSelectionMethod(), and SetSelectionMethod().

Double_t PWG::EMCAL::AliEmcalTriggerSelectionCuts::fThreshold
protected

Threshold used.

Definition at line 137 of file AliEmcalTriggerSelectionCuts.h.

Referenced by GetThreshold(), IsSelected(), and SetThreshold().

Bool_t PWG::EMCAL::AliEmcalTriggerSelectionCuts::fUseRecalc
protected

Request recalc patch.

Definition at line 139 of file AliEmcalTriggerSelectionCuts.h.

Referenced by SelectPatchType(), and SetUseRecalcPatches().

Bool_t PWG::EMCAL::AliEmcalTriggerSelectionCuts::fUseSimpleOffline
protected

Request simple offline patches.

Definition at line 138 of file AliEmcalTriggerSelectionCuts.h.

Referenced by IsRequestingSimpleOfflinePatches(), SelectPatchType(), and SetUseSimpleOfflinePatches().


The documentation for this class was generated from the following files: