![]() |
AliPhysics
1909eaa (1909eaa)
|
Simple monitoring task for cell related quantities. More...
#include <AliEmcalCellMonitorTask.h>
Classes | |
class | AliEmcalCellMonitorAmplitudeBinning |
Defining binning in amplitude direction. More... | |
Public Member Functions | |
AliEmcalCellMonitorTask () | |
AliEmcalCellMonitorTask (const char *name) | |
virtual | ~AliEmcalCellMonitorTask () |
void | SetMinCellAmplitudeForCellTime (Double_t minAmp) |
void | SetRequestTrigger (ULong_t triggerbits, TString triggerstring="") |
void | SetRun2 () |
void | SetBadCell (Int_t cellId) |
void | SetNameClusterContainer (const TString &nameclusters) |
void | InitBadChannelsFromContainer (const TString &containername) |
Protected Member Functions | |
virtual void | UserCreateOutputObjects () |
virtual void | UserExec (Option_t *) |
virtual void | ExecOnce () |
virtual void | RunChanged () |
void | CreateHistograms () |
bool | IsCellMasked (Int_t cellId) const |
void | LoadCellMasking () |
Private Member Functions | |
AliEmcalCellMonitorTask (const AliEmcalCellMonitorTask &ref) | |
AliEmcalCellMonitorTask & | operator= (const AliEmcalCellMonitorTask &ref) |
Private Attributes | |
Bool_t | fLocalInitialized |
Check whether task is initialized (for ExecOnce) More... | |
THistManager * | fHistManager |
! Histogram handler More... | |
AliEMCALGeometry * | fGeometry |
! EMCAL geometry More... | |
Double_t | fMinCellAmplitude |
Min. cell amplitude requested for cell time and frequency. More... | |
ULong_t | fRequestTrigger |
Trigger selection. More... | |
TString | fTriggerString |
Trigger string in addition to trigger selection. More... | |
TString | fBadChannelContainer |
Bad channel container name. More... | |
TString | fNameClusters |
Name of the cluster container (as TClonesArray) More... | |
Int_t | fNumberOfCells |
Number of cells. More... | |
Int_t | fOldRun |
! Old Run number (for run change check) More... | |
std::vector< Int_t > | fMaskedCells |
Vector of masked cells. More... | |
Simple monitoring task for cell related quantities.
This task monitors simple cell quantities like
Note: When working with the default branches the names are:
The task should run separately for different trigger classes. This is handled in the event selection provided from outside:
It can be added to the train using the add macro
Definition at line 58 of file AliEmcalCellMonitorTask.h.
AliEmcalCellMonitorTask::AliEmcalCellMonitorTask | ( | ) |
Dummy constructor, for ROOT I/O only
Definition at line 40 of file AliEmcalCellMonitorTask.cxx.
AliEmcalCellMonitorTask::AliEmcalCellMonitorTask | ( | const char * | name | ) |
Default constructor, setting also the name and defining the output type
name | Name of the task |
Definition at line 56 of file AliEmcalCellMonitorTask.cxx.
|
virtual |
Destructor
Definition at line 72 of file AliEmcalCellMonitorTask.cxx.
|
private |
|
protected |
Create the output histograms
For all supermodules the following histograms will be created:
For each supermodule the following histograms will be created:
Function is called in ExecOnce
Definition at line 163 of file AliEmcalCellMonitorTask.cxx.
Referenced by ExecOnce().
|
protectedvirtual |
Perform initializations of the task which require a run number (only available as soon as the first event is available). This contains:
Definition at line 83 of file AliEmcalCellMonitorTask.cxx.
Referenced by UserExec().
|
inline |
Read bad channels from OADB container and set the cell with the ID as bad.
[in] | containername | Name of the OADB container. |
Definition at line 121 of file AliEmcalCellMonitorTask.h.
|
protected |
Check whether cell with a given ID is masked by the user
cellId | Cell ID to be checked |
Definition at line 204 of file AliEmcalCellMonitorTask.cxx.
Referenced by UserExec().
|
protected |
Load the cell masking from the OADB container into the task
Definition at line 184 of file AliEmcalCellMonitorTask.cxx.
Referenced by RunChanged().
|
private |
|
protectedvirtual |
Perform tasks necessary when the run number changes. In this case a new masked cell map is loaded and masked cells are marked in a historgam.
Definition at line 90 of file AliEmcalCellMonitorTask.cxx.
Referenced by UserExec().
void AliEmcalCellMonitorTask::SetBadCell | ( | Int_t | cellId | ) |
Mark cell as bad (i.e) exclude from running
cellId | Cell to be masked |
Definition at line 199 of file AliEmcalCellMonitorTask.cxx.
Referenced by LoadCellMasking().
|
inline |
Set the minimum amplitude requested for a cell in order to use the cell time in the cell time plot
minAmp | Min. cell amplitude |
Definition at line 82 of file AliEmcalCellMonitorTask.h.
|
inline |
Set the name of the cluster container. If provided the following additional histograms will be provided:
[in] | nameclusters | Name of the cluster container |
Definition at line 114 of file AliEmcalCellMonitorTask.h.
|
inline |
Define trigger selection. It can consist of trigger bits and a trigger string
triggerbits | Trigger bit selection |
triggerstring | Trigger string (i.e. EG1, EG2, DG1, ...) |
Definition at line 89 of file AliEmcalCellMonitorTask.h.
|
inline |
Set number of Cells in order to match run2 geometry
Definition at line 97 of file AliEmcalCellMonitorTask.h.
|
protectedvirtual |
Prepare histogram manager for later initialization. As the histograms depend on the number of cells which is available only for after the first event is initialized, the histograms are not created here but in ExecOnce.
Definition at line 76 of file AliEmcalCellMonitorTask.cxx.
|
protectedvirtual |
Event loop.
Running over all cells and filling the cell-related quantities specified in the class documentation.
[in] |
Definition at line 95 of file AliEmcalCellMonitorTask.cxx.
|
private |
Bad channel container name.
Definition at line 225 of file AliEmcalCellMonitorTask.h.
Referenced by InitBadChannelsFromContainer(), LoadCellMasking(), and RunChanged().
|
private |
! EMCAL geometry
Definition at line 220 of file AliEmcalCellMonitorTask.h.
Referenced by ExecOnce(), UserExec(), and ~AliEmcalCellMonitorTask().
|
private |
! Histogram handler
Definition at line 219 of file AliEmcalCellMonitorTask.h.
Referenced by CreateHistograms(), RunChanged(), UserCreateOutputObjects(), and UserExec().
|
private |
Check whether task is initialized (for ExecOnce)
Definition at line 218 of file AliEmcalCellMonitorTask.h.
Referenced by UserExec().
|
private |
Vector of masked cells.
Definition at line 230 of file AliEmcalCellMonitorTask.h.
Referenced by IsCellMasked(), LoadCellMasking(), RunChanged(), and SetBadCell().
|
private |
Min. cell amplitude requested for cell time and frequency.
Definition at line 222 of file AliEmcalCellMonitorTask.h.
Referenced by SetMinCellAmplitudeForCellTime(), and UserExec().
|
private |
Name of the cluster container (as TClonesArray)
Definition at line 226 of file AliEmcalCellMonitorTask.h.
Referenced by SetNameClusterContainer(), and UserExec().
|
private |
Number of cells.
Definition at line 227 of file AliEmcalCellMonitorTask.h.
Referenced by CreateHistograms(), ExecOnce(), and SetRun2().
|
private |
! Old Run number (for run change check)
Definition at line 228 of file AliEmcalCellMonitorTask.h.
Referenced by UserExec().
|
private |
Trigger selection.
Definition at line 223 of file AliEmcalCellMonitorTask.h.
Referenced by SetRequestTrigger(), and UserExec().
|
private |
Trigger string in addition to trigger selection.
Definition at line 224 of file AliEmcalCellMonitorTask.h.
Referenced by SetRequestTrigger(), and UserExec().