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

#include <LArFEBMonAlg.h>

Inheritance diagram for LArFEBMonAlg:

Public Types

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

Public Member Functions

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

Public Attributes

 flags = initConfigFlags()
 Files
 HISTFileName
 enableLumiAccess
 useTrigger
 cfg = CaloRecoCfg(flags)
 aff_acc = LArFEBMonConfig(flags)
 f = open("LArFEBMon.pkl","wb")

Protected Member Functions

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

Protected Attributes

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

Private Types

typedef std::map< std::pair< unsigned int, unsigned int >, unsigned int > MaskedFebs
typedef std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > MonVarVec_t
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

void fillErrorsSummary (unsigned int partitNb_2, int ft, int slot, uint16_t error, bool lar_inerror, std::bitset< 13 > &rejectionBits, bool &currentFebStatus, bool &eventRejected) const
void plotMaskedFEB () const
unsigned int returnPartition (int be, int pn, int ft, int sl) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadCondHandleKey< LArBadFebContm_BFKey {this, "MissingFEBKey", "LArBadFeb", "SG key for missing FEBs"}
SG::ReadCondHandleKey< LArDSPThresholdsCompletem_run1DSPThresholdsKey {this, "Run1DSPThresholdsKey", "", "SG key for DSP thresholds, run1"}
SG::ReadCondHandleKey< AthenaAttributeListm_run2DSPThresholdsKey {this, "Run2DSPThresholdsKey", "", "SG key for DSP thresholds, run2"}
SG::ReadHandleKey< LArFebHeaderContainerm_hdrContKey {this, "LArFebHeaderKey", "LArFebHeader"}
SG::ReadHandleKey< LArFebErrorSummarym_lArFebErrorSummaryKey {this, "LArFebErrorSummaryKey", "LArFebErrorSummary"}
Gaudi::Property< bool > m_ignoreMissingHeaderEMB {this, "IgnoreMissingHeaderEMB", false}
Gaudi::Property< bool > m_ignoreMissingHeaderPS {this, "IgnoreMissingHeaderPS", false}
Gaudi::Property< int > m_nFEBnominal {this,"NominalFEBNumber",1524}
Gaudi::Property< std::vector< std::string > > m_excoscalo {this,"ExcludeInCosmicCalo",{}, "Triggers excluded in CosmicCalo stream"}
Gaudi::Property< std::vector< std::string > > m_streams {this, "Streams", {}, "Which streams to monitor, if empty, only simple profile per partition (offline case)"}
Gaudi::Property< std::vector< std::string > > m_partitions {this, "PartitionNames", {} }
Gaudi::Property< std::vector< std::string > > m_SubDetNames {this, "SubDetNames", {} }
Gaudi::Property< std::string > m_monGroupName {this, "MonGroup", "FEBMon", "LArLARFEBMonGroup"}
SG::ReadDecorHandleKey< xAOD::EventInfom_eventInfoDecorKey {this, "LArStatusFlag", "EventInfo.larFlags", "Key for EventInfo object"}
std::vector< std::map< std::string, int > > m_histoGroups
const LArOnlineIDm_onlineHelper
bool m_trigok = false
bool m_dspThrDone ATLAS_THREAD_SAFE
bool m_maskedDone ATLAS_THREAD_SAFE
std::atomic< int > m_nbOfFebBlocksTotal
MaskedFebs m_badFebs ATLAS_THREAD_SAFE
std::mutex m_mut ATLAS_THREAD_SAFE
std::string m_name
std::unordered_map< std::string, size_t > m_toolLookupMap
const ToolHandle< GenericMonitoringToolm_dummy
Gaudi::Property< bool > m_enforceExpressTriggers
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 27 of file LArFEBMonAlg.h.

Member Typedef Documentation

◆ MaskedFebs

typedef std::map<std::pair<unsigned int, unsigned int>, unsigned int > LArFEBMonAlg::MaskedFebs
private

Definition at line 67 of file LArFEBMonAlg.h.

◆ MonVarVec_t

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

Definition at line 370 of file AthMonitorAlgorithm.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ DataType_t

enum class AthMonitorAlgorithm::DataType_t
stronginherited

Specifies what type of input data is being monitored.

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

Enumerator
userDefined 
monteCarlo 
collisions 
cosmics 
heavyIonCollisions 

Definition at line 194 of file AthMonitorAlgorithm.h.

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

◆ Environment_t

enum class AthMonitorAlgorithm::Environment_t
stronginherited

Specifies the processing environment.

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

Enumerator
user 
online 
tier0 
tier0Raw 
tier0ESD 
AOD 
altprod 

Definition at line 175 of file AthMonitorAlgorithm.h.

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

Constructor & Destructor Documentation

◆ LArFEBMonAlg()

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

Definition at line 31 of file LArFEBMonAlg.cxx.

32 : AthMonitorAlgorithm(name, pSvcLocator),
33 m_onlineHelper(nullptr),
34 m_dspThrDone(false),
35 m_maskedDone(false),
36 m_nbOfFebBlocksTotal(-1)
37{
38
39}
Base class for Athena Monitoring Algorithms.

◆ ~LArFEBMonAlg()

virtual LArFEBMonAlg::~LArFEBMonAlg ( )
inlinevirtual

Definition at line 32 of file LArFEBMonAlg.h.

32{};

Member Function Documentation

◆ cardinality()

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

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

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ dataType()

DataType_t AthMonitorAlgorithm::dataType ( ) const
inlineinherited

Accessor functions for the data type.

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

Definition at line 224 of file AthMonitorAlgorithm.h.

224{ return m_dataType; }
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.

◆ dataTypeStringToEnum()

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

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

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

Definition at line 144 of file AthMonitorAlgorithm.cxx.

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

◆ declareGaudiProperty()

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

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

Definition at line 156 of file AthCommonDataStore.h.

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

◆ declareProperty()

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

Definition at line 145 of file AthCommonDataStore.h.

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

◆ detStore()

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

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

Definition at line 95 of file AthCommonDataStore.h.

◆ environment()

Environment_t AthMonitorAlgorithm::environment ( ) const
inlineinherited

Accessor functions for the environment.

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

Definition at line 208 of file AthMonitorAlgorithm.h.

208{ return m_environment; }
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.

◆ envStringToEnum()

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

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

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

Definition at line 116 of file AthMonitorAlgorithm.cxx.

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

◆ evtStore()

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

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

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

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

Applies filters and trigger requirements.

Then, calls fillHistograms().

Parameters
ctxevent context for reentrant Athena call
Returns
StatusCode

Definition at line 77 of file AthMonitorAlgorithm.cxx.

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

◆ extraDeps_update_handler()

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

Add StoreName to extra input/output deps as needed.

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

◆ extraOutputDeps()

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

Return the list of extra output dependencies.

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

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

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

◆ fillErrorsSummary()

void LArFEBMonAlg::fillErrorsSummary ( unsigned int partitNb_2,
int ft,
int slot,
uint16_t error,
bool lar_inerror,
std::bitset< 13 > & rejectionBits,
bool & currentFebStatus,
bool & eventRejected ) const
private

Definition at line 421 of file LArFEBMonAlg.cxx.

422{
423
424 if (m_badFebs.count(std::make_pair(slot,ft)) != 0) return;
425
426
427 auto part = Monitored::Scalar<int>("part",partitNb_2);
428 auto ferror = Monitored::Scalar<int>("febError",-1);
429 if ( error & (1<<0) ){
430 unsigned subdet = partitNb_2 / 2;
431 auto sl = Monitored::Scalar<int>("slotPar",slot);
432 auto ftmon = Monitored::Scalar<int>("FTPar",ft);
433 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitNb_2])],sl,ftmon);
434 currentFebStatus = true;
435 rejectionBits.set(0);
436 ferror=1;
437 fill(m_monGroupName, ferror, part);
438 }
439
440 if ( error & (1<<1) ){
441 unsigned subdet = partitNb_2 / 2;
442 auto sl = Monitored::Scalar<int>("slotBcid",slot);
443 auto ftmon = Monitored::Scalar<int>("FTBcid",ft);
444 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitNb_2])],sl,ftmon);
445 currentFebStatus = true;
446 rejectionBits.set(1);
447 ferror=2;
448 fill(m_monGroupName, ferror, part);
449 }
450
451 if ( error & (1<<2) ){
452 unsigned subdet = partitNb_2 / 2;
453 auto sl = Monitored::Scalar<int>("slotRadd",slot);
454 auto ftmon = Monitored::Scalar<int>("FTRadd",ft);
455 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitNb_2])],sl,ftmon);
456 currentFebStatus = true;
457 rejectionBits.set(2);
458 ferror=3;
459 fill(m_monGroupName, ferror, part);
460 }
461
462 if ( error & (1<<3) ){
463 unsigned subdet = partitNb_2 / 2;
464 auto sl = Monitored::Scalar<int>("slotEvtid",slot);
465 auto ftmon = Monitored::Scalar<int>("FTEvtid",ft);
466 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitNb_2])],sl,ftmon);
467 currentFebStatus = true;
468 rejectionBits.set(3);
469 ferror=4;
470 fill(m_monGroupName, ferror, part);
471 }
472
473 if ( error & (1<<4) ){
474 unsigned subdet = partitNb_2 / 2;
475 auto sl = Monitored::Scalar<int>("slotScac",slot);
476 auto ftmon = Monitored::Scalar<int>("FTScac",ft);
477 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitNb_2])],sl,ftmon);
478 currentFebStatus = true;
479 rejectionBits.set(4);
480 ferror=5;
481 fill(m_monGroupName, ferror, part);
482 }
483
484 if ( error & (1<<5) ){
485 unsigned subdet = partitNb_2 / 2;
486 auto sl = Monitored::Scalar<int>("slotscout",slot);
487 auto ftmon = Monitored::Scalar<int>("FTscout",ft);
488 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitNb_2])],sl,ftmon);
489 currentFebStatus = true;
490 rejectionBits.set(5);
491 ferror=6;
492 fill(m_monGroupName, ferror, part);
493 }
494
495 if ( error & (1<<6) ){
496 unsigned subdet = partitNb_2 / 2;
497 auto sl = Monitored::Scalar<int>("slotgain",slot);
498 auto ftmon = Monitored::Scalar<int>("FTgain",ft);
499 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitNb_2])],sl,ftmon);
500 currentFebStatus = true;
501 rejectionBits.set(6);
502 ferror=7;
503 fill(m_monGroupName, ferror, part);
504 }
505
506 if ( error & (1<<7) ){
507 unsigned subdet = partitNb_2 / 2;
508 auto sl = Monitored::Scalar<int>("slottype",slot);
509 auto ftmon = Monitored::Scalar<int>("FTtype",ft);
510 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitNb_2])],sl,ftmon);
511 currentFebStatus = true;
512 rejectionBits.set(7);
513 ferror=8;
514 fill(m_monGroupName, ferror, part);
515 }
516
517 if ( error & (1<<8) ){
518 unsigned subdet = partitNb_2 / 2;
519 auto sl = Monitored::Scalar<int>("slotsmp",slot);
520 auto ftmon = Monitored::Scalar<int>("FTsmp",ft);
521 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitNb_2])],sl,ftmon);
522 currentFebStatus = true;
523 rejectionBits.set(8);
524 ferror=9;
525 fill(m_monGroupName, ferror, part);
526 }
527
528 if ( error & (1<<9) ){
529 unsigned subdet = partitNb_2 / 2;
530 auto sl = Monitored::Scalar<int>("slotzero",slot);
531 auto ftmon = Monitored::Scalar<int>("FTzero",ft);
532 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitNb_2])],sl,ftmon);
533 currentFebStatus = true;
534 rejectionBits.set(9);
535 ferror=10;
536 fill(m_monGroupName, ferror, part);
537 }
538
539
540 if ( error & (1<<11) ){
541 unsigned subdet = partitNb_2 / 2;
542 auto sl = Monitored::Scalar<int>("slotsum",slot);
543 auto ftmon = Monitored::Scalar<int>("FTsum",ft);
544 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitNb_2])],sl,ftmon);
545 currentFebStatus = true;
546 rejectionBits.set(10);
547 ferror=11;
548 fill(m_monGroupName, ferror, part);
549 }
550
551 if ( error & (1<<12) ){
552 // Check whether this error can be ignored. Useful for calibration run of PS or EMB
553 if (!((m_ignoreMissingHeaderEMB && partitNb_2<2 && slot>=2) || (m_ignoreMissingHeaderPS && partitNb_2<2 && slot==1))){
554 unsigned subdet = partitNb_2 / 2;
555 auto sl = Monitored::Scalar<int>("slotmis",slot);
556 auto ftmon = Monitored::Scalar<int>("FTmis",ft);
557 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitNb_2])],sl,ftmon);
558 currentFebStatus = true;
559 rejectionBits.set(11);
560 ferror=12;
561 fill(m_monGroupName, ferror, part);
562 }
563 }
564
565 if ( error & (1<<13) ){
566 unsigned subdet = partitNb_2 / 2;
567 auto sl = Monitored::Scalar<int>("slotgain",slot);
568 auto ftmon = Monitored::Scalar<int>("FTgain",ft);
569 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitNb_2])],sl,ftmon);
570 currentFebStatus = true;
571 rejectionBits.set(12);
572 ferror=13;
573 fill(m_monGroupName, ferror, part);
574 }
575
576
577 unsigned subdet = partitNb_2 / 2;
578 float ferr=0.;
579 if (currentFebStatus){
580 auto sl = Monitored::Scalar<int>("slotabs",slot);
581 auto ftmon = Monitored::Scalar<int>("FTabs",ft);
582 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitNb_2])],sl,ftmon);
583 if (lar_inerror) {// LArinError
584 eventRejected = true;
585 if(environment() == Environment_t::online) ferr=100.;
586 } else {
587 if(environment() == Environment_t::online) ferr=50.;
588 }
589 }
590 if(environment() == Environment_t::online) {
591 auto lbf = Monitored::Scalar<float>("LBf",0.5);
592 auto erry = Monitored::Scalar<float>("erronl",ferr);
593 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitNb_2])],lbf,erry);
594 }
595
596 return;
597}
Environment_t environment() const
Accessor functions for the environment.
std::vector< std::map< std::string, int > > m_histoGroups
Declare a monitored scalar variable.
void fill(H5::Group &out_file, size_t iterations)

◆ fillHistograms()

StatusCode LArFEBMonAlg::fillHistograms ( const EventContext & ctx) const
finaloverridevirtual

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

Definition at line 80 of file LArFEBMonAlg.cxx.

80 {
81
82 bool eventRejected = false;
83 std::bitset<13> rejectionBits;
84 // for TTree
85 std::vector<int> febInErrorTree(0);
86 std::vector<int> febErrorTypeTree(0);
87
88 // Retrieve event info to get event time,trigger type...
89 // Retrieved at beg of method now to get the LVL1 type
90 // to check consistency with DSP trigger type
91 SG::ReadHandle<xAOD::EventInfo> thisEvent(GetEventInfo(ctx));
92 ATH_CHECK(thisEvent.isValid());
93 unsigned int l1Trig = thisEvent->level1TriggerType();
94 auto l1 = Monitored::Scalar<int>("LVL1Trig",l1Trig);
95 fill(m_monGroupName,l1);
96
97 auto eventTime = Monitored::Scalar<int>("timestamp",thisEvent->timeStamp());
98 auto eventTime_ns = Monitored::Scalar<int>("time_ns",thisEvent->timeStampNSOffset());
99
100 unsigned lumi_block = thisEvent->lumiBlock();
101 bool lar_inerror = (thisEvent->errorState(xAOD::EventInfo::LAr)==xAOD::EventInfo::Error) ? true : false;
102
103 ATH_MSG_DEBUG( "LArFEBMonAlg Lumi block: "<<lumi_block);
104
105 SG::ReadHandle<LArFebHeaderContainer> hdrCont(m_hdrContKey, ctx);
106 SG::ReadHandle<LArFebErrorSummary> lArFebErrorSummary(m_lArFebErrorSummaryKey, ctx);
107 if (!hdrCont.isValid()) {
108 ATH_MSG_ERROR( "No LArFebHeaderContainer found in TDS" );
109 return StatusCode::FAILURE;
110 }
111
112 if (hdrCont->size()==0) {
113 ATH_MSG_WARNING( "Got empty LArFebHeaderContainer. Do nothing" );
114 return StatusCode::SUCCESS;
115 }
116
117 if (!lArFebErrorSummary.isValid()) {
118 ATH_MSG_ERROR( "No LArFebErrorSummary found in TDS" );
119 return StatusCode::FAILURE;
120 }
121
122 bool trigok=true;
123 if (environment() == Environment_t::online) {
124 const ToolHandle<Trig::TrigDecisionTool> trigTool=getTrigDecisionTool();
125 //const Trig::TrigDecisionTool *trigTool = dynamic_cast<const Trig::TrigDecisionTool * > (&*trigHdl);
126 std::vector<std::string> l1triggers;
127 if(!trigTool.empty()) {
128 const Trig::ChainGroup* allL1 = trigTool->getChainGroup("L1_.*");
129 l1triggers = allL1->getListOfTriggers();
130 ATH_MSG_DEBUG( "lvl1 item names: [" );
131 for (unsigned int i=0;i< l1triggers.size();i++) {
132 ATH_MSG_DEBUG( i << " " << l1triggers.at(i) << " , " );
133 }
134 ATH_MSG_DEBUG( "] " );
135 } else {
136 ATH_MSG_WARNING("TrigDecisionTool is empty");
137 }
138 if (l1triggers.size()>0) {trigok=true;} else {trigok=false;}
139 }
140
141 uint32_t firstEventType = (*hdrCont->begin())->DetEventType();
142
143 { // adding scope for locking
144 std::lock_guard<std::mutex> lock(m_mut);
145 if(!m_maskedDone) { // should be done once at the beginning
147 m_maskedDone=true;
148 }
149 }
150
151 // At 1st event, retrieve DSP thresholds and fill histogram with values for all channels
152 { // adding scope for locking
153 std::lock_guard<std::mutex> lock(m_mut);
154 if (!m_dspThrDone && firstEventType == 4) {
155
156 auto dspADC = Monitored::Scalar<unsigned int>("dspThrADC",-1);
157 auto dspQT = Monitored::Scalar<unsigned int>("dspThrQT",-1);
159 ATH_MSG_DEBUG("Loading run1 version of LAr DSP Thresholds");
160 SG::ReadCondHandle<LArDSPThresholdsComplete> dspThresh (m_run1DSPThresholdsKey, ctx);
161 for (HWIdentifier ch : m_onlineHelper->channel_range()) {
162 dspADC=dspThresh->samplesThr(ch);
163 dspQT=dspThresh->tQThr(ch);
164 fill(m_monGroupName, dspADC, dspQT);
165 }//end loop over channels
166 }
167 else if (!m_run2DSPThresholdsKey.empty()) {
168 ATH_MSG_DEBUG("Loading run2 version of LAr DSP Thresholds");
169 SG::ReadCondHandle<AthenaAttributeList> dspThrshAttr (m_run2DSPThresholdsKey, ctx);
170 LArDSPThresholdsFlat dspThreshFlat(*dspThrshAttr);
171 if (!dspThreshFlat.good()) {
172 ATH_MSG_WARNING( "Failed to initialize LArDSPThresholdFlat from attribute list loaded from " << m_run2DSPThresholdsKey.key()
173 << ". Will not fill histograms." );
174 }//end if not good
175 const IdentifierHash chanMax=m_onlineHelper->channelHashMax();
176 for (unsigned iChan=0;iChan<chanMax;++iChan) {
177 dspADC=dspThreshFlat.samplesThrByHash(iChan);
178 dspQT=dspThreshFlat.tQThrByHash(iChan);
179 fill(m_monGroupName, dspADC, dspQT);
180 }
181 }
182 else
183 ATH_MSG_WARNING( "No LArDSPThresholds key specified. Will not fill these histograms" );
184 m_dspThrDone=true;
185 }//m_dspThrDone
186 } // locking scope
187
188
189 //Adjust event type if we have raw data in the ROD block
190 if (firstEventType == 4 && (*hdrCont->begin())->RodRawDataSize() != 0) firstEventType = 14;
191
192 std::vector<unsigned int> nfeb(m_partitions.size());
193 int firstEventNbSp=-1;
194 unsigned int totNbOfSweet2 = 0;
195 float larEventSize = 0;
196 float larEventSize_part[8] = {0.,0.,0.,0.,0.,0.,0.,0.};
197
198 LArFebHeaderContainer::const_iterator it = hdrCont->begin();
199 LArFebHeaderContainer::const_iterator it_e = hdrCont->end();
200
201 auto l1word = Monitored::Scalar<int>("LVL1TrigAllDSP",0);
202 // Loop on all available FEBHeader to fill basic parameters histogram : event type, event size, nb of sweet cells...
203 auto slmon = Monitored::Scalar<int>("slotnb",-1);
204 auto ftmon = Monitored::Scalar<int>("FTnb",-1);
205 auto sw1 = Monitored::Scalar<int>("weightsweet1",-1);
206 auto sw2 = Monitored::Scalar<int>("weightsweet2",-1);
207 auto slmis = Monitored::Scalar<int>("slotmist",-1);
208 auto ftmis = Monitored::Scalar<int>("FTmist",-1);
209 for ( ; it!=it_e;++it) {
210 HWIdentifier febid=(*it)->FEBId();
211
212 if (febid.get_identifier32().get_compact() >= 0x38000000 && febid.get_identifier32().get_compact() <= 0x3bc60000 && !(febid.get_identifier32().get_compact() & 0xFFF)) {
213 int barrel_ec = m_onlineHelper->barrel_ec(febid);
214 int pos_neg = m_onlineHelper->pos_neg(febid);
215 int ft = m_onlineHelper->feedthrough(febid);
216 int slot = m_onlineHelper->slot(febid);
217 unsigned int partitionNb_dE = returnPartition(barrel_ec,pos_neg,ft,slot);
218 unsigned int subdet = partitionNb_dE / 2;
219
220 if (partitionNb_dE < m_partitions.size()) {
221 nfeb[partitionNb_dE]++ ;
222 }else{
223 ATH_MSG_WARNING("Unknown partition number: "<< partitionNb_dE << " not filling !");
224 continue;
225 }
226 larEventSize += (float) ((*it)->RodRawDataSize() + (*it)->RodResults1Size() + (*it)->RodResults2Size()); // This quantity is now in megabytes
227 if(partitionNb_dE<8) larEventSize_part[partitionNb_dE] += (float) ((*it)->RodRawDataSize() + (*it)->RodResults1Size() + (*it)->RodResults2Size());
228
229 // Eventype = 2 : transparent/raw data - 4 : Physic - 7 : calibration - 10 : pedestal - 14 : raw data + results
230 uint32_t eventType = (*it)->DetEventType();
231 // If physic mode && raw data != 0, we are in rawdata+results
232 if (eventType == 4 && (*it)->RodRawDataSize() != 0) eventType = 14;
233 //if (firstEventType == 999) firstEventType = eventType;
234 if (firstEventNbSp < 0)
235 if ((*it)->NbSamples() != 0)
236 firstEventNbSp=(*it)->NbSamples();
237
238
239 l1word = (*it)->LVL1TigType();
240 fill(m_monGroupName,l1word);
241
242 if (firstEventType == 4) totNbOfSweet2 = totNbOfSweet2+(*it)->NbSweetCells2();
243 // Fill (nb of evnts and sweet cells per FEB) histos
244 slmon = slot;
245 ftmon = ft;
246 sw1 = (*it)->NbSweetCells1();
247 sw2 = (*it)->NbSweetCells2();
248 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitionNb_dE])],slmon,ftmon,sw1,sw2);
249 if ((*it)->LVL1TigType() == 0 || (*it)->LVL1TigType() == 170 || (*it)->LVL1TigType() != l1Trig){
250 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitionNb_dE])],slmis,ftmis);
251 }
252 }//Test on FEBid
253 }//end of loop over FEB headers
254
255 // Loop over all febs to plot the error from statusword
256 // This is mandatory to also monitor the FEBs with missing headers
257
258 bool anyfebIE = false;
259 for (std::vector<HWIdentifier>::const_iterator allFeb = m_onlineHelper->feb_begin();
260 allFeb != m_onlineHelper->feb_end(); ++allFeb) {
261 HWIdentifier febid = HWIdentifier(*allFeb);
262 bool currentFebStatus = false;
263 uint16_t feberrorSummary = lArFebErrorSummary->feb_error(febid);
264
265 if ( feberrorSummary != 0 ){
266 int barrel_ec = m_onlineHelper->barrel_ec(febid);
267 int pos_neg = m_onlineHelper->pos_neg(febid);
268 int ft = m_onlineHelper->feedthrough(febid);
269 int slot = m_onlineHelper->slot(febid);
270 unsigned int partitionNb_dE = returnPartition(barrel_ec,pos_neg,ft,slot);
271
272 if (partitionNb_dE < m_partitions.size()) {
273 // Fill the errors in partition histograms
274 fillErrorsSummary(partitionNb_dE,ft,slot,feberrorSummary,lar_inerror, rejectionBits, currentFebStatus, eventRejected);
275 }else{
276 ATH_MSG_WARNING("Unknown partition number: "<< partitionNb_dE << " not filling !");
277 }
278
279 if (currentFebStatus && febInErrorTree.size()<33){
280 febInErrorTree.push_back(febid.get_identifier32().get_compact());
281 febErrorTypeTree.push_back(rejectionBits.to_ulong());
282 }
283 }
284 if(currentFebStatus) anyfebIE = currentFebStatus;
285 }
286
287 //Fill general data histos
288 auto evttype = Monitored::Scalar<int>("EvtType",firstEventType);
289
290 float nbOfFeb = 0.;
291 for(auto nf: nfeb) nbOfFeb+=nf;// (nfeb[0]+nfeb[1]+nfeb[2]+nfeb[3]+nfeb[4]+nfeb[5]+nfeb[6]+nfeb[7]);
292 if (firstEventType == 2 || firstEventType == 4 || firstEventType == 14) {
293 auto nbsamp = Monitored::Scalar<int>("NbOfSamp",firstEventNbSp);
294 fill(m_monGroupName, nbsamp);
295 }
296
297 bool newHighWaterMarkNFebBlocksTotal = false;
298 if(m_nbOfFebBlocksTotal < nbOfFeb){ // new number of Febs
299 if(m_nbOfFebBlocksTotal >= 0) newHighWaterMarkNFebBlocksTotal = true;
300 m_nbOfFebBlocksTotal = nbOfFeb;
301 }
302 auto nbfeb = Monitored::Scalar<int>("nbFEB",nbOfFeb);
303 fill(m_monGroupName, evttype, nbfeb);
304
305 auto part = Monitored::Scalar<int>("part",-1);
306 auto nbfebpart = Monitored::Scalar<int>("nbFEBpart",-1);
307 for(unsigned i=0; i<m_partitions.size(); ++i) {
308 part=i;
309 unsigned subdet = i / 2;
310 nbfebpart=nfeb[i];
311 fill(m_monGroupName,part,nbfebpart);
312 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[i])],nbfebpart);
313 }
314
315 // If the nb of DSP headers is lower than the maximum, this means that there are some missing FEBs, probably
316 // due to missing ROS fragment
317
318 auto evtrej = Monitored::Scalar<int>("EvtRej",-1);
319 float evt_yield=-1;
320 auto evtyield = Monitored::Scalar<float>("EvtRejYield",-1);
321 auto evtyieldout = Monitored::Scalar<float>("EvtRejYieldOut",-1);
322 if (febInErrorTree.size()>=1 || newHighWaterMarkNFebBlocksTotal || nbOfFeb < m_nbOfFebBlocksTotal ){
323 evtrej=0; evt_yield = 100.;
324 if (febInErrorTree.size()>=4) evtrej=1;
325 if (thisEvent->isEventFlagBitSet(xAOD::EventInfo::LAr,LArEventBitInfo::DATACORRUPTEDVETO)) evtyieldout=0.; // Vetoed
326 else evtyieldout=100.; // not vetoed
327 }
328 if(evtrej > -1) {
329 fill(m_monGroupName,evtrej);
330 evtrej=-1;
331 }
332
333 if (thisEvent->isEventFlagBitSet(xAOD::EventInfo::LAr,LArEventBitInfo::DATACORRUPTED) || thisEvent->isEventFlagBitSet(xAOD::EventInfo::LAr,LArEventBitInfo::DATACORRUPTEDVETO) || nbOfFeb != m_nbOfFebBlocksTotal){ // Event corrupted (>=1/4 FEBs in error)
334 evtrej=2;
335 auto rbits = Monitored::Scalar<unsigned long>("rejBits", rejectionBits.to_ulong());
336 fill(m_monGroupName, rbits, evtrej);
337
338 evt_yield = 100.;
339 if (thisEvent->isEventFlagBitSet(xAOD::EventInfo::LAr,LArEventBitInfo::DATACORRUPTEDVETO)) {
340 evtrej=4;
341 evtyieldout=0.; // Vetoed
342 } else {
343 evtrej=3;
344 evtyieldout=100.; // not vetoed
345 }
346 } else{ // The event is NOT in error. Fill per LB TProfile
347 evtrej=6; evt_yield = 0.; evtyieldout=0.;
348 }
349 evtyield=evt_yield;
350 auto evSize = Monitored::Scalar<float>("LArEvSize",larEventSize/sizeNorm);
351 auto sweet2 = Monitored::Scalar<int>("NbOfSweet2",totNbOfSweet2);
352 auto lb0 = Monitored::Scalar<int>("LB0",lumi_block); //to avoid 'NbOfEventsVSLB' being filled multiple times
353 fill(m_monGroupName,evtrej,evtyieldout,evtyield,evSize, sweet2, lb0);
354 if (thisEvent->isEventFlagBitSet(xAOD::EventInfo::LAr,LArEventBitInfo::NOISEBURSTVETO)) {
355 evtrej=5;
356 fill(m_monGroupName,evtrej);
357 }
358 evtrej=7;
359 fill(m_monGroupName,evtrej);
360 if(environment() == Environment_t::online) {
361 auto lbfake = Monitored::Scalar<int>("LBf",0);
362 fill(m_monGroupName,evtyield,lbfake);
363 }
364
365 if(anyfebIE) {
366 //Fill LArCorrupted tree and >=1FEB in errors
367 auto mon_febInErrorTree = Monitored::Collection("febHwId", febInErrorTree);
368 auto mon_febErrorTypeTree = Monitored::Collection("febErrorType", febErrorTypeTree);
369 auto evtonerej = Monitored::Scalar<int>("EvtOneErrorYield",100);
370 fill(m_monGroupName,mon_febInErrorTree,mon_febErrorTypeTree,eventTime,eventTime_ns,evtonerej);
371 }
372
373 // Now we could fill the event size
374 auto lb = Monitored::Scalar<int>("LB",lumi_block);
375 auto evsize=Monitored::Scalar<float>("LArEvSizePart",-1);
376 if(environment() == Environment_t::online && m_streams.size() > 0) {
377 std::vector<unsigned int> streamsThisEvent=LArMon::trigStreamMatching(m_streams,thisEvent->streamTags());
378 if(streamsThisEvent.size()==1 && streamsThisEvent[0] == m_streams.size()) streamsThisEvent[0]=m_streams.size()-1; // assuming others are last in the list of streams
379
380 auto streambin=Monitored::Scalar<float>("streamBin",-1);
381
382 unsigned ie(0);
383 for(unsigned int str=0; str<streamsThisEvent.size(); ++str) {
384 if(streamsThisEvent[str] > m_streams.size()) break;
385 if(trigok && streamsThisEvent[str] < m_streams.size() && (m_streams[streamsThisEvent[str]].find("CosmicCalo") != std::string::npos)) { // test excluding events
386 if (!getTrigDecisionTool().empty()) {
387 for(ie=0; ie<m_excoscalo.size(); ++ie) {
388 if(getTrigDecisionTool()->isPassed(m_excoscalo[ie])) break;
389 }
390 }
391 if(ie<m_excoscalo.size()) {
392 ATH_MSG_INFO("Skipping "<<m_excoscalo[ie]<<" for CosmicCalo ");
393 continue; // we should skip this trigger
394 }
395 }
396 streambin = streamsThisEvent[str];
397 evsize = larEventSize/262144;
398 fill(m_monGroupName,lb,streambin,evsize);
399
400 for(unsigned i=0; i <m_partitions.size(); ++i){
401 unsigned subdet = i / 2;
402 evsize = larEventSize_part[i]/sizeNorm;
403 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[i])],lb,streambin,evsize);
404 }
405
406 }
407 } else { // we are filling only simple profiles
408 for(unsigned i=0; i<m_partitions.size(); ++i) {
409 unsigned subdet = i / 2;
410 evsize=larEventSize_part[i]/sizeNorm;
411 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[i])],lb,evsize);
412 }
413 }
414
415
416 return StatusCode::SUCCESS;
417}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
const unsigned sizeNorm
static const Attributes_t empty
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool() const
Get the trigger decision tool member.
DataModel_detail::const_iterator< DataVector > const_iterator
Definition DataVector.h:838
value_type get_compact() const
Get the compact id.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
Gaudi::Property< std::vector< std::string > > m_partitions
SG::ReadCondHandleKey< AthenaAttributeList > m_run2DSPThresholdsKey
Gaudi::Property< std::vector< std::string > > m_excoscalo
std::atomic< int > m_nbOfFebBlocksTotal
void plotMaskedFEB() const
unsigned int returnPartition(int be, int pn, int ft, int sl) const
Gaudi::Property< std::vector< std::string > > m_streams
void fillErrorsSummary(unsigned int partitNb_2, int ft, int slot, uint16_t error, bool lar_inerror, std::bitset< 13 > &rejectionBits, bool &currentFebStatus, bool &eventRejected) const
const LArOnlineID * m_onlineHelper
SG::ReadCondHandleKey< LArDSPThresholdsComplete > m_run1DSPThresholdsKey
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
int barrel_ec(const HWIdentifier id) const
Return the position barrel or endcap of a hardware cell identifier: barrel_ec = [0,...
id_range channel_range() const
id_iterator feb_begin() const
Returns an iterator pointing to a feb identifier collection.
size_type channelHashMax() const
Define channel hash tables max size.
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...
id_iterator feb_end() const
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool empty() const
Test if the key is blank.
std::vector< std::string > getListOfTriggers() const
@ LAr
The LAr calorimeter.
@ Error
The sub-detector issued an error.
int lb
Definition globals.cxx:23
std::vector< unsigned > trigStreamMatching(const std::vector< std::string > &streamsFromJobO, const std::vector< xAOD::EventInfo::StreamTag > &streamInEvent)
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
setWord1 uint16_t
setEventNumber uint32_t

◆ filterPassed()

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

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

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

◆ GetEventInfo()

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

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

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

Definition at line 111 of file AthMonitorAlgorithm.cxx.

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

◆ getGroup()

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

Get a specific monitoring tool from the tool handle array.

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

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

Definition at line 168 of file AthMonitorAlgorithm.cxx.

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

◆ getTrigDecisionTool()

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

Get the trigger decision tool member.

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

Returns
m_trigDecTool

Definition at line 198 of file AthMonitorAlgorithm.cxx.

198 {
199 return m_trigDecTool;
200}

◆ initialize()

StatusCode LArFEBMonAlg::initialize ( )
finaloverridevirtual

initialize

Returns
StatusCode

Reimplemented from AthMonitorAlgorithm.

Definition at line 43 of file LArFEBMonAlg.cxx.

43 {
44
45 ATH_MSG_INFO( "Initializing LArFEBMonAlg " );
46
47 StatusCode sc = detStore()->retrieve(m_onlineHelper, "LArOnlineID");
48 if (sc.isFailure()) {
49 ATH_MSG_ERROR( "Could not get LArOnlineID helper !" );
50 return StatusCode::FAILURE;
51 }
52
53 sc=m_BFKey.initialize();
54 if (sc.isFailure()) {
55 ATH_MSG_ERROR( "Could not initialize Missing FEBs key " << m_BFKey.key() );
56 return StatusCode::FAILURE;
57 } else {
58 ATH_MSG_DEBUG( "Missing FEBs key" << m_BFKey.key() << " initialized" );
59 }
60
63
64 m_histoGroups.reserve(m_SubDetNames.size());
65 for (unsigned i=0; i<m_SubDetNames.size(); ++i) {
66 std::vector<std::string> part;
67 part.push_back(m_partitions[2*i]);
68 part.push_back(m_partitions[2*i+1]);
69 m_histoGroups.push_back(Monitored::buildToolMap<int>(m_tools,m_SubDetNames[i],part));
70 }
71
75
77}
static Double_t sc
virtual StatusCode initialize() override
initialize
SG::ReadHandleKey< LArFebErrorSummary > m_lArFebErrorSummaryKey
SG::ReadCondHandleKey< LArBadFebCont > m_BFKey
SG::ReadHandleKey< LArFebHeaderContainer > m_hdrContKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Gaudi::Property< std::vector< std::string > > m_SubDetNames
StatusCode initialize(bool used=true)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
std::vector< V > buildToolMap(const ToolHandleArray< GenericMonitoringTool > &tools, const std::string &baseName, int nHist)
Builds an array of indices (base case)

◆ inputHandles()

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

Return this algorithm's input handles.

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

◆ isClonable()

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msgLvl()

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

Definition at line 30 of file AthCommonMsg.h.

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

◆ outputHandles()

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

Return this algorithm's output handles.

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

◆ parseList()

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

Parse a string into a vector.

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

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

Definition at line 345 of file AthMonitorAlgorithm.cxx.

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

◆ plotMaskedFEB()

void LArFEBMonAlg::plotMaskedFEB ( ) const
private

Definition at line 601 of file LArFEBMonAlg.cxx.

601 {
602
603 SG::ReadCondHandle<LArBadFebCont> badFebHdl{m_BFKey};
604 const LArBadFebCont* badFebCont=(*badFebHdl);
605 if(!badFebCont) {
606 ATH_MSG_WARNING( "Do not have Misisng FEB container, no plots !!!" );
607 return;
608 }
609 m_badFebs.clear();
610 // Loop over all FEBs
611 for (std::vector<HWIdentifier>::const_iterator allFeb = m_onlineHelper->feb_begin();
612 allFeb != m_onlineHelper->feb_end(); ++allFeb) {
613 HWIdentifier febid = HWIdentifier(*allFeb);
614 const LArBadFeb febStatus = badFebCont->status(febid);
615 unsigned int binContent = 0;
616 if (febStatus.inError() || febStatus.deadReadout() || febStatus.deadAll() || febStatus.deactivatedInOKS()) binContent = 2;
617 if (febStatus.ignoreErrors() > 0) binContent = 1;
618 if (binContent != 0){
619 int barrel_ec = m_onlineHelper->barrel_ec(febid);
620 int pos_neg = m_onlineHelper->pos_neg(febid);
621 int ft = m_onlineHelper->feedthrough(febid);
622 int slot = m_onlineHelper->slot(febid);
623 unsigned int partitionNb_dE = returnPartition(barrel_ec,pos_neg,ft,slot);
624 int subdet = partitionNb_dE / 2;
625
626 m_badFebs[std::make_pair(slot,ft)] = binContent;
627 if (partitionNb_dE < m_partitions.size()) {
628 auto sl = Monitored::Scalar<int>("slotMasked",slot);
629 auto ftmon = Monitored::Scalar<int>("FTMasked",ft);
630 ATH_MSG_INFO("filling for " << partitionNb_dE << " partition, slot: " << slot << "FT: " << ft);
631 fill(m_tools[m_histoGroups.at(subdet).at(m_partitions[partitionNb_dE])],sl,ftmon);
632 }else{
633 ATH_MSG_WARNING("Unknown partition number: "<< partitionNb_dE << " not filling !");
634 }
635 }
636 }
637}
LArBadXCont< LArBadFeb > LArBadFebCont
unsigned int ignoreErrors() const
Definition LArBadFeb.h:65
bool deadAll() const
FEB is completely missing, e.g. powered off.
Definition LArBadFeb.h:30
bool deactivatedInOKS() const
Deactivated in OKS.
Definition LArBadFeb.h:39
bool inError() const
FEB has readout errors, cannot be used.
Definition LArBadFeb.h:36
bool deadReadout() const
FEB is not sending readout data, but the L1 trigger path is working.
Definition LArBadFeb.h:33
LArBC_t status(const HWIdentifier channel) const
Query the status of a particular channel or FEB This is the main client access method.

◆ procHistograms()

StatusCode LArFEBMonAlg::procHistograms ( )

◆ renounce()

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

Definition at line 380 of file AthCommonDataStore.h.

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

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ returnPartition()

unsigned int LArFEBMonAlg::returnPartition ( int be,
int pn,
int ft,
int sl ) const
private

Definition at line 744 of file LArFEBMonAlg.cxx.

744 {
745 // partitionNb_dE = 0 : EMBC / 1 : EMBA / 2 : EMECC / 3 : EMECA / 4 : HECC / 5 : HECA / 6 : FCALC / 7 : FCALA
746 unsigned int part = be*2+pn;
747 if (be == 1){
748 // This is a HEC FEB - Dirty method as IsHECOnlineFEBId is buggy!
749 if ((ft == 3 || ft == 10 || ft == 16 || ft == 22) && (sl > 2)) part = be*2+pn + 2;
750 if (ft == 6) part = be*2 + pn + 4; // This is FCAL FEB
751 }
752 return part;
753}

◆ setFilterPassed()

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

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

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

◆ sysExecute()

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

Execute an algorithm.

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

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

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

◆ sysInitialize()

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

Override sysInitialize.

Override sysInitialize from the base class.

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

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

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

Reimplemented in HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

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

◆ sysStart()

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

Handle START transition.

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

◆ trigChainsArePassed()

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

Check whether triggers are passed.

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

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

Definition at line 203 of file AthMonitorAlgorithm.cxx.

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

◆ updateVHKA()

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

Definition at line 308 of file AthCommonDataStore.h.

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

Member Data Documentation

◆ aff_acc

LArFEBMonAlg.aff_acc = LArFEBMonConfig(flags)

Definition at line 415 of file LArFEBMonAlg.py.

◆ ATLAS_THREAD_SAFE [1/4]

bool m_dspThrDone LArFEBMonAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 73 of file LArFEBMonAlg.h.

◆ ATLAS_THREAD_SAFE [2/4]

bool m_maskedDone LArFEBMonAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 74 of file LArFEBMonAlg.h.

◆ ATLAS_THREAD_SAFE [3/4]

MaskedFebs m_badFebs LArFEBMonAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 76 of file LArFEBMonAlg.h.

◆ ATLAS_THREAD_SAFE [4/4]

std::mutex m_mut LArFEBMonAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 77 of file LArFEBMonAlg.h.

◆ cfg

LArFEBMonAlg.cfg = CaloRecoCfg(flags)

Definition at line 410 of file LArFEBMonAlg.py.

◆ enableLumiAccess

LArFEBMonAlg.enableLumiAccess

Definition at line 404 of file LArFEBMonAlg.py.

◆ f

LArFEBMonAlg.f = open("LArFEBMon.pkl","wb")

Definition at line 421 of file LArFEBMonAlg.py.

◆ Files

LArFEBMonAlg.Files

Definition at line 401 of file LArFEBMonAlg.py.

◆ flags

LArFEBMonAlg.flags = initConfigFlags()

Definition at line 391 of file LArFEBMonAlg.py.

◆ HISTFileName

LArFEBMonAlg.HISTFileName

Definition at line 403 of file LArFEBMonAlg.py.

◆ m_BFKey

SG::ReadCondHandleKey<LArBadFebCont> LArFEBMonAlg::m_BFKey {this, "MissingFEBKey", "LArBadFeb", "SG key for missing FEBs"}
private

Definition at line 40 of file LArFEBMonAlg.h.

40{this, "MissingFEBKey", "LArBadFeb", "SG key for missing FEBs"};

◆ m_dataType

AthMonitorAlgorithm::DataType_t AthMonitorAlgorithm::m_dataType
protectedinherited

Instance of the DataType_t enum.

Definition at line 356 of file AthMonitorAlgorithm.h.

◆ m_dataTypeStr

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

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

Definition at line 358 of file AthMonitorAlgorithm.h.

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

◆ m_defaultLBDuration

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

Default duration of one lumi block.

Definition at line 365 of file AthMonitorAlgorithm.h.

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

◆ m_detailLevel

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

Sets the level of detail used in the monitoring.

Definition at line 366 of file AthMonitorAlgorithm.h.

366{this,"DetailLevel",0};

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_DQFilterTools

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

Array of Data Quality filter tools.

Definition at line 346 of file AthMonitorAlgorithm.h.

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

◆ m_dummy

const ToolHandle<GenericMonitoringTool> AthMonitorAlgorithm::m_dummy
privateinherited

Definition at line 374 of file AthMonitorAlgorithm.h.

◆ m_enforceExpressTriggers

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

Definition at line 377 of file AthMonitorAlgorithm.h.

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

◆ m_environment

AthMonitorAlgorithm::Environment_t AthMonitorAlgorithm::m_environment
protectedinherited

Instance of the Environment_t enum.

Definition at line 355 of file AthMonitorAlgorithm.h.

◆ m_environmentStr

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

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

Definition at line 357 of file AthMonitorAlgorithm.h.

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

◆ m_eventInfoDecorKey

SG::ReadDecorHandleKey<xAOD::EventInfo> LArFEBMonAlg::m_eventInfoDecorKey {this, "LArStatusFlag", "EventInfo.larFlags", "Key for EventInfo object"}
private

Definition at line 57 of file LArFEBMonAlg.h.

57{this, "LArStatusFlag", "EventInfo.larFlags", "Key for EventInfo object"};

◆ m_EventInfoKey

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

Key for retrieving EventInfo from StoreGate.

Definition at line 367 of file AthMonitorAlgorithm.h.

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

◆ m_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_excoscalo

Gaudi::Property<std::vector<std::string> > LArFEBMonAlg::m_excoscalo {this,"ExcludeInCosmicCalo",{}, "Triggers excluded in CosmicCalo stream"}
private

Definition at line 50 of file LArFEBMonAlg.h.

50{this,"ExcludeInCosmicCalo",{}, "Triggers excluded in CosmicCalo stream"};

◆ m_extendedExtraObjects

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

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

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_fileKey

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

Internal Athena name for file.

Definition at line 363 of file AthMonitorAlgorithm.h.

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

◆ m_hdrContKey

SG::ReadHandleKey<LArFebHeaderContainer> LArFEBMonAlg::m_hdrContKey {this, "LArFebHeaderKey", "LArFebHeader"}
private

Definition at line 45 of file LArFEBMonAlg.h.

45{this, "LArFebHeaderKey", "LArFebHeader"};

◆ m_histoGroups

std::vector<std::map<std::string,int> > LArFEBMonAlg::m_histoGroups
private

Definition at line 60 of file LArFEBMonAlg.h.

◆ m_ignoreMissingHeaderEMB

Gaudi::Property<bool> LArFEBMonAlg::m_ignoreMissingHeaderEMB {this, "IgnoreMissingHeaderEMB", false}
private

Definition at line 47 of file LArFEBMonAlg.h.

47{this, "IgnoreMissingHeaderEMB", false};

◆ m_ignoreMissingHeaderPS

Gaudi::Property<bool> LArFEBMonAlg::m_ignoreMissingHeaderPS {this, "IgnoreMissingHeaderPS", false}
private

Definition at line 48 of file LArFEBMonAlg.h.

48{this, "IgnoreMissingHeaderPS", false};

◆ m_lArFebErrorSummaryKey

SG::ReadHandleKey<LArFebErrorSummary> LArFEBMonAlg::m_lArFebErrorSummaryKey {this, "LArFebErrorSummaryKey", "LArFebErrorSummary"}
private

Definition at line 46 of file LArFEBMonAlg.h.

46{this, "LArFebErrorSummaryKey", "LArFebErrorSummary"};

◆ m_lbDurationDataKey

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

Definition at line 350 of file AthMonitorAlgorithm.h.

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

◆ m_lumiDataKey

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

Definition at line 348 of file AthMonitorAlgorithm.h.

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

◆ m_monGroupName

Gaudi::Property<std::string> LArFEBMonAlg::m_monGroupName {this, "MonGroup", "FEBMon", "LArLARFEBMonGroup"}
private

Definition at line 55 of file LArFEBMonAlg.h.

55{this, "MonGroup", "FEBMon", "LArLARFEBMonGroup"};

◆ m_name

std::string AthMonitorAlgorithm::m_name
privateinherited

Definition at line 371 of file AthMonitorAlgorithm.h.

◆ m_nbOfFebBlocksTotal

std::atomic<int> LArFEBMonAlg::m_nbOfFebBlocksTotal
mutableprivate

Definition at line 75 of file LArFEBMonAlg.h.

◆ m_nFEBnominal

Gaudi::Property<int> LArFEBMonAlg::m_nFEBnominal {this,"NominalFEBNumber",1524}
private

Definition at line 49 of file LArFEBMonAlg.h.

49{this,"NominalFEBNumber",1524};

◆ m_onlineHelper

const LArOnlineID* LArFEBMonAlg::m_onlineHelper
private

Definition at line 63 of file LArFEBMonAlg.h.

◆ m_partitions

Gaudi::Property<std::vector<std::string> > LArFEBMonAlg::m_partitions {this, "PartitionNames", {} }
private

Definition at line 52 of file LArFEBMonAlg.h.

52{this, "PartitionNames", {} };

◆ m_run1DSPThresholdsKey

SG::ReadCondHandleKey<LArDSPThresholdsComplete> LArFEBMonAlg::m_run1DSPThresholdsKey {this, "Run1DSPThresholdsKey", "", "SG key for DSP thresholds, run1"}
private

Definition at line 41 of file LArFEBMonAlg.h.

42{this, "Run1DSPThresholdsKey", "", "SG key for DSP thresholds, run1"};

◆ m_run2DSPThresholdsKey

SG::ReadCondHandleKey<AthenaAttributeList> LArFEBMonAlg::m_run2DSPThresholdsKey {this, "Run2DSPThresholdsKey", "", "SG key for DSP thresholds, run2"}
private

Definition at line 43 of file LArFEBMonAlg.h.

44{this, "Run2DSPThresholdsKey", "", "SG key for DSP thresholds, run2"};

◆ m_streams

Gaudi::Property<std::vector<std::string> > LArFEBMonAlg::m_streams {this, "Streams", {}, "Which streams to monitor, if empty, only simple profile per partition (offline case)"}
private

Definition at line 51 of file LArFEBMonAlg.h.

51{this, "Streams", {}, "Which streams to monitor, if empty, only simple profile per partition (offline case)"};

◆ m_SubDetNames

Gaudi::Property<std::vector<std::string> > LArFEBMonAlg::m_SubDetNames {this, "SubDetNames", {} }
private

Definition at line 53 of file LArFEBMonAlg.h.

53{this, "SubDetNames", {} };

◆ m_toolLookupMap

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

Definition at line 372 of file AthMonitorAlgorithm.h.

◆ m_tools

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

Array of Generic Monitoring Tools.

Definition at line 341 of file AthMonitorAlgorithm.h.

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

◆ m_trigDecTool

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

Tool to tell whether a specific trigger is passed.

Definition at line 345 of file AthMonitorAlgorithm.h.

◆ m_triggerChainString

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

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

Definition at line 360 of file AthMonitorAlgorithm.h.

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

◆ m_trigLiveFractionDataKey

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

Definition at line 352 of file AthMonitorAlgorithm.h.

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

◆ m_trigok

bool LArFEBMonAlg::m_trigok = false
private

Definition at line 65 of file LArFEBMonAlg.h.

◆ m_useLumi

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

Allows use of various luminosity functions.

Definition at line 364 of file AthMonitorAlgorithm.h.

364{this,"EnableLumi",false};

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_vTrigChainNames

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

Vector of trigger chain names parsed from trigger chain string.

Definition at line 361 of file AthMonitorAlgorithm.h.

◆ useTrigger

LArFEBMonAlg.useTrigger

Definition at line 405 of file LArFEBMonAlg.py.


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