AliPhysics  6bc8652 (6bc8652)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent Class Reference

Analysis component for EMCAL trigger patches. More...

#include <AliEMCalTriggerPatchAnalysisComponent.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent:

Classes

class  AliEmcalTriggerPatchHandlerFactory
 Factory class handling the identification of trigger patches as a given type. More...
 

Public Member Functions

 AliEMCalTriggerPatchAnalysisComponent ()
 
 AliEMCalTriggerPatchAnalysisComponent (const char *name, Bool_t withEventSelection=kFALSE)
 
virtual ~AliEMCalTriggerPatchAnalysisComponent ()
 
virtual void CreateHistos ()
 
virtual void Process (const AliEMCalTriggerEventData *const data)
 
Bool_t IsSwapOnlineThresholds () const
 
Bool_t IsSwapOfflineThresholds () const
 
void SetSwapOnlineThresholds (Bool_t doSwap=kTRUE)
 
void SetSwapOfflineThresholds (Bool_t doSwap=kTRUE)
 
- Public Member Functions inherited from EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent
 AliEMCalTriggerTracksAnalysisComponent ()
 
 AliEMCalTriggerTracksAnalysisComponent (const char *name)
 
virtual ~AliEMCalTriggerTracksAnalysisComponent ()
 
THashList * GetHistList () const
 
const
AliEMCalTriggerWeightHandler
GetWeightHandler () const
 
void SetBinning (const AliEMCalTriggerBinningComponent *const binning)
 
void SetKineCuts (const AliEMCalTriggerKineCuts *const cuts)
 
void SetTriggerClassManager (const AliEMCalTriggerAnaClassManager *classmgr)
 
void SetWeightHandler (const AliEMCalTriggerWeightHandler *handler)
 
void SetComponentDebugLevel (int debuglevel)
 

Protected Member Functions

void FillStandardMonitoring (const AliEMCALTriggerPatchInfo *const patch, TString eventclass="")
 
void FillTriggerInfoHistogram (TString histo, const AliEMCALTriggerPatchInfo *const patch)
 
void FillAmplitudeHistogram (TString histo, const AliEMCALTriggerPatchInfo *const patch)
 
- Protected Member Functions inherited from EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent
TAxisDefineAxis (const char *name, const TBinning &binning)
 
void GetMachingTriggerNames (std::vector< std::string > &triggernames) const
 
void GetAllTriggerNamesAndTitles (std::map< std::string, std::string > &triggers) const
 
void PrintTriggerNames (const std::vector< std::string > &, const std::string &componentName) const
 

Protected Attributes

Bool_t fSwapOnlineThresholds
 Swap trigger thresholds for online patches. More...
 
Bool_t fSwapOfflineThresholds
 Swap trigger thresholds for offline patches. More...
 
Bool_t fWithEventSelection
 Define whether patches are analysed with event selection. More...
 
- Protected Attributes inherited from EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent
THistManagerfHistos
 Histogram container of the analysis component. More...
 
const
AliEMCalTriggerAnaClassManager
fTriggerClassManager
 Global trigger class manager. More...
 
const
AliEMCalTriggerBinningComponent
fBinning
 Global binning handler. More...
 
const AliEMCalTriggerKineCuts * fKineCuts
 Kinematical cuts for tracks and particle selection. More...
 
const
AliEMCalTriggerWeightHandler
fWeightHandler
 Event weight handler. More...
 
Int_t fComponentDebugLevel
 Debug level for the given analysis component. More...
 

Detailed Description

Analysis component for EMCAL trigger patches.

Analysis components for trigger patches. Fills THnSparses with the different energy definitions (amplitude, estimated (rough) patch energy, calibrated (offline) energy and the patch position on the EMCAL surface for EMCAL trigger patches of different categories created by the EMCAL trigger patch maker. Main patches defined as the patches of a given type with the highest energy.

Definition at line 31 of file AliEMCalTriggerPatchAnalysisComponent.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::AliEMCalTriggerPatchAnalysisComponent ( )

Dummy constructor, only for ROOT I/O, not to be used by the users. Sets as default swapping of the trigger thresholds to false for both types of patches.

Definition at line 39 of file AliEMCalTriggerPatchAnalysisComponent.cxx.

EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::AliEMCalTriggerPatchAnalysisComponent ( const char *  name,
Bool_t  withEventSelection = kFALSE 
)

Main constructor, to be used to create the analysis component. Sets as default swapping of the trigger thresholds to false for both types of patches.

Parameters
nameName of the component
withEventSelectionIn case of true, histograms are created for different event selection classes

Definition at line 54 of file AliEMCalTriggerPatchAnalysisComponent.cxx.

virtual EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::~AliEMCalTriggerPatchAnalysisComponent ( )
inlinevirtual

Definition at line 35 of file AliEMCalTriggerPatchAnalysisComponent.h.

Member Function Documentation

void EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::CreateHistos ( )
virtual

Create histograms for the trigger patch analysis. Two types of histograms are currently defined.

  1. A histogram correlating different energy values (amplitude, estimated energy, calibrated energy)
  2. A histogram correlating online amplitude and offline amplitude All histograms contain the trigger patch position in \(\eta\) and \(\phi\) as well. In case the patch is a main patch, defined as the patch of a given trigger type with the highest energy, this patch is marked as well.

Each trigger type has its own histogram. Currently the following types are supported:

  1. EMCal Level1 Jet, high threshold (EMCJHigh)
  2. EMCal Level1 Jet, low threshold (EMCJLow)
  3. EMCal Level1 Gamma, high threshold (EMCGHigh)
  4. EMCal Level1 Gamma, low threshold (EMCGLow)
  5. EMCal Level0 For all Level1 triggers, histograms are separated for online and offline patches. For Level0 only offline patches are available.

This function is the implementation of the abstract method CreateHistos declared in AliEMCalTriggerTracksAnalysisComponent.

Reimplemented from EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent.

Definition at line 81 of file AliEMCalTriggerPatchAnalysisComponent.cxx.

void EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::FillAmplitudeHistogram ( TString  histo,
const AliEMCALTriggerPatchInfo *const  patch 
)
protected

Fill histogram for patch amplitude

Parameters
histoName of the histogram to fill
patchPatch with information

Definition at line 203 of file AliEMCalTriggerPatchAnalysisComponent.cxx.

Referenced by FillStandardMonitoring().

void EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::FillStandardMonitoring ( const AliEMCALTriggerPatchInfo *const  patch,
TString  eventType = "" 
)
protected

Fill monitoring of the trigger patches (energies and amplitudes). If event type is specified, only the general histogram will be filled. Otherwise all histograms of classes which are fulfilled by the histogram are filled

Parameters
patchTrigger patch to be processed
eventTypeTrigger class the event was selected by (optional)

Definition at line 161 of file AliEMCalTriggerPatchAnalysisComponent.cxx.

Referenced by Process().

void EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::FillTriggerInfoHistogram ( TString  histo,
const AliEMCALTriggerPatchInfo *const  patch 
)
protected

Fill standard trigger patch info histogram

Parameters
histoName of the histogram to fill
patchPatch with information

Definition at line 189 of file AliEMCalTriggerPatchAnalysisComponent.cxx.

Referenced by FillStandardMonitoring().

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::IsSwapOfflineThresholds ( ) const
inline

Check whether thresholds for offline patches are swapped

Returns
true if thresholds are swapped, fales otherwise

Definition at line 52 of file AliEMCalTriggerPatchAnalysisComponent.h.

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::IsSwapOnlineThresholds ( ) const
inline

Check whether thresholds for online patches are swapped

Returns
true if thresholds are swapped, fales otherwise

Definition at line 45 of file AliEMCalTriggerPatchAnalysisComponent.h.

void EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::Process ( const AliEMCalTriggerEventData *const  data)
virtual

Perform analysis on the event data set. Loops over all trigger patches found by the trigger patch maker and fill relevant histograms for the different trigger types associated with the trigger patch. In case the thresholds are requested to be swapped (separately for online and offline patches), then low threshold patches will be used for high threshold histograms and vice versa.

This function is the implementation of the abstract method Process declared in AliEMCalTriggerTracksAnalysisComponent.

Parameters
dataEvent information

Implements EMCalTriggerPtAnalysis::AliEMCalTriggerTracksAnalysisComponent.

Definition at line 139 of file AliEMCalTriggerPatchAnalysisComponent.cxx.

void EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::SetSwapOfflineThresholds ( Bool_t  doSwap = kTRUE)
inline

Swap offline thresholds (i.e. low threshold becomes high threshold and vice versa)

Parameters
doSwapDo swap the thresholds

Definition at line 66 of file AliEMCalTriggerPatchAnalysisComponent.h.

void EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::SetSwapOnlineThresholds ( Bool_t  doSwap = kTRUE)
inline

Swap online thresholds (i.e. low threshold becomes high threshold and vice versa)

Parameters
doSwapDo swap the thresholds

Definition at line 59 of file AliEMCalTriggerPatchAnalysisComponent.h.

Member Data Documentation

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::fSwapOfflineThresholds
protected

Swap trigger thresholds for offline patches.

Definition at line 238 of file AliEMCalTriggerPatchAnalysisComponent.h.

Referenced by FillStandardMonitoring(), IsSwapOfflineThresholds(), and SetSwapOfflineThresholds().

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::fSwapOnlineThresholds
protected

Swap trigger thresholds for online patches.

Definition at line 237 of file AliEMCalTriggerPatchAnalysisComponent.h.

Referenced by FillStandardMonitoring(), IsSwapOnlineThresholds(), and SetSwapOnlineThresholds().

Bool_t EMCalTriggerPtAnalysis::AliEMCalTriggerPatchAnalysisComponent::fWithEventSelection
protected

Define whether patches are analysed with event selection.

Definition at line 239 of file AliEMCalTriggerPatchAnalysisComponent.h.

Referenced by CreateHistos(), and Process().


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