AliPhysics  aaf9c62 (aaf9c62)
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...
 

Private Member Functions

void PrintStream (std::ostream &stream) const
 Helper function for output stream operator. More...
 

Friends

std::ostream & operator<< (std::ostream &stream, const AliEmcalTriggerSelectionCuts &cuts)
 Output stream operator. 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 50 of file AliEmcalTriggerSelectionCuts.h.

Member Enumeration Documentation

Enumerator
kEMCALAcceptance 
kDCALAcceptance 
kEMCALDCALAcceptance 

Definition at line 68 of file AliEmcalTriggerSelectionCuts.h.

Enumerator
kAnyPatch 
kL1JetPatch 
kL1GammaPatch 
kL0Patch 
kL1JetLowPatch 
kL1JetHighPatch 
kL1GammaLowPatch 
kL1GammaHighPatch 

Definition at line 58 of file AliEmcalTriggerSelectionCuts.h.

Enumerator
kADC 
kEnergyRough 
kEnergyOffline 
kEnergyOfflineSmeared 

Definition at line 52 of file AliEmcalTriggerSelectionCuts.h.

Constructor & Destructor Documentation

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

Dummy constructor.

Definition at line 39 of file AliEmcalTriggerSelectionCuts.cxx.

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

Definition at line 78 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 59 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 66 of file AliEmcalTriggerSelectionCuts.cxx.

Referenced by CompareTriggerPatches(), and IsSelected().

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

Definition at line 80 of file AliEmcalTriggerSelectionCuts.h.

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

Definition at line 81 of file AliEmcalTriggerSelectionCuts.h.

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

Definition at line 82 of file AliEmcalTriggerSelectionCuts.h.

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

Definition at line 83 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 50 of file AliEmcalTriggerSelectionCuts.cxx.

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

void PWG::EMCAL::AliEmcalTriggerSelectionCuts::PrintStream ( std::ostream &  stream) const
private

Helper function for output stream operator.

Putting all cut settings to the output stream

Parameters
streamOutput stream used for logging

Definition at line 111 of file AliEmcalTriggerSelectionCuts.cxx.

Referenced by operator<<().

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 100 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 78 of file AliEmcalTriggerSelectionCuts.cxx.

Referenced by IsSelected().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const AliEmcalTriggerSelectionCuts cuts 
)
friend

Output stream operator.

Print cut settings to the stream.

Parameters
streamOutput stream used for logging
cutsSelection cuts object to be put on the stream
Returns
Stream after logging

Definition at line 138 of file AliEmcalTriggerSelectionCuts.cxx.

Member Data Documentation

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

Acceptance type (EMCAL or DCAL acceptance)

Definition at line 153 of file AliEmcalTriggerSelectionCuts.h.

Referenced by PrintStream(), and SelectAcceptance().

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

Type of the patch to be selected.

Definition at line 152 of file AliEmcalTriggerSelectionCuts.h.

Referenced by PrintStream(), and SelectPatchType().

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

Variable to cut on.

Definition at line 151 of file AliEmcalTriggerSelectionCuts.h.

Referenced by GetCutPrimitive(), and PrintStream().

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

Threshold used.

Definition at line 154 of file AliEmcalTriggerSelectionCuts.h.

Referenced by IsSelected(), and PrintStream().

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

Request recalc patch.

Definition at line 156 of file AliEmcalTriggerSelectionCuts.h.

Referenced by PrintStream(), and SelectPatchType().

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

Request simple offline patches.

Definition at line 155 of file AliEmcalTriggerSelectionCuts.h.

Referenced by PrintStream(), and SelectPatchType().


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