AliPhysics  3b4a69f (3b4a69f)
PWG::EMCAL::AliEmcalFastOrMonitorTask Class Reference

Simlple monitoring of EMCAL FastOr quantities. More...

#include <AliEmcalFastOrMonitorTask.h>

Inheritance diagram for PWG::EMCAL::AliEmcalFastOrMonitorTask:

Public Member Functions

 AliEmcalFastOrMonitorTask ()
 Default constructor. More...
 
 AliEmcalFastOrMonitorTask (const char *name)
 Named constructor. More...
 
virtual ~AliEmcalFastOrMonitorTask ()
 Destructor. More...
 
void SetRequestTrigger (ULong_t triggerbits, TString triggerstring="")
 Define trigger selection. More...
 
void AddMaskedFastor (int fastorID)
 Add masked fastor to the list of masked fastors. More...
 
void DefineMaskedFastorOADB (const char *oadbname)
 Specify location of the OADB container with masked FastORs. More...
 
void DefineMaskedCellOADB (const char *oadbname)
 Specify location of the OADB container with masked cells. More...
 

Protected Member Functions

virtual void UserCreateOutputObjects ()
 Creating output objects. More...
 
virtual void UserExec (Option_t *)
 Event loop. More...
 
virtual void ExecOnce ()
 Initialization of the task. More...
 
virtual void RunChanged (Int_t newrun)
 Run-dependent setup of the task. More...
 
Double_t GetTransverseTimeSum (Int_t fastorAbsID, Double_t adc, const Double_t *vtx) const
 Calculate transverse L1 time sum of a FastOR. More...
 
void LoadEventCellData ()
 Load event-dependent cell data. More...
 

Protected Attributes

THistManagerfHistos
 ! Histogram handler More...
 
AliEMCALGeometry * fGeom
 ! EMCAL Geometry object More...
 
Bool_t fLocalInitialized
 Switch whether task is initialized (for ExecOnce) More...
 
Int_t fOldRun
 Old Run (for RunChanged()) More...
 
ULong_t fRequestTrigger
 Trigger selection bits. More...
 
TString fTriggerPattern
 Trigger string pattern used in addition to the trigger selection bits. More...
 
AliEMCALTriggerDataGrid< double > fCellData
 Grid with summed cell data. More...
 
std::vector< int > fMaskedFastors
 List of masked fastors. More...
 
std::vector< int > fMaskedCells
 List of masked cells. More...
 
TString fNameMaskedFastorOADB
 Name of the OADB container with masked fastors. More...
 
TString fNameMaskedCellOADB
 Name of the OADB container with masked cells. More...
 
AliOADBContainer * fMaskedFastorOADB
 ! OADB container with masked fastors More...
 
AliOADBContainer * fMaskedCellOADB
 ! OADB container with masked cells More...
 

Detailed Description

Simlple monitoring of EMCAL FastOr quantities.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Oak Ridge National Laboratory
Since
Sept 8, 2016

Simple monitoring task for FastOr related quantities. Filling the following distributions:

  • Frequency
  • Amplitude
  • L0timeSum
  • Number of LO times
  • Position in the col-row space

The wagon can be added to the train using the corresponding AddMacro (AddEmcalFastOrMonitorTask):

gROOT->LoadMacro("$ALICE_PHYSICS/PWG/EMCAL/macros/AddEmcalFastOrMonitorTask.C");
AddEmcalFastOrMonitorTask();

Definition at line 73 of file AliEmcalFastOrMonitorTask.h.

Constructor & Destructor Documentation

AliEmcalFastOrMonitorTask::AliEmcalFastOrMonitorTask ( )

Default constructor.

For ROOT I/O

Definition at line 57 of file AliEmcalFastOrMonitorTask.cxx.

AliEmcalFastOrMonitorTask::AliEmcalFastOrMonitorTask ( const char *  name)

Named constructor.

Parameters
[in]nameName of the task

Definition at line 76 of file AliEmcalFastOrMonitorTask.cxx.

AliEmcalFastOrMonitorTask::~AliEmcalFastOrMonitorTask ( )
virtual

Destructor.

Definition at line 94 of file AliEmcalFastOrMonitorTask.cxx.

Member Function Documentation

void PWG::EMCAL::AliEmcalFastOrMonitorTask::AddMaskedFastor ( int  fastorID)
inline

Add masked fastor to the list of masked fastors.

Masked fastors will be ignored in ADC spectrum.

Parameters
[in]fastorIDAbs ID of the fastor to be masked

Definition at line 112 of file AliEmcalFastOrMonitorTask.h.

void PWG::EMCAL::AliEmcalFastOrMonitorTask::DefineMaskedCellOADB ( const char *  oadbname)
inline

Specify location of the OADB container with masked cells.

Parameters
[in]oadbnameName of the OADB container with the masked cells

Definition at line 124 of file AliEmcalFastOrMonitorTask.h.

void PWG::EMCAL::AliEmcalFastOrMonitorTask::DefineMaskedFastorOADB ( const char *  oadbname)
inline

Specify location of the OADB container with masked FastORs.

Parameters
[in]oadbnameName of the OADB container with the masked fastors

Definition at line 118 of file AliEmcalFastOrMonitorTask.h.

void AliEmcalFastOrMonitorTask::ExecOnce ( )
protectedvirtual

Initialization of the task.

Performing initial initializations. In contrast to UserCreateOutputObjects, which is called before the event loop, ExecOnce is called for the first event within the event loop. At that step some basic event information is already available,

Definition at line 132 of file AliEmcalFastOrMonitorTask.cxx.

Referenced by DefineMaskedCellOADB(), and UserExec().

Double_t AliEmcalFastOrMonitorTask::GetTransverseTimeSum ( Int_t  fastorAbsID,
Double_t  adc,
const Double_t vtx 
) const
protected

Calculate transverse L1 time sum of a FastOR.

Parameters
fastorAbsIDFastOR absolute ID (for position calculation)
adcFastOR ADC
vtxPosition of the primary vertex
Returns
Transverse L1 time sum

Definition at line 280 of file AliEmcalFastOrMonitorTask.cxx.

Referenced by DefineMaskedCellOADB(), and UserExec().

void AliEmcalFastOrMonitorTask::LoadEventCellData ( )
protected

Load event-dependent cell data.

For easier processing EMCAL cell data is loaded into a trigger data grid with the fastor granularity. Energy of the cells belonging to the same fastor is summed. The data grid is allocated for with the proper size once the first event is processed.

Definition at line 261 of file AliEmcalFastOrMonitorTask.cxx.

Referenced by DefineMaskedCellOADB(), and UserExec().

void AliEmcalFastOrMonitorTask::RunChanged ( Int_t  newrun)
protectedvirtual

Run-dependent setup of the task.

Performing run-dependent initializations. Function is called each time the run number of the current event differs to the run number of the previous event. This function is useful i.e. to load parameters from the OCDB/OADB

Parameters
[in]newrunNew run number

Definition at line 149 of file AliEmcalFastOrMonitorTask.cxx.

Referenced by DefineMaskedCellOADB(), and UserExec().

void PWG::EMCAL::AliEmcalFastOrMonitorTask::SetRequestTrigger ( ULong_t  triggerbits,
TString  triggerstring = "" 
)
inline

Define trigger selection.

It can consist of trigger bits and a trigger string

Parameters
[in]triggerbitsTrigger bit selection
[in]triggerstringTrigger string (i.e. EG1, EG2, DG1, ...)

Definition at line 101 of file AliEmcalFastOrMonitorTask.h.

void AliEmcalFastOrMonitorTask::UserCreateOutputObjects ( )
protectedvirtual

Creating output objects.

For this task only the histogram handler is created. Histograms are done inside the function ExecOnce.

Definition at line 99 of file AliEmcalFastOrMonitorTask.cxx.

Referenced by DefineMaskedCellOADB().

void AliEmcalFastOrMonitorTask::UserExec ( Option_t )
protectedvirtual

Event loop.

Processing of events: Filling the monitoring histograms for each FastOR:

  • Frequency
  • Amplitude
  • L0timeSum
  • Number of LO times
  • Position in the col-row space
    Parameters

Definition at line 192 of file AliEmcalFastOrMonitorTask.cxx.

Referenced by DefineMaskedCellOADB().

Member Data Documentation

AliEMCALTriggerDataGrid<double> PWG::EMCAL::AliEmcalFastOrMonitorTask::fCellData
protected

Grid with summed cell data.

Definition at line 197 of file AliEmcalFastOrMonitorTask.h.

Referenced by ExecOnce(), LoadEventCellData(), and UserExec().

AliEMCALGeometry* PWG::EMCAL::AliEmcalFastOrMonitorTask::fGeom
protected

! EMCAL Geometry object

Definition at line 190 of file AliEmcalFastOrMonitorTask.h.

Referenced by ExecOnce(), GetTransverseTimeSum(), LoadEventCellData(), RunChanged(), and UserExec().

THistManager* PWG::EMCAL::AliEmcalFastOrMonitorTask::fHistos
protected

! Histogram handler

Definition at line 189 of file AliEmcalFastOrMonitorTask.h.

Referenced by LoadEventCellData(), RunChanged(), UserCreateOutputObjects(), and UserExec().

Bool_t PWG::EMCAL::AliEmcalFastOrMonitorTask::fLocalInitialized
protected

Switch whether task is initialized (for ExecOnce)

Definition at line 191 of file AliEmcalFastOrMonitorTask.h.

Referenced by UserExec().

AliOADBContainer* PWG::EMCAL::AliEmcalFastOrMonitorTask::fMaskedCellOADB
protected

! OADB container with masked cells

Definition at line 204 of file AliEmcalFastOrMonitorTask.h.

Referenced by ExecOnce(), RunChanged(), and ~AliEmcalFastOrMonitorTask().

std::vector<int> PWG::EMCAL::AliEmcalFastOrMonitorTask::fMaskedCells
protected

List of masked cells.

Definition at line 199 of file AliEmcalFastOrMonitorTask.h.

Referenced by LoadEventCellData(), RunChanged(), and UserExec().

AliOADBContainer* PWG::EMCAL::AliEmcalFastOrMonitorTask::fMaskedFastorOADB
protected

! OADB container with masked fastors

Definition at line 203 of file AliEmcalFastOrMonitorTask.h.

Referenced by ExecOnce(), RunChanged(), and ~AliEmcalFastOrMonitorTask().

std::vector<int> PWG::EMCAL::AliEmcalFastOrMonitorTask::fMaskedFastors
protected

List of masked fastors.

Definition at line 198 of file AliEmcalFastOrMonitorTask.h.

Referenced by AddMaskedFastor(), RunChanged(), and UserExec().

TString PWG::EMCAL::AliEmcalFastOrMonitorTask::fNameMaskedCellOADB
protected

Name of the OADB container with masked cells.

Definition at line 202 of file AliEmcalFastOrMonitorTask.h.

Referenced by DefineMaskedCellOADB(), and ExecOnce().

TString PWG::EMCAL::AliEmcalFastOrMonitorTask::fNameMaskedFastorOADB
protected

Name of the OADB container with masked fastors.

Definition at line 201 of file AliEmcalFastOrMonitorTask.h.

Referenced by DefineMaskedFastorOADB(), and ExecOnce().

Int_t PWG::EMCAL::AliEmcalFastOrMonitorTask::fOldRun
protected

Old Run (for RunChanged())

Definition at line 192 of file AliEmcalFastOrMonitorTask.h.

Referenced by UserExec().

ULong_t PWG::EMCAL::AliEmcalFastOrMonitorTask::fRequestTrigger
protected

Trigger selection bits.

Definition at line 194 of file AliEmcalFastOrMonitorTask.h.

Referenced by SetRequestTrigger(), and UserExec().

TString PWG::EMCAL::AliEmcalFastOrMonitorTask::fTriggerPattern
protected

Trigger string pattern used in addition to the trigger selection bits.

Definition at line 195 of file AliEmcalFastOrMonitorTask.h.

Referenced by SetRequestTrigger(), and UserExec().


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