|
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 > &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 > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
|
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"} |
|
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 698 of file SCTErrMonAlg.cxx.
699 double occupancy{0.};
702 for (
unsigned int j{0}; j <
s_nBinsPhi; j++) {
703 double waferCell{histoAll.GetBinContent(
i+1, j+1) -
histo.GetBinContent(
i+1, j+1)};
715 double detector_coverage{100. * occupancy / (
static_cast<double>(
s_nBinsEta ) *
static_cast<double>(
s_nBinsPhi ) )};
716 return detector_coverage;
◆ cardinality()
unsigned int AthReentrantAlgorithm::cardinality |
( |
| ) |
const |
|
overridevirtualinherited |
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 55 of file AthReentrantAlgorithm.cxx.
◆ 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 565 of file SCTErrMonAlg.cxx.
567 sctHashDisabled.clear();
570 for (
const Identifier& badModule: *badModules) {
573 IdentifierHash hashSide1;
575 sctHashDisabled.insert(hashSide0);
576 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 581 of file SCTErrMonAlg.cxx.
584 sctHashBadLinkError.clear();
585 sctHashBadRODError.clear();
586 sctHashBadError.clear();
587 const EventContext& ctx{Gaudi::Hive::currentContext()};
590 const std::set<IdentifierHash> sctErrors{
m_byteStreamErrTool->getErrorSet( linkLevelBadErrors, ctx )};
591 for (
const IdentifierHash& waferHash : sctErrors) {
592 sctHashBadLinkError.insert(waferHash);
598 const std::set<IdentifierHash> sctErrors{
m_byteStreamErrTool->getErrorSet( RodLevelBadErrors, ctx )};
599 for (
const IdentifierHash& waferHash : sctErrors) {
600 sctHashBadRODError.insert(waferHash);
606 const std::set<IdentifierHash> sctErrors{
m_byteStreamErrTool->getErrorSet( tmpBadError, ctx )};
607 for (
const IdentifierHash& waferHash : sctErrors) {
608 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()
const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 79 of file AthReentrantAlgorithm.cxx.
86 return Algorithm::extraOutputDeps();
◆ 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 226 of file SCTErrMonAlg.cxx.
228 if (not pEvent.isValid()) {
230 return StatusCode::SUCCESS;
240 auto nBSErrorsAcc{
Monitored::Scalar<int>(
"n_"+SCT_ByteStreamErrors::ErrorTypeDescription[errType], nBSErrors)};
241 fill(
"SCTErrMonitor", lumiBlockAcc, nBSErrorsAcc);
244 categoryErrorMap_t categoryErrorMap;
245 std::array<int, N_REGIONS_INC_GENERAL> nMaskedLinks{};
246 nMaskedLinks.fill(0);
251 m_nMaskedLinks[reg] = nMaskedLinks[reg];
254 std::vector<int> vEta;
255 std::vector<int> vPhi;
256 std::vector<bool> vHasError;
260 categoryErrorMap.count(errCate))};
261 fill(
"SCTErrMonitor", lumiBlockAcc, nCategoryErrorsAcc);
263 for (
int iReg{0}; iReg<
N_REGIONS; iReg++) {
269 const size_t size{
static_cast<size_t>((lastEta-firstEta+1)*(lastPhi-firstPhi+1))};
270 for (
int iLay{0}; iLay<maxLayer; iLay++) {
273 vHasError.resize(
size);
274 for (
int eta{firstEta};
eta<=lastEta;
eta++) {
276 for (
int phi{firstPhi};
phi<=lastPhi;
phi++) {
278 size_t index{
static_cast<size_t>(
iEta*(lastPhi-firstPhi+1)+
iPhi)};
281 vHasError[
index] = categoryErrorMap[errCate][iReg][iLay][
iEta][
iPhi];
288 fill(
"SCTErrMonitor", etaAcc, phiAcc, hasErrorAcc);
290 if (
m_doOnline and CategoryErrorsNames[errCate] ==
"Errors"){
292 fill(
"SCTErrMonitor", etaAcc, phiAcc, hasErrorRecentAcc);
299 bool doCoverage =
false;
301 std::lock_guard<std::mutex> lock(
m_mutex);
303 m_procLB.insert(pEvent->lumiBlock());
314 "SCT_MapOfDisabledLinks",
315 "SCT_MapOfLinksWithBadLinkLevelErrors",
316 "SCT_MapOfLinksWithBadRODLevelErrors",
317 "SCT_MapOfLinksWithBadErrors",
318 "SCT_MapOfLinksWithPSTrip",
319 "SCT_MapOfLinksWithAnyProbelm"
323 "Map of Disabled Links",
324 "Map of Links with bad LinkLevelErrors",
325 "Map of Links with Bad RODLevelErrors",
326 "Map of Links with Bad Errors",
327 "Map of Links Affected by PS Trip",
328 "Map of Links with Any Bad Problem"
331 std::lock_guard<std::mutex> lock{
m_mutex};
332 CacheEntry* ent{m_cache.get(ctx)};
333 if (ent->m_evt!=ctx.evt()) {
334 if (ent->m_mapSCT.empty()) {
336 ent->m_mapSCT.emplace_back(
names[iProblem].c_str(), titles[iProblem].c_str(),
338 ent->m_mapSCT[iProblem].GetXaxis()->SetTitle(
"#eta");
339 ent->m_mapSCT[iProblem].GetYaxis()->SetTitle(
"#phi");
343 ent->m_mapSCT[iProblem].Reset();
346 ent->m_evt = ctx.evt();
353 float psTripModules{0.};
362 for (
const IdentifierHash&
hash: sctHash[iProblem]) {
372 fill(
"SCTErrMonitor", lumiBlockAcc, detectorCoverageAcc);
379 fill(
"SCTErrMonitor", lumiBlockAcc, psTripModulesAcc);
382 return StatusCode::SUCCESS;
◆ fillByteStreamErrorsHelper()
Used in fillByteStreamErrors()
Fill /run_x/lb_y/SCT/SCT*/RateErrorsPerLumi ///
Definition at line 386 of file SCTErrMonAlg.cxx.
391 std::array<bool, CategoryErrors::N_ERRCATEGORY> b_category{};
392 b_category.fill(
false);
396 (err_type == SCT_ByteStreamErrors::MaskedLink) or (err_type == SCT_ByteStreamErrors::MaskedROD);
402 if (err_type == tmpBadError) {
410 if (err_type == linkLevelError) {
418 if (err_type == rodLevelError) {
425 (err_type == SCT_ByteStreamErrors::TempMaskedChip0) or (err_type == SCT_ByteStreamErrors::TempMaskedChip1) or
426 (err_type == SCT_ByteStreamErrors::TempMaskedChip2) or (err_type == SCT_ByteStreamErrors::TempMaskedChip3) or
427 (err_type == SCT_ByteStreamErrors::TempMaskedChip4) or (err_type == SCT_ByteStreamErrors::TempMaskedChip5);
466 std::vector<int> numErrorsPerLumi[
N_REGIONS];
469 const int nLayers{n_layers[reg]*2};
470 numErrorsPerLumi[reg].resize(nLayers, 0);
478 if (not
hash.is_valid())
continue;
502 nMaskedLinks[regionIndex]++;
510 categoryErrorMap[errCate][regionIndex][
layer][ieta][iphi] =
true;
517 std::vector<int> vErrorType;
518 std::vector<int> vLayerSide;
519 std::vector<float> vErrorFraction;
520 std::vector<bool> vIsEC;
521 std::vector<bool> vIsB;
522 std::vector<bool> vIsEA;
523 vErrorType.reserve(
size);
524 vLayerSide.reserve(
size);
525 vErrorFraction.reserve(
size);
530 const int nLayers{n_layers[reg]*
N_SIDES};
531 for (
int layerSide{0}; layerSide<nLayers; layerSide++) {
533 if (num_modules==0.)
continue;
534 vErrorType.push_back(err_type);
535 vLayerSide.push_back(layerSide);
536 vErrorFraction.push_back(
static_cast<float>(numErrorsPerLumi[reg][layerSide])/num_modules);
549 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 151 of file SCTErrMonAlg.cxx.
153 unsigned int nBadMods{
static_cast<unsigned int>(
m_configurationTool->badModules()->size())};
154 const std::map<IdentifierHash, std::pair<bool, bool>>* badLinks{
m_configurationTool->badLinks(ctx)};
155 unsigned int nBadLink0{0}, nBadLink1{0}, nBadLinkBoth{0};
156 for (
const std::pair<
const IdentifierHash, std::pair<bool, bool>>& link: *badLinks) {
157 std::pair<bool, bool>
status{link.second};
158 if ((
status.first ==
false) and (
status.second ==
true)) {
161 if ((
status.first ==
true) and (
status.second ==
false)) {
164 if ((
status.first ==
false) and (
status.second ==
false)) {
170 unsigned int nBadChips{0};
171 for (
const std::pair<const Identifier, unsigned int>& chip : *badChips) {
172 unsigned int status{chip.second};
174 nBadChips += ((
status & (1 <<
i)) == 0 ? 0 : 1);
178 std::set<Identifier> badStripsAll;
180 unsigned int nBadStrips{
static_cast<unsigned int>(badStripsAll.size())};
182 std::set<Identifier> badStripsExclusive;
184 int nBadStripsExclusive{
static_cast<int>(badStripsExclusive.size())};
185 int nBadStripsExclusiveBEC[
N_REGIONS] = {
188 for (
const Identifier& strip: badStripsExclusive) {
197 vDetailedConfBin[
i] =
i;
198 if (
i==0) vNBad[
i] = nBadMods;
199 else if (
i==1) vNBad[
i] = nBadLink0;
200 else if (
i==2) vNBad[
i] = nBadLink1;
201 else if (
i==3) vNBad[
i] = nBadChips;
202 else if (
i==4) vNBad[
i] =
static_cast<double>(nBadStripsExclusive) / 100.;
206 fill(
"SCTErrMonitor", detailedConfBinAcc, nBadAcc);
208 ATH_MSG_DEBUG(
"-----------------------------------------------------------------------");
215 ATH_MSG_DEBUG(
"Number of bad strips exclusive = " << nBadStripsExclusive);
216 ATH_MSG_DEBUG(
"Number of bad strips exclusive (ECC, B, ECA) = "
220 ATH_MSG_DEBUG(
"-----------------------------------------------------------------------");
222 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 50 of file SCTErrMonAlg.cxx.
52 if (not pEvent.isValid()) {
54 return StatusCode::SUCCESS;
66 fill(
"SCTErrMonitor", lumiBlockAcc, is1DAcc, sctFlagAcc);
69 std::array<int, N_REGIONS_INC_GENERAL> flaggedWafersIndices
71 std::array<int, N_REGIONS_INC_GENERAL> nFlaggedWafers{};
72 nFlaggedWafers.fill(0);
74 for (
unsigned int iHash{0}; iHash<wafer_hash_max; iHash++) {
75 const IdentifierHash
hash{iHash};
79 nFlaggedWafers[barrel_ec]++;
85 fill(
"SCTErrMonitor", flaggedWwafersIndicesAcc, nFlaggedWafersAcc);
88 return StatusCode::SUCCESS;
93 std::lock_guard<std::mutex> glock{
m_mutex};
108 for (; waferIterator not_eq waferEnd; ++waferIterator) {
127 fill(
"SCTErrMonitor", mEtaAcc, mPhiAcc, mOutAcc);
133 fill(
"SCTErrMonitor", moduleOutBinAcc, moduleOutAcc);
136 return StatusCode::SUCCESS;
◆ fillWafer()
void SCTErrMonAlg::fillWafer |
( |
moduleGeo_t |
module, |
|
|
TH2F & |
histo |
|
) |
| const |
|
private |
Definition at line 652 of file SCTErrMonAlg.cxx.
654 double phiMin{
module.second.first}, phiMax{
module.second.second};
655 unsigned int nRep{1};
662 for (
unsigned int iRep{0}; iRep<nRep; iRep++) {
664 phiMin =
module.second.first;
669 const int iyMin{
static_cast<int>((phiMin/
M_PI+1.)*
s_nBinsPhi/2)+1};
673 const double yMin{(
static_cast<double>(iyMin)/
s_nBinsPhi*2-1.)*
M_PI};
674 const double yMax{(
static_cast<double>(iyMax)/
s_nBinsPhi*2-1.)*
M_PI};
681 for (
int ix{ixMin}; ix<=ixMax+1; ix++) {
683 if (ixMin==ixMax+1) weightx = wxOne;
684 else if (ix==ixMin) weightx = wxMin;
685 else if (ix==ixMax+1) weightx = wxMax;
686 for (
int iy{iyMin}; iy<=iyMax+1; iy++) {
688 if (iyMin==iyMax+1)
weight *= wyOne;
689 else if (iy==iyMin)
weight *= wyMin;
690 else if (iy==iyMax+1)
weight *= wyMax;
◆ filterPassed()
virtual bool AthReentrantAlgorithm::filterPassed |
( |
const EventContext & |
ctx | ) |
const |
|
inlinevirtualinherited |
◆ 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.
171 if (!isInitialized()) {
173 "It seems that the AthMonitorAlgorithm::initialize was not called "
174 "in derived class initialize method");
178 [](
const std::string&
s,
auto h) { return s +
"," + h.first; });
179 ATH_MSG_FATAL(
"The tool " <<
name <<
" could not be found in the tool array of the "
180 <<
"monitoring algorithm " <<
m_name <<
". This probably reflects a discrepancy between "
181 <<
"your python configuration and c++ filling code. Note: your available groups are {"
182 << available <<
"}.");
◆ 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 189 of file AthMonitorAlgorithm.cxx.
◆ initialize()
StatusCode SCTErrMonAlg::initialize |
( |
| ) |
|
|
finaloverridevirtual |
initialize
- Returns
- StatusCode
Reimplemented from AthMonitorAlgorithm.
Definition at line 21 of file SCTErrMonAlg.cxx.
34 m_geo.resize(maxHash, moduleGeo);
37 for (
unsigned int i{0};
i<maxHash;
i++) {
38 IdentifierHash
hash{
i};
41 moduleGeo.first.first, moduleGeo.first.second,
42 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()
bool AthReentrantAlgorithm::isClonable |
( |
| ) |
const |
|
overridevirtualinherited |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in Simulation::BeamEffectsAlg, InDet::SiTrackerSpacePointFinder, InDet::SCT_Clusterization, InDet::SiSPSeededTrackFinder, SCTRawDataProvider, InDet::GNNSeedingTrackMaker, SCT_PrepDataToxAOD, RoIBResultToxAOD, InDet::SiSPGNNTrackMaker, SCT_CablingCondAlgFromCoraCool, SCT_ReadCalibDataTestAlg, SCT_CablingCondAlgFromText, SCT_ReadCalibChipDataTestAlg, SCT_TestCablingAlg, SCT_ConfigurationConditionsTestAlg, ITkPixelCablingAlg, ITkStripCablingAlg, SCTEventFlagWriter, SCT_ConditionsSummaryTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_TdaqEnabledTestAlg, SCT_SiliconConditionsTestAlg, SCTSiLorentzAngleTestAlg, SCT_ByteStreamErrorsTestAlg, SCT_ConditionsParameterTestAlg, SCT_FlaggedConditionTestAlg, SCT_StripVetoTestAlg, SCT_RawDataToxAOD, and SCTSiPropertiesTestAlg.
Definition at line 44 of file AthReentrantAlgorithm.cxx.
◆ 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 336 of file AthMonitorAlgorithm.cxx.
338 std::stringstream
ss(
line);
342 while ( std::getline(
ss,
item,
',') ) {
343 std::stringstream iss(
item);
348 return StatusCode::SUCCESS;
◆ psTripDCSSCT()
bool SCTErrMonAlg::psTripDCSSCT |
( |
std::set< IdentifierHash > & |
sctHashPSTripDCS, |
|
|
float & |
PSTripModules |
|
) |
| const |
|
private |
Definition at line 634 of file SCTErrMonAlg.cxx.
636 sctHashPSTripDCS.clear();
640 for (
unsigned int i{0};
i<maxHash;
i++) {
641 IdentifierHash
hash{
i};
645 sctHashPSTripDCS.insert(
hash);
648 psTripModules = npsw/2.;
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
virtual void AthReentrantAlgorithm::setFilterPassed |
( |
bool |
state, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
inlinevirtualinherited |
◆ stop()
StatusCode SCTErrMonAlg::stop |
( |
| ) |
|
|
finaloverridevirtual |
Fill /SCT/GENERAL/errors/Masked Links only for last event ///
Definition at line 140 of file SCTErrMonAlg.cxx.
145 fill(
"SCTErrMonitor", maskedLinksBinAcc, maskedLinksAcc);
147 return StatusCode::SUCCESS;
◆ summarySCT()
Definition at line 615 of file SCTErrMonAlg.cxx.
618 sctHashSummary.clear();
620 const EventContext& ctx{Gaudi::Hive::currentContext()};
623 for (
unsigned int i{0};
i<maxHash;
i++) {
624 IdentifierHash
hash{
i};
625 sctHashAll.insert(
hash);
627 sctHashSummary.insert(
hash);
◆ sysExecute()
StatusCode AthReentrantAlgorithm::sysExecute |
( |
const EventContext & |
ctx | ) |
|
|
overridevirtualinherited |
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Definition at line 67 of file AthReentrantAlgorithm.cxx.
69 return Gaudi::Algorithm::sysExecute (ctx);
◆ sysInitialize()
StatusCode AthReentrantAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in InputMakerBase, and HypoBase.
Definition at line 96 of file AthReentrantAlgorithm.cxx.
107 if ( cs.retrieve().isFailure() ) {
109 return StatusCode::SUCCESS;
111 if (cs->regHandle(
this,*
h).isFailure()) {
112 sc = StatusCode::FAILURE;
113 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 194 of file AthMonitorAlgorithm.cxx.
198 if (vTrigNames.empty())
return true;
210 bool expressPass = passedBits & TrigDefs::Express_passed;
217 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_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
DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects |
|
privateinherited |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 153 of file AthReentrantAlgorithm.h.
◆ m_fileKey
Gaudi::Property<std::string> AthMonitorAlgorithm::m_fileKey {this,"FileKey",""} |
|
protectedinherited |
◆ 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
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
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
const_id_iterator wafer_begin(void) const
Iterators over full set of ids. Wafer iterator is sorted.
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
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
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
BooleanProperty m_doPerLumiErrors
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Array of Data Quality filter tools.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
void tolower(std::string &s)
virtual StatusCode fillHistograms(const EventContext &ctx) const =0
adds event to the monitoring histograms
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.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
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
size_type wafer_hash_max(void) const
std::string to_string(const DetectorType &type)
ErrorType
SCT byte stream error type enums used in SCT_RodDecoder, SCT_ByteStreamErrorsTool,...
virtual StatusCode sysInitialize() override
Override sysInitialize.
int layer_disk(const Identifier &id) const
Gaudi::Property< bool > m_enforceExpressTriggers
static const unsigned int s_nBinsEta
virtual StatusCode initialize() override
initialize
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
int side(const Identifier &id) const
const_id_iterator wafer_end(void) const
int getNumModules(const int reg, const int layer)
Declare a monitored scalar variable.
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
setScale setgFexType iEta
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
BooleanProperty m_makeConfHisto
static const unsigned int s_nBinsPhi