 |
ATLAS Offline Software
|
#include <SCTErrMonAlg.h>
|
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...
|
|
|
| SCTErrMonAlg (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~SCTErrMonAlg ()=default |
|
virtual StatusCode | initialize () override final |
| initialize More...
|
|
virtual StatusCode | fillHistograms (const EventContext &ctx) const override final |
| adds event to the monitoring histograms More...
|
|
virtual StatusCode | stop () override final |
|
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::EventInfo > | GetEventInfo (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, V, H > &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 |
|
|
ToolHandleArray< GenericMonitoringTool > | m_tools {this,"GMTools",{}} |
| Array of Generic Monitoring Tools. More...
|
|
PublicToolHandle< Trig::TrigDecisionTool > | m_trigDecTool {this, "TrigDecisionTool",""} |
| Tool to tell whether a specific trigger is passed. More...
|
|
ToolHandleArray< IDQFilterTool > | m_DQFilterTools {this,"FilterTools",{}} |
| Array of Data Quality filter tools. More...
|
|
SG::ReadCondHandleKey< LuminosityCondData > | m_lumiDataKey {this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"} |
|
SG::ReadCondHandleKey< LBDurationCondData > | m_lbDurationDataKey {this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"} |
|
SG::ReadCondHandleKey< TrigLiveFractionCondData > | m_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::EventInfo > | m_EventInfoKey {this,"EventInfoKey","EventInfo"} |
| Key for retrieving EventInfo from StoreGate. More...
|
|
|
StatusCode | fillConfigurationDetails (const EventContext &ctx) const |
| Used in fillHistograms() More...
|
|
StatusCode | fillByteStreamErrors (const EventContext &ctx) const |
|
int | fillByteStreamErrorsHelper (const std::set< IdentifierHash > &errors, int err_type, categoryErrorMap_t &categoryErrorMap, std::array< int, SCT_Monitoring::N_REGIONS_INC_GENERAL > &nMaskedLinks) const |
| Used in fillByteStreamErrors() More...
|
|
void | numByteStreamErrors (const std::set< IdentifierHash > &errors, int &ntot) const |
|
bool | disabledSCT (std::set< IdentifierHash > &sctHashDisabled) const |
|
bool | errorSCT (std::set< IdentifierHash > &sctHashBadLinkError, std::set< IdentifierHash > &sctHashBadRODError, std::set< IdentifierHash > &sctHashBadError) const |
|
bool | summarySCT (std::set< IdentifierHash > &sctHashAll, std::set< IdentifierHash > &sctHashSummary) const |
|
bool | psTripDCSSCT (std::set< IdentifierHash > &sctHashPSTripDCS, float &PSTripModules) const |
|
void | fillWafer (moduleGeo_t module, TH2F &histo) const |
|
double | calculateDetectorCoverage (const TH2F &histo, const TH2F &histoAll) const |
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
|
std::vector< moduleGeo_t > | m_geo {} |
|
std::atomic_bool | m_isFirstConfigurationDetails {true} |
|
std::mutex | m_mutex {} |
|
SG::SlotSpecificObj< CacheEntry > m_cache | ATLAS_THREAD_SAFE |
|
std::array< std::atomic_int, SCT_Monitoring::N_REGIONS_INC_GENERAL > m_nMaskedLinks | ATLAS_THREAD_SAFE {} |
|
std::set< uint32_t > m_procLB | ATLAS_THREAD_SAFE |
|
BooleanProperty | m_makeConfHisto {this, "MakeConfHisto", true} |
|
BooleanProperty | m_coverageCheck {this, "CoverageCheck", true} |
|
BooleanProperty | m_coverageCheckOnlyFirtsEventOfLB {this, "CoverageCheckOnlyFirtsEventOfLB", true} |
|
BooleanProperty | m_useDCS {this, "UseDCS", true} |
|
BooleanProperty | m_doPerLumiErrors {this, "DoPerLumiErrors", true, "Do lumi block 2D error histos"} |
|
BooleanProperty | m_doOnline {this, "doOnlineMon", false} |
|
ToolHandle< ISCT_ByteStreamErrorsTool > | m_byteStreamErrTool {this, "SCT_ByteStreamErrorsTool", "SCT_ByteStreamErrorsTool/SCT_ByteStreamErrorsTool", "Tool to retrieve SCT ByteStream Errors"} |
|
ToolHandle< ISCT_ConfigurationConditionsTool > | m_configurationTool {this, "conditionsTool", "SCT_ConfigurationConditionsTool/InDetSCT_ConfigurationConditionsTool", "Tool to retrieve SCT Configuration Tool"} |
|
ToolHandle< ISCT_DCSConditionsTool > | m_dcsTool {this, "SCT_DCSConditionsTool", "SCT_DCSConditionsTool/InDetSCT_DCSConditionsTool", "Tool to retrieve SCT DCS information"} |
|
ToolHandle< IInDetConditionsTool > | m_pSummaryTool {this, "SCT_ConditionsSummaryTool", "SCT_ConditionsSummaryTool/InDetSCT_ConditionsSummaryTool", "Tool to retrieve SCT Conditions summary"} |
|
ToolHandle< ISCT_FlaggedConditionTool > | m_flaggedTool {this, "SCT_FlaggedConditionTool", "SCT_FlaggedConditionTool/InDetSCT_FlaggedConditionTool", "Tool to retrieve bad wafers with many fired strips"} |
|
ToolHandle< IDQFilterTool > | m_atlasReadyFilter {this,"ReadyFilterTool","DQAtlasReadyFilterTool/DQAtlasReadyFilterTool", "Tool to retrieve R4P flag"} |
|
const SCT_ID * | m_pSCTHelper {nullptr} |
|
std::string | m_name |
|
std::unordered_map< std::string, size_t > | m_toolLookupMap |
|
const ToolHandle< GenericMonitoringTool > | m_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 |
|
Definition at line 31 of file SCTErrMonAlg.h.
◆ moduleGeo_t
◆ MonVarVec_t
◆ StoreGateSvc_t
◆ DataType_t
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.
◆ Environment_t
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.
◆ SCTErrMonAlg()
SCTErrMonAlg::SCTErrMonAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~SCTErrMonAlg()
virtual SCTErrMonAlg::~SCTErrMonAlg |
( |
| ) |
|
|
virtualdefault |
◆ calculateDetectorCoverage()
double SCTErrMonAlg::calculateDetectorCoverage |
( |
const TH2F & |
histo, |
|
|
const TH2F & |
histoAll |
|
) |
| const |
|
private |
Definition at line 708 of file SCTErrMonAlg.cxx.
709 double occupancy{0.};
712 for (
unsigned int j{0}; j <
s_nBinsPhi; j++) {
713 double waferCell{histoAll.GetBinContent(
i+1, j+1) -
histo.GetBinContent(
i+1, j+1)};
725 double detector_coverage{100. * occupancy / (
static_cast<double>(
s_nBinsEta ) *
static_cast<double>(
s_nBinsPhi ) )};
726 return detector_coverage;
◆ cardinality()
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 75 of file AthCommonReentrantAlgorithm.cxx.
◆ 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.
◆ dataTypeStringToEnum()
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.
142 std::string lowerCaseStr =
str;
146 if( lowerCaseStr ==
"userdefined" ) {
148 }
else if( lowerCaseStr ==
"montecarlo" ) {
150 }
else if( lowerCaseStr ==
"collisions" ) {
152 }
else if( lowerCaseStr ==
"cosmics" ) {
154 }
else if( lowerCaseStr ==
"heavyioncollisions" ) {
157 ATH_MSG_WARNING(
"AthMonitorAlgorithm::dataTypeStringToEnum(): Unknown data type "
158 <<
str<<
", returning userDefined.");
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation 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.
◆ declareProperty() [6/6]
◆ detStore()
◆ disabledSCT()
bool SCTErrMonAlg::disabledSCT |
( |
std::set< IdentifierHash > & |
sctHashDisabled | ) |
const |
|
private |
Definition at line 575 of file SCTErrMonAlg.cxx.
577 sctHashDisabled.clear();
580 for (
const Identifier& badModule: *badModules) {
583 IdentifierHash hashSide1;
585 sctHashDisabled.insert(hashSide0);
586 sctHashDisabled.insert(hashSide1);
◆ environment()
Accessor functions for the environment.
- Returns
- the current value of the class's Environment_t instance.
Definition at line 205 of file AthMonitorAlgorithm.h.
◆ envStringToEnum()
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.
114 std::string lowerCaseStr =
str;
118 if( lowerCaseStr ==
"user" ) {
120 }
else if( lowerCaseStr ==
"online" ) {
122 }
else if( lowerCaseStr ==
"tier0" ) {
124 }
else if( lowerCaseStr ==
"tier0raw" ) {
126 }
else if( lowerCaseStr ==
"tier0esd" ) {
128 }
else if( lowerCaseStr ==
"aod" ) {
130 }
else if( lowerCaseStr ==
"altprod" ) {
133 ATH_MSG_WARNING(
"AthMonitorAlgorithm::envStringToEnum(): Unknown environment "
134 <<
str<<
", returning user.");
◆ errorSCT()
Definition at line 591 of file SCTErrMonAlg.cxx.
594 sctHashBadLinkError.clear();
595 sctHashBadRODError.clear();
596 sctHashBadError.clear();
597 const EventContext& ctx{Gaudi::Hive::currentContext()};
600 const std::set<IdentifierHash> sctErrors{
m_byteStreamErrTool->getErrorSet( linkLevelBadErrors, ctx )};
601 for (
const IdentifierHash& waferHash : sctErrors) {
602 sctHashBadLinkError.insert(waferHash);
608 const std::set<IdentifierHash> sctErrors{
m_byteStreamErrTool->getErrorSet( RodLevelBadErrors, ctx )};
609 for (
const IdentifierHash& waferHash : sctErrors) {
610 sctHashBadRODError.insert(waferHash);
616 const std::set<IdentifierHash> sctErrors{
m_byteStreamErrTool->getErrorSet( tmpBadError, ctx )};
617 for (
const IdentifierHash& waferHash : sctErrors) {
618 sctHashBadError.insert(waferHash);
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode AthMonitorAlgorithm::execute |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtualinherited |
Applies filters and trigger requirements.
Then, calls fillHistograms().
- Parameters
-
ctx | event context for reentrant Athena call |
- Returns
- StatusCode
Definition at line 73 of file AthMonitorAlgorithm.cxx.
78 if (!filterItr->accept()) {
80 return StatusCode::SUCCESS;
87 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
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()
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.
◆ fillByteStreamErrors()
StatusCode SCTErrMonAlg::fillByteStreamErrors |
( |
const EventContext & |
ctx | ) |
const |
|
private |
Fill /SCT/GENERAL/Conf/SCT_*VsLbs ///
Fill /SCT/GENERAL/errors/SCT_LinksWith*VsLbs ///
Fill /SCT/DetectorCoverage/SCT_Coverage*VsLbs ///
Fill /SCT/DetectorCoverage/SCT_ModulesWithPSTripVsLbs ///
Definition at line 227 of file SCTErrMonAlg.cxx.
229 if (not pEvent.isValid()) {
231 return StatusCode::SUCCESS;
241 auto nBSErrorsAcc{
Monitored::Scalar<int>(
"n_"+SCT_ByteStreamErrors::ErrorTypeDescription[errType], nBSErrors)};
242 fill(
"SCTErrMonitor", lumiBlockAcc, nBSErrorsAcc);
245 categoryErrorMap_t categoryErrorMap;
246 std::array<int, N_REGIONS_INC_GENERAL> nMaskedLinks{};
247 nMaskedLinks.fill(0);
252 m_nMaskedLinks[reg] = nMaskedLinks[reg];
255 std::vector<int> vEta;
256 std::vector<int> vPhi;
257 std::vector<bool> vHasError;
261 categoryErrorMap.count(errCate))};
262 fill(
"SCTErrMonitor", lumiBlockAcc, nCategoryErrorsAcc);
264 for (
int iReg{0}; iReg<
N_REGIONS; iReg++) {
270 const size_t size{
static_cast<size_t>((lastEta-firstEta+1)*(lastPhi-firstPhi+1))};
271 for (
int iLay{0}; iLay<maxLayer; iLay++) {
274 vHasError.resize(
size);
275 for (
int eta{firstEta};
eta<=lastEta;
eta++) {
277 for (
int phi{firstPhi};
phi<=lastPhi;
phi++) {
279 size_t index{
static_cast<size_t>(
iEta*(lastPhi-firstPhi+1)+
iPhi)};
282 vHasError[
index] = categoryErrorMap[errCate][iReg][iLay][
iEta][
iPhi];
289 fill(
"SCTErrMonitor", etaAcc, phiAcc, hasErrorAcc);
291 if (
m_doOnline and CategoryErrorsNames[errCate] ==
"Errors"){
293 fill(
"SCTErrMonitor", etaAcc, phiAcc, hasErrorRecentAcc);
300 bool doCoverage =
false;
304 m_procLB.insert(pEvent->lumiBlock());
315 "SCT_MapOfDisabledLinks",
316 "SCT_MapOfLinksWithBadLinkLevelErrors",
317 "SCT_MapOfLinksWithBadRODLevelErrors",
318 "SCT_MapOfLinksWithBadErrors",
319 "SCT_MapOfLinksWithPSTrip",
320 "SCT_MapOfLinksWithAnyProbelm"
324 "Map of Disabled Links",
325 "Map of Links with bad LinkLevelErrors",
326 "Map of Links with Bad RODLevelErrors",
327 "Map of Links with Bad Errors",
328 "Map of Links Affected by PS Trip",
329 "Map of Links with Any Bad Problem"
333 CacheEntry* ent{m_cache.get(ctx)};
334 if (ent->m_evt!=ctx.evt()) {
335 if (ent->m_mapSCT.empty()) {
337 ent->m_mapSCT.emplace_back(
names[iProblem].c_str(), titles[iProblem].c_str(),
339 ent->m_mapSCT[iProblem].GetXaxis()->SetTitle(
"#eta");
340 ent->m_mapSCT[iProblem].GetYaxis()->SetTitle(
"#phi");
344 ent->m_mapSCT[iProblem].Reset();
347 ent->m_evt = ctx.evt();
354 float psTripModules{0.};
363 for (
const IdentifierHash&
hash: sctHash[iProblem]) {
373 fill(
"SCTErrMonitor", lumiBlockAcc, detectorCoverageAcc);
376 auto detectorCoverageR4PAcc{
Monitored::Scalar<double>(
"detectorCoverage"+coverageVarNames[iProblem]+
"InR4P", detector_coverage)};
379 fill(
"SCTErrMonitor", lumiBlockAcc, detectorCoverageR4PAcc);
388 fill(
"SCTErrMonitor", lumiBlockAcc, psTripModulesAcc);
392 return StatusCode::SUCCESS;
◆ fillByteStreamErrorsHelper()
Used in fillByteStreamErrors()
Fill /run_x/lb_y/SCT/SCT*/RateErrorsPerLumi ///
Definition at line 396 of file SCTErrMonAlg.cxx.
401 std::array<bool, CategoryErrors::N_ERRCATEGORY> b_category{};
402 b_category.fill(
false);
406 (err_type == SCT_ByteStreamErrors::MaskedLink) or (err_type == SCT_ByteStreamErrors::MaskedROD);
412 if (err_type == tmpBadError) {
420 if (err_type == linkLevelError) {
428 if (err_type == rodLevelError) {
435 (err_type == SCT_ByteStreamErrors::TempMaskedChip0) or (err_type == SCT_ByteStreamErrors::TempMaskedChip1) or
436 (err_type == SCT_ByteStreamErrors::TempMaskedChip2) or (err_type == SCT_ByteStreamErrors::TempMaskedChip3) or
437 (err_type == SCT_ByteStreamErrors::TempMaskedChip4) or (err_type == SCT_ByteStreamErrors::TempMaskedChip5);
476 std::vector<int> numErrorsPerLumi[
N_REGIONS];
479 const int nLayers{n_layers[reg]*2};
480 numErrorsPerLumi[reg].resize(nLayers, 0);
488 if (not
hash.is_valid())
continue;
512 nMaskedLinks[regionIndex]++;
520 categoryErrorMap[errCate][regionIndex][
layer][ieta][iphi] =
true;
527 std::vector<int> vErrorType;
528 std::vector<int> vLayerSide;
529 std::vector<float> vErrorFraction;
530 std::vector<bool> vIsEC;
531 std::vector<bool> vIsB;
532 std::vector<bool> vIsEA;
533 vErrorType.reserve(
size);
534 vLayerSide.reserve(
size);
535 vErrorFraction.reserve(
size);
540 const int nLayers{n_layers[reg]*
N_SIDES};
541 for (
int layerSide{0}; layerSide<nLayers; layerSide++) {
543 if (num_modules==0.)
continue;
544 vErrorType.push_back(err_type);
545 vLayerSide.push_back(layerSide);
546 vErrorFraction.push_back(
static_cast<float>(numErrorsPerLumi[reg][layerSide])/num_modules);
559 fill(
"SCTErrMonitor", errorTypeAcc, layerSideAcc, errorFractionAcc, isECAcc, isBAcc, isEAAcc);
◆ fillConfigurationDetails()
StatusCode SCTErrMonAlg::fillConfigurationDetails |
( |
const EventContext & |
ctx | ) |
const |
|
private |
Used in fillHistograms()
Fill /SCT/GENERAL/Conf/SCTConfDetails ///
Definition at line 152 of file SCTErrMonAlg.cxx.
154 unsigned int nBadMods{
static_cast<unsigned int>(
m_configurationTool->badModules()->size())};
155 const std::map<IdentifierHash, std::pair<bool, bool>>* badLinks{
m_configurationTool->badLinks(ctx)};
156 unsigned int nBadLink0{0}, nBadLink1{0}, nBadLinkBoth{0};
157 for (
const std::pair<
const IdentifierHash, std::pair<bool, bool>>& link: *badLinks) {
158 std::pair<bool, bool>
status{link.second};
159 if ((
status.first ==
false) and (
status.second ==
true)) {
162 if ((
status.first ==
true) and (
status.second ==
false)) {
165 if ((
status.first ==
false) and (
status.second ==
false)) {
171 unsigned int nBadChips{0};
172 for (
const std::pair<const Identifier, unsigned int>& chip : *badChips) {
173 unsigned int status{chip.second};
175 nBadChips += ((
status & (1 <<
i)) == 0 ? 0 : 1);
179 std::set<Identifier> badStripsAll;
181 unsigned int nBadStrips{
static_cast<unsigned int>(badStripsAll.size())};
183 std::set<Identifier> badStripsExclusive;
185 int nBadStripsExclusive{
static_cast<int>(badStripsExclusive.size())};
186 int nBadStripsExclusiveBEC[
N_REGIONS] = {
189 for (
const Identifier& strip: badStripsExclusive) {
198 vDetailedConfBin[
i] =
i;
199 if (
i==0) vNBad[
i] = nBadMods;
200 else if (
i==1) vNBad[
i] = nBadLink0;
201 else if (
i==2) vNBad[
i] = nBadLink1;
202 else if (
i==3) vNBad[
i] = nBadChips;
203 else if (
i==4) vNBad[
i] =
static_cast<double>(nBadStripsExclusive) / 100.;
207 fill(
"SCTErrMonitor", detailedConfBinAcc, nBadAcc);
209 ATH_MSG_DEBUG(
"-----------------------------------------------------------------------");
216 ATH_MSG_DEBUG(
"Number of bad strips exclusive = " << nBadStripsExclusive);
217 ATH_MSG_DEBUG(
"Number of bad strips exclusive (ECC, B, ECA) = "
221 ATH_MSG_DEBUG(
"-----------------------------------------------------------------------");
223 return StatusCode::SUCCESS;
◆ fillHistograms()
StatusCode SCTErrMonAlg::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
-
ctx | forwarded from execute |
- Returns
- StatusCode
Fill NumberOfSCTFlagErrorsVsLB, NumberOfEventsVsLB and FractionOfSCTFlagErrorsPerLB under /SCT/GENERAL/Conf/ ///
Fill /SCT/GENERAL/Conf/SCTConfOutM ///
Implements AthMonitorAlgorithm.
Definition at line 51 of file SCTErrMonAlg.cxx.
53 if (not pEvent.isValid()) {
55 return StatusCode::SUCCESS;
67 fill(
"SCTErrMonitor", lumiBlockAcc, is1DAcc, sctFlagAcc);
70 std::array<int, N_REGIONS_INC_GENERAL> flaggedWafersIndices
72 std::array<int, N_REGIONS_INC_GENERAL> nFlaggedWafers{};
73 nFlaggedWafers.fill(0);
75 for (
unsigned int iHash{0}; iHash<wafer_hash_max; iHash++) {
76 const IdentifierHash
hash{iHash};
80 nFlaggedWafers[barrel_ec]++;
86 fill(
"SCTErrMonitor", flaggedWwafersIndicesAcc, nFlaggedWafersAcc);
89 return StatusCode::SUCCESS;
94 std::lock_guard<std::mutex> glock{
m_mutex};
109 for (; waferIterator not_eq waferEnd; ++waferIterator) {
128 fill(
"SCTErrMonitor", mEtaAcc, mPhiAcc, mOutAcc);
134 fill(
"SCTErrMonitor", moduleOutBinAcc, moduleOutAcc);
137 return StatusCode::SUCCESS;
◆ fillWafer()
void SCTErrMonAlg::fillWafer |
( |
moduleGeo_t |
module, |
|
|
TH2F & |
histo |
|
) |
| const |
|
private |
Definition at line 662 of file SCTErrMonAlg.cxx.
664 double phiMin{
module.second.first}, phiMax{
module.second.second};
665 unsigned int nRep{1};
672 for (
unsigned int iRep{0}; iRep<nRep; iRep++) {
674 phiMin =
module.second.first;
679 const int iyMin{
static_cast<int>((phiMin/
M_PI+1.)*
s_nBinsPhi/2)+1};
683 const double yMin{(
static_cast<double>(iyMin)/
s_nBinsPhi*2-1.)*
M_PI};
684 const double yMax{(
static_cast<double>(iyMax)/
s_nBinsPhi*2-1.)*
M_PI};
691 for (
int ix{ixMin}; ix<=ixMax+1; ix++) {
693 if (ixMin==ixMax+1) weightx = wxOne;
694 else if (ix==ixMin) weightx = wxMin;
695 else if (ix==ixMax+1) weightx = wxMax;
696 for (
int iy{iyMin}; iy<=iyMax+1; iy++) {
698 if (iyMin==iyMax+1)
weight *= wyOne;
699 else if (iy==iyMin)
weight *= wyMin;
700 else if (iy==iyMax+1)
weight *= wyMax;
◆ filterPassed()
◆ GetEventInfo()
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)
- Parameters
-
ctx | EventContext for the event |
- Returns
- a SG::ReadHandle<xAOD::EventInfo>
Definition at line 107 of file AthMonitorAlgorithm.cxx.
◆ getGroup()
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
-
name | string name of the desired tool |
- Returns
- reference to the desired monitoring tool
Definition at line 164 of file AthMonitorAlgorithm.cxx.
176 if (!isInitialized()) {
178 "It seems that the AthMonitorAlgorithm::initialize was not called "
179 "in derived class initialize method");
183 [](
const std::string&
s,
auto h) { return s +
"," + h.first; });
184 ATH_MSG_FATAL(
"The tool " <<
name <<
" could not be found in the tool array of the "
185 <<
"monitoring algorithm " <<
m_name <<
". This probably reflects a discrepancy between "
186 <<
"your python configuration and c++ filling code. Note: your available groups are {"
187 << available <<
"}.");
◆ getTrigDecisionTool()
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 194 of file AthMonitorAlgorithm.cxx.
◆ initialize()
StatusCode SCTErrMonAlg::initialize |
( |
| ) |
|
|
finaloverridevirtual |
initialize
- Returns
- StatusCode
Reimplemented from AthMonitorAlgorithm.
Definition at line 21 of file SCTErrMonAlg.cxx.
35 m_geo.resize(maxHash, moduleGeo);
38 for (
unsigned int i{0};
i<maxHash;
i++) {
39 IdentifierHash
hash{
i};
42 moduleGeo.first.first, moduleGeo.first.second,
43 moduleGeo.second.first, moduleGeo.second.second,
◆ inputHandles()
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() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ numByteStreamErrors()
void SCTErrMonAlg::numByteStreamErrors |
( |
const std::set< IdentifierHash > & |
errors, |
|
|
int & |
ntot |
|
) |
| const |
|
private |
◆ outputHandles()
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
-
line | The input string. |
result | The parsed output vector of strings. |
- Returns
- StatusCode
Definition at line 341 of file AthMonitorAlgorithm.cxx.
343 std::stringstream
ss(
line);
347 while ( std::getline(
ss,
item,
',') ) {
348 std::stringstream iss(
item);
353 return StatusCode::SUCCESS;
◆ psTripDCSSCT()
bool SCTErrMonAlg::psTripDCSSCT |
( |
std::set< IdentifierHash > & |
sctHashPSTripDCS, |
|
|
float & |
PSTripModules |
|
) |
| const |
|
private |
Definition at line 644 of file SCTErrMonAlg.cxx.
646 sctHashPSTripDCS.clear();
650 for (
unsigned int i{0};
i<maxHash;
i++) {
651 IdentifierHash
hash{
i};
655 sctHashPSTripDCS.insert(
hash);
658 psTripModules = npsw/2.;
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
◆ stop()
StatusCode SCTErrMonAlg::stop |
( |
| ) |
|
|
finaloverridevirtual |
Fill /SCT/GENERAL/errors/Masked Links only for last event ///
Definition at line 141 of file SCTErrMonAlg.cxx.
146 fill(
"SCTErrMonitor", maskedLinksBinAcc, maskedLinksAcc);
148 return StatusCode::SUCCESS;
◆ summarySCT()
Definition at line 625 of file SCTErrMonAlg.cxx.
628 sctHashSummary.clear();
630 const EventContext& ctx{Gaudi::Hive::currentContext()};
633 for (
unsigned int i{0};
i<maxHash;
i++) {
634 IdentifierHash
hash{
i};
635 sctHashAll.insert(
hash);
637 sctHashSummary.insert(
hash);
◆ sysExecute()
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.
◆ sysInitialize()
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 61 of file AthCommonReentrantAlgorithm.cxx.
110 if (
sc.isFailure()) {
118 if ( cs.retrieve().isFailure() ) {
120 return StatusCode::SUCCESS;
122 if (cs->regHandle(
this,*
h).isFailure()) {
123 sc = StatusCode::FAILURE;
124 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ sysStart()
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
-
vTrigNames | List 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 199 of file AthMonitorAlgorithm.cxx.
203 if (vTrigNames.empty())
return true;
215 bool expressPass = passedBits & TrigDefs::Express_passed;
222 return group->isPassed();
◆ updateVHKA()
◆ ATLAS_THREAD_SAFE [1/3]
◆ ATLAS_THREAD_SAFE [2/3]
◆ ATLAS_THREAD_SAFE [3/3]
std::set<uint32_t> m_procLB SCTErrMonAlg::ATLAS_THREAD_SAFE |
|
mutableprivate |
◆ m_atlasReadyFilter
◆ m_byteStreamErrTool
◆ m_configurationTool
◆ m_coverageCheck
BooleanProperty SCTErrMonAlg::m_coverageCheck {this, "CoverageCheck", true} |
|
private |
◆ m_coverageCheckOnlyFirtsEventOfLB
BooleanProperty SCTErrMonAlg::m_coverageCheckOnlyFirtsEventOfLB {this, "CoverageCheckOnlyFirtsEventOfLB", true} |
|
private |
◆ m_dataType
◆ m_dataTypeStr
Gaudi::Property<std::string> AthMonitorAlgorithm::m_dataTypeStr {this,"DataType","userDefined"} |
|
protectedinherited |
◆ m_dcsTool
◆ m_defaultLBDuration
Gaudi::Property<float> AthMonitorAlgorithm::m_defaultLBDuration {this,"DefaultLBDuration",60.} |
|
protectedinherited |
◆ m_detailLevel
Gaudi::Property<int> AthMonitorAlgorithm::m_detailLevel {this,"DetailLevel",0} |
|
protectedinherited |
◆ m_detStore
◆ m_doOnline
BooleanProperty SCTErrMonAlg::m_doOnline {this, "doOnlineMon", false} |
|
private |
◆ m_doPerLumiErrors
BooleanProperty SCTErrMonAlg::m_doPerLumiErrors {this, "DoPerLumiErrors", true, "Do lumi block 2D error histos"} |
|
private |
◆ m_DQFilterTools
ToolHandleArray<IDQFilterTool> AthMonitorAlgorithm::m_DQFilterTools {this,"FilterTools",{}} |
|
protectedinherited |
◆ m_dummy
◆ 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
◆ 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_EventInfoKey
◆ m_evtStore
◆ m_extendedExtraObjects
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 |
◆ m_flaggedTool
◆ m_geo
◆ m_isFirstConfigurationDetails
std::atomic_bool SCTErrMonAlg::m_isFirstConfigurationDetails {true} |
|
mutableprivate |
◆ m_lbDurationDataKey
◆ m_lumiDataKey
◆ m_makeConfHisto
BooleanProperty SCTErrMonAlg::m_makeConfHisto {this, "MakeConfHisto", true} |
|
private |
◆ m_mutex
std::mutex SCTErrMonAlg::m_mutex {} |
|
mutableprivate |
◆ m_name
std::string AthMonitorAlgorithm::m_name |
|
privateinherited |
◆ m_pSCTHelper
◆ m_pSummaryTool
◆ m_toolLookupMap
std::unordered_map<std::string, size_t> AthMonitorAlgorithm::m_toolLookupMap |
|
privateinherited |
◆ m_tools
◆ m_trigDecTool
◆ 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
◆ m_useDCS
BooleanProperty SCTErrMonAlg::m_useDCS {this, "UseDCS", true} |
|
private |
◆ m_useLumi
Gaudi::Property<bool> AthMonitorAlgorithm::m_useLumi {this,"EnableLumi",false} |
|
protectedinherited |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_vTrigChainNames
std::vector<std::string> AthMonitorAlgorithm::m_vTrigChainNames |
|
protectedinherited |
◆ s_nBinsEta
const unsigned int SCTErrMonAlg::s_nBinsEta = 100 |
|
staticprivate |
◆ s_nBinsPhi
const unsigned int SCTErrMonAlg::s_nBinsPhi = 100 |
|
staticprivate |
◆ s_rangeEta
const double SCTErrMonAlg::s_rangeEta = 2.5 |
|
staticprivate |
◆ s_wafersThreshold
const double SCTErrMonAlg::s_wafersThreshold = 4.0 |
|
staticprivate |
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
unsigned int bec2Index(const int bec)
std::pair< std::pair< double, double >, std::pair< double, double > > moduleGeo_t
std::atomic_bool m_isFirstConfigurationDetails
ToolHandle< ISCT_DCSConditionsTool > m_dcsTool
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
ToolHandle< IInDetConditionsTool > m_pSummaryTool
@ HEADERTRAILERLIMITERROR
std::vector< std::string > m_vTrigChainNames
Vector of trigger chain names parsed from trigger chain string.
int fillByteStreamErrorsHelper(const std::set< IdentifierHash > &errors, int err_type, categoryErrorMap_t &categoryErrorMap, std::array< int, SCT_Monitoring::N_REGIONS_INC_GENERAL > &nMaskedLinks) const
Used in fillByteStreamErrors()
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)
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
Key for retrieving EventInfo from StoreGate.
void fillWafer(moduleGeo_t module, TH2F &histo) const
constexpr unsigned int N_SIDES
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool errorSCT(std::set< IdentifierHash > &sctHashBadLinkError, std::set< IdentifierHash > &sctHashBadRODError, std::set< IdentifierHash > &sctHashBadError) const
std::unordered_map< std::string, size_t > m_toolLookupMap
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.
std::vector< Identifier >::const_iterator const_id_iterator
const SCT_ID * m_pSCTHelper
const_id_iterator wafer_begin() const
Iterators over full set of ids. Wafer iterator is sorted.
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
const_id_iterator wafer_end() const
int phi_module(const Identifier &id) const
bool psTripDCSSCT(std::set< IdentifierHash > &sctHashPSTripDCS, float &PSTripModules) const
void getEtaPhiRegion(double deltaZ, double &etaMin, double &etaMax, double &phiMin, double &phiMax, double &rz) const
Method for building up region of interest table.
bool disabledSCT(std::set< IdentifierHash > &sctHashDisabled) const
bool trigChainsArePassed(const std::vector< std::string > &vTrigNames) const
Check whether triggers are passed.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
virtual void setOwner(IDataHandleHolder *o)=0
const ToolHandle< GenericMonitoringTool > m_dummy
@ Error
The sub-detector issued an error.
static const double s_wafersThreshold
Bec index2Bec(const unsigned int i)
Conversion index->bec.
std::vector< moduleGeo_t > m_geo
@ numberOfProblemForCoverage
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
BooleanProperty m_doPerLumiErrors
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Array of Data Quality filter tools.
size_type wafer_hash_max() const
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
void tolower(std::string &s)
virtual StatusCode fillHistograms(const EventContext &ctx) const =0
adds event to the monitoring histograms
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
StatusCode fillByteStreamErrors(const EventContext &ctx) const
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
void numByteStreamErrors(const std::set< IdentifierHash > &errors, int &ntot) const
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
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.
int get_other_side(const IdentifierHash &id, IdentifierHash &other) const
Wafer hash on other side.
BooleanProperty m_doOnline
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.
bool summarySCT(std::set< IdentifierHash > &sctHashAll, std::set< IdentifierHash > &sctHashSummary) const
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.
BooleanProperty m_coverageCheck
std::string to_string(const DetectorType &type)
ErrorType
SCT byte stream error type enums used in SCT_RodDecoder, SCT_ByteStreamErrorsTool,...
int layer_disk(const Identifier &id) const
Gaudi::Property< bool > m_enforceExpressTriggers
static const unsigned int s_nBinsEta
virtual StatusCode initialize() override
initialize
accumulate
Update flags based on parser line args.
ToolHandle< ISCT_FlaggedConditionTool > m_flaggedTool
static const double s_rangeEta
double calculateDetectorCoverage(const TH2F &histo, const TH2F &histoAll) const
#define ATH_MSG_WARNING(x)
StatusCode fillConfigurationDetails(const EventContext &ctx) const
Used in fillHistograms()
int eta_module(const Identifier &id) const
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
BooleanProperty m_coverageCheckOnlyFirtsEventOfLB
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
ToolHandle< ISCT_ByteStreamErrorsTool > m_byteStreamErrTool
virtual StatusCode sysInitialize() override
Override sysInitialize.
int side(const Identifier &id) const
int getNumModules(const int reg, const int layer)
Declare a monitored scalar variable.
ToolHandle< IDQFilterTool > m_atlasReadyFilter
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
ToolHandle< ISCT_ConfigurationConditionsTool > m_configurationTool
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
setScale setgFexType iEta
BooleanProperty m_makeConfHisto
static const unsigned int s_nBinsPhi