ATLAS Offline Software
Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
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  Environment_t {
  Environment_t::user = 0, Environment_t::online, Environment_t::tier0, Environment_t::tier0Raw,
  Environment_t::tier0ESD, Environment_t::AOD, Environment_t::altprod
}
 Specifies the processing environment. More...
 
enum  DataType_t {
  DataType_t::userDefined = 0, DataType_t::monteCarlo, DataType_t::collisions, DataType_t::cosmics,
  DataType_t::heavyIonCollisions
}
 Specifies what type of input data is being monitored. More...
 

Public Member Functions

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

Public Attributes

 flags
 
 Files
 
 AtlasVersion
 
 GlobalTag
 
 HISTFileName
 
 useTrigger
 
 enableLumiAccess
 
 MaxEvents
 
 cfg
 
 readMuRcv
 
 False
 
 readBeamElem
 
 name
 
 fillPedestalDifference
 
 withDetails
 
 True
 
 summariseProps
 
 sc
 

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 More...
 
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. More...
 

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. More...
 
const TileCablingServicem_cabling {nullptr}
 
const TileHWIDm_tileHWID {nullptr}
 
const TileInfom_tileInfo {nullptr}
 
ToolHandleArray< GenericMonitoringToolm_tools {this,"GMTools",{}}
 Array of Generic Monitoring Tools. More...
 
PublicToolHandle< Trig::TrigDecisionToolm_trigDecTool {this, "TrigDecisionTool",""}
 Tool to tell whether a specific trigger is passed. More...
 
ToolHandleArray< IDQFilterToolm_DQFilterTools {this,"FilterTools",{}}
 Array of Data Quality filter tools. More...
 
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. More...
 
AthMonitorAlgorithm::DataType_t m_dataType
 Instance of the DataType_t enum. More...
 
Gaudi::Property< std::string > m_environmentStr {this,"Environment","user"}
 Environment string pulled from the job option and converted to enum. More...
 
Gaudi::Property< std::string > m_dataTypeStr {this,"DataType","userDefined"}
 DataType string pulled from the job option and converted to enum. More...
 
Gaudi::Property< std::string > m_triggerChainString {this,"TriggerChain",""}
 Trigger chain string pulled from the job option and parsed into a vector. More...
 
std::vector< std::string > m_vTrigChainNames
 Vector of trigger chain names parsed from trigger chain string. More...
 
Gaudi::Property< std::string > m_fileKey {this,"FileKey",""}
 Internal Athena name for file. More...
 
Gaudi::Property< bool > m_useLumi {this,"EnableLumi",false}
 Allows use of various luminosity functions. More...
 
Gaudi::Property< float > m_defaultLBDuration {this,"DefaultLBDuration",60.}
 Default duration of one lumi block. More...
 
Gaudi::Property< int > m_detailLevel {this,"DetailLevel",0}
 Sets the level of detail used in the monitoring. More...
 
SG::ReadHandleKey< xAOD::EventInfom_EventInfoKey {this,"EventInfoKey","EventInfo"}
 Key for retrieving EventInfo from StoreGate. More...
 

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 > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

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. More...
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
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 365 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 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 191 of file AthMonitorAlgorithm.h.

191  {
192  userDefined = 0,
193  monteCarlo,
194  collisions,
195  cosmics,
196  heavyIonCollisions,
197  };

◆ Environment_t

enum 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 172 of file AthMonitorAlgorithm.h.

172  {
173  user = 0,
174  online,
175  tier0,
176  tier0Raw,
177  tier0ESD,
178  AOD,
179  altprod,
180  };

◆ 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

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.

◆ TileFragStatus

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
inherited

Constructor.

Definition at line 42 of file AthMonitorAlgorithm.cxx.

◆ cardinality()

unsigned int AthReentrantAlgorithm::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.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ 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);
543 
544  if ((dmuBCID == rodBCID) || (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 }

◆ 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 
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)) {
447  }
448  for (int dmu = 0; dmu < MAX_DMU; ++dmu) {
449  dmus.push_back(dmu);
450  errors.push_back(error);
451  }
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;
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);
504  error = SINGLE_STB;
505  errors.push_back(error);
506  }
507  if ((header >> 23) & 0x1) {
508  dmus.push_back(dmu);
509  error = DOUBLE_STB;
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  }
525  fill(m_tools[m_errorsGroups[partition][drawer][gain]], drawerDMUs, errorsInDMUs);
526  }
527  ++gain;
528  }
529  return false;
530 }

◆ 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 }

◆ 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 
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 }

◆ 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 221 of file AthMonitorAlgorithm.h.

221 { 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 140 of file AthMonitorAlgorithm.cxx.

140  {
141  // convert the string to all lowercase
142  std::string lowerCaseStr = str;
143  std::transform(lowerCaseStr.begin(), lowerCaseStr.end(), lowerCaseStr.begin(), ::tolower);
144 
145  // check if it matches one of the enum choices
146  if( lowerCaseStr == "userdefined" ) {
148  } else if( lowerCaseStr == "montecarlo" ) {
149  return DataType_t::monteCarlo;
150  } else if( lowerCaseStr == "collisions" ) {
151  return DataType_t::collisions;
152  } else if( lowerCaseStr == "cosmics" ) {
153  return DataType_t::cosmics;
154  } else if( lowerCaseStr == "heavyioncollisions" ) {
156  } else { // otherwise, warn the user and return "userDefined"
157  ATH_MSG_WARNING("AthMonitorAlgorithm::dataTypeStringToEnum(): Unknown data type "
158  <<str<<", returning userDefined.");
160  }
161 }

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

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

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ 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.

95 { return m_detStore; }

◆ 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 205 of file AthMonitorAlgorithm.h.

205 { 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 112 of file AthMonitorAlgorithm.cxx.

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

◆ evtStore() [1/2]

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.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ 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 73 of file AthMonitorAlgorithm.cxx.

73  {
74 
75  // Checks that all of the DQ filters are passed. If any one of the filters
76  // fails, return SUCCESS code and do not fill the histograms with the event.
77  for ( const auto& filterItr : m_DQFilterTools ) {
78  if (!filterItr->accept()) {
79  ATH_MSG_DEBUG("Event rejected due to filter tool.");
80  return StatusCode::SUCCESS;
81  }
82  }
83 
84  // Trigger: If there is a decision tool and the chains fail, skip the event.
86  ATH_MSG_DEBUG("Event rejected due to trigger filter.");
87  return StatusCode::SUCCESS;
88  }
89 
90  ATH_MSG_DEBUG("Event accepted!");
91  return fillHistograms(ctx);
92 }

◆ 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 & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ 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 
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 
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 
180  double pedestal = digits[0];
181 
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 
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 
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 
222  auto monSamples = Monitored::Collection("samples" + channelGainSuffix, digits);
223  fill(m_tools[m_samplesGroups[partition][drawer]], monSamples);
224  }
225 
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 
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 
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 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ 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 107 of file AthMonitorAlgorithm.cxx.

107  {
109 }

◆ 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 164 of file AthMonitorAlgorithm.cxx.

164  {
165  // get the pointer to the tool, and check that it exists
166  auto idx = m_toolLookupMap.find(name);
167  if (ATH_LIKELY(idx != m_toolLookupMap.end())) {
168  return m_tools[idx->second];
169  }
170  else {
171  if (!isInitialized()) {
173  "It seems that the AthMonitorAlgorithm::initialize was not called "
174  "in derived class initialize method");
175  } else {
176  std::string available = std::accumulate(
177  m_toolLookupMap.begin(), m_toolLookupMap.end(), std::string(""),
178  [](const std::string& s, auto h) { return s + "," + h.first; });
179  ATH_MSG_FATAL("The tool " << name << " could not be found in the tool array of the "
180  << "monitoring algorithm " << m_name << ". This probably reflects a discrepancy between "
181  << "your python configuration and c++ filling code. Note: your available groups are {"
182  << available << "}.");
183  }
184  }
185  return m_dummy;
186 }

◆ 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 189 of file AthMonitorAlgorithm.cxx.

189  {
190  return m_trigDecTool;
191 }

◆ 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 
22 
24  if (m_tileInfo->ADCmax() == 4095) {
25  m_is12bit = true;
26  }
27 
28  using Tile = TileCalibUtils;
29  using namespace Monitored;
30 
31 
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 
54  m_meanSampleGroups = buildToolMap<int>(m_tools, "TileDigitsMeanSample", Tile::MAX_GAIN);
55  m_meanSampleProdGroups = buildToolMap<int>(m_tools, "TileDigitsMeanSampleProd", Tile::MAX_GAIN);
56  }
57 
59  m_pedGroups = buildToolMap<std::vector<int>>(m_tools, "TileDigitsSample0",
60  Tile::MAX_ROS - 1, Tile::MAX_DRAWER);
61  }
62 
64  m_hfnGroups = buildToolMap<std::vector<int>>(m_tools, "TileDigitsMeanRMS",
65  Tile::MAX_ROS - 1, Tile::MAX_DRAWER);
66  }
67 
69  m_samplesGroups = buildToolMap<std::vector<int>>(m_tools, "TileDigitsSamples",
70  Tile::MAX_ROS - 1, Tile::MAX_DRAWER);
71  }
72 
74  m_profGroups = buildToolMap<std::vector<int>>(m_tools, "TileDigitsProfile",
75  Tile::MAX_ROS - 1, Tile::MAX_DRAWER);
76  }
77 
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 }

◆ 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()

bool AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ 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() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ 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 336 of file AthMonitorAlgorithm.cxx.

336  {
337  std::string item;
338  std::stringstream ss(line);
339 
340  ATH_MSG_DEBUG( "AthMonitorAlgorithm::parseList()" );
341 
342  while ( std::getline(ss, item, ',') ) {
343  std::stringstream iss(item); // remove whitespace
344  iss >> item;
345  result.push_back(item);
346  }
347 
348  return StatusCode::SUCCESS;
349 }

◆ 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();
383  PBASE::renounce (h);
384  }

◆ 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  {
365  handlesArray.renounce();
366  }

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::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 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::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 InputMakerBase, and HypoBase.

Definition at line 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

◆ 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
inline

Definition at line 25 of file TileCalibMonitorAlgorithm.h.

26  :AthMonitorAlgorithm(name, svcLocator) {}

◆ 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 194 of file AthMonitorAlgorithm.cxx.

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

◆ 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) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
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

Definition at line 272 of file TileDigitsMonitorAlgorithm.py.

◆ enableLumiAccess

TileDigitsMonitorAlgorithm.enableLumiAccess

Definition at line 265 of file TileDigitsMonitorAlgorithm.py.

◆ False

TileDigitsMonitorAlgorithm.False

Definition at line 275 of file TileDigitsMonitorAlgorithm.py.

◆ Files

TileDigitsMonitorAlgorithm.Files

Definition at line 260 of file TileDigitsMonitorAlgorithm.py.

◆ fillPedestalDifference

TileDigitsMonitorAlgorithm.fillPedestalDifference

Definition at line 278 of file TileDigitsMonitorAlgorithm.py.

◆ flags

TileDigitsMonitorAlgorithm.flags

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.

◆ 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.

◆ 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 351 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 353 of file AthMonitorAlgorithm.h.

◆ m_defaultLBDuration

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

Default duration of one lumi block.

Definition at line 360 of file AthMonitorAlgorithm.h.

◆ m_detailLevel

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

Sets the level of detail used in the monitoring.

Definition at line 361 of file AthMonitorAlgorithm.h.

◆ 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.

◆ m_DQFilterTools

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

Array of Data Quality filter tools.

Definition at line 341 of file AthMonitorAlgorithm.h.

◆ 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.

◆ m_dummy

const ToolHandle<GenericMonitoringTool> AthMonitorAlgorithm::m_dummy
privateinherited

Definition at line 369 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 372 of file AthMonitorAlgorithm.h.

◆ m_environment

AthMonitorAlgorithm::Environment_t AthMonitorAlgorithm::m_environment
protectedinherited

Instance of the Environment_t enum.

Definition at line 350 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 352 of file AthMonitorAlgorithm.h.

◆ 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 362 of file AthMonitorAlgorithm.h.

◆ 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 AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

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

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_fileKey

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

Internal Athena name for file.

Definition at line 358 of file AthMonitorAlgorithm.h.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ m_lbDurationDataKey

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

Definition at line 345 of file AthMonitorAlgorithm.h.

◆ m_lumiDataKey

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

Definition at line 343 of file AthMonitorAlgorithm.h.

◆ 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 366 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.

◆ 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.

◆ 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.

◆ m_tileHWID

const TileHWID* TileCalibMonitorAlgorithm::m_tileHWID {nullptr}
protectedinherited

Definition at line 97 of file TileCalibMonitorAlgorithm.h.

◆ m_tileInfo

const TileInfo* TileCalibMonitorAlgorithm::m_tileInfo {nullptr}
protectedinherited

Definition at line 98 of file TileCalibMonitorAlgorithm.h.

◆ 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.

◆ m_toolLookupMap

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

Definition at line 367 of file AthMonitorAlgorithm.h.

◆ m_tools

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

Array of Generic Monitoring Tools.

Definition at line 338 of file AthMonitorAlgorithm.h.

◆ m_trigDecTool

PublicToolHandle<Trig::TrigDecisionTool> AthMonitorAlgorithm::m_trigDecTool {this, "TrigDecisionTool",""}
protectedinherited

Tool to tell whether a specific trigger is passed.

Definition at line 340 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 355 of file AthMonitorAlgorithm.h.

◆ m_trigLiveFractionDataKey

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

Definition at line 347 of file AthMonitorAlgorithm.h.

◆ m_useLumi

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

Allows use of various luminosity functions.

Definition at line 359 of file AthMonitorAlgorithm.h.

◆ 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 356 of file AthMonitorAlgorithm.h.

◆ MAX_DMU

const int TileDigitsMonitorAlgorithm::MAX_DMU {16}
staticprivate

Definition at line 92 of file TileDigitsMonitorAlgorithm.h.

◆ MaxEvents

TileDigitsMonitorAlgorithm.MaxEvents

Definition at line 266 of file TileDigitsMonitorAlgorithm.py.

◆ name

TileDigitsMonitorAlgorithm.name

Definition at line 277 of file TileDigitsMonitorAlgorithm.py.

◆ readBeamElem

TileDigitsMonitorAlgorithm.readBeamElem

Definition at line 275 of file TileDigitsMonitorAlgorithm.py.

◆ readMuRcv

TileDigitsMonitorAlgorithm.readMuRcv

Definition at line 275 of file TileDigitsMonitorAlgorithm.py.

◆ sc

TileDigitsMonitorAlgorithm.sc

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:
TileDigitsMonitorAlgorithm::SINGLE_STB
@ SINGLE_STB
Definition: TileDigitsMonitorAlgorithm.h:35
TileDigitsMonitorAlgorithm::m_fillCorrelationsHistograms
Gaudi::Property< bool > m_fillCorrelationsHistograms
Definition: TileDigitsMonitorAlgorithm.h:66
TileDigitsMonitorAlgorithm::m_tileCondToolNoiseSample
ToolHandle< TileCondToolNoiseSample > m_tileCondToolNoiseSample
Definition: TileDigitsMonitorAlgorithm.h:75
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
AthMonitorAlgorithm::Environment_t::tier0Raw
@ tier0Raw
TileCalibMonitorAlgorithm::m_tileInfo
const TileInfo * m_tileInfo
Definition: TileCalibMonitorAlgorithm.h:98
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
checkFileSG.line
line
Definition: checkFileSG.py:75
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TileDigitsMonitorAlgorithm::OK
@ OK
Definition: TileDigitsMonitorAlgorithm.h:35
get_generator_info.result
result
Definition: get_generator_info.py:21
header
Definition: hcg.cxx:526
TileDigitsMonitorAlgorithm::m_ADCmaxMinusEpsilon
float m_ADCmaxMinusEpsilon
Definition: TileDigitsMonitorAlgorithm.h:94
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
TileDigitsMonitorAlgorithm::NO_ROB
@ NO_ROB
Definition: TileDigitsMonitorAlgorithm.h:33
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
TileDigitsMonitorAlgorithm::MEMO_PAR
@ MEMO_PAR
Definition: TileDigitsMonitorAlgorithm.h:35
AthMonitorAlgorithm::m_trigDecTool
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
Definition: AthMonitorAlgorithm.h:340
TileDigitsMonitorAlgorithm::m_fillEventModule32Histograms
Gaudi::Property< bool > m_fillEventModule32Histograms
Definition: TileDigitsMonitorAlgorithm.h:63
AthMonitorAlgorithm::Environment_t::tier0
@ tier0
TileCalibMonitorAlgorithm::UNKNOWN_RUN
@ UNKNOWN_RUN
Definition: TileCalibMonitorAlgorithm.h:65
AthMonitorAlgorithm::Environment_t::AOD
@ AOD
TileCalibMonitorAlgorithm::isHeaderFormatError
bool isHeaderFormatError(uint32_t header) const
Definition: TileCalibMonitorAlgorithm.h:42
python.ExitCodes.ALL_OK
int ALL_OK
successful run
Definition: ExitCodes.py:10
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TileCalibMonitorAlgorithm::m_runType
Gaudi::Property< int > m_runType
Definition: TileCalibMonitorAlgorithm.h:84
TileCalibMonitorAlgorithm::LAS_RUN
@ LAS_RUN
Definition: TileCalibMonitorAlgorithm.h:67
TileDigitsMonitorAlgorithm::ALL_OK
@ ALL_OK
Definition: TileDigitsMonitorAlgorithm.h:33
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
accumulate
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
Definition: FPGATrackSimMatrixAccumulator.cxx:22
TileDQstatus::calibMode
uint32_t calibMode() const
Calibration mode.
Definition: TileDQstatus.h:148
AthMonitorAlgorithm::m_vTrigChainNames
std::vector< std::string > m_vTrigChainNames
Vector of trigger chain names parsed from trigger chain string.
Definition: AthMonitorAlgorithm.h:356
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
AthMonitorAlgorithm::m_EventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
Key for retrieving EventInfo from StoreGate.
Definition: AthMonitorAlgorithm.h:362
TileDigitsMonitorAlgorithm::DOUBLE_STB
@ DOUBLE_STB
Definition: TileDigitsMonitorAlgorithm.h:35
TileDigitsMonitorAlgorithm::m_fillHighFrequencyNoiseHistograms
Gaudi::Property< bool > m_fillHighFrequencyNoiseHistograms
Definition: TileDigitsMonitorAlgorithm.h:54
TileCalibMonitorAlgorithm::isHeaderParityError
bool isHeaderParityError(uint32_t header) const
Definition: TileCalibMonitorAlgorithm.h:51
TileDigitsMonitorAlgorithm::m_samplesGroups
std::vector< std::vector< int > > m_samplesGroups
Definition: TileDigitsMonitorAlgorithm.h:88
TileDigitsMonitorAlgorithm::m_fillPedestalDifference
Gaudi::Property< bool > m_fillPedestalDifference
Definition: TileDigitsMonitorAlgorithm.h:45
TileDigitsMonitorAlgorithm::m_meanSampleGroups
std::vector< int > m_meanSampleGroups
Definition: TileDigitsMonitorAlgorithm.h:78
TileDigitsMonitorAlgorithm::ALL_00
@ ALL_00
Definition: TileDigitsMonitorAlgorithm.h:33
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
AthMonitorAlgorithm::m_toolLookupMap
std::unordered_map< std::string, size_t > m_toolLookupMap
Definition: AthMonitorAlgorithm.h:367
TileHWID::frag
int frag(const HWIdentifier &id) const
extract frag field from HW identifier
Definition: TileHWID.h:181
AthMonitorAlgorithm::m_environment
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.
Definition: AthMonitorAlgorithm.h:350
TileDigitsMonitorAlgorithm.name
name
Definition: TileDigitsMonitorAlgorithm.py:277
TileCalibMonitorAlgorithm::PED_RUN
@ PED_RUN
Definition: TileCalibMonitorAlgorithm.h:69
TileCalibMonitorAlgorithm::MONO_RUN
@ MONO_RUN
Definition: TileCalibMonitorAlgorithm.h:71
TileDigitsMonitorAlgorithm::m_crcErrGroups
std::vector< std::vector< int > > m_crcErrGroups
Definition: TileDigitsMonitorAlgorithm.h:81
TileCalibMonitorAlgorithm::m_tileHWID
const TileHWID * m_tileHWID
Definition: TileCalibMonitorAlgorithm.h:97
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TileDigitsMonitorAlgorithm::m_fillPedestalHistograms
Gaudi::Property< bool > m_fillPedestalHistograms
Definition: TileDigitsMonitorAlgorithm.h:51
TileDigitsMonitorAlgorithm::checkCRC
void checkCRC(bool isCalibMode, uint32_t crc32, uint32_t crcMask, int nDMU, int ros, int drawer) const
Definition: TileDigitsMonitorAlgorithm.cxx:294
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
TileRawData::adc_HWID
HWIdentifier adc_HWID(void) const
Definition: TileRawData.h:53
empty
bool empty(TH1 *h)
Definition: computils.cxx:294
TileCalibMonitorAlgorithm::LED_RUN
@ LED_RUN
Definition: TileCalibMonitorAlgorithm.h:68
Example_ReadSampleNoise.drawer
drawer
Definition: Example_ReadSampleNoise.py:39
AthMonitorAlgorithm::trigChainsArePassed
bool trigChainsArePassed(const std::vector< std::string > &vTrigNames) const
Check whether triggers are passed.
Definition: AthMonitorAlgorithm.cxx:194
AthMonitorAlgorithm::Environment_t::user
@ user
TileHWID::channel
int channel(const HWIdentifier &id) const
extract channel field from HW identifier
Definition: TileHWID.h:189
python.utils.AtlRunQueryTimer.timer
def timer(name, disabled=False)
Definition: AtlRunQueryTimer.py:86
TileDigitsMonitorAlgorithm::m_bcidGroups
std::vector< std::vector< std::vector< int > > > m_bcidGroups
Definition: TileDigitsMonitorAlgorithm.h:82
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
TileDigitsMonitorAlgorithm::m_hfnGroups
std::vector< std::vector< int > > m_hfnGroups
Definition: TileDigitsMonitorAlgorithm.h:87
TileDigitsMonitorAlgorithm::m_digitsContainerKey
SG::ReadHandleKey< TileDigitsContainer > m_digitsContainerKey
Definition: TileDigitsMonitorAlgorithm.h:69
Monitored::Collection
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
Definition: MonitoredCollection.h:38
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthMonitorAlgorithm::m_dummy
const ToolHandle< GenericMonitoringTool > m_dummy
Definition: AthMonitorAlgorithm.h:369
TileHWID::ros
int ros(const HWIdentifier &id) const
extract ros field from HW identifier
Definition: TileHWID.h:167
TileDigitsMonitorAlgorithm::NO_FRAG
@ NO_FRAG
Definition: TileDigitsMonitorAlgorithm.h:33
TileDigitsMonitorAlgorithm::m_fillProfileHistograms
Gaudi::Property< bool > m_fillProfileHistograms
Definition: TileDigitsMonitorAlgorithm.h:60
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:269
TileDigitsMonitorAlgorithm::m_errorsGroups
std::vector< std::vector< std::vector< int > > > m_errorsGroups
Definition: TileDigitsMonitorAlgorithm.h:84
PyPoolBrowser.item
item
Definition: PyPoolBrowser.py:129
TileDigitsMonitorAlgorithm::checkCorruptedData
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
Definition: TileDigitsMonitorAlgorithm.cxx:429
TileSynchronizeBch.online
online
Definition: TileSynchronizeBch.py:88
TileDQstatus
Class that holds Data Quality fragment information and provides functions to extract the data quality...
Definition: TileDQstatus.h:49
TileHWID::adc
int adc(const HWIdentifier &id) const
extract adc field from HW identifier
Definition: TileHWID.h:193
Tile
Definition: TileVolumeBuilder.h:43
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthMonitorAlgorithm::m_DQFilterTools
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Array of Data Quality filter tools.
Definition: AthMonitorAlgorithm.h:341
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
TileDigitsMonitorAlgorithm::TileDigiErrors
TileDigiErrors
Definition: TileDigitsMonitorAlgorithm.h:35
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:100
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
sim_rttUpdate.user
def user
Definition: sim_rttUpdate.py:662
lumiFormat.i
int i
Definition: lumiFormat.py:92
Monitored
Generic monitoring tool for athena components.
Definition: GenericMonitoringTool.h:30
python.LArBadChannelDBAlg.xFFFFFFFF
xFFFFFFFF
Definition: LArBadChannelDBAlg.py:73
TileDigitsMonitorAlgorithm::m_pedGroups
std::vector< std::vector< int > > m_pedGroups
Definition: TileDigitsMonitorAlgorithm.h:86
AthMonitorAlgorithm::DataType_t::heavyIonCollisions
@ heavyIonCollisions
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
TileDigitsMonitorAlgorithm::m_rawChannelContainerKey
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainerKey
Definition: TileDigitsMonitorAlgorithm.h:72
tolower
void tolower(std::string &s)
Definition: AthenaSummarySvc.cxx:113
AthMonitorAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const =0
adds event to the monitoring histograms
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
AthMonitorAlgorithm::fill
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.
python.BuildSignatureFlags.cosmics
AthConfigFlags cosmics(AthConfigFlags flags, str instanceName, str recoMode)
Definition: BuildSignatureFlags.py:472
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
maskDeadModules.ros
ros
Definition: maskDeadModules.py:35
TileDigits::samples
const std::vector< float > & samples() const
Definition: TileDigits.h:58
TileCalibMonitorAlgorithm::m_fragIDsToIgnoreDMUerrors
Gaudi::Property< std::vector< int > > m_fragIDsToIgnoreDMUerrors
Definition: TileCalibMonitorAlgorithm.h:78
AthMonitorAlgorithm::m_dataType
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.
Definition: AthMonitorAlgorithm.h:351
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
TileDigitsMonitorAlgorithm::m_meanSampleProdGroups
std::vector< int > m_meanSampleProdGroups
Definition: TileDigitsMonitorAlgorithm.h:79
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
TileDigitsMonitorAlgorithm::ALL_FF
@ ALL_FF
Definition: TileDigitsMonitorAlgorithm.h:33
AthMonitorAlgorithm::DataType_t::cosmics
@ cosmics
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
mergePhysValFiles.errors
list errors
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:43
TileCalibMonitorAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: TileCalibMonitorAlgorithm.cxx:9
AthMonitorAlgorithm::m_tools
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.
Definition: AthMonitorAlgorithm.h:338
TileDigitsCollection
Definition: TileDigitsCollection.h:18
AthMonitorAlgorithm::Environment_t::online
@ online
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
TileDigitsMonitorAlgorithm::HEADER_PAR
@ HEADER_PAR
Definition: TileDigitsMonitorAlgorithm.h:35
TileCalibMonitorAlgorithm::m_dqStatusKey
SG::ReadHandleKey< TileDQstatus > m_dqStatusKey
Definition: TileCalibMonitorAlgorithm.h:87
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TileDigits
Definition: TileDigits.h:30
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
AthMonitorAlgorithm::Environment_t::tier0ESD
@ tier0ESD
TileDigitsMonitorAlgorithm::checkROD_CRC
StatusCode checkROD_CRC(const TileDQstatus *dqStatus, const EventContext &ctx) const
Definition: TileDigitsMonitorAlgorithm.cxx:387
TileDigitsMonitorAlgorithm::checkBCID
void checkBCID(const std::vector< std::reference_wrapper< const std::vector< uint32_t >>> &headerWordsAll, uint32_t rodBCID, int ros, int drawer) const
Definition: TileDigitsMonitorAlgorithm.cxx:532
AthMonitorAlgorithm::Environment_t::altprod
@ altprod
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
TileRawChannelCollection
Definition: TileRawChannelCollection.h:12
charge
double charge(const T &p)
Definition: AtlasPID.h:494
AthMonitorAlgorithm::m_enforceExpressTriggers
Gaudi::Property< bool > m_enforceExpressTriggers
Definition: AthMonitorAlgorithm.h:372
TileCalibMonitorAlgorithm::CIS_RAMP_RUN
@ CIS_RAMP_RUN
Definition: TileCalibMonitorAlgorithm.h:72
item
Definition: ItemListSvc.h:43
TileDQstatus::cispar
const uint32_t * cispar() const
CIS parameters.
Definition: TileDQstatus.h:152
TileDigitsMonitorAlgorithm::NO_RECO_FRAG
@ NO_RECO_FRAG
Definition: TileDigitsMonitorAlgorithm.h:36
ATH_LIKELY
#define ATH_LIKELY(x)
Definition: AthUnlikelyMacros.h:16
TileDigitsMonitorAlgorithm::m_crcGlobalGroups
std::vector< std::vector< int > > m_crcGlobalGroups
Definition: TileDigitsMonitorAlgorithm.h:80
a
TList * a
Definition: liststreamerinfos.cxx:10
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
TileDigitsMonitorAlgorithm::m_profGroups
std::vector< std::vector< int > > m_profGroups
Definition: TileDigitsMonitorAlgorithm.h:89
h
TileHWID::drawer
int drawer(const HWIdentifier &id) const
extract drawer field from HW identifier
Definition: TileHWID.h:171
python.CaloScaleNoiseConfig.str
str
Definition: CaloScaleNoiseConfig.py:78
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
TileCalibMonitorAlgorithm::CIS_RUN
@ CIS_RUN
Definition: TileCalibMonitorAlgorithm.h:70
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthMonitorAlgorithm::DataType_t::collisions
@ collisions
AthMonitorAlgorithm::m_name
std::string m_name
Definition: AthMonitorAlgorithm.h:366
python.Classes.TileCalibUtils
TileCalibUtils
Definition: TileCalib/TileCalibBlobObjs/python/Classes.py:5
StateLessPT_NewConfig.partition
partition
Definition: StateLessPT_NewConfig.py:49
TileDigitsMonitorAlgorithm::MAX_DMU
static const int MAX_DMU
Definition: TileDigitsMonitorAlgorithm.h:92
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
AthMonitorAlgorithm::AthMonitorAlgorithm
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: AthMonitorAlgorithm.cxx:7
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
TileDigitsMonitorAlgorithm::HEADER_FORM
@ HEADER_FORM
Definition: TileDigitsMonitorAlgorithm.h:35
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
TileCalibMonitorAlgorithm::PHYS_RUN
@ PHYS_RUN
Definition: TileCalibMonitorAlgorithm.h:66
TileDigitsMonitorAlgorithm::m_bcidErrGroups
std::vector< std::vector< std::vector< int > > > m_bcidErrGroups
Definition: TileDigitsMonitorAlgorithm.h:83
str
Definition: BTagTrackIpAccessor.cxx:11
LArDigits2NtupleDumper.nSamples
nSamples
Definition: LArDigits2NtupleDumper.py:70
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
TileDigitsMonitorAlgorithm::m_evtMod32Groups
std::vector< std::vector< int > > m_evtMod32Groups
Definition: TileDigitsMonitorAlgorithm.h:90
TileCalibUtils::getDrawerIdx
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
Definition: TileCalibUtils.cxx:60
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
TileAANtupleConfig.rawChannelContainer
rawChannelContainer
Definition: TileAANtupleConfig.py:120
Monitored::Scalar
Declare a monitored scalar variable.
Definition: MonitoredScalar.h:34
get_generator_info.error
error
Definition: get_generator_info.py:40
AthMonitorAlgorithm::DataType_t::userDefined
@ userDefined
TileDigitsMonitorAlgorithm::m_fillSamplesHistograms
Gaudi::Property< bool > m_fillSamplesHistograms
Definition: TileDigitsMonitorAlgorithm.h:57
SG::AllowEmpty
@ AllowEmpty
Definition: StoreGate/StoreGate/VarHandleKey.h:30
error
Definition: IImpactPoint3dEstimator.h:70
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
TileDigitsMonitorAlgorithm::DUMMY_FRAG
@ DUMMY_FRAG
Definition: TileDigitsMonitorAlgorithm.h:36
Monitored::Timer
A monitored timer.
Definition: MonitoredTimer.h:32
TileInfo::ADCmax
int ADCmax() const
Returns the maximum ADC output (10 bits --> 1023)
Definition: TileInfo.h:71
TileDigitsMonitorAlgorithm::m_fillErrorsHistograms
Gaudi::Property< bool > m_fillErrorsHistograms
Definition: TileDigitsMonitorAlgorithm.h:48
TileRawChannelUnit::ADCcounts
@ ADCcounts
Definition: TileRawChannelUnit.h:17
AthMonitorAlgorithm::DataType_t::monteCarlo
@ monteCarlo
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >
collisions
Definition: collisions.py:1
TileDigitsMonitorAlgorithm::m_is12bit
bool m_is12bit
Definition: TileDigitsMonitorAlgorithm.h:93