AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEMCALTriggerQA Class Referenceabstract

Class to generate EMCal trigger QA plots. More...

#include <AliEMCALTriggerQA.h>

Inheritance diagram for AliEMCALTriggerQA:

Classes

struct  AliEMCALCellInfo
 

Public Types

enum  PatchTypes_t { kOnlinePatch = 0, kRecalcPatch = 1, kOfflinePatch = 2 }
 
typedef
EMCALTrigger::EMCalTriggerType_t 
EMCalTriggerType_t
 

Public Member Functions

 AliEMCALTriggerQA ()
 
 AliEMCALTriggerQA (const char *name)
 
 AliEMCALTriggerQA (const AliEMCALTriggerQA &ref)
 
virtual ~AliEMCALTriggerQA ()
 
void SetDebugLevel (Int_t l)
 
void SetADCperBin (Int_t i)
 
Int_t GetDebugLevel () const
 
void EnablePatchType (PatchTypes_t patchtype, EMCalTriggerType_t triggertype, Bool_t e)
 
Bool_t IsPatchTypeEnabled (Int_t patchtype, Int_t triggertype) const
 
void EnableHistogramsByTimeStamp (UInt_t binWidth=600)
 
void SetEMCALGeometry (const AliEMCALGeometry *geom)
 
virtual void Init ()=0
 
virtual void ProcessPatch (const AliEMCALTriggerPatchInfo *patch)=0
 
virtual void ProcessFastor (const AliEMCALTriggerFastOR *fastor, AliVCaloCells *cells=0)=0
 
virtual void EventCompleted ()=0
 
virtual TCollection * GetListOfHistograms ()=0
 
virtual void ExecOnce ()
 Actions to be executed only once for the first event. More...
 
virtual void ProcessCell (const AliEMCALCellInfo &)
 
virtual void EventTimeStamp (UInt_t timeStamp)
 
virtual void ProcessBkgPatch (const AliEMCALTriggerPatchInfo *)
 
virtual void ComputeBackground ()
 
virtual void GetEMCalMedian (Double_t[3]) const
 
virtual void GetDCalMedian (Double_t[3]) const
 
virtual void GetEMCalBkg (Double_t[3]) const
 
virtual void GetDCalBkg (Double_t[3]) const
 

Static Public Member Functions

static Int_t GetAmplitude (const AliEMCALTriggerPatchInfo *patch, Int_t itype)
 

Static Public Attributes

static const Int_t fgkSM = 20
 
static const Int_t fgkNPatchTypes = 3
 
static const Int_t fgkNTriggerTypes = 6
 
static const Int_t fgkNDet = 2
 
static const Int_t fgkMaxPatchAmp [fgkNTriggerTypes] = {2000, 2000, 2000, 6000, 6000, 5000}
 Maximum patch amplitude for the histograms. More...
 
static const TString fgkPatchTypes [fgkNPatchTypes] = {"Online", "Recalc", "Offline"}
 Patch type names. More...
 

Protected Attributes

UInt_t fEnabledTriggerPatches [fgkNPatchTypes]
 Patch types to be plotted. More...
 
Int_t fFastorL0Th
 FastOR L0 threshold. More...
 
Int_t fFastorL1Th
 FastOR L1 threshold. More...
 
Int_t fADCperBin
 ADC counts per bin. More...
 
Int_t fDebugLevel
 Debug level. More...
 
UInt_t fTimeStampBinWidth
 Time stamp bin width. More...
 
const AliEMCALGeometry * fGeom
 ! Pointer to the EMCal geometry More...
 
UInt_t fEventTimeStamp
 ! Time stamp of the current event More...
 
UInt_t fEventTimeStampBin
 ! Time stamp bin More...
 

Private Member Functions

AliEMCALTriggerQAoperator= (const AliEMCALTriggerQA &)
 

Detailed Description

Class to generate EMCal trigger QA plots.

Definition at line 29 of file AliEMCALTriggerQA.h.

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
kOnlinePatch 
kRecalcPatch 
kOfflinePatch 

Definition at line 34 of file AliEMCALTriggerQA.h.

Constructor & Destructor Documentation

AliEMCALTriggerQA::AliEMCALTriggerQA ( )

Default constructor for ROOT I/O

Definition at line 39 of file AliEMCALTriggerQA.cxx.

AliEMCALTriggerQA::AliEMCALTriggerQA ( const char *  name)

Named constructor

Parameters
nameName of the object

Definition at line 57 of file AliEMCALTriggerQA.cxx.

AliEMCALTriggerQA::AliEMCALTriggerQA ( const AliEMCALTriggerQA ref)

Copy Constructor

Parameters
refConstant reference to copy from

Definition at line 75 of file AliEMCALTriggerQA.cxx.

AliEMCALTriggerQA::~AliEMCALTriggerQA ( )
virtual

Destructor

Definition at line 92 of file AliEMCALTriggerQA.cxx.

Member Function Documentation

virtual void AliEMCALTriggerQA::ComputeBackground ( )
inlinevirtual

Reimplemented in AliEMCALTriggerOnlineQAPbPb.

Definition at line 77 of file AliEMCALTriggerQA.h.

void AliEMCALTriggerQA::EnableHistogramsByTimeStamp ( UInt_t  binWidth = 600)
inline

Definition at line 60 of file AliEMCALTriggerQA.h.

void AliEMCALTriggerQA::EnablePatchType ( PatchTypes_t  patchtype,
EMCalTriggerType_t  triggertype,
Bool_t  e 
)

Set the patch types to be plotted

Parameters
patchtypePatch type (online, recalc,offline) of which the status is being changed
triggertypeTrigger type of which the status is being changed
eEither enable or disable

Definition at line 102 of file AliEMCALTriggerQA.cxx.

Referenced by AliEMCALTriggerOnlineQAPbPb::AliEMCALTriggerOnlineQAPbPb(), and AliEMCALTriggerOnlineQAPP::AliEMCALTriggerOnlineQAPP().

virtual void AliEMCALTriggerQA::EventCompleted ( )
pure virtual
void AliEMCALTriggerQA::EventTimeStamp ( UInt_t  timeStamp)
virtual

This function should be called every event to set the new time stamp. It sets the time stamp in the internal field, computes the time stamp bin based on fTimeStampBinWidth.

Parameters
timeStampTime stamp of the event

Definition at line 155 of file AliEMCALTriggerQA.cxx.

void AliEMCALTriggerQA::ExecOnce ( )
virtual

Actions to be executed only once for the first event.

Definition at line 166 of file AliEMCALTriggerQA.cxx.

Int_t AliEMCALTriggerQA::GetAmplitude ( const AliEMCALTriggerPatchInfo patch,
Int_t  itype 
)
static

Return the amplitude of the patch (online, recalc, offline)

Parameters
patchPointer to a AliEMCALTriggerPatchInfo object
itypeAmplitude type (online, recalc, offline)
Returns
amplitude

Definition at line 135 of file AliEMCALTriggerQA.cxx.

Referenced by AliEMCALTriggerOnlineQAPP::ProcessPatch().

virtual void AliEMCALTriggerQA::GetDCalBkg ( Double_t  [3]) const
inlinevirtual

Reimplemented in AliEMCALTriggerOnlineQAPbPb.

Definition at line 81 of file AliEMCALTriggerQA.h.

virtual void AliEMCALTriggerQA::GetDCalMedian ( Double_t  [3]) const
inlinevirtual

Reimplemented in AliEMCALTriggerOnlineQAPbPb.

Definition at line 79 of file AliEMCALTriggerQA.h.

Int_t AliEMCALTriggerQA::GetDebugLevel ( ) const
inline

Definition at line 56 of file AliEMCALTriggerQA.h.

virtual void AliEMCALTriggerQA::GetEMCalBkg ( Double_t  [3]) const
inlinevirtual

Reimplemented in AliEMCALTriggerOnlineQAPbPb.

Definition at line 80 of file AliEMCALTriggerQA.h.

virtual void AliEMCALTriggerQA::GetEMCalMedian ( Double_t  [3]) const
inlinevirtual

Reimplemented in AliEMCALTriggerOnlineQAPbPb.

Definition at line 78 of file AliEMCALTriggerQA.h.

virtual TCollection* AliEMCALTriggerQA::GetListOfHistograms ( )
pure virtual
virtual void AliEMCALTriggerQA::Init ( )
pure virtual
Bool_t AliEMCALTriggerQA::IsPatchTypeEnabled ( Int_t  patchtype,
Int_t  triggertype 
) const

Check whether a patch type is enabled

Parameters
patchtypePatch type (online, recalc,offline) of which the status is being changed
triggertypeTrigger type of which the status is being changed

Definition at line 117 of file AliEMCALTriggerQA.cxx.

Referenced by AliEMCALTriggerOnlineQAPbPb::ComputeBackground(), AliEMCALTriggerOnlineQAPbPb::EventCompleted(), AliEMCALTriggerOnlineQAPP::EventCompleted(), AliEMCALTriggerOnlineQAPbPb::Init(), AliEMCALTriggerOnlineQAPP::Init(), AliEMCALTriggerOnlineQAPbPb::ProcessBkgPatch(), AliEMCALTriggerOnlineQAPbPb::ProcessPatch(), and AliEMCALTriggerOnlineQAPP::ProcessPatch().

AliEMCALTriggerQA& AliEMCALTriggerQA::operator= ( const AliEMCALTriggerQA )
private
virtual void AliEMCALTriggerQA::ProcessBkgPatch ( const AliEMCALTriggerPatchInfo )
inlinevirtual

Reimplemented in AliEMCALTriggerOnlineQAPbPb.

Definition at line 76 of file AliEMCALTriggerQA.h.

virtual void AliEMCALTriggerQA::ProcessCell ( const AliEMCALCellInfo )
inlinevirtual

Definition at line 72 of file AliEMCALTriggerQA.h.

virtual void AliEMCALTriggerQA::ProcessFastor ( const AliEMCALTriggerFastOR fastor,
AliVCaloCells *  cells = 0 
)
pure virtual
virtual void AliEMCALTriggerQA::ProcessPatch ( const AliEMCALTriggerPatchInfo patch)
pure virtual
void AliEMCALTriggerQA::SetADCperBin ( Int_t  i)
inline

Definition at line 54 of file AliEMCALTriggerQA.h.

void AliEMCALTriggerQA::SetDebugLevel ( Int_t  l)
inline

Definition at line 53 of file AliEMCALTriggerQA.h.

void AliEMCALTriggerQA::SetEMCALGeometry ( const AliEMCALGeometry *  geom)
inline

Definition at line 61 of file AliEMCALTriggerQA.h.

Member Data Documentation

Int_t AliEMCALTriggerQA::fADCperBin
protected

ADC counts per bin.

Definition at line 97 of file AliEMCALTriggerQA.h.

Referenced by AliEMCALTriggerOnlineQAPbPb::Init(), and SetADCperBin().

UInt_t AliEMCALTriggerQA::fEnabledTriggerPatches[fgkNPatchTypes]
protected

Patch types to be plotted.

Definition at line 94 of file AliEMCALTriggerQA.h.

Referenced by AliEMCALTriggerQA(), EnablePatchType(), and IsPatchTypeEnabled().

UInt_t AliEMCALTriggerQA::fEventTimeStamp
protected

! Time stamp of the current event

Definition at line 102 of file AliEMCALTriggerQA.h.

Referenced by EventTimeStamp().

UInt_t AliEMCALTriggerQA::fEventTimeStampBin
protected

! Time stamp bin

Definition at line 103 of file AliEMCALTriggerQA.h.

Referenced by EventTimeStamp().

Int_t AliEMCALTriggerQA::fFastorL0Th
protected
Int_t AliEMCALTriggerQA::fFastorL1Th
protected
const AliEMCALGeometry* AliEMCALTriggerQA::fGeom
protected

! Pointer to the EMCal geometry

Definition at line 101 of file AliEMCALTriggerQA.h.

Referenced by ExecOnce(), AliEMCALTriggerOnlineQAPP::Init(), AliEMCALTriggerOnlineQAPP::ProcessFastor(), and SetEMCALGeometry().

const Int_t AliEMCALTriggerQA::fgkMaxPatchAmp = {2000, 2000, 2000, 6000, 6000, 5000}
static

Maximum patch amplitude for the histograms.

Definition at line 90 of file AliEMCALTriggerQA.h.

Referenced by AliEMCALTriggerOnlineQAPbPb::Init().

const Int_t AliEMCALTriggerQA::fgkNDet = 2
static

Definition at line 88 of file AliEMCALTriggerQA.h.

Referenced by AliEMCALTriggerOnlineQAPP::Init().

const Int_t AliEMCALTriggerQA::fgkSM = 20
static

Definition at line 85 of file AliEMCALTriggerQA.h.

Referenced by AliEMCALTriggerOnlineQAPP::Init().

UInt_t AliEMCALTriggerQA::fTimeStampBinWidth
protected

Time stamp bin width.

Definition at line 99 of file AliEMCALTriggerQA.h.

Referenced by EnableHistogramsByTimeStamp(), and EventTimeStamp().


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