![]() |
AliPhysics
eff0747 (eff0747)
|
Kernel of the EMCAL trigger patch makerThe trigger maker kernel contains the core functionality of the trigger maker: More...
#include <AliEmcalTriggerMakerKernel.h>
Public Types | |
enum | ELevel0TriggerStatus_t { kNotLevel0, kLevel0Candidate, kLevel0Fired } |
Public Member Functions | |
AliEmcalTriggerMakerKernel () | |
virtual | ~AliEmcalTriggerMakerKernel () |
void | Init () |
TObjArray * | CreateTriggerPatches (const AliVEvent *inputevent, Bool_t useL0amp=kFALSE) |
void | SetTriggerThresholdJetLow (Int_t a, Int_t b, Int_t c) |
void | SetTriggerThresholdJetHigh (Int_t a, Int_t b, Int_t c) |
void | SetTriggerThresholdGammaLow (Int_t a, Int_t b, Int_t c) |
void | SetTriggerThresholdGammaHigh (Int_t a, Int_t b, Int_t c) |
void | SetBackgroundThreshold (Int_t t) |
void | SetL0Threshold (Int_t t) |
void | SetJetPatchsize (Int_t patchsize) |
void | SetIsMC (Bool_t isMC) |
void | SetGeometry (const AliEMCALGeometry *const geo) |
void | SetTriggerBitConfig (const AliEMCALTriggerBitConfig *const config) |
void | SetL0TimeRange (Int_t min, Int_t max) |
void | SetFastORandCellThresholds (Int_t l0, Int_t l1, Int_t cell) |
void | AddFastORBadChannel (Short_t absId) |
void | ReadFastORBadChannelFromStream (std::istream &stream) |
void | ReadFastORBadChannelFromFile (const char *fname) |
void | AddOfflineBadChannel (Short_t absId) |
void | ReadOfflineBadChannelFromStream (std::istream &stream) |
void | ReadOfflineBadChannelFromFile (const char *fname) |
void | ReadFastORPedestalFromStream (std::istream &stream) |
void | ReadFastORPedestalFromFile (const char *fname) |
void | SetFastORPedestal (Short_t absId, Float_t ped) |
void | ResetFastORPedestal () |
void | Reset () |
void | ReadTriggerData (AliVCaloTrigger *trigger) |
void | ReadCellData (AliVCaloCells *cells) |
void | BuildL1ThresholdsOffline (const AliVVZERO *vzdata) |
Protected Types | |
enum | { kColsEta = 48 } |
Protected Member Functions | |
ELevel0TriggerStatus_t | CheckForL0 (Int_t col, Int_t row) const |
AliEMCALTriggerAlgorithm < double > * | CreateGammaTriggerAlgorithm (Int_t rowmin, Int_t rowmax) const |
AliEMCALTriggerAlgorithm < double > * | CreateJetTriggerAlgorithm (Int_t rowmin, Int_t rowmax) const |
AliEMCALTriggerAlgorithm < double > * | CreateBkgTriggerAlgorithm (Int_t rowmin, Int_t rowmax) const |
Bool_t | IsGammaPatch (const AliEMCALTriggerRawPatch &patch) const |
Bool_t | IsJetPatch (const AliEMCALTriggerRawPatch &patch) const |
Bool_t | IsBkgPatch (const AliEMCALTriggerRawPatch &patch) const |
Protected Attributes | |
std::set< Short_t > | fBadChannels |
Container of bad channels. More... | |
std::set< Short_t > | fOfflineBadChannels |
Abd ID of offline bad channels. More... | |
TArrayF | fFastORPedestal |
FastOR pedestal. More... | |
const AliEMCALTriggerBitConfig * | fTriggerBitConfig |
Trigger bit configuration, aliroot-dependent. More... | |
const AliEMCALGeometry * | fGeometry |
! Underlying EMCAL geometry More... | |
AliEMCALTriggerDataGrid< double > * | fPatchAmplitudes |
! TRU Amplitudes (for L0) More... | |
AliEMCALTriggerDataGrid< double > * | fPatchADCSimple |
! patch map for simple offline trigger More... | |
AliEMCALTriggerDataGrid< double > * | fPatchADC |
! ADC values map More... | |
AliEMCALTriggerDataGrid< char > * | fLevel0TimeMap |
! Map needed to store the level0 times More... | |
AliEMCALTriggerDataGrid< int > * | fTriggerBitMap |
! Map of trigger bits More... | |
AliEMCALTriggerPatchFinder < double > * | fPatchFinder |
! The actual patch finder More... | |
AliEMCALTriggerAlgorithm < double > * | fLevel0PatchFinder |
! Patch finder for Level0 patches More... | |
Int_t | fL0MinTime |
Minimum L0 time. More... | |
Int_t | fL0MaxTime |
Maximum L0 time. More... | |
Double_t | fADCtoGeV |
! Conversion factor from ADC to GeV More... | |
Int_t | fMinCellAmp |
Minimum offline amplitude of the cells used to generate the patches. More... | |
Int_t | fMinL0FastORAmp |
Minimum L0 amplitude of the FastORs used to generate the patches. More... | |
Int_t | fMinL1FastORAmp |
Minimum L1 amplitude of the FastORs used to generate the patches. More... | |
Int_t | fJetPatchsize |
Size of a jet patch. More... | |
Int_t | fThresholdConstants [4][3] |
simple offline trigger thresholds constants More... | |
ULong64_t | fL1ThresholdsOffline [4] |
container for V0-dependent offline thresholds More... | |
Int_t | fBkgThreshold |
threshold for the background patches (8x8) More... | |
Int_t | fL0Threshold |
threshold for the L0 patches (2x2) More... | |
Bool_t | fIsMC |
Set MC offset. More... | |
Int_t | fDebugLevel |
Debug lebel;. More... | |
Kernel of the EMCAL trigger patch maker
The trigger maker kernel contains the core functionality of the trigger maker:
Definition at line 43 of file AliEmcalTriggerMakerKernel.h.
|
protected |
Enumerator | |
---|---|
kColsEta |
Definition at line 215 of file AliEmcalTriggerMakerKernel.h.
Enumerator | |
---|---|
kNotLevel0 | |
kLevel0Candidate | |
kLevel0Fired |
Definition at line 46 of file AliEmcalTriggerMakerKernel.h.
AliEmcalTriggerMakerKernel::AliEmcalTriggerMakerKernel | ( | ) |
Constructor
Definition at line 43 of file AliEmcalTriggerMakerKernel.cxx.
|
virtual |
Destructor
Definition at line 73 of file AliEmcalTriggerMakerKernel.cxx.
|
inline |
Add a FastOR bad channel to the list
absId | Absolute ID of the bad channel |
Definition at line 132 of file AliEmcalTriggerMakerKernel.h.
Referenced by ReadFastORBadChannelFromStream().
|
inline |
Add an offline bad channel to the set
absId | Absolute ID of the bad channel |
Definition at line 150 of file AliEmcalTriggerMakerKernel.h.
Referenced by ReadOfflineBadChannelFromStream().
void AliEmcalTriggerMakerKernel::BuildL1ThresholdsOffline | ( | const AliVVZERO * | vzdata | ) |
Build VZERO-dependent thresholds for the offline trigger
vzdata | VERO charges |
Definition at line 272 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by AliEmcalTriggerMakerTask::Run().
|
protected |
Accept trigger patch as Level0 patch. Level0 patches are identified as 2x2 FASTOR patches in the same TRU
trg | Triggers object with the pointer set to the patch to inspect |
Definition at line 377 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by CreateTriggerPatches().
|
protected |
Create trigger algorithm for jet triggers
rowmin | Minimum row the trigger algorithm operates on |
rowmax | Maximum row the trigger algorithm operates on |
Definition at line 427 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by Init().
|
protected |
Create trigger algorithm for gamma triggers
rowmin | Minimum row the trigger algorithm operates on |
rowmax | Maximum row the trigger algorithm operates on |
Definition at line 411 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by Init().
|
protected |
Create trigger algorithm for jet triggers
rowmin | Minimum row the trigger algorithm operates on |
rowmax | Maximum row the trigger algorithm operates on |
Definition at line 419 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by Init().
TObjArray * AliEmcalTriggerMakerKernel::CreateTriggerPatches | ( | const AliVEvent * | inputevent, |
Bool_t | useL0amp = kFALSE |
||
) |
Run patch finders on input data. Patches are converted from raw patches into AliEMCALTriggerPatchInfo data. Trigger patches contain all information of the given category;
inputevent | Input ESD/AOD event, used for kinematics calculation |
Definition at line 284 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by AliEmcalTriggerMakerTask::Run().
void AliEmcalTriggerMakerKernel::Init | ( | ) |
Initialize the trigger maker Kernel:
Definition at line 84 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by AliEmcalTriggerMakerTask::ExecOnce().
|
protected |
Check from the bitmask whether the patch is a background patch
patch | Patch to check |
Definition at line 445 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by CreateTriggerPatches().
|
protected |
Check from the bitmask whether the patch is a gamma patch
patch | Patch to check |
Definition at line 435 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by CreateTriggerPatches().
|
protected |
Check from the bitmask whether the patch is a jet patch
patch | Patch to check |
Definition at line 440 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by CreateTriggerPatches().
void AliEmcalTriggerMakerKernel::ReadCellData | ( | AliVCaloCells * | cells | ) |
Read the EMCAL cell data
cells | EMCAL cell data |
Definition at line 247 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by AliEmcalTriggerMakerTask::Run().
void AliEmcalTriggerMakerKernel::ReadFastORBadChannelFromFile | ( | const char * | fname | ) |
Read the FastOR bad channel map from a text file
fname | Path and name of the file |
Definition at line 156 of file AliEmcalTriggerMakerKernel.cxx.
void AliEmcalTriggerMakerKernel::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 146 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by ReadFastORBadChannelFromFile().
void AliEmcalTriggerMakerKernel::ReadFastORPedestalFromFile | ( | const char * | fname | ) |
Read the FastOR pedestals from a text file
fname | Path and name of the file |
Definition at line 182 of file AliEmcalTriggerMakerKernel.cxx.
void AliEmcalTriggerMakerKernel::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 171 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by ReadFastORPedestalFromFile().
void AliEmcalTriggerMakerKernel::ReadOfflineBadChannelFromFile | ( | const char * | fname | ) |
Read the offline bad channel map from a text file
fname | Path and name of the file |
Definition at line 140 of file AliEmcalTriggerMakerKernel.cxx.
void AliEmcalTriggerMakerKernel::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 130 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by ReadOfflineBadChannelFromFile().
void AliEmcalTriggerMakerKernel::ReadTriggerData | ( | AliVCaloTrigger * | trigger | ) |
Read the calo trigger data
trigger | Input calo trigger data |
timeMin | Minimum L0 time |
timeMax | Maximum L0 time |
applyTimeCut | If true, only L0 amoplitudes in the range timeMin, timeMax are considered |
Definition at line 197 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by AliEmcalTriggerMakerTask::Run().
void AliEmcalTriggerMakerKernel::Reset | ( | ) |
Reset data grids
Definition at line 188 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by AliEmcalTriggerMakerTask::Run().
|
inline |
Reset the FastOR pedestal array
Definition at line 186 of file AliEmcalTriggerMakerKernel.h.
|
inline |
Definition at line 88 of file AliEmcalTriggerMakerKernel.h.
|
inline |
Set thresholds applied to FastORs and offline cells before patch reconstruction
l0 | Threshold for L0 FastOR amplitudes |
l1 | Threshold for L1 FastOR amplitudes |
cell | Threshold for cell amplitudes |
Definition at line 126 of file AliEmcalTriggerMakerKernel.h.
void AliEmcalTriggerMakerKernel::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 162 of file AliEmcalTriggerMakerKernel.cxx.
Referenced by ReadFastORPedestalFromStream().
|
inline |
Provide the EMCAL geometry to the trigger maker Kernel
geo |
Definition at line 105 of file AliEmcalTriggerMakerKernel.h.
Referenced by AliEmcalTriggerMakerTask::ExecOnce().
|
inline |
Define whether running on MC or not (for offset)
isMC | Flag for MC |
Definition at line 99 of file AliEmcalTriggerMakerKernel.h.
Referenced by AliEmcalTriggerMakerTask::Run().
|
inline |
Set the size of jet patches
patchsize | Size of jet patches |
Definition at line 94 of file AliEmcalTriggerMakerKernel.h.
Referenced by AliEmcalTriggerMakerTask::ExecOnce().
|
inline |
Definition at line 89 of file AliEmcalTriggerMakerKernel.h.
|
inline |
Set range for L0 time
min | Minimum L0 time (default is 7) |
max | Maximum L0 time (default is 10) |
Definition at line 118 of file AliEmcalTriggerMakerKernel.h.
Referenced by AliEmcalTriggerMakerTask::ExecOnce().
|
inline |
Set the trigger bit configuration applied for the given data set
config | Trigger bit config applied |
Definition at line 111 of file AliEmcalTriggerMakerKernel.h.
Referenced by AliEmcalTriggerMakerTask::ExecOnce().
|
inline |
Definition at line 87 of file AliEmcalTriggerMakerKernel.h.
Referenced by AliEmcalTriggerMakerTask::SetTriggerThresholdGammaHigh().
|
inline |
Definition at line 86 of file AliEmcalTriggerMakerKernel.h.
Referenced by AliEmcalTriggerMakerTask::SetTriggerThresholdGammaLow().
|
inline |
Definition at line 85 of file AliEmcalTriggerMakerKernel.h.
Referenced by AliEmcalTriggerMakerTask::SetTriggerThresholdJetHigh().
|
inline |
Definition at line 84 of file AliEmcalTriggerMakerKernel.h.
Referenced by AliEmcalTriggerMakerTask::SetTriggerThresholdJetLow().
|
protected |
! Conversion factor from ADC to GeV
Definition at line 284 of file AliEmcalTriggerMakerKernel.h.
Referenced by CreateTriggerPatches(), and ReadCellData().
|
protected |
Container of bad channels.
Definition at line 268 of file AliEmcalTriggerMakerKernel.h.
Referenced by AddFastORBadChannel(), and ReadTriggerData().
|
protected |
threshold for the background patches (8x8)
Definition at line 292 of file AliEmcalTriggerMakerKernel.h.
Referenced by CreateTriggerPatches(), and SetBackgroundThreshold().
|
protected |
Debug lebel;.
Definition at line 296 of file AliEmcalTriggerMakerKernel.h.
|
protected |
FastOR pedestal.
Definition at line 270 of file AliEmcalTriggerMakerKernel.h.
Referenced by ReadTriggerData(), ResetFastORPedestal(), and SetFastORPedestal().
|
protected |
! Underlying EMCAL geometry
Definition at line 272 of file AliEmcalTriggerMakerKernel.h.
Referenced by CheckForL0(), CreateTriggerPatches(), Init(), ReadCellData(), ReadTriggerData(), and SetGeometry().
|
protected |
Set MC offset.
Definition at line 294 of file AliEmcalTriggerMakerKernel.h.
Referenced by CreateTriggerPatches(), and SetIsMC().
|
protected |
Size of a jet patch.
Definition at line 289 of file AliEmcalTriggerMakerKernel.h.
Referenced by CreateJetTriggerAlgorithm(), Init(), and SetJetPatchsize().
|
protected |
Maximum L0 time.
Definition at line 283 of file AliEmcalTriggerMakerKernel.h.
Referenced by CheckForL0(), and SetL0TimeRange().
|
protected |
Minimum L0 time.
Definition at line 282 of file AliEmcalTriggerMakerKernel.h.
Referenced by CheckForL0(), and SetL0TimeRange().
|
protected |
threshold for the L0 patches (2x2)
Definition at line 293 of file AliEmcalTriggerMakerKernel.h.
Referenced by CreateTriggerPatches(), and SetL0Threshold().
|
protected |
container for V0-dependent offline thresholds
Definition at line 291 of file AliEmcalTriggerMakerKernel.h.
Referenced by BuildL1ThresholdsOffline(), CreateTriggerPatches(), and Reset().
|
protected |
! Patch finder for Level0 patches
Definition at line 281 of file AliEmcalTriggerMakerKernel.h.
Referenced by CreateTriggerPatches(), Init(), and ~AliEmcalTriggerMakerKernel().
|
protected |
! Map needed to store the level0 times
Definition at line 277 of file AliEmcalTriggerMakerKernel.h.
Referenced by Init(), Reset(), and ~AliEmcalTriggerMakerKernel().
|
protected |
Minimum offline amplitude of the cells used to generate the patches.
Definition at line 286 of file AliEmcalTriggerMakerKernel.h.
Referenced by ReadCellData(), and SetFastORandCellThresholds().
|
protected |
Minimum L0 amplitude of the FastORs used to generate the patches.
Definition at line 287 of file AliEmcalTriggerMakerKernel.h.
Referenced by ReadTriggerData(), and SetFastORandCellThresholds().
|
protected |
Minimum L1 amplitude of the FastORs used to generate the patches.
Definition at line 288 of file AliEmcalTriggerMakerKernel.h.
Referenced by ReadTriggerData(), and SetFastORandCellThresholds().
|
protected |
Abd ID of offline bad channels.
Definition at line 269 of file AliEmcalTriggerMakerKernel.h.
Referenced by AddOfflineBadChannel(), and ReadCellData().
|
protected |
! ADC values map
Definition at line 276 of file AliEmcalTriggerMakerKernel.h.
Referenced by CreateTriggerPatches(), Init(), Reset(), and ~AliEmcalTriggerMakerKernel().
|
protected |
! patch map for simple offline trigger
Definition at line 275 of file AliEmcalTriggerMakerKernel.h.
Referenced by CreateTriggerPatches(), Init(), Reset(), and ~AliEmcalTriggerMakerKernel().
|
protected |
! TRU Amplitudes (for L0)
Definition at line 274 of file AliEmcalTriggerMakerKernel.h.
Referenced by CreateTriggerPatches(), Init(), Reset(), and ~AliEmcalTriggerMakerKernel().
|
protected |
! The actual patch finder
Definition at line 280 of file AliEmcalTriggerMakerKernel.h.
Referenced by CreateTriggerPatches(), Init(), and ~AliEmcalTriggerMakerKernel().
|
protected |
simple offline trigger thresholds constants
Definition at line 290 of file AliEmcalTriggerMakerKernel.h.
Referenced by BuildL1ThresholdsOffline(), SetTriggerThresholdGammaHigh(), SetTriggerThresholdGammaLow(), SetTriggerThresholdJetHigh(), and SetTriggerThresholdJetLow().
|
protected |
Trigger bit configuration, aliroot-dependent.
Definition at line 271 of file AliEmcalTriggerMakerKernel.h.
Referenced by CreateBkgTriggerAlgorithm(), CreateGammaTriggerAlgorithm(), CreateJetTriggerAlgorithm(), CreateTriggerPatches(), Init(), IsBkgPatch(), IsGammaPatch(), IsJetPatch(), SetTriggerBitConfig(), and ~AliEmcalTriggerMakerKernel().
|
protected |
! Map of trigger bits
Definition at line 278 of file AliEmcalTriggerMakerKernel.h.
Referenced by Init(), Reset(), and ~AliEmcalTriggerMakerKernel().