![]() |
AliPhysics
4c20e6b (4c20e6b)
|
Class to generate EMCal trigger QA plots in pp collisions. More...
#include <AliEmcalTriggerQAPP.h>
Classes | |
struct | AliEmcalCellInfo |
Public Types | |
enum | PatchTypes_t { kOnlinePatch, kRecalcPatch, kOfflinePatch } |
typedef EMCALTrigger::EMCalTriggerType_t | EMCalTriggerType_t |
Public Member Functions | |
AliEmcalTriggerQAPP () | |
Dummy constructor for ROOT I/O. More... | |
AliEmcalTriggerQAPP (const char *name) | |
AliEmcalTriggerQAPP (const AliEmcalTriggerQAPP &triggerQA) | |
virtual | ~AliEmcalTriggerQAPP () |
Destructor. More... | |
void | SetDebugLevel (Int_t l) |
void | SetADCperBin (Int_t i) |
void | SetL0TimeRange (Int_t min, Int_t max) |
void | AddFastORBadChannel (Short_t absId) |
void | ReadFastORBadChannelFromStream (std::istream &stream) |
void | ReadFastORBadChannelFromFile (const char *fname) |
void | AddOfflineBadChannel (Short_t absId) |
void | ReadOfflineBadChannelFromFile (const char *fname) |
void | ReadOfflineBadChannelFromStream (std::istream &stream) |
void | ReadFastORPedestalFromStream (std::istream &stream) |
void | ReadFastORPedestalFromFile (const char *fname) |
void | SetFastORPedestal (Short_t absId, Float_t ped) |
void | ResetFastORPedestal () |
Int_t | GetDebugLevel () const |
void | SetFastORandCellThresholds (Int_t l0, Int_t l1, Double_t cell) |
void | EnablePatchType (PatchTypes_t type, Bool_t e=kTRUE) |
void | EnableTriggerType (EMCalTriggerType_t type, Bool_t e=kTRUE) |
void | EnableDCal (Bool_t e=kTRUE) |
void | EnableHistogramsByTimeStamp (UInt_t binWidth=600) |
void | Init () |
Initialize the class, i.e. allocate histograms. More... | |
void | ExecOnce () |
Actions to be executed only once for the first event. More... | |
void | ProcessPatch (AliEMCALTriggerPatchInfo *patch) |
void | ProcessFastor (AliEMCALTriggerFastOR *fastor, AliVCaloCells *cells) |
void | ProcessCell (const AliEmcalCellInfo &cell) |
void | EventCompleted () |
void | EventTimeStamp (UInt_t timeStamp) |
THashList * | GetListOfHistograms () |
Static Public Member Functions | |
static Int_t | GetAmplitude (AliEMCALTriggerPatchInfo *patch, Int_t itype) |
Static Public Attributes | |
static const Int_t | fgkMaxPatchAmp [6] = {3000, 3000, 3000, 6000, 6000, 5000} |
Maximum patch amplitude for the histograms. More... | |
static const TString | fgkPatchTypes [3] = {"Online", "Recalc", "Offline"} |
Patch type names. More... | |
Protected Attributes | |
std::set< Short_t > | fOfflineBadChannels |
Abs ID of offline bad channels. More... | |
std::set< Short_t > | fBadChannels |
Container of bad channels. More... | |
TArrayF | fFastORPedestal |
FastOR pedestal. More... | |
Bool_t | fEnabledPatchTypes [3] |
Patch types to be plotted. More... | |
Bool_t | fEnabledTriggerTypes [6] |
Trigger 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... | |
Int_t | fL0MinTime |
Minimum L0 time. More... | |
Int_t | fL0MaxTime |
Maximum L0 time. More... | |
Double_t | fMinCellAmp |
Minimum offline amplitude of the cells. More... | |
Int_t | fMinL0FastORAmp |
Minimum L0 amplitude of the FastORs. More... | |
Int_t | fMinL1FastORAmp |
Minimum L1 amplitude of the FastORs. More... | |
THistManager | fHistManager |
Histogram manager. More... | |
Bool_t | fDCalPlots |
Whether to add DCal QA plots. More... | |
UInt_t | fTimeStampBinWidth |
Time stamp bin width. More... | |
AliEMCALGeometry * | fGeom |
! EMCal geometry More... | |
AliEMCALTriggerPatchInfo * | fMaxPatchEMCal [6][3] |
! EMCal max patch (will be reset each event) More... | |
AliEMCALTriggerPatchInfo * | fMaxPatchDCal [6][3] |
! DCal max patch (will be reset each event) More... | |
Double_t | fSumOfflineEMCal |
! EMCal sum of all offline energy deposition (will be reset each event) More... | |
Int_t | fSumL0EMCal |
! EMCal sum of all online energy deposition (will be reset each event) More... | |
Int_t | fSumL1EMCal |
! EMCal sum of all online energy deposition (will be reset each event) More... | |
Double_t | fSumOfflineDCal |
! DCal sum of all offline energy deposition (will be reset each event) More... | |
Int_t | fSumL0DCal |
! DCal sum of all online energy deposition (will be reset each event) More... | |
Int_t | fSumL1DCal |
! DCal sum of all online energy deposition (will be reset each event) More... | |
Int_t | fNCellEMCal |
! EMCal number of offline cells (will be reset each event) More... | |
Int_t | fNL0EMCal |
! EMCal number of L0 FastORs (will be reset each event) More... | |
Int_t | fNL1EMCal |
! EMCal number of L1 FastORs (will be reset each event) More... | |
Int_t | fNCellDCal |
! DCal number of offline cells (will be reset each event) More... | |
Int_t | fNL0DCal |
! DCal number of L0 FastORs (will be reset each event) More... | |
Int_t | fNL1DCal |
! DCal number of L1 FastORs (will be reset each event) More... | |
UInt_t | fEventTimeStamp |
! Time stamp of the current event More... | |
UInt_t | fEventTimeStampBin |
! Time stamp bin More... | |
Int_t | fNTotTRU |
! Total number of TRUs More... | |
Int_t | fMaxFORabsId |
! Maximum FastOR abs id More... | |
Private Member Functions | |
AliEmcalTriggerQAPP & | operator= (const AliEmcalTriggerQAPP &) |
Class to generate EMCal trigger QA plots in pp collisions.
This class generates QA plots for EMCal trigger in pp collisions
Definition at line 40 of file AliEmcalTriggerQAPP.h.
typedef EMCALTrigger::EMCalTriggerType_t AliEmcalTriggerQAPP::EMCalTriggerType_t |
Definition at line 43 of file AliEmcalTriggerQAPP.h.
Enumerator | |
---|---|
kOnlinePatch | |
kRecalcPatch | |
kOfflinePatch |
Definition at line 45 of file AliEmcalTriggerQAPP.h.
AliEmcalTriggerQAPP::AliEmcalTriggerQAPP | ( | ) |
Dummy constructor for ROOT I/O.
Definition at line 47 of file AliEmcalTriggerQAPP.cxx.
AliEmcalTriggerQAPP::AliEmcalTriggerQAPP | ( | const char * | name | ) |
Default constructor
name | Name of the object |
Definition at line 102 of file AliEmcalTriggerQAPP.cxx.
AliEmcalTriggerQAPP::AliEmcalTriggerQAPP | ( | const AliEmcalTriggerQAPP & | triggerQA | ) |
Copy constructor
triggerQA | Reference to an object to copy from |
Definition at line 157 of file AliEmcalTriggerQAPP.cxx.
|
virtual |
Destructor.
Definition at line 203 of file AliEmcalTriggerQAPP.cxx.
|
inline |
Definition at line 67 of file AliEmcalTriggerQAPP.h.
Referenced by ReadFastORBadChannelFromStream().
|
inline |
Definition at line 70 of file AliEmcalTriggerQAPP.h.
Referenced by ReadOfflineBadChannelFromStream().
|
inline |
Definition at line 83 of file AliEmcalTriggerQAPP.h.
Referenced by AliEmcalTriggerQATaskPP::UserCreateOutputObjects().
|
inline |
Definition at line 84 of file AliEmcalTriggerQAPP.h.
Referenced by AliEmcalTriggerQATaskPP::UserCreateOutputObjects().
void AliEmcalTriggerQAPP::EnablePatchType | ( | PatchTypes_t | type, |
Bool_t | e = kTRUE |
||
) |
Set the patch types to be plotted
type | Patch type of which the status is being changed |
e | Either enable or disable |
Definition at line 292 of file AliEmcalTriggerQAPP.cxx.
void AliEmcalTriggerQAPP::EnableTriggerType | ( | EMCalTriggerType_t | type, |
Bool_t | e = kTRUE |
||
) |
Set the trigger types to be plotted
type | Trigger type of which the status is being changed |
e | Either enable or disable |
Definition at line 301 of file AliEmcalTriggerQAPP.cxx.
void AliEmcalTriggerQAPP::EventCompleted | ( | ) |
This method should be called at the end of each event.
Definition at line 724 of file AliEmcalTriggerQAPP.cxx.
Referenced by AliEmcalTriggerQATaskPP::FillHistograms().
void AliEmcalTriggerQAPP::EventTimeStamp | ( | UInt_t | timeStamp | ) |
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 and creates the "by-time-stamp" histograms.
timeStamp | Time stamp of the event |
Definition at line 842 of file AliEmcalTriggerQAPP.cxx.
Referenced by AliEmcalTriggerQATaskPP::FillHistograms().
void AliEmcalTriggerQAPP::ExecOnce | ( | ) |
Actions to be executed only once for the first event.
Definition at line 307 of file AliEmcalTriggerQAPP.cxx.
Referenced by AliEmcalTriggerQATaskPP::ExecOnce().
|
static |
Return the amplitude of the patch (online, recalc, offline)
patch | Pointer to a AliEMCALTriggerPatchInfo object |
itype | Amplitude type (online, recalc, offline) |
Definition at line 822 of file AliEmcalTriggerQAPP.cxx.
Referenced by EventCompleted(), and ProcessPatch().
|
inline |
Definition at line 78 of file AliEmcalTriggerQAPP.h.
|
inline |
Definition at line 96 of file AliEmcalTriggerQAPP.h.
void AliEmcalTriggerQAPP::Init | ( | ) |
Initialize the class, i.e. allocate histograms.
Definition at line 316 of file AliEmcalTriggerQAPP.cxx.
Referenced by AliEmcalTriggerQATaskPP::UserCreateOutputObjects().
|
private |
void AliEmcalTriggerQAPP::ProcessCell | ( | const AliEmcalCellInfo & | cell | ) |
Process a cell, filling relevant histograms.
cell | Const reference to a AliEmcalCellInfo object |
Definition at line 552 of file AliEmcalTriggerQAPP.cxx.
Referenced by AliEmcalTriggerQATaskPP::FillHistograms().
void AliEmcalTriggerQAPP::ProcessFastor | ( | AliEMCALTriggerFastOR * | fastor, |
AliVCaloCells * | cells | ||
) |
Process a FastOR, filling relevant histograms.
patch | Pointer to a valid trigger FastOR |
Definition at line 593 of file AliEmcalTriggerQAPP.cxx.
Referenced by AliEmcalTriggerQATaskPP::FillHistograms().
void AliEmcalTriggerQAPP::ProcessPatch | ( | AliEMCALTriggerPatchInfo * | patch | ) |
Process a patch, filling relevant histograms.
patch | Pointer to a valid trigger patch |
Definition at line 493 of file AliEmcalTriggerQAPP.cxx.
Referenced by AliEmcalTriggerQATaskPP::FillHistograms().
void AliEmcalTriggerQAPP::ReadFastORBadChannelFromFile | ( | const char * | fname | ) |
Read the FastOR bad channel map from a text file
fname | Path and name of the file |
Definition at line 245 of file AliEmcalTriggerQAPP.cxx.
void AliEmcalTriggerQAPP::ReadFastORBadChannelFromStream | ( | std::istream & | stream | ) |
Read the FastOR bad channel map from a standard stream
stream | A reference to a standard stream to read from (can be a file stream) |
Definition at line 232 of file AliEmcalTriggerQAPP.cxx.
Referenced by ReadFastORBadChannelFromFile().
void AliEmcalTriggerQAPP::ReadFastORPedestalFromFile | ( | const char * | fname | ) |
Read the FastOR pedestals from a text file
fname | Path and name of the file |
Definition at line 282 of file AliEmcalTriggerQAPP.cxx.
void AliEmcalTriggerQAPP::ReadFastORPedestalFromStream | ( | std::istream & | stream | ) |
Read the FastOR pedestals from a standard stream
stream | A reference to a standard stream to read from (can be a file stream) |
Definition at line 268 of file AliEmcalTriggerQAPP.cxx.
Referenced by ReadFastORPedestalFromFile().
void AliEmcalTriggerQAPP::ReadOfflineBadChannelFromFile | ( | const char * | fname | ) |
Read the offline bad channel map from a text file
fname | Path and name of the file |
Definition at line 223 of file AliEmcalTriggerQAPP.cxx.
void AliEmcalTriggerQAPP::ReadOfflineBadChannelFromStream | ( | std::istream & | stream | ) |
Read the offline bad channel map from a standard stream
stream | A reference to a standard stream to read from (can be a file stream) |
Definition at line 210 of file AliEmcalTriggerQAPP.cxx.
Referenced by ReadOfflineBadChannelFromFile().
|
inline |
Definition at line 76 of file AliEmcalTriggerQAPP.h.
|
inline |
Definition at line 65 of file AliEmcalTriggerQAPP.h.
Referenced by AliEmcalTriggerQATaskPP::SetADCperBin().
|
inline |
Definition at line 64 of file AliEmcalTriggerQAPP.h.
Referenced by AliEmcalTriggerQATaskPP::UserCreateOutputObjects().
|
inline |
Definition at line 79 of file AliEmcalTriggerQAPP.h.
void AliEmcalTriggerQAPP::SetFastORPedestal | ( | Short_t | absId, |
Float_t | ped | ||
) |
Set the pedestal value for a FastOR
absId | Absolute ID of a FastOR |
ped | Pedestal value |
Definition at line 255 of file AliEmcalTriggerQAPP.cxx.
Referenced by ReadFastORPedestalFromStream().
|
inline |
Definition at line 66 of file AliEmcalTriggerQAPP.h.
|
protected |
ADC counts per bin.
Definition at line 110 of file AliEmcalTriggerQAPP.h.
Referenced by Init(), and SetADCperBin().
|
protected |
Container of bad channels.
Definition at line 104 of file AliEmcalTriggerQAPP.h.
Referenced by AddFastORBadChannel(), and ProcessFastor().
|
protected |
Whether to add DCal QA plots.
Definition at line 118 of file AliEmcalTriggerQAPP.h.
Referenced by EnableDCal(), EventCompleted(), Init(), ProcessCell(), ProcessFastor(), and ProcessPatch().
|
protected |
Debug level.
Definition at line 111 of file AliEmcalTriggerQAPP.h.
Referenced by GetDebugLevel(), ProcessPatch(), and SetDebugLevel().
|
protected |
Patch types to be plotted.
Definition at line 106 of file AliEmcalTriggerQAPP.h.
Referenced by AliEmcalTriggerQAPP(), EnablePatchType(), EventCompleted(), Init(), and ProcessPatch().
|
protected |
Trigger types to be plotted.
Definition at line 107 of file AliEmcalTriggerQAPP.h.
Referenced by AliEmcalTriggerQAPP(), EnableTriggerType(), EventCompleted(), Init(), and ProcessPatch().
|
protected |
! Time stamp of the current event
Definition at line 136 of file AliEmcalTriggerQAPP.h.
Referenced by EventTimeStamp().
|
protected |
! Time stamp bin
Definition at line 137 of file AliEmcalTriggerQAPP.h.
Referenced by EventTimeStamp(), and ProcessFastor().
|
protected |
FastOR L0 threshold.
Definition at line 108 of file AliEmcalTriggerQAPP.h.
Referenced by EventTimeStamp(), Init(), and ProcessFastor().
|
protected |
FastOR L1 threshold.
Definition at line 109 of file AliEmcalTriggerQAPP.h.
Referenced by Init(), ProcessCell(), and ProcessFastor().
|
protected |
FastOR pedestal.
Definition at line 105 of file AliEmcalTriggerQAPP.h.
Referenced by ProcessFastor(), ResetFastORPedestal(), and SetFastORPedestal().
|
protected |
! EMCal geometry
Definition at line 121 of file AliEmcalTriggerQAPP.h.
Referenced by ExecOnce(), ProcessCell(), and ProcessFastor().
|
static |
Maximum patch amplitude for the histograms.
Definition at line 98 of file AliEmcalTriggerQAPP.h.
Referenced by Init().
|
static |
Patch type names.
Definition at line 99 of file AliEmcalTriggerQAPP.h.
Referenced by EventCompleted(), Init(), and ProcessPatch().
|
protected |
Histogram manager.
Definition at line 117 of file AliEmcalTriggerQAPP.h.
Referenced by EventCompleted(), EventTimeStamp(), GetListOfHistograms(), Init(), ProcessCell(), ProcessFastor(), and ProcessPatch().
|
protected |
Maximum L0 time.
Definition at line 113 of file AliEmcalTriggerQAPP.h.
Referenced by Init(), ProcessFastor(), and SetL0TimeRange().
|
protected |
Minimum L0 time.
Definition at line 112 of file AliEmcalTriggerQAPP.h.
Referenced by Init(), ProcessFastor(), and SetL0TimeRange().
|
protected |
! Maximum FastOR abs id
Definition at line 139 of file AliEmcalTriggerQAPP.h.
Referenced by EventTimeStamp(), and Init().
|
protected |
! DCal max patch (will be reset each event)
Definition at line 123 of file AliEmcalTriggerQAPP.h.
Referenced by AliEmcalTriggerQAPP(), EventCompleted(), and ProcessPatch().
|
protected |
! EMCal max patch (will be reset each event)
Definition at line 122 of file AliEmcalTriggerQAPP.h.
Referenced by AliEmcalTriggerQAPP(), EventCompleted(), and ProcessPatch().
|
protected |
Minimum offline amplitude of the cells.
Definition at line 114 of file AliEmcalTriggerQAPP.h.
Referenced by ProcessCell(), and SetFastORandCellThresholds().
|
protected |
Minimum L0 amplitude of the FastORs.
Definition at line 115 of file AliEmcalTriggerQAPP.h.
Referenced by ProcessFastor(), and SetFastORandCellThresholds().
|
protected |
Minimum L1 amplitude of the FastORs.
Definition at line 116 of file AliEmcalTriggerQAPP.h.
Referenced by ProcessFastor(), and SetFastORandCellThresholds().
|
protected |
! DCal number of offline cells (will be reset each event)
Definition at line 133 of file AliEmcalTriggerQAPP.h.
Referenced by EventCompleted(), and ProcessCell().
|
protected |
! EMCal number of offline cells (will be reset each event)
Definition at line 130 of file AliEmcalTriggerQAPP.h.
Referenced by EventCompleted(), and ProcessCell().
|
protected |
! DCal number of L0 FastORs (will be reset each event)
Definition at line 134 of file AliEmcalTriggerQAPP.h.
Referenced by EventCompleted(), and ProcessFastor().
|
protected |
! EMCal number of L0 FastORs (will be reset each event)
Definition at line 131 of file AliEmcalTriggerQAPP.h.
Referenced by EventCompleted(), and ProcessFastor().
|
protected |
! DCal number of L1 FastORs (will be reset each event)
Definition at line 135 of file AliEmcalTriggerQAPP.h.
Referenced by EventCompleted(), and ProcessFastor().
|
protected |
! EMCal number of L1 FastORs (will be reset each event)
Definition at line 132 of file AliEmcalTriggerQAPP.h.
Referenced by EventCompleted(), and ProcessFastor().
|
protected |
|
protected |
Abs ID of offline bad channels.
Definition at line 103 of file AliEmcalTriggerQAPP.h.
Referenced by AddOfflineBadChannel(), and ProcessCell().
|
protected |
! DCal sum of all online energy deposition (will be reset each event)
Definition at line 128 of file AliEmcalTriggerQAPP.h.
Referenced by EventCompleted(), and ProcessFastor().
|
protected |
! EMCal sum of all online energy deposition (will be reset each event)
Definition at line 125 of file AliEmcalTriggerQAPP.h.
Referenced by EventCompleted(), and ProcessFastor().
|
protected |
! DCal sum of all online energy deposition (will be reset each event)
Definition at line 129 of file AliEmcalTriggerQAPP.h.
Referenced by EventCompleted(), and ProcessFastor().
|
protected |
! EMCal sum of all online energy deposition (will be reset each event)
Definition at line 126 of file AliEmcalTriggerQAPP.h.
Referenced by EventCompleted(), and ProcessFastor().
|
protected |
! DCal sum of all offline energy deposition (will be reset each event)
Definition at line 127 of file AliEmcalTriggerQAPP.h.
Referenced by EventCompleted(), and ProcessCell().
|
protected |
! EMCal sum of all offline energy deposition (will be reset each event)
Definition at line 124 of file AliEmcalTriggerQAPP.h.
Referenced by EventCompleted(), and ProcessCell().
|
protected |
Time stamp bin width.
Definition at line 119 of file AliEmcalTriggerQAPP.h.
Referenced by EnableHistogramsByTimeStamp(), EventTimeStamp(), Init(), and ProcessFastor().