ATLAS Offline Software
Loading...
Searching...
No Matches
TileDigitsMonitorAlgorithm Class Reference

Class for Tile digi noise based monitoring. More...

#include <TileDigitsMonitorAlgorithm.h>

Inheritance diagram for TileDigitsMonitorAlgorithm:
Collaboration diagram for TileDigitsMonitorAlgorithm:

Public Types

enum class  Environment_t {
  user = 0 , online , tier0 , tier0Raw ,
  tier0ESD , AOD , altprod
}
 Specifies the processing environment. More...
enum class  DataType_t {
  userDefined = 0 , monteCarlo , collisions , cosmics ,
  heavyIonCollisions
}
 Specifies what type of input data is being monitored. More...

Public Member Functions

virtual ~TileDigitsMonitorAlgorithm ()=default
virtual StatusCode initialize () override
 initialize
virtual StatusCode fillHistograms (const EventContext &ctx) const override
 adds event to the monitoring histograms
 TileCalibMonitorAlgorithm (const std::string &name, ISvcLocator *svcLocator)
 AthMonitorAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor.
virtual StatusCode execute (const EventContext &ctx) const override
 Applies filters and trigger requirements.
void fill (const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > &&variables) const
 Fills a vector of variables to a group by reference.
void fill (const ToolHandle< GenericMonitoringTool > &groupHandle, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > &variables) const
 Fills a vector of variables to a group by reference.
template<typename... T>
void fill (const ToolHandle< GenericMonitoringTool > &groupHandle, T &&... variables) const
 Fills a variadic list of variables to a group by reference.
void fill (const std::string &groupName, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > &&variables) const
 Fills a vector of variables to a group by name.
void fill (const std::string &groupName, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > &variables) const
 Fills a vector of variables to a group by name.
template<typename... T>
void fill (const std::string &groupName, T &&... variables) const
 Fills a variadic list of variables to a group by name.
Environment_t environment () const
 Accessor functions for the environment.
Environment_t envStringToEnum (const std::string &str) const
 Convert the environment string from the python configuration to an enum object.
DataType_t dataType () const
 Accessor functions for the data type.
DataType_t dataTypeStringToEnum (const std::string &str) const
 Convert the data type string from the python configuration to an enum object.
const ToolHandle< GenericMonitoringTool > & getGroup (const std::string &name) const
 Get a specific monitoring tool from the tool handle array.
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool () const
 Get the trigger decision tool member.
bool trigChainsArePassed (const std::vector< std::string > &vTrigNames) const
 Check whether triggers are passed.
SG::ReadHandle< xAOD::EventInfoGetEventInfo (const EventContext &) const
 Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)
virtual float lbAverageInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average mu, i.e.
virtual float lbInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate instantaneous number of interactions, i.e.
virtual float lbAverageLuminosity (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1).
virtual float lbLuminosityPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the instantaneous luminosity per bunch crossing.
virtual double lbDuration (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the duration of the luminosity block (in seconds)
virtual float lbAverageLivefraction (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average luminosity livefraction.
virtual float livefractionPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the live fraction per bunch crossing ID.
virtual double lbLumiWeight (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average integrated luminosity multiplied by the live fraction.
virtual StatusCode parseList (const std::string &line, std::vector< std::string > &result) const
 Parse a string into a vector.
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
virtual void setFilterPassed (bool state, const EventContext &ctx) const
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Public Attributes

 flags = initConfigFlags()
 Files
 AtlasVersion
 GlobalTag
 HISTFileName
 useTrigger
 enableLumiAccess
 MaxEvents
 cfg = MainServicesCfg(flags)
 withDetails
 True
 summariseProps
 sc = cfg.run()

Protected Types

enum  RunType {
  UNKNOWN_RUN = 0 , PHYS_RUN = 1 , LAS_RUN = 2 , LED_RUN = 3 ,
  PED_RUN = 4 , CIS_RUN = 8 , MONO_RUN = 9 , CIS_RAMP_RUN = 10
}
 Describes Tile Run Type. More...

Protected Member Functions

bool isHeaderFormatError (uint32_t header) const
bool isHeaderParityError (uint32_t header) const
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Protected Attributes

Gaudi::Property< std::string > m_tileInfoName
Gaudi::Property< std::vector< int > > m_fragIDsToIgnoreDMUerrors
Gaudi::Property< std::vector< int > > m_fragIDsDemonstrators
Gaudi::Property< int > m_runType
SG::ReadHandleKey< TileDQstatusm_dqStatusKey
ServiceHandle< TileCablingSvcm_cablingSvc
 Name of Tile cabling service.
const TileCablingServicem_cabling {nullptr}
const TileHWIDm_tileHWID {nullptr}
const TileInfom_tileInfo {nullptr}
ToolHandleArray< GenericMonitoringToolm_tools {this,"GMTools",{}}
 Array of Generic Monitoring Tools.
PublicToolHandle< Trig::TrigDecisionToolm_trigDecTool
 Tool to tell whether a specific trigger is passed.
ToolHandleArray< IDQFilterToolm_DQFilterTools {this,"FilterTools",{}}
 Array of Data Quality filter tools.
SG::ReadCondHandleKey< LuminosityCondDatam_lumiDataKey {this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"}
SG::ReadCondHandleKey< LBDurationCondDatam_lbDurationDataKey {this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"}
SG::ReadCondHandleKey< TrigLiveFractionCondDatam_trigLiveFractionDataKey {this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData", "SG Key of TrigLiveFractionCondData object"}
AthMonitorAlgorithm::Environment_t m_environment
 Instance of the Environment_t enum.
AthMonitorAlgorithm::DataType_t m_dataType
 Instance of the DataType_t enum.
Gaudi::Property< std::string > m_environmentStr {this,"Environment","user"}
 Environment string pulled from the job option and converted to enum.
Gaudi::Property< std::string > m_dataTypeStr {this,"DataType","userDefined"}
 DataType string pulled from the job option and converted to enum.
Gaudi::Property< std::string > m_triggerChainString {this,"TriggerChain",""}
 Trigger chain string pulled from the job option and parsed into a vector.
std::vector< std::string > m_vTrigChainNames
 Vector of trigger chain names parsed from trigger chain string.
Gaudi::Property< std::string > m_fileKey {this,"FileKey",""}
 Internal Athena name for file.
Gaudi::Property< bool > m_useLumi {this,"EnableLumi",false}
 Allows use of various luminosity functions.
Gaudi::Property< float > m_defaultLBDuration {this,"DefaultLBDuration",60.}
 Default duration of one lumi block.
Gaudi::Property< int > m_detailLevel {this,"DetailLevel",0}
 Sets the level of detail used in the monitoring.
SG::ReadHandleKey< xAOD::EventInfom_EventInfoKey {this,"EventInfoKey","EventInfo"}
 Key for retrieving EventInfo from StoreGate.

Private Types

enum  TileFragStatus {
  ALL_OK = 0 , ALL_FF = 0x10 , ALL_00 = 0x20 , NO_FRAG = 0x40 ,
  NO_ROB = 0x80
}
enum  TileDigiErrors {
  OK , HEADER_FORM , HEADER_PAR , MEMO_PAR ,
  SINGLE_STB , DOUBLE_STB , DUMMY_FRAG , NO_RECO_FRAG
}
typedef std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > MonVarVec_t
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

void checkCRC (bool isCalibMode, uint32_t crc32, uint32_t crcMask, int nDMU, int ros, int drawer) const
StatusCode checkROD_CRC (const TileDQstatus *dqStatus, const EventContext &ctx) const
bool checkCorruptedData (const std::vector< std::reference_wrapper< const std::vector< uint32_t > > > &headerWordsAll, uint32_t fragStatus, int ros, int drawer, std::vector< std::vector< bool > > &corruptedData) const
void checkBCID (const std::vector< std::reference_wrapper< const std::vector< uint32_t > > > &headerWordsAll, uint32_t rodBCID, int ros, int drawer) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

Gaudi::Property< bool > m_fillPedestalDifference
Gaudi::Property< bool > m_fillErrorsHistograms
Gaudi::Property< bool > m_fillPedestalHistograms
Gaudi::Property< bool > m_fillHighFrequencyNoiseHistograms
Gaudi::Property< bool > m_fillSamplesHistograms
Gaudi::Property< bool > m_fillProfileHistograms
Gaudi::Property< bool > m_fillEventModule32Histograms
Gaudi::Property< bool > m_fillCorrelationsHistograms
SG::ReadHandleKey< TileDigitsContainerm_digitsContainerKey
SG::ReadHandleKey< TileRawChannelContainerm_rawChannelContainerKey
ToolHandle< TileCondToolNoiseSamplem_tileCondToolNoiseSample
std::vector< int > m_meanSampleGroups
std::vector< int > m_meanSampleProdGroups
std::vector< std::vector< int > > m_crcGlobalGroups
std::vector< std::vector< int > > m_crcErrGroups
std::vector< std::vector< std::vector< int > > > m_bcidGroups
std::vector< std::vector< std::vector< int > > > m_bcidErrGroups
std::vector< std::vector< std::vector< int > > > m_errorsGroups
std::vector< std::vector< int > > m_pedGroups
std::vector< std::vector< int > > m_hfnGroups
std::vector< std::vector< int > > m_samplesGroups
std::vector< std::vector< int > > m_profGroups
std::vector< std::vector< int > > m_evtMod32Groups
bool m_is12bit {false}
float m_ADCmaxMinusEpsilon
std::string m_name
std::unordered_map< std::string, size_t > m_toolLookupMap
const ToolHandle< GenericMonitoringToolm_dummy
Gaudi::Property< bool > m_enforceExpressTriggers
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Static Private Attributes

static const int MAX_DMU {16}

Detailed Description

Class for Tile digi noise based monitoring.

Definition at line 22 of file TileDigitsMonitorAlgorithm.h.

Member Typedef Documentation

◆ MonVarVec_t

typedef std::vector<std::reference_wrapper<Monitored::IMonitoredVariable> > AthMonitorAlgorithm::MonVarVec_t
privateinherited

Definition at line 370 of file AthMonitorAlgorithm.h.

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ DataType_t

enum class AthMonitorAlgorithm::DataType_t
stronginherited

Specifies what type of input data is being monitored.

An enumeration of the different types of data the monitoring application may be running over. This can be used to select which histograms to produce, e.g. to prevent the production of colliding-beam histograms when running on cosmic-ray data. Strings of the same names may be given as jobOptions.

Enumerator
userDefined 
monteCarlo 
collisions 
cosmics 
heavyIonCollisions 

Definition at line 194 of file AthMonitorAlgorithm.h.

194 {
195 userDefined = 0,
196 monteCarlo,
197 collisions,
198 cosmics,
199 heavyIonCollisions,
200 };
AthConfigFlags cosmics(AthConfigFlags flags, str instanceName, str recoMode)

◆ Environment_t

enum class AthMonitorAlgorithm::Environment_t
stronginherited

Specifies the processing environment.

The running environment may be used to select which histograms are produced, and where they are located in the output. For example, the output paths of the histograms are different for the "user", "online" and the various offline flags. Strings of the same names may be given as jobOptions.

Enumerator
user 
online 
tier0 
tier0Raw 
tier0ESD 
AOD 
altprod 

Definition at line 175 of file AthMonitorAlgorithm.h.

175 {
176 user = 0,
177 online,
178 tier0,
179 tier0Raw,
180 tier0ESD,
181 AOD,
182 altprod,
183 };

◆ RunType

enum TileCalibMonitorAlgorithm::RunType
protectedinherited

Describes Tile Run Type.

Enumerator
UNKNOWN_RUN 
PHYS_RUN 
LAS_RUN 
LED_RUN 
PED_RUN 
CIS_RUN 
MONO_RUN 
CIS_RAMP_RUN 

Definition at line 64 of file TileCalibMonitorAlgorithm.h.

64 {
65 UNKNOWN_RUN = 0, // expect monogain
66 PHYS_RUN = 1, // expect monogain
67 LAS_RUN = 2, // expect monogain
68 LED_RUN = 3, // expect monogain
69 PED_RUN = 4, // expect bigain
70 CIS_RUN = 8, // expect bigain
71 MONO_RUN = 9, // expect monogain
72 CIS_RAMP_RUN = 10 // expect monogain
73 };

◆ TileDigiErrors

enum TileDigitsMonitorAlgorithm::TileDigiErrors
private
Enumerator
OK 
HEADER_FORM 
HEADER_PAR 
MEMO_PAR 
SINGLE_STB 
DOUBLE_STB 
DUMMY_FRAG 
NO_RECO_FRAG 

Definition at line 35 of file TileDigitsMonitorAlgorithm.h.

35 {OK, HEADER_FORM, HEADER_PAR, MEMO_PAR, SINGLE_STB, DOUBLE_STB,
36 DUMMY_FRAG, NO_RECO_FRAG};

◆ TileFragStatus

enum TileDigitsMonitorAlgorithm::TileFragStatus
private
Enumerator
ALL_OK 
ALL_FF 
ALL_00 
NO_FRAG 
NO_ROB 

Definition at line 33 of file TileDigitsMonitorAlgorithm.h.

33{ALL_OK = 0, ALL_FF = 0x10, ALL_00 = 0x20, NO_FRAG = 0x40, NO_ROB = 0x80};

Constructor & Destructor Documentation

◆ ~TileDigitsMonitorAlgorithm()

virtual TileDigitsMonitorAlgorithm::~TileDigitsMonitorAlgorithm ( )
virtualdefault

Member Function Documentation

◆ AthMonitorAlgorithm()

AthMonitorAlgorithm::AthMonitorAlgorithm ( const std::string & name,
ISvcLocator * pSvcLocator )
inherited

Constructor.

Definition at line 45 of file AthMonitorAlgorithm.cxx.

9:AthReentrantAlgorithm(name,pSvcLocator)
10 // Put this here rather than in the header to allow forward-declaring
11 // TrigDecisionTool.
12,m_trigDecTool{this, "TrigDecisionTool",""}
16{}
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.
std::vector< std::string > m_vTrigChainNames
Vector of trigger chain names parsed from trigger chain string.
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ checkBCID()

void TileDigitsMonitorAlgorithm::checkBCID ( const std::vector< std::reference_wrapper< const std::vector< uint32_t > > > & headerWordsAll,
uint32_t rodBCID,
int ros,
int drawer ) const
private

Definition at line 532 of file TileDigitsMonitorAlgorithm.cxx.

533 {
534
535 int gain = 0;
536 int partition = ros - 1;
537 for (auto headerWords : headerWordsAll) {
538 int dmu = 0;
539 for (uint32_t header : headerWords.get() ) {
540 uint32_t dmuBCID = (header & 0xFFF);
541 auto monBCID = Monitored::Scalar<int>("BCID_" + std::to_string(dmu), dmuBCID);
542 fill(m_tools[m_bcidGroups[partition][drawer][gain]], monBCID);
543
544 if ((dmuBCID == rodBCID) || (rodBCID > 0 && dmuBCID == rodBCID - 1)
545 || ((rodBCID == 0) && ((dmuBCID == 3563) || (dmuBCID == 3564)))) {
546
547 auto monBCIDErr = Monitored::Scalar<int>("BCID_err_" + std::to_string(dmu), 1);
548 fill(m_tools[m_bcidErrGroups[partition][drawer][gain]], monBCIDErr);
549 }
550 ++dmu;
551 }
552 ++gain;
553 }
554}
Declare a monitored scalar variable.
void fill(H5::Group &out_file, size_t iterations)

◆ checkCorruptedData()

bool TileDigitsMonitorAlgorithm::checkCorruptedData ( const std::vector< std::reference_wrapper< const std::vector< uint32_t > > > & headerWordsAll,
uint32_t fragStatus,
int ros,
int drawer,
std::vector< std::vector< bool > > & corruptedData ) const
private

Definition at line 429 of file TileDigitsMonitorAlgorithm.cxx.

430 {
431
432 using Tile = TileCalibUtils;
433 int partition = ros - 1;
434
435 std::vector<int> errors;
436 auto errorsInDMUs = Monitored::Collection("Error", errors);
437
438 std::vector<int> dmus;
439 auto drawerDMUs = Monitored::Collection("DMU", dmus);
440
441 TileDigiErrors error(OK);
442 if (fragStatus != TileFragStatus::ALL_OK) {
443 if (fragStatus & (TileFragStatus::ALL_FF | TileFragStatus::ALL_00)) {
444 error = DUMMY_FRAG;
445 } else if (fragStatus & (TileFragStatus::NO_FRAG | TileFragStatus::NO_ROB)) {
446 error = NO_RECO_FRAG;
447 }
448 for (int dmu = 0; dmu < MAX_DMU; ++dmu) {
449 dmus.push_back(dmu);
450 errors.push_back(error);
451 }
452 if (m_fillErrorsHistograms) {
453 for (unsigned int gain = 0; gain < Tile::MAX_GAIN; ++gain) {
454 fill(m_tools[m_errorsGroups[partition][drawer][gain]], drawerDMUs, errorsInDMUs);
455 }
456 }
457 return true;
458 }
459
460 /*
461 * DMU header format as defined in http://www.sysf.physto.se/~klere/tile-dmu/header.html
462 * Bits: 1pllllesdrvvvv0mmgggbbbbbbbbbbbb
463 *
464 * The header starts with bit 31 set to indicate a header. The other bits as follows:
465 * p - Parity (odd)
466 * l - Derandomizer length (number of samples).
467 * e - Parity error. A parity error was detected from the memory in the last readout.
468 * s - SEstr Single Error Strobe recieved from the ttc.
469 * d - DEstr Double Error Strobe recieved from the ttc.
470 * r - Register parity. Parity from the registers in the chip.
471 * v - Variable parity. Parity from the variables in the chip.
472 * 0 - Not used. (Set to 0)
473 * m - Mode. 00 - Normal mode
474 * 01 - Calibration mode
475 * 10 - Test mode
476 * 11 - Not used
477 * g - High/low gain. Indicates high(1) or low(0) amplification from the 3-in-1 cards.
478 * b - Bunch Crossing.
479 */
480
481 int gain = 0;
482 for (auto headerWords : headerWordsAll) {
483 int dmu = 0;
484 dmus.clear();
485 errors.clear();
486 for (uint32_t header : headerWords.get() ) {
487 error = OK;
488 if (isHeaderFormatError(header)) {
489 corruptedData[gain][dmu] = true;
490 dmus.push_back(dmu);
491 errors.push_back(HEADER_FORM);
492 } else if (isHeaderParityError(header)) {
493 corruptedData[gain][dmu] = true;
494 dmus.push_back(dmu);
495 errors.push_back(HEADER_PAR);
496 } else {
497 if ((header >> 25) & 0x1) {
498 dmus.push_back(dmu);
499 error = MEMO_PAR;
500 errors.push_back(error);
501 }
502 if ((header >> 24) & 0x1) {
503 dmus.push_back(dmu);
505 errors.push_back(error);
506 }
507 if ((header >> 23) & 0x1) {
508 dmus.push_back(dmu);
510 errors.push_back(error);
511 }
512 if (error == OK) {
513 dmus.push_back(dmu);
514 errors.push_back(OK);
515 } else {
516 int fragId = m_tileHWID->frag(ros, drawer);
517 if (!std::binary_search(m_fragIDsToIgnoreDMUerrors.begin(), m_fragIDsToIgnoreDMUerrors.end(), fragId)) {
518 corruptedData[gain][dmu] = true;
519 }
520 }
521 }
522 ++dmu;
523 }
524 if (m_fillErrorsHistograms) {
525 fill(m_tools[m_errorsGroups[partition][drawer][gain]], drawerDMUs, errorsInDMUs);
526 }
527 ++gain;
528 }
529 return false;
530}
bool isHeaderParityError(uint32_t header) const
bool isHeaderFormatError(uint32_t header) const
Gaudi::Property< std::vector< int > > m_fragIDsToIgnoreDMUerrors
Static class providing several utility functions and constants.
int frag(const HWIdentifier &id) const
extract frag field from HW identifier
Definition TileHWID.h:181
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.

◆ checkCRC()

void TileDigitsMonitorAlgorithm::checkCRC ( bool isCalibMode,
uint32_t crc32,
uint32_t crcMask,
int nDMU,
int ros,
int drawer ) const
private

bigain: dummy information

Definition at line 294 of file TileDigitsMonitorAlgorithm.cxx.

295 {
296 /*
297 * Author: Luca. F. November 06
298 * This method provides CRC checks for Global and TileDMU chips.
299 * Global CRC is taken from the trailer and it is correct if
300 * the first 16 bits and the last 16 bits of the word match.
301 * TileDMU CRC is taken from the DMU mask filled in the FPGA.
302 * At the moment it makes sense only for monogain runs
303 * (Physics, LED, MonoCIS). The least significant 16 bits are the result of
304 * the CRC check in the FE (0xFFFF means all OK). The most significant 16 bits
305 * are the result of the CRC check in the ROD (0xFFFF means all OK).
306 */
307
308 int partition = ros - 1;
309
310 // array to adjust order of DMU's of EB* FE CRC status in DMU chip mask word
311 // this is needed because FE and ROD fill DMU mask word in different order
312 int dmuFE_EB[16] = { 0, 1, 2, 3, 4, 5, 6, 7, 12, 13, 8, 9, 10, 11, 14, 15 };
313 int dmuFE_EB_special[16] = { 11, 0, 1, 2, 3, 4, 5, 6, 12, 13, 7, 8, 9, 10, 14, 15 };
314
315 // global CRC
316 uint32_t crc0 = crc32 & 0xFFFF;
317 uint32_t crc1 = crc32 >> 16;
318
319 int crcGlobal = (crc32 == 0) ? 0 : (crc0 == crc1) ? 1 : 2;
320 auto monGlobalCRC = Monitored::Scalar<int>("CRC_global", crcGlobal);
321 fill(m_tools[m_crcGlobalGroups[partition][drawer]], monGlobalCRC);
322
323 // CRC per TileDMU. For mono gain we have it from ROD and FE.
324 // In bi gain, it is just a placeholder with global CRC information.
325 if (isCalibMode) {
326 for (int dmu = 0; dmu < nDMU; ++dmu) {
327 auto monCRCErr = Monitored::Scalar<int>("CRC_err_" + std::to_string(dmu), crcGlobal);
328 fill(m_tools[m_crcErrGroups[partition][drawer]], monCRCErr);
329 }
330 } else {
331 /*
332 * monogain: meaningful information.
333 * Fill 0 if crc32 if 0
334 * Fill 1 if both FE and ROD crc is 1
335 * Fill 2 if DMU FE crc is 0
336 * Fill 3 if DMU ROD crc is 0
337 * Fill 4 is FE and ROD crc is 0
338 */
339 int crcError = -1;
340 if (crc32 == 0) {
341 crcError = 0;
342 for (int dmu = 0; dmu < nDMU; ++dmu) {
343 auto monCRCErr = Monitored::Scalar<int>("CRC_err_" + std::to_string(dmu), crcError);
344 fill(m_tools[m_crcErrGroups[partition][drawer]], monCRCErr);
345 }
346 } else if (crcMask == 0xFFFFFFFF) {
347 crcError = 1;
348 for (int dmu = 0; dmu < nDMU; ++dmu) {
349 auto monCRCErr = Monitored::Scalar<int>("CRC_err_" + std::to_string(dmu), crcError);
350 fill(m_tools[m_crcErrGroups[partition][drawer]], monCRCErr);
351 }
352 } else {
353 uint32_t fe_crc = crcMask & 0xFFFF;
354 uint32_t rod_crc = crcMask >> 16;
355 for (int dmu = 0; dmu < nDMU; ++dmu) {
356 crcError = 1; // TileDMU is fine
357 if (ros < 3) { // LB* use simple FE CRC map
358 if ((fe_crc >> dmu & 0x1) == 0x0) {
359 ++crcError; // add FE error
360 }
361 } else {
362 // EB* use different FECRC map
363 if ((ros == 3 && drawer == 14) || (ros == 4 && drawer == 17)) {
364 // Special EBA15, EBC18
365 if ((fe_crc >> dmuFE_EB_special[dmu] & 0x1) == 0x0) {
366 ++crcError; // add FE error
367 }
368 } else {
369 if ((fe_crc >> dmuFE_EB[dmu] & 0x1) == 0x0) {
370 ++crcError; // add FE error
371 }
372 }
373 }
374 if ((rod_crc >> dmu & 0x1) == 0x0) {
375 crcError += 2; // add ROD error
376 }
377
378 auto monCRCErr = Monitored::Scalar<int>("CRC_err_" + std::to_string(dmu), crcError);
379 fill(m_tools[m_crcErrGroups[partition][drawer]], monCRCErr);
380
381 }
382 }
383 }
384}
setEventNumber uint32_t

◆ checkROD_CRC()

StatusCode TileDigitsMonitorAlgorithm::checkROD_CRC ( const TileDQstatus * dqStatus,
const EventContext & ctx ) const
private

Definition at line 387 of file TileDigitsMonitorAlgorithm.cxx.

387 {
388
389 /*
390 * Author: Luca. F. Mar 08
391 * This method provides CRC checks for Global and TileDMU chips.
392 * They are taken from the the ROD RawChannel Container
393 * TileDMU CRC is taken from the DMU mask filled in the FPGA.
394 * It makes sense only for monogain runs
395 * (Physics, LED, MonoCIS). The least significant 16 bits are the result of
396 * the CRC check in the FE (0xFFFF means all OK). The most significant 16 bits
397 * are the result of the CRC check in the ROD (0xFFFF means all OK).
398 * Global CRC is taken also from the DQ Fragment. '0' means OK,
399 * '1' means mismatch.
400 */
401
402 SG::ReadHandle<TileRawChannelContainer> rawChannelContainer(m_rawChannelContainerKey, ctx);
403 ATH_CHECK( rawChannelContainer.isValid() );
404
405 for (const TileRawChannelCollection* rawChannelCollection : *rawChannelContainer) {
406 if (rawChannelCollection->empty()) continue;
407
408 HWIdentifier hwid = rawChannelCollection->front()->adc_HWID(); // take the first channel in the drawer
409 int ros = m_tileHWID->ros(hwid); // take the ros and drawer from the first channel
410 int drawer = m_tileHWID->drawer(hwid);
411 uint32_t crc32 = rawChannelCollection->getFragGlobalCRC() & 1;
412
413 if (crc32 == 0) {
414 crc32 = 0xFFFFFFFF;
415 } else { // means OK CRC match
416 crc32 = 0xFFFF;
417 } //means NOT OK, CRC mismatch
418
419 uint32_t maskCRC = rawChannelCollection->getFragRODChipMask();
420 maskCRC = maskCRC << 16; // ROD mask is stored in the 16 most significant bits ce
421 maskCRC += rawChannelCollection->getFragFEChipMask();
422 checkCRC(dqStatus, crc32, maskCRC, 16, ros, drawer); // reuse the same funcion used for digits
423 }
424
425 return StatusCode::SUCCESS;
426}
#define ATH_CHECK
Evaluate an expression and check for errors.
void checkCRC(bool isCalibMode, uint32_t crc32, uint32_t crcMask, int nDMU, int ros, int drawer) const
int drawer(const HWIdentifier &id) const
extract drawer field from HW identifier
Definition TileHWID.h:171
int ros(const HWIdentifier &id) const
extract ros field from HW identifier
Definition TileHWID.h:167

◆ dataType()

DataType_t AthMonitorAlgorithm::dataType ( ) const
inlineinherited

Accessor functions for the data type.

Returns
the current value of the class's DataType_t instance.

Definition at line 224 of file AthMonitorAlgorithm.h.

224{ return m_dataType; }

◆ dataTypeStringToEnum()

AthMonitorAlgorithm::DataType_t AthMonitorAlgorithm::dataTypeStringToEnum ( const std::string & str) const
inherited

Convert the data type string from the python configuration to an enum object.

Returns
a value in the DataType_t enumeration which matches the input string.

Definition at line 144 of file AthMonitorAlgorithm.cxx.

144 {
145 // convert the string to all lowercase
146 std::string lowerCaseStr = str;
147 std::transform(lowerCaseStr.begin(), lowerCaseStr.end(), lowerCaseStr.begin(), ::tolower);
148
149 // check if it matches one of the enum choices
150 if( lowerCaseStr == "userdefined" ) {
152 } else if( lowerCaseStr == "montecarlo" ) {
154 } else if( lowerCaseStr == "collisions" ) {
156 } else if( lowerCaseStr == "cosmics" ) {
157 return DataType_t::cosmics;
158 } else if( lowerCaseStr == "heavyioncollisions" ) {
160 } else { // otherwise, warn the user and return "userDefined"
161 ATH_MSG_WARNING("AthMonitorAlgorithm::dataTypeStringToEnum(): Unknown data type "
162 <<str<<", returning userDefined.");
164 }
165}
#define ATH_MSG_WARNING(x)
void tolower(std::string &s)

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ environment()

Environment_t AthMonitorAlgorithm::environment ( ) const
inlineinherited

Accessor functions for the environment.

Returns
the current value of the class's Environment_t instance.

Definition at line 208 of file AthMonitorAlgorithm.h.

208{ return m_environment; }

◆ envStringToEnum()

AthMonitorAlgorithm::Environment_t AthMonitorAlgorithm::envStringToEnum ( const std::string & str) const
inherited

Convert the environment string from the python configuration to an enum object.

Returns
a value in the Environment_t enumeration which matches the input string.

Definition at line 116 of file AthMonitorAlgorithm.cxx.

116 {
117 // convert the string to all lowercase
118 std::string lowerCaseStr = str;
119 std::transform(lowerCaseStr.begin(), lowerCaseStr.end(), lowerCaseStr.begin(), ::tolower);
120
121 // check if it matches one of the enum choices
122 if( lowerCaseStr == "user" ) {
123 return Environment_t::user;
124 } else if( lowerCaseStr == "online" ) {
126 } else if( lowerCaseStr == "tier0" ) {
128 } else if( lowerCaseStr == "tier0raw" ) {
130 } else if( lowerCaseStr == "tier0esd" ) {
132 } else if( lowerCaseStr == "aod" ) {
133 return Environment_t::AOD;
134 } else if( lowerCaseStr == "altprod" ) {
136 } else { // otherwise, warn the user and return "user"
137 ATH_MSG_WARNING("AthMonitorAlgorithm::envStringToEnum(): Unknown environment "
138 <<str<<", returning user.");
139 return Environment_t::user;
140 }
141}

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode AthMonitorAlgorithm::execute ( const EventContext & ctx) const
overridevirtualinherited

Applies filters and trigger requirements.

Then, calls fillHistograms().

Parameters
ctxevent context for reentrant Athena call
Returns
StatusCode

Definition at line 77 of file AthMonitorAlgorithm.cxx.

77 {
78
79 // Checks that all of the DQ filters are passed. If any one of the filters
80 // fails, return SUCCESS code and do not fill the histograms with the event.
81 for ( const auto& filterItr : m_DQFilterTools ) {
82 if (!filterItr->accept()) {
83 ATH_MSG_DEBUG("Event rejected due to filter tool.");
84 return StatusCode::SUCCESS;
85 }
86 }
87
88 // Trigger: If there is a decision tool and the chains fail, skip the event.
90 ATH_MSG_DEBUG("Event rejected due to trigger filter.");
91 return StatusCode::SUCCESS;
92 }
93
94 ATH_MSG_DEBUG("Event accepted!");
95 return fillHistograms(ctx);
96}
#define ATH_MSG_DEBUG(x)
virtual StatusCode fillHistograms(const EventContext &ctx) const =0
adds event to the monitoring histograms
bool trigChainsArePassed(const std::vector< std::string > &vTrigNames) const
Check whether triggers are passed.
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Array of Data Quality filter tools.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ fillHistograms()

StatusCode TileDigitsMonitorAlgorithm::fillHistograms ( const EventContext & ctx) const
overridevirtual

adds event to the monitoring histograms

User will overwrite this function. Histogram booking is no longer done in C++. This function is called in execute once the filters are all passed.

Parameters
ctxforwarded from execute
Returns
StatusCode

Implements TileCalibMonitorAlgorithm.

Definition at line 87 of file TileDigitsMonitorAlgorithm.cxx.

87 {
88
89 using Tile = TileCalibUtils;
90
91 // In case you want to measure the execution time
92 auto timer = Monitored::Timer("TIME_execute");
93
94 std::vector<float> meanSample[Tile::MAX_GAIN];
95 std::vector<float> meanSampleChannel[Tile::MAX_GAIN];
96
97 std::vector<float> meanSampleProd[Tile::MAX_GAIN];
98 std::vector<float> meanSampleProdChannel1[Tile::MAX_GAIN];
99 std::vector<float> meanSampleProdChannel2[Tile::MAX_GAIN];
100
101 const TileDQstatus* dqStatus = SG::makeHandle (m_dqStatusKey, ctx).get();
102
103 // array of CIS parameters
104 const uint32_t* cispar = dqStatus->cispar();
105
106 SG::ReadHandle<TileDigitsContainer> digitsContainer(m_digitsContainerKey, ctx);
107 ATH_CHECK( digitsContainer.isValid() );
108
109 for (const TileDigitsCollection* digitsCollection : *digitsContainer) {
110 if (digitsCollection->empty() ) continue;
111
112 HWIdentifier adc_id = digitsCollection->front()->adc_HWID();
113 int ros = m_tileHWID->ros(adc_id);
114 int drawer = m_tileHWID->drawer(adc_id);
115 unsigned int drawerIdx = TileCalibUtils::getDrawerIdx(ros, drawer);
116 int partition = ros - 1;
117
118 const std::vector<uint32_t>& headerWordsLow = digitsCollection->getFragChipHeaderWords();
119 const std::vector<uint32_t>& headerWordsHigh = digitsCollection->getFragChipHeaderWordsHigh();
120 std::vector<std::reference_wrapper<const std::vector<uint32_t>>> headerWordsAll{headerWordsLow};
121 if (headerWordsHigh.empty()) {
122 // For mono gain run fill the plots with the same info for high gain
123 headerWordsAll.push_back(headerWordsLow);
124 } else {
125 headerWordsAll.push_back(headerWordsHigh);
126 }
127
128 std::vector<std::vector<bool>> corruptedData(Tile::MAX_GAIN, std::vector<bool>(MAX_DMU));
129 uint32_t fragStatus = digitsCollection->getFragStatus();
130 if (checkCorruptedData(headerWordsAll, fragStatus, ros, drawer, corruptedData)) {
131 continue; // Dummy fragment or no fragment => nothing to check
132 }
133
134 if (m_fillErrorsHistograms) {
135 uint32_t rodBCID = digitsCollection->getRODBCID();
136 checkBCID(headerWordsAll, rodBCID, ros, drawer);
137
138 bool isCalibMode = (dqStatus->calibMode() == 1);
139 if (isCalibMode) {
140 // global and DMU CRC check
141 int nDMU = headerWordsLow.size();
142 uint32_t crc32 = digitsCollection->getFragCRC();
143 uint32_t crcMask = digitsCollection->getFragDMUMask();
144 checkCRC(isCalibMode, crc32, crcMask, nDMU, ros, drawer);
145 }
146 }
147
148
149 // Below, the charge conversion for 12 bit is just an approximation;
150 // 4095. can be changed later to gain precision if needed.
151 double charge = 0;
152 if (m_is12bit) { // if 12 bit ADCs
153 charge = cispar[6] * cispar[7] * (2. * 4.096 / 4095.);
154 } else {
155 charge = cispar[6] * cispar[7] * (2. * 4.096 / 1023.);
156 }
157
158 const TileDigits* moduleDigits[Tile::MAX_CHAN][Tile::MAX_GAIN] = {{nullptr}};
159
160 for (const TileDigits* tile_digits : *digitsCollection) {
161
162 adc_id = tile_digits->adc_HWID();
163 int channel = m_tileHWID->channel(adc_id);
164 int adc = m_tileHWID->adc(adc_id);
165
166 if (corruptedData[adc][channel / 3]) {
167 continue;
168 }
169
170 moduleDigits[channel][adc] = tile_digits;
171
172 std::string channelGainSuffix = "_" + std::to_string(channel) + "_" + std::to_string(adc);
173
174 const std::vector<float>& digits = tile_digits->samples();
175 unsigned int nSamples = digits.size();
176
177 if (nSamples > 1) {
178
179 if (m_fillPedestalHistograms) {
180 double pedestal = digits[0];
181
182 if(m_fillPedestalDifference) {
183 pedestal -= m_tileCondToolNoiseSample->getPed(drawerIdx, channel, adc, TileRawChannelUnit::ADCcounts, ctx);
184 }
185
186 auto monSample0 = Monitored::Scalar<float>("sample0" + channelGainSuffix, pedestal);
187 fill(m_tools[m_pedGroups[partition][drawer]], monSample0);
188 }
189
190
191 if (m_fillHighFrequencyNoiseHistograms) {
192 double sampleMean = 0.0;
193 double sampleRMS = 0.0;
194
195 for (double sample : digits) {
196 sampleMean += sample;
197 sampleRMS += sample * sample;
198 if (adc == 1 && sample > m_ADCmaxMinusEpsilon) {// overflow in high gain, find charge is it
199 auto monCharge = Monitored::Scalar<float>("charge", charge);
200 fill("TileDigitsOverflow", monCharge);
201 }
202 }
203
204 sampleMean /= nSamples;
205 sampleRMS = sampleRMS / nSamples - sampleMean * sampleMean;
206 sampleRMS = (sampleRMS > 0.0) ? sqrt(sampleRMS * nSamples / (nSamples - 1)) : 0.0;
207
208 if (m_fillCorrelationsHistograms) {
209 meanSample[adc].push_back(sampleMean);
210 meanSampleChannel[adc].push_back(channel);
211 }
212
213 auto monMeanRMS = Monitored::Scalar<float>("meanRMS" + channelGainSuffix, sampleRMS);
214 fill(m_tools[m_hfnGroups[partition][drawer]], monMeanRMS);
215 }
216
217 if ((m_runType != CIS_RUN)
218 || (cispar[6] > 0. && (adc < 1 || charge < 12.))) {
219 // LF If CIS run, Protection to avoid zero amplitudes due to 0 injected charge
220
221 if (m_fillSamplesHistograms) {
222 auto monSamples = Monitored::Collection("samples" + channelGainSuffix, digits);
223 fill(m_tools[m_samplesGroups[partition][drawer]], monSamples);
224 }
225
226 if (m_fillProfileHistograms) {
227 auto monSamples = Monitored::Collection("samples" + channelGainSuffix, digits);
228 std::vector<int> sampleNumbers(nSamples);
229 std::iota(sampleNumbers.begin(), sampleNumbers.end(), 0);
230 auto monSampleNumbers = Monitored::Collection("sampleNumbers" + channelGainSuffix, sampleNumbers);
231 fill(m_tools[m_profGroups[partition][drawer]], monSampleNumbers, monSamples);
232 }
233 }
234
235 if (m_fillEventModule32Histograms) {
236 int evtMod32 = (ctx.evt() + 1) % 32;
237 auto monEvtMod32 = Monitored::Scalar<int>("evtn_mod32" + channelGainSuffix, evtMod32);
238 fill(m_tools[m_evtMod32Groups[partition][drawer]], monEvtMod32);
239 }
240
241 }
242 } // digits
243
244 if (m_fillCorrelationsHistograms) {
245 for (unsigned int gain = 0; gain < Tile::MAX_GAIN; ++gain) {
246 if (!meanSampleChannel[gain].empty()) {
247 auto monChannel = Monitored::Collection("channel_" + Tile::getDrawerString(ros, drawer), meanSampleChannel[gain]);
248 auto monMeanSample = Monitored::Collection("meanSample_" + Tile::getDrawerString(ros, drawer), meanSample[gain]);
249 fill(m_tools[m_meanSampleGroups[gain]], monChannel, monMeanSample);
250
251 for (int channel1 : meanSampleChannel[gain]) {
252 const std::vector<float>& digits1 = moduleDigits[channel1][gain]->samples();
253 for (int channel2 : meanSampleChannel[gain]) {
254 const std::vector<float>& digits2 = moduleDigits[channel2][gain]->samples();
255 double sampleProdMean = 0.;
256 unsigned int nSamples = digits1.size();
257 for (unsigned int i = 0; i < nSamples; ++i) {
258 sampleProdMean += digits1[i] * digits2[i];
259 }
260 sampleProdMean /= nSamples;
261 meanSampleProd[gain].push_back(sampleProdMean);
262 meanSampleProdChannel1[gain].push_back(channel1);
263 meanSampleProdChannel2[gain].push_back(channel2);
264 }
265 }
266 auto monChannel1 = Monitored::Collection("channel1_" + Tile::getDrawerString(ros, drawer), meanSampleProdChannel1[gain]);
267 auto monChannel2 = Monitored::Collection("channel2_" + Tile::getDrawerString(ros, drawer), meanSampleProdChannel2[gain]);
268 auto monMeanSampleProd = Monitored::Collection("meanSampleProd_" + Tile::getDrawerString(ros, drawer), meanSampleProd[gain]);
269 fill(m_tools[m_meanSampleProdGroups[gain]], monChannel1, monChannel2, monMeanSampleProd);
270
271 meanSample[gain].clear();
272 meanSampleChannel[gain].clear();
273
274 meanSampleProd[gain].clear();
275 meanSampleProdChannel1[gain].clear();
276 meanSampleProdChannel2[gain].clear();
277
278 }
279 }
280 }
281 }
282
283 if (dqStatus->calibMode() == 0 && !m_rawChannelContainerKey.empty()) {
284 if (checkROD_CRC(dqStatus, ctx).isFailure()) {
285 ATH_MSG_WARNING("Not possible to check CRC from ROD");
286 }
287 }
288
289 fill("TileDigitsMonExecuteTime", timer);
290
291 return StatusCode::SUCCESS;
292}
double charge(const T &p)
Definition AtlasPID.h:997
static const Attributes_t empty
A monitored timer.
bool empty() const
Test if the key is blank.
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
Class that holds Data Quality fragment information and provides functions to extract the data quality...
uint32_t calibMode() const
Calibration mode.
const uint32_t * cispar() const
CIS parameters.
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainerKey
bool checkCorruptedData(const std::vector< std::reference_wrapper< const std::vector< uint32_t > > > &headerWordsAll, uint32_t fragStatus, int ros, int drawer, std::vector< std::vector< bool > > &corruptedData) const
ToolHandle< TileCondToolNoiseSample > m_tileCondToolNoiseSample
void checkBCID(const std::vector< std::reference_wrapper< const std::vector< uint32_t > > > &headerWordsAll, uint32_t rodBCID, int ros, int drawer) const
StatusCode checkROD_CRC(const TileDQstatus *dqStatus, const EventContext &ctx) const
const std::vector< float > & samples() const
Definition TileDigits.h:58
int channel(const HWIdentifier &id) const
extract channel field from HW identifier
Definition TileHWID.h:189
int adc(const HWIdentifier &id) const
extract adc field from HW identifier
Definition TileHWID.h:193
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ GetEventInfo()

SG::ReadHandle< xAOD::EventInfo > AthMonitorAlgorithm::GetEventInfo ( const EventContext & ctx) const
inherited

Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)

Parameters
ctxEventContext for the event
Returns
a SG::ReadHandle<xAOD::EventInfo>

Definition at line 111 of file AthMonitorAlgorithm.cxx.

111 {
112 return SG::ReadHandle<xAOD::EventInfo>(m_EventInfoKey, ctx);
113}
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
Key for retrieving EventInfo from StoreGate.

◆ getGroup()

const ToolHandle< GenericMonitoringTool > & AthMonitorAlgorithm::getGroup ( const std::string & name) const
inherited

Get a specific monitoring tool from the tool handle array.

Finds a specific GenericMonitoringTool instance from the list of monitoring tools (a ToolHandleArray). Throws a FATAL warning if the object found is empty.

Parameters
namestring name of the desired tool
Returns
reference to the desired monitoring tool

Definition at line 168 of file AthMonitorAlgorithm.cxx.

168 {
169 // get the pointer to the tool, and check that it exists
170 auto idx = m_toolLookupMap.find(name);
171 if (ATH_LIKELY(idx != m_toolLookupMap.end())) {
172 return m_tools[idx->second];
173 }
174 else {
175 // treat empty tool handle case as in Monitored::Group
176 if (m_toolLookupMap.empty()) {
177 return m_dummy;
178 }
179
180 if (!isInitialized()) {
182 "It seems that the AthMonitorAlgorithm::initialize was not called "
183 "in derived class initialize method");
184 } else {
185 std::string available = std::accumulate(
186 m_toolLookupMap.begin(), m_toolLookupMap.end(), std::string(""),
187 [](const std::string& s, auto h) { return s + "," + h.first; });
188 ATH_MSG_FATAL("The tool " << name << " could not be found in the tool array of the "
189 << "monitoring algorithm " << m_name << ". This probably reflects a discrepancy between "
190 << "your python configuration and c++ filling code. Note: your available groups are {"
191 << available << "}.");
192 }
193 }
194 return m_dummy;
195}
#define ATH_MSG_FATAL(x)
#define ATH_LIKELY(x)
std::unordered_map< std::string, size_t > m_toolLookupMap
const ToolHandle< GenericMonitoringTool > m_dummy
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.

◆ getTrigDecisionTool()

const ToolHandle< Trig::TrigDecisionTool > & AthMonitorAlgorithm::getTrigDecisionTool ( ) const
inherited

Get the trigger decision tool member.

The trigger decision tool is used to check whether a specific trigger is passed by an event.

Returns
m_trigDecTool

Definition at line 198 of file AthMonitorAlgorithm.cxx.

198 {
199 return m_trigDecTool;
200}

◆ initialize()

StatusCode TileDigitsMonitorAlgorithm::initialize ( )
overridevirtual

initialize

Returns
StatusCode

Reimplemented from TileCalibMonitorAlgorithm.

Definition at line 12 of file TileDigitsMonitorAlgorithm.cxx.

12 {
13
14 ATH_MSG_DEBUG("in initialize()");
15
16 // initialize superclass
18
19 ATH_CHECK( m_digitsContainerKey.initialize() );
20 ATH_CHECK( m_rawChannelContainerKey.initialize(SG::AllowEmpty) );
21 ATH_CHECK( m_tileCondToolNoiseSample.retrieve(EnableTool(m_fillPedestalDifference)) );
22
23 m_ADCmaxMinusEpsilon = m_tileInfo->ADCmax() - 0.01;
24 if (m_tileInfo->ADCmax() == 4095) {
25 m_is12bit = true;
26 }
27
28 using Tile = TileCalibUtils;
29 using namespace Monitored;
30
31
32 if (m_fillErrorsHistograms) {
33 m_errorsGroups = buildToolMap<std::vector<std::vector<int>>>(m_tools, "TileDigitsErrors",
34 Tile::MAX_ROS - 1, Tile::MAX_DRAWER,
35 Tile::MAX_GAIN);
36
37 m_bcidGroups = buildToolMap<std::vector<std::vector<int>>>(m_tools, "TileDigitsBCID",
38 Tile::MAX_ROS - 1, Tile::MAX_DRAWER,
39 Tile::MAX_GAIN);
40
41 m_bcidErrGroups = buildToolMap<std::vector<std::vector<int>>>(m_tools, "TileDigitsBCIDErrors",
42 Tile::MAX_ROS - 1, Tile::MAX_DRAWER,
43 Tile::MAX_GAIN);
44
45 m_crcErrGroups = buildToolMap<std::vector<int>>(m_tools, "TileDigitsCRCErrors",
46 Tile::MAX_ROS - 1, Tile::MAX_DRAWER);
47
48 m_crcGlobalGroups = buildToolMap<std::vector<int>>(m_tools, "TileDigitsGlobalCRC",
49 Tile::MAX_ROS - 1, Tile::MAX_DRAWER);
50
51 }
52
53 if (m_fillCorrelationsHistograms) {
54 m_meanSampleGroups = buildToolMap<int>(m_tools, "TileDigitsMeanSample", Tile::MAX_GAIN);
55 m_meanSampleProdGroups = buildToolMap<int>(m_tools, "TileDigitsMeanSampleProd", Tile::MAX_GAIN);
56 }
57
58 if (m_fillPedestalHistograms) {
59 m_pedGroups = buildToolMap<std::vector<int>>(m_tools, "TileDigitsSample0",
60 Tile::MAX_ROS - 1, Tile::MAX_DRAWER);
61 }
62
63 if (m_fillHighFrequencyNoiseHistograms) {
64 m_hfnGroups = buildToolMap<std::vector<int>>(m_tools, "TileDigitsMeanRMS",
65 Tile::MAX_ROS - 1, Tile::MAX_DRAWER);
66 }
67
68 if (m_fillSamplesHistograms) {
69 m_samplesGroups = buildToolMap<std::vector<int>>(m_tools, "TileDigitsSamples",
70 Tile::MAX_ROS - 1, Tile::MAX_DRAWER);
71 }
72
73 if (m_fillProfileHistograms) {
74 m_profGroups = buildToolMap<std::vector<int>>(m_tools, "TileDigitsProfile",
75 Tile::MAX_ROS - 1, Tile::MAX_DRAWER);
76 }
77
78 if (m_fillEventModule32Histograms) {
79 m_evtMod32Groups = buildToolMap<std::vector<int>>(m_tools, "TileDigitsEvtMod32",
80 Tile::MAX_ROS - 1, Tile::MAX_DRAWER);
81 }
82
83 return StatusCode::SUCCESS;
84}
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual StatusCode initialize() override
initialize
std::vector< std::vector< int > > m_profGroups
std::vector< std::vector< int > > m_samplesGroups
std::vector< std::vector< int > > m_pedGroups
std::vector< std::vector< int > > m_evtMod32Groups
std::vector< std::vector< int > > m_hfnGroups
int ADCmax() const
Returns the maximum ADC output (10 bits --> 1023)
Definition TileInfo.h:71
Generic monitoring tool for athena components.
std::vector< V > buildToolMap(const ToolHandleArray< GenericMonitoringTool > &tools, const std::string &baseName, int nHist)
Builds an array of indices (base case)

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isClonable()

◆ isHeaderFormatError()

bool TileCalibMonitorAlgorithm::isHeaderFormatError ( uint32_t header) const
inlineprotectedinherited

Definition at line 42 of file TileCalibMonitorAlgorithm.h.

42 {
43 return (((header >> 31 & 0x1) == 1) && ((header >> 17 & 0x1) == 0)) ? false : true;
44 };

◆ isHeaderParityError()

bool TileCalibMonitorAlgorithm::isHeaderParityError ( uint32_t header) const
inlineprotectedinherited

Definition at line 51 of file TileCalibMonitorAlgorithm.h.

51 {
52 uint32_t parity(0);
53 for (int i = 0; i < 32; ++i) {
54 parity += ((header >> i) & 0x1);
55 }
56 return ((parity % 2) == 1) ? false : true;
57 };

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ parseList()

StatusCode AthMonitorAlgorithm::parseList ( const std::string & line,
std::vector< std::string > & result ) const
virtualinherited

Parse a string into a vector.

The input string is a single long string of all of the trigger names. It parses this string and turns it into a vector, where each element is one trigger or trigger category.

Parameters
lineThe input string.
resultThe parsed output vector of strings.
Returns
StatusCode

Definition at line 345 of file AthMonitorAlgorithm.cxx.

345 {
346 std::string item;
347 std::stringstream ss(line);
348
349 ATH_MSG_DEBUG( "AthMonitorAlgorithm::parseList()" );
350
351 while ( std::getline(ss, item, ',') ) {
352 std::stringstream iss(item); // remove whitespace
353 iss >> item;
354 result.push_back(item);
355 }
356
357 return StatusCode::SUCCESS;
358}
static Double_t ss

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77{
78 return BaseAlg::sysExecute (ctx);
79}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107 {
109
110 if (sc.isFailure()) {
111 return sc;
112 }
113
114 ServiceHandle<ICondSvc> cs("CondSvc",name());
115 for (auto h : outputHandles()) {
116 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117 // do this inside the loop so we don't create the CondSvc until needed
118 if ( cs.retrieve().isFailure() ) {
119 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120 return StatusCode::SUCCESS;
121 }
122 if (cs->regHandle(this,*h).isFailure()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
#define ATH_MSG_ERROR(x)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ TileCalibMonitorAlgorithm()

TileCalibMonitorAlgorithm::TileCalibMonitorAlgorithm ( const std::string & name,
ISvcLocator * svcLocator )
inline

Definition at line 25 of file TileCalibMonitorAlgorithm.h.

26 :AthMonitorAlgorithm(name, svcLocator) {}
Base class for Athena Monitoring Algorithms.

◆ trigChainsArePassed()

bool AthMonitorAlgorithm::trigChainsArePassed ( const std::vector< std::string > & vTrigNames) const
inherited

Check whether triggers are passed.

For the event, use the trigger decision tool to check that at least one of the triggers listed in the supplied vector is passed.

Parameters
vTrigNamesList of trigger names.
Returns
If empty input, default to true. If at least one trigger is specified, returns whether at least one trigger was passed.

Definition at line 203 of file AthMonitorAlgorithm.cxx.

203 {
204
205
206 // If no triggers were given, return true.
207 if (vTrigNames.empty()) return true;
208
209
210 // Trigger: Check if this Algorithm is being run as an Express Stream job.
211 // Events are entering the express stream are chosen randomly, and by chain,
212 // Hence an additional check should be aplied to see if the chain(s)
213 // monitored here are responsible for the event being selected for
214 // the express stream.
215
216 const auto group = m_trigDecTool->getChainGroup(vTrigNames);
218 const auto passedBits = m_trigDecTool->isPassedBits(group);
219 bool expressPass = passedBits & TrigDefs::Express_passed; //bitwise AND
220 if(!expressPass) {
221 return false;
222 }
223 }
224
225 // monitor the event if any of the chains in the chain group passes the event.
226 return group->isPassed();
227
228}
Gaudi::Property< bool > m_enforceExpressTriggers

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ AtlasVersion

TileDigitsMonitorAlgorithm.AtlasVersion

Definition at line 261 of file TileDigitsMonitorAlgorithm.py.

◆ cfg

TileDigitsMonitorAlgorithm.cfg = MainServicesCfg(flags)

Definition at line 272 of file TileDigitsMonitorAlgorithm.py.

◆ enableLumiAccess

TileDigitsMonitorAlgorithm.enableLumiAccess

Definition at line 265 of file TileDigitsMonitorAlgorithm.py.

◆ Files

TileDigitsMonitorAlgorithm.Files

Definition at line 260 of file TileDigitsMonitorAlgorithm.py.

◆ flags

TileDigitsMonitorAlgorithm.flags = initConfigFlags()

Definition at line 259 of file TileDigitsMonitorAlgorithm.py.

◆ GlobalTag

TileDigitsMonitorAlgorithm.GlobalTag

Definition at line 262 of file TileDigitsMonitorAlgorithm.py.

◆ HISTFileName

TileDigitsMonitorAlgorithm.HISTFileName

Definition at line 263 of file TileDigitsMonitorAlgorithm.py.

◆ m_ADCmaxMinusEpsilon

float TileDigitsMonitorAlgorithm::m_ADCmaxMinusEpsilon
private

Definition at line 94 of file TileDigitsMonitorAlgorithm.h.

◆ m_bcidErrGroups

std::vector<std::vector<std::vector<int> > > TileDigitsMonitorAlgorithm::m_bcidErrGroups
private

Definition at line 83 of file TileDigitsMonitorAlgorithm.h.

◆ m_bcidGroups

std::vector<std::vector<std::vector<int> > > TileDigitsMonitorAlgorithm::m_bcidGroups
private

Definition at line 82 of file TileDigitsMonitorAlgorithm.h.

◆ m_cabling

const TileCablingService* TileCalibMonitorAlgorithm::m_cabling {nullptr}
protectedinherited

Definition at line 96 of file TileCalibMonitorAlgorithm.h.

96{nullptr};

◆ m_cablingSvc

ServiceHandle<TileCablingSvc> TileCalibMonitorAlgorithm::m_cablingSvc
protectedinherited
Initial value:
{ this,
"TileCablingSvc", "TileCablingSvc", "The Tile cabling service"}

Name of Tile cabling service.

Definition at line 93 of file TileCalibMonitorAlgorithm.h.

93 { this,
94 "TileCablingSvc", "TileCablingSvc", "The Tile cabling service"};

◆ m_crcErrGroups

std::vector<std::vector<int> > TileDigitsMonitorAlgorithm::m_crcErrGroups
private

Definition at line 81 of file TileDigitsMonitorAlgorithm.h.

◆ m_crcGlobalGroups

std::vector<std::vector<int> > TileDigitsMonitorAlgorithm::m_crcGlobalGroups
private

Definition at line 80 of file TileDigitsMonitorAlgorithm.h.

◆ m_dataType

AthMonitorAlgorithm::DataType_t AthMonitorAlgorithm::m_dataType
protectedinherited

Instance of the DataType_t enum.

Definition at line 356 of file AthMonitorAlgorithm.h.

◆ m_dataTypeStr

Gaudi::Property<std::string> AthMonitorAlgorithm::m_dataTypeStr {this,"DataType","userDefined"}
protectedinherited

DataType string pulled from the job option and converted to enum.

Definition at line 358 of file AthMonitorAlgorithm.h.

358{this,"DataType","userDefined"};

◆ m_defaultLBDuration

Gaudi::Property<float> AthMonitorAlgorithm::m_defaultLBDuration {this,"DefaultLBDuration",60.}
protectedinherited

Default duration of one lumi block.

Definition at line 365 of file AthMonitorAlgorithm.h.

365{this,"DefaultLBDuration",60.};

◆ m_detailLevel

Gaudi::Property<int> AthMonitorAlgorithm::m_detailLevel {this,"DetailLevel",0}
protectedinherited

Sets the level of detail used in the monitoring.

Definition at line 366 of file AthMonitorAlgorithm.h.

366{this,"DetailLevel",0};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_digitsContainerKey

SG::ReadHandleKey<TileDigitsContainer> TileDigitsMonitorAlgorithm::m_digitsContainerKey
private
Initial value:
{this,
"TileDigitsContainer", "TileDigitsCnt", "Input Tile digits container key"}

Definition at line 69 of file TileDigitsMonitorAlgorithm.h.

69 {this,
70 "TileDigitsContainer", "TileDigitsCnt", "Input Tile digits container key"};

◆ m_DQFilterTools

ToolHandleArray<IDQFilterTool> AthMonitorAlgorithm::m_DQFilterTools {this,"FilterTools",{}}
protectedinherited

Array of Data Quality filter tools.

Definition at line 346 of file AthMonitorAlgorithm.h.

346{this,"FilterTools",{}};

◆ m_dqStatusKey

SG::ReadHandleKey<TileDQstatus> TileCalibMonitorAlgorithm::m_dqStatusKey
protectedinherited
Initial value:
{this,
"TileDQstatus", "TileDQstatus", "Tile DQ status name"}

Definition at line 87 of file TileCalibMonitorAlgorithm.h.

87 {this,
88 "TileDQstatus", "TileDQstatus", "Tile DQ status name"};

◆ m_dummy

const ToolHandle<GenericMonitoringTool> AthMonitorAlgorithm::m_dummy
privateinherited

Definition at line 374 of file AthMonitorAlgorithm.h.

◆ m_enforceExpressTriggers

Gaudi::Property<bool> AthMonitorAlgorithm::m_enforceExpressTriggers
privateinherited
Initial value:
{this,
"EnforceExpressTriggers", false,
"Requires that matched triggers made the event enter the express stream"}

Definition at line 377 of file AthMonitorAlgorithm.h.

377 {this,
378 "EnforceExpressTriggers", false,
379 "Requires that matched triggers made the event enter the express stream"};

◆ m_environment

AthMonitorAlgorithm::Environment_t AthMonitorAlgorithm::m_environment
protectedinherited

Instance of the Environment_t enum.

Definition at line 355 of file AthMonitorAlgorithm.h.

◆ m_environmentStr

Gaudi::Property<std::string> AthMonitorAlgorithm::m_environmentStr {this,"Environment","user"}
protectedinherited

Environment string pulled from the job option and converted to enum.

Definition at line 357 of file AthMonitorAlgorithm.h.

357{this,"Environment","user"};

◆ m_errorsGroups

std::vector<std::vector<std::vector<int> > > TileDigitsMonitorAlgorithm::m_errorsGroups
private

Definition at line 84 of file TileDigitsMonitorAlgorithm.h.

◆ m_EventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> AthMonitorAlgorithm::m_EventInfoKey {this,"EventInfoKey","EventInfo"}
protectedinherited

Key for retrieving EventInfo from StoreGate.

Definition at line 367 of file AthMonitorAlgorithm.h.

367{this,"EventInfoKey","EventInfo"};

◆ m_evtMod32Groups

std::vector<std::vector<int> > TileDigitsMonitorAlgorithm::m_evtMod32Groups
private

Definition at line 90 of file TileDigitsMonitorAlgorithm.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_fileKey

Gaudi::Property<std::string> AthMonitorAlgorithm::m_fileKey {this,"FileKey",""}
protectedinherited

Internal Athena name for file.

Definition at line 363 of file AthMonitorAlgorithm.h.

363{this,"FileKey",""};

◆ m_fillCorrelationsHistograms

Gaudi::Property<bool> TileDigitsMonitorAlgorithm::m_fillCorrelationsHistograms
private
Initial value:
{this,
"fillCorrelationsHistograms", true, "Fill histograms which are used to produce correlation and corvariance plots"}

Definition at line 66 of file TileDigitsMonitorAlgorithm.h.

66 {this,
67 "fillCorrelationsHistograms", true, "Fill histograms which are used to produce correlation and corvariance plots"};

◆ m_fillErrorsHistograms

Gaudi::Property<bool> TileDigitsMonitorAlgorithm::m_fillErrorsHistograms
private
Initial value:
{this,
"fillErrorsHistograms", true, "Fill histograms per channel/gain with DMU, CRC, BCID errors"}

Definition at line 48 of file TileDigitsMonitorAlgorithm.h.

48 {this,
49 "fillErrorsHistograms", true, "Fill histograms per channel/gain with DMU, CRC, BCID errors"};

◆ m_fillEventModule32Histograms

Gaudi::Property<bool> TileDigitsMonitorAlgorithm::m_fillEventModule32Histograms
private
Initial value:
{this,
"fillEventModule32Histograms", true, "Fill histograms per channel/gain with event number % 32"}

Definition at line 63 of file TileDigitsMonitorAlgorithm.h.

63 {this,
64 "fillEventModule32Histograms", true, "Fill histograms per channel/gain with event number % 32"};

◆ m_fillHighFrequencyNoiseHistograms

Gaudi::Property<bool> TileDigitsMonitorAlgorithm::m_fillHighFrequencyNoiseHistograms
private
Initial value:
{this,
"fillHighFrequencyNoiseHistograms", true, "Fill histograms per channel/gain with HFN"}

Definition at line 54 of file TileDigitsMonitorAlgorithm.h.

54 {this,
55 "fillHighFrequencyNoiseHistograms", true, "Fill histograms per channel/gain with HFN"};

◆ m_fillPedestalDifference

Gaudi::Property<bool> TileDigitsMonitorAlgorithm::m_fillPedestalDifference
private
Initial value:
{this,
"fillPedestalDifference", true, "Fill pedestal difference between monitored pedestal and one from DB"}

Definition at line 45 of file TileDigitsMonitorAlgorithm.h.

45 {this,
46 "fillPedestalDifference", true, "Fill pedestal difference between monitored pedestal and one from DB"};

◆ m_fillPedestalHistograms

Gaudi::Property<bool> TileDigitsMonitorAlgorithm::m_fillPedestalHistograms
private
Initial value:
{this,
"fillPedestalHistograms", true, "Fill histograms per channel/gain with pedestals"}

Definition at line 51 of file TileDigitsMonitorAlgorithm.h.

51 {this,
52 "fillPedestalHistograms", true, "Fill histograms per channel/gain with pedestals"};

◆ m_fillProfileHistograms

Gaudi::Property<bool> TileDigitsMonitorAlgorithm::m_fillProfileHistograms
private
Initial value:
{this,
"fillProfileHistograms", true, "Fill histograms per channel/gain with profile"}

Definition at line 60 of file TileDigitsMonitorAlgorithm.h.

60 {this,
61 "fillProfileHistograms", true, "Fill histograms per channel/gain with profile"};

◆ m_fillSamplesHistograms

Gaudi::Property<bool> TileDigitsMonitorAlgorithm::m_fillSamplesHistograms
private
Initial value:
{this,
"fillSamplesHistograms", true, "Fill histograms per channel/gain with samples"}

Definition at line 57 of file TileDigitsMonitorAlgorithm.h.

57 {this,
58 "fillSamplesHistograms", true, "Fill histograms per channel/gain with samples"};

◆ m_fragIDsDemonstrators

Gaudi::Property<std::vector<int> > TileCalibMonitorAlgorithm::m_fragIDsDemonstrators
protectedinherited
Initial value:
{this,
"FragIDsDemonstrators", {}, "List of Tile frag IDs of Demonstrators"}

Definition at line 81 of file TileCalibMonitorAlgorithm.h.

81 {this,
82 "FragIDsDemonstrators", {}, "List of Tile frag IDs of Demonstrators"};

◆ m_fragIDsToIgnoreDMUerrors

Gaudi::Property<std::vector<int> > TileCalibMonitorAlgorithm::m_fragIDsToIgnoreDMUerrors
protectedinherited
Initial value:
{this,
"FragIDsToIgnoreDMUErrors", {}, "List of Tile frag IDs for which ignore DMU errors"}

Definition at line 78 of file TileCalibMonitorAlgorithm.h.

78 {this,
79 "FragIDsToIgnoreDMUErrors", {}, "List of Tile frag IDs for which ignore DMU errors"};

◆ m_hfnGroups

std::vector<std::vector<int> > TileDigitsMonitorAlgorithm::m_hfnGroups
private

Definition at line 87 of file TileDigitsMonitorAlgorithm.h.

◆ m_is12bit

bool TileDigitsMonitorAlgorithm::m_is12bit {false}
private

Definition at line 93 of file TileDigitsMonitorAlgorithm.h.

93{false};

◆ m_lbDurationDataKey

SG::ReadCondHandleKey<LBDurationCondData> AthMonitorAlgorithm::m_lbDurationDataKey {this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"}
protectedinherited

Definition at line 350 of file AthMonitorAlgorithm.h.

351{this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"};

◆ m_lumiDataKey

SG::ReadCondHandleKey<LuminosityCondData> AthMonitorAlgorithm::m_lumiDataKey {this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"}
protectedinherited

Definition at line 348 of file AthMonitorAlgorithm.h.

349{this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"};

◆ m_meanSampleGroups

std::vector<int> TileDigitsMonitorAlgorithm::m_meanSampleGroups
private

Definition at line 78 of file TileDigitsMonitorAlgorithm.h.

◆ m_meanSampleProdGroups

std::vector<int> TileDigitsMonitorAlgorithm::m_meanSampleProdGroups
private

Definition at line 79 of file TileDigitsMonitorAlgorithm.h.

◆ m_name

std::string AthMonitorAlgorithm::m_name
privateinherited

Definition at line 371 of file AthMonitorAlgorithm.h.

◆ m_pedGroups

std::vector<std::vector<int> > TileDigitsMonitorAlgorithm::m_pedGroups
private

Definition at line 86 of file TileDigitsMonitorAlgorithm.h.

◆ m_profGroups

std::vector<std::vector<int> > TileDigitsMonitorAlgorithm::m_profGroups
private

Definition at line 89 of file TileDigitsMonitorAlgorithm.h.

◆ m_rawChannelContainerKey

SG::ReadHandleKey<TileRawChannelContainer> TileDigitsMonitorAlgorithm::m_rawChannelContainerKey
private
Initial value:
{this,
"TileRawChannelContainer", "", "Input Tile raw channel container key"}

Definition at line 72 of file TileDigitsMonitorAlgorithm.h.

72 {this,
73 "TileRawChannelContainer", "", "Input Tile raw channel container key"};

◆ m_runType

Gaudi::Property<int> TileCalibMonitorAlgorithm::m_runType
protectedinherited
Initial value:
{this,
"RunType", 0, "Run type: 1 - phys, 2 - las, 4 - ped, 8 - cis, 9- mono"}

Definition at line 84 of file TileCalibMonitorAlgorithm.h.

84 {this,
85 "RunType", 0, "Run type: 1 - phys, 2 - las, 4 - ped, 8 - cis, 9- mono"};

◆ m_samplesGroups

std::vector<std::vector<int> > TileDigitsMonitorAlgorithm::m_samplesGroups
private

Definition at line 88 of file TileDigitsMonitorAlgorithm.h.

◆ m_tileCondToolNoiseSample

ToolHandle<TileCondToolNoiseSample> TileDigitsMonitorAlgorithm::m_tileCondToolNoiseSample
private
Initial value:
{this,
"TileCondToolNoiseSample", "TileCondToolNoiseSample", "Tile sample noise tool"}

Definition at line 75 of file TileDigitsMonitorAlgorithm.h.

75 {this,
76 "TileCondToolNoiseSample", "TileCondToolNoiseSample", "Tile sample noise tool"};

◆ m_tileHWID

const TileHWID* TileCalibMonitorAlgorithm::m_tileHWID {nullptr}
protectedinherited

Definition at line 97 of file TileCalibMonitorAlgorithm.h.

97{nullptr};

◆ m_tileInfo

const TileInfo* TileCalibMonitorAlgorithm::m_tileInfo {nullptr}
protectedinherited

Definition at line 98 of file TileCalibMonitorAlgorithm.h.

98{nullptr};

◆ m_tileInfoName

Gaudi::Property<std::string> TileCalibMonitorAlgorithm::m_tileInfoName
protectedinherited
Initial value:
{this,
"TileInfo", "TileInfo", "Name of TileInfo object in Detector Store"}

Definition at line 75 of file TileCalibMonitorAlgorithm.h.

75 {this,
76 "TileInfo", "TileInfo", "Name of TileInfo object in Detector Store"};

◆ m_toolLookupMap

std::unordered_map<std::string, size_t> AthMonitorAlgorithm::m_toolLookupMap
privateinherited

Definition at line 372 of file AthMonitorAlgorithm.h.

◆ m_tools

ToolHandleArray<GenericMonitoringTool> AthMonitorAlgorithm::m_tools {this,"GMTools",{}}
protectedinherited

Array of Generic Monitoring Tools.

Definition at line 341 of file AthMonitorAlgorithm.h.

341{this,"GMTools",{}};

◆ m_trigDecTool

PublicToolHandle<Trig::TrigDecisionTool> AthMonitorAlgorithm::m_trigDecTool
protectedinherited

Tool to tell whether a specific trigger is passed.

Definition at line 345 of file AthMonitorAlgorithm.h.

◆ m_triggerChainString

Gaudi::Property<std::string> AthMonitorAlgorithm::m_triggerChainString {this,"TriggerChain",""}
protectedinherited

Trigger chain string pulled from the job option and parsed into a vector.

Definition at line 360 of file AthMonitorAlgorithm.h.

360{this,"TriggerChain",""};

◆ m_trigLiveFractionDataKey

SG::ReadCondHandleKey<TrigLiveFractionCondData> AthMonitorAlgorithm::m_trigLiveFractionDataKey {this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData", "SG Key of TrigLiveFractionCondData object"}
protectedinherited

Definition at line 352 of file AthMonitorAlgorithm.h.

353{this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData", "SG Key of TrigLiveFractionCondData object"};

◆ m_useLumi

Gaudi::Property<bool> AthMonitorAlgorithm::m_useLumi {this,"EnableLumi",false}
protectedinherited

Allows use of various luminosity functions.

Definition at line 364 of file AthMonitorAlgorithm.h.

364{this,"EnableLumi",false};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_vTrigChainNames

std::vector<std::string> AthMonitorAlgorithm::m_vTrigChainNames
protectedinherited

Vector of trigger chain names parsed from trigger chain string.

Definition at line 361 of file AthMonitorAlgorithm.h.

◆ MAX_DMU

const int TileDigitsMonitorAlgorithm::MAX_DMU {16}
staticprivate

Definition at line 92 of file TileDigitsMonitorAlgorithm.h.

92{16};

◆ MaxEvents

TileDigitsMonitorAlgorithm.MaxEvents

Definition at line 266 of file TileDigitsMonitorAlgorithm.py.

◆ sc

TileDigitsMonitorAlgorithm.sc = cfg.run()

Definition at line 285 of file TileDigitsMonitorAlgorithm.py.

◆ summariseProps

TileDigitsMonitorAlgorithm.summariseProps

Definition at line 280 of file TileDigitsMonitorAlgorithm.py.

◆ True

TileDigitsMonitorAlgorithm.True

Definition at line 280 of file TileDigitsMonitorAlgorithm.py.

◆ useTrigger

TileDigitsMonitorAlgorithm.useTrigger

Definition at line 264 of file TileDigitsMonitorAlgorithm.py.

◆ withDetails

TileDigitsMonitorAlgorithm.withDetails

Definition at line 280 of file TileDigitsMonitorAlgorithm.py.


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