ATLAS Offline Software
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SCTErrMonAlg Class Reference

#include <SCTErrMonAlg.h>

Inheritance diagram for SCTErrMonAlg:
Collaboration diagram for SCTErrMonAlg:

Classes

struct  CacheEntry
 
class  categoryErrorMap_t
 

Public Types

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

Public Member Functions

 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::EventInfoGetEventInfo (const EventContext &) const
 Return a ReadHandle for an EventInfo object (get run/event numbers, etc.) More...
 
virtual float lbAverageInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average mu, i.e. More...
 
virtual float lbInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate instantaneous number of interactions, i.e. More...
 
virtual float lbAverageLuminosity (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1). More...
 
virtual float lbLuminosityPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the instantaneous luminosity per bunch crossing. More...
 
virtual double lbDuration (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the duration of the luminosity block (in seconds) More...
 
virtual float lbAverageLivefraction (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average luminosity livefraction. More...
 
virtual float livefractionPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the live fraction per bunch crossing ID. More...
 
virtual double lbLumiWeight (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Calculate the average integrated luminosity multiplied by the live fraction. More...
 
virtual StatusCode parseList (const std::string &line, std::vector< std::string > &result) const
 Parse a string into a vector. More...
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, 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
 

Protected Member Functions

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

Protected Attributes

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

Private Types

typedef std::pair< std::pair< double, double >, std::pair< double, double > > moduleGeo_t
 
typedef std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > MonVarVec_t
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

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

Private Attributes

std::vector< moduleGeo_tm_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_ByteStreamErrorsToolm_byteStreamErrTool {this, "SCT_ByteStreamErrorsTool", "SCT_ByteStreamErrorsTool/SCT_ByteStreamErrorsTool", "Tool to retrieve SCT ByteStream Errors"}
 
ToolHandle< ISCT_ConfigurationConditionsToolm_configurationTool {this, "conditionsTool", "SCT_ConfigurationConditionsTool/InDetSCT_ConfigurationConditionsTool", "Tool to retrieve SCT Configuration Tool"}
 
ToolHandle< ISCT_DCSConditionsToolm_dcsTool {this, "SCT_DCSConditionsTool", "SCT_DCSConditionsTool/InDetSCT_DCSConditionsTool", "Tool to retrieve SCT DCS information"}
 
ToolHandle< IInDetConditionsToolm_pSummaryTool {this, "SCT_ConditionsSummaryTool", "SCT_ConditionsSummaryTool/InDetSCT_ConditionsSummaryTool", "Tool to retrieve SCT Conditions summary"}
 
ToolHandle< ISCT_FlaggedConditionToolm_flaggedTool {this, "SCT_FlaggedConditionTool", "SCT_FlaggedConditionTool/InDetSCT_FlaggedConditionTool", "Tool to retrieve bad wafers with many fired strips"}
 
ToolHandle< IDQFilterToolm_atlasReadyFilter {this,"ReadyFilterTool","DQAtlasReadyFilterTool/DQAtlasReadyFilterTool", "Tool to retrieve R4P flag"}
 
const SCT_IDm_pSCTHelper {nullptr}
 
std::string m_name
 
std::unordered_map< std::string, size_t > m_toolLookupMap
 
const ToolHandle< GenericMonitoringToolm_dummy
 
Gaudi::Property< bool > m_enforceExpressTriggers
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Static Private Attributes

static const unsigned int s_nBinsEta = 100
 
static const double s_rangeEta = 2.5
 
static const unsigned int s_nBinsPhi = 100
 
static const double s_wafersThreshold = 4.0
 

Detailed Description

Definition at line 31 of file SCTErrMonAlg.h.

Member Typedef Documentation

◆ moduleGeo_t

typedef std::pair<std::pair<double, double>, std::pair<double, double> > SCTErrMonAlg::moduleGeo_t
private

Definition at line 42 of file SCTErrMonAlg.h.

◆ MonVarVec_t

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

Definition at line 365 of file AthMonitorAlgorithm.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ DataType_t

enum AthMonitorAlgorithm::DataType_t
stronginherited

Specifies what type of input data is being monitored.

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

Enumerator
userDefined 
monteCarlo 
collisions 
cosmics 
heavyIonCollisions 

Definition at line 191 of file AthMonitorAlgorithm.h.

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

◆ Environment_t

enum AthMonitorAlgorithm::Environment_t
stronginherited

Specifies the processing environment.

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

Enumerator
user 
online 
tier0 
tier0Raw 
tier0ESD 
AOD 
altprod 

Definition at line 172 of file AthMonitorAlgorithm.h.

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

Constructor & Destructor Documentation

◆ SCTErrMonAlg()

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

Definition at line 14 of file SCTErrMonAlg.cxx.

15  :AthMonitorAlgorithm(name,pSvcLocator){
16  for (int reg{0}; reg<N_REGIONS_INC_GENERAL; reg++) {
17  m_nMaskedLinks[reg] = 0;
18  }
19 }

◆ ~SCTErrMonAlg()

virtual SCTErrMonAlg::~SCTErrMonAlg ( )
virtualdefault

Member Function Documentation

◆ calculateDetectorCoverage()

double SCTErrMonAlg::calculateDetectorCoverage ( const TH2F &  histo,
const TH2F &  histoAll 
) const
private

Definition at line 708 of file SCTErrMonAlg.cxx.

708  {
709  double occupancy{0.};
710 
711  for (unsigned int i{0}; i < s_nBinsEta; i++) {
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)};
714 
715  if (waferCell >= s_wafersThreshold) {
716  occupancy += 1.0;
717  } else if (waferCell > s_wafersThreshold - 1.0 ) {
718  occupancy += waferCell - (s_wafersThreshold - 1.0);
719  //Calculating the bin occupancy which has less than 1.
720  //For example, bin have a 2.3. In this case, we can understand that 30% of the bin is coverd by 3 sides/wafers and 70% of the bin is coverd by 2 sides/wafers.
721  //And it means that occupancy of the bin is 0.3 So, in this line, I take difference between s_wafersThreshold(3)-1 and waferCell, and add it to the occupancy.
722  }
723  }
724  }
725  double detector_coverage{100. * occupancy / ( static_cast<double>( s_nBinsEta ) * static_cast<double>( s_nBinsPhi ) )};
726  return detector_coverage;
727 }

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality
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 75 of file AthCommonReentrantAlgorithm.cxx.

64 {
65  return 0;
66 }

◆ dataType()

DataType_t AthMonitorAlgorithm::dataType ( ) const
inlineinherited

Accessor functions for the data type.

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

Definition at line 221 of file AthMonitorAlgorithm.h.

221 { return m_dataType; }

◆ dataTypeStringToEnum()

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

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

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

Definition at line 140 of file AthMonitorAlgorithm.cxx.

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

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [4/4]

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

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

Definition at line 199 of file AthCommonDataStore.h.

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

◆ declareProperty() [1/6]

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

Declare a new Gaudi property.

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

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

Definition at line 245 of file AthCommonDataStore.h.

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

◆ declareProperty() [2/6]

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

Declare a new Gaudi property.

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

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

Definition at line 221 of file AthCommonDataStore.h.

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

◆ declareProperty() [3/6]

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

Definition at line 259 of file AthCommonDataStore.h.

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

◆ declareProperty() [4/6]

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

Declare a new Gaudi property.

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

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

Definition at line 333 of file AthCommonDataStore.h.

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

◆ declareProperty() [5/6]

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

Declare a new Gaudi property.

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

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

Definition at line 352 of file AthCommonDataStore.h.

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

◆ declareProperty() [6/6]

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

Definition at line 145 of file AthCommonDataStore.h.

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

◆ detStore()

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

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

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ disabledSCT()

bool SCTErrMonAlg::disabledSCT ( std::set< IdentifierHash > &  sctHashDisabled) const
private

Definition at line 575 of file SCTErrMonAlg.cxx.

575  {
576  bool altered{false};
577  sctHashDisabled.clear();
578  const std::set<Identifier>* badModules{m_configurationTool->badModules()};
579 
580  for (const Identifier& badModule: *badModules) {
581  altered = true;
582  IdentifierHash hashSide0{m_pSCTHelper->wafer_hash(badModule)};
583  IdentifierHash hashSide1;
584  m_pSCTHelper->get_other_side(hashSide0, hashSide1);
585  sctHashDisabled.insert(hashSide0);
586  sctHashDisabled.insert(hashSide1);
587  }
588  return altered;
589 }

◆ environment()

Environment_t AthMonitorAlgorithm::environment ( ) const
inlineinherited

Accessor functions for the environment.

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

Definition at line 205 of file AthMonitorAlgorithm.h.

205 { return m_environment; }

◆ envStringToEnum()

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

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

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

Definition at line 112 of file AthMonitorAlgorithm.cxx.

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

◆ errorSCT()

bool SCTErrMonAlg::errorSCT ( std::set< IdentifierHash > &  sctHashBadLinkError,
std::set< IdentifierHash > &  sctHashBadRODError,
std::set< IdentifierHash > &  sctHashBadError 
) const
private

Definition at line 591 of file SCTErrMonAlg.cxx.

593  {
594  sctHashBadLinkError.clear();
595  sctHashBadRODError.clear();
596  sctHashBadError.clear();
597  const EventContext& ctx{Gaudi::Hive::currentContext()};
598  //BadLinkLevelError
599  for (SCT_ByteStreamErrors::ErrorType linkLevelBadErrors: SCT_ByteStreamErrors::LinkLevelBadErrors) {
600  const std::set<IdentifierHash> sctErrors{m_byteStreamErrTool->getErrorSet( linkLevelBadErrors, ctx )};
601  for (const IdentifierHash& waferHash : sctErrors) {
602  sctHashBadLinkError.insert(waferHash);
603  }
604  }
605 
606  //BadRODLevelError
607  for (SCT_ByteStreamErrors::ErrorType RodLevelBadErrors: SCT_ByteStreamErrors::RodLevelBadErrors) {
608  const std::set<IdentifierHash> sctErrors{m_byteStreamErrTool->getErrorSet( RodLevelBadErrors, ctx )};
609  for (const IdentifierHash& waferHash : sctErrors) {
610  sctHashBadRODError.insert(waferHash);
611  }
612  }
613 
614  //BadError = BadLinkLevelError + BadRODLevelError
615  for (SCT_ByteStreamErrors::ErrorType tmpBadError: SCT_ByteStreamErrors::BadErrors) {
616  const std::set<IdentifierHash> sctErrors{m_byteStreamErrTool->getErrorSet( tmpBadError, ctx )};
617  for (const IdentifierHash& waferHash : sctErrors) {
618  sctHashBadError.insert(waferHash);
619  }
620  }
621  return true;
622 }

◆ evtStore() [1/2]

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

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

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

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

Applies filters and trigger requirements.

Then, calls fillHistograms().

Parameters
ctxevent context for reentrant Athena call
Returns
StatusCode

Definition at line 73 of file AthMonitorAlgorithm.cxx.

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

◆ extraDeps_update_handler()

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

Add StoreName to extra input/output deps as needed.

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

◆ extraOutputDeps()

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

Return the list of extra output dependencies.

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

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90 {
91  // If we didn't find any symlinks to add, just return the collection
92  // from the base class. Otherwise, return the extended collection.
93  if (!m_extendedExtraObjects.empty()) {
95  }
96  return BaseAlg::extraOutputDeps();
97 }

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

227  {
229  if (not pEvent.isValid()) {
230  ATH_MSG_WARNING("Could not retrieve event info!");
231  return StatusCode::SUCCESS;
232  }
233 
234  //--- Fill 1D histograms (vs LumiBlock) for each BS
235  for (int errType{0}; errType < SCT_ByteStreamErrors::NUM_ERROR_TYPES; ++errType) {
236  int nBSErrors{0};
237  // get number of BS errors
238  numByteStreamErrors(m_byteStreamErrTool->getErrorSet(errType, ctx), nBSErrors);
240  auto lumiBlockAcc{Monitored::Scalar<int>("lumiBlock", pEvent->lumiBlock())};
241  auto nBSErrorsAcc{Monitored::Scalar<int>("n_"+SCT_ByteStreamErrors::ErrorTypeDescription[errType], nBSErrors)};
242  fill("SCTErrMonitor", lumiBlockAcc, nBSErrorsAcc);
243  }
244 
245  categoryErrorMap_t categoryErrorMap;
246  std::array<int, N_REGIONS_INC_GENERAL> nMaskedLinks{};
247  nMaskedLinks.fill(0);
248  for (int errType{0}; errType < SCT_ByteStreamErrors::NUM_ERROR_TYPES; ++errType) {
249  fillByteStreamErrorsHelper(m_byteStreamErrTool->getErrorSet(errType, ctx), errType, categoryErrorMap, nMaskedLinks);
250  }
251  for (int reg{0}; reg<N_REGIONS_INC_GENERAL; reg++) {
252  m_nMaskedLinks[reg] = nMaskedLinks[reg];
253  }
255  std::vector<int> vEta;
256  std::vector<int> vPhi;
257  std::vector<bool> vHasError;
258  for (int errCate{0}; errCate < CategoryErrors::N_ERRCATEGORY; ++errCate) {
259  auto lumiBlockAcc{Monitored::Scalar<int>("lumiBlock", pEvent->lumiBlock())};
260  auto nCategoryErrorsAcc{Monitored::Scalar<int>("n_"+CategoryErrorsNames[errCate],
261  categoryErrorMap.count(errCate))};
262  fill("SCTErrMonitor", lumiBlockAcc, nCategoryErrorsAcc);
263 
264  for (int iReg{0}; iReg<N_REGIONS; iReg++) {
265  const int maxLayer{iReg==BARREL_INDEX ? N_BARRELSx2 : N_ENDCAPSx2};
266  const int firstEta{iReg==BARREL_INDEX ? FIRST_ETA_BIN : FIRST_ETA_BIN_EC};
267  const int lastEta{iReg==BARREL_INDEX ? LAST_ETA_BIN : LAST_ETA_BIN_EC};
268  const int firstPhi{iReg==BARREL_INDEX ? FIRST_PHI_BIN : FIRST_PHI_BIN_EC};
269  const int lastPhi{iReg==BARREL_INDEX ? LAST_PHI_BIN : LAST_PHI_BIN_EC};
270  const size_t size{static_cast<size_t>((lastEta-firstEta+1)*(lastPhi-firstPhi+1))};
271  for (int iLay{0}; iLay<maxLayer; iLay++) {
272  vEta.resize(size);
273  vPhi.resize(size);
274  vHasError.resize(size);
275  for (int eta{firstEta}; eta<=lastEta; eta++) {
276  const int iEta{eta-firstEta};
277  for (int phi{firstPhi}; phi<=lastPhi; phi++) {
278  const int iPhi{phi-firstPhi};
279  size_t index{static_cast<size_t>(iEta*(lastPhi-firstPhi+1)+iPhi)};
280  vEta[index] = eta;
281  vPhi[index] = phi;
282  vHasError[index] = categoryErrorMap[errCate][iReg][iLay][iEta][iPhi];
283  }
284  }
285  auto etaAcc{Monitored::Collection("eta", vEta)};
286  auto phiAcc{Monitored::Collection("phi", vPhi)};
287  auto hasErrorAcc{Monitored::Collection("hasError_"+CategoryErrorsNames[errCate]+"_"+subDetNameShort[iReg].Data()+"_"+std::to_string(iLay/2)+"_"+std::to_string(iLay%2),
288  vHasError)};
289  fill("SCTErrMonitor", etaAcc, phiAcc, hasErrorAcc);
290 
291  if (m_doOnline and CategoryErrorsNames[errCate] == "Errors"){
292  auto hasErrorRecentAcc{Monitored::Collection("hasError_"+CategoryErrorsNames[errCate]+"_recent_"+subDetNameShort[iReg].Data()+"_"+std::to_string(iLay/2)+"_"+std::to_string(iLay%2),vHasError)};
293  fill("SCTErrMonitor", etaAcc, phiAcc, hasErrorRecentAcc);
294  }
295  }
296  }
297  }
298 
299 
300  bool doCoverage = false;
301  {
302  std::lock_guard<std::mutex> lock(m_mutex);
303  if (not (m_procLB.find(pEvent->lumiBlock()) != m_procLB.end() and m_coverageCheckOnlyFirtsEventOfLB) ) {
304  m_procLB.insert(pEvent->lumiBlock());
305  doCoverage = m_coverageCheck;
306  }
307  }
308 
309  // Coverage check is time consuming and run at the first event of each lumi block.
310  if (doCoverage) {
311  ATH_MSG_DEBUG("Detector Coverage calculation starts" );
312 
313  static const std::string names[numberOfProblemForCoverage] = {
314  "SCT_AllRegion", // All
315  "SCT_MapOfDisabledLinks", // Disabled
316  "SCT_MapOfLinksWithBadLinkLevelErrors", // BadLinkLevelError
317  "SCT_MapOfLinksWithBadRODLevelErrors", // BadRODLevelError
318  "SCT_MapOfLinksWithBadErrors", // BadError
319  "SCT_MapOfLinksWithPSTrip", // PSTrip (DCS)
320  "SCT_MapOfLinksWithAnyProbelm" // Summary
321  };
322  static const std::string titles[numberOfProblemForCoverage] = {
323  "Map of All Region", // All
324  "Map of Disabled Links", // Disabled
325  "Map of Links with bad LinkLevelErrors", // BadLinkLevelError
326  "Map of Links with Bad RODLevelErrors", // BadRODLevelError
327  "Map of Links with Bad Errors", // BadError
328  "Map of Links Affected by PS Trip", // PSTrip (DCS)
329  "Map of Links with Any Bad Problem" // Summary
330  };
331 
332  std::lock_guard<std::mutex> lock{m_mutex};
333  CacheEntry* ent{m_cache.get(ctx)};
334  if (ent->m_evt!=ctx.evt()) { // New event in this slot
335  if (ent->m_mapSCT.empty()) { // First event
336  for (int iProblem{0}; iProblem<numberOfProblemForCoverage; iProblem++) {
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");
341  }
342  } else {
343  for (int iProblem{0}; iProblem<numberOfProblemForCoverage; iProblem++) {
344  ent->m_mapSCT[iProblem].Reset(); // Initialize histograms every event
345  }
346  }
347  ent->m_evt = ctx.evt();
348  }
349 
350  std::set<IdentifierHash> sctHash[numberOfProblemForCoverage]{{}};
351  disabledSCT(sctHash[disabled]);
352  errorSCT(sctHash[badLinkError], sctHash[badRODError], sctHash[badError]);
353  summarySCT(sctHash[allRegion], sctHash[summary]);
354  float psTripModules{0.};
355  psTripDCSSCT(sctHash[psTripDCS], psTripModules);
356 
357  sctHash[summary].clear();
358  sctHash[summary].insert(sctHash[disabled].begin(),sctHash[disabled].end()); // disabled
359  sctHash[summary].insert(sctHash[badError].begin(),sctHash[badError].end()); // bad error = bad link error + bad rod error
360  sctHash[summary].insert(sctHash[psTripDCS].begin(),sctHash[psTripDCS].end()); // pstrip
361 
362  for (int iProblem{0}; iProblem<numberOfProblemForCoverage; iProblem++) {
363  for (const IdentifierHash& hash: sctHash[iProblem]) {
364  fillWafer(m_geo[hash], ent->m_mapSCT[iProblem]);
365  }
366 
367  if (iProblem==allRegion) continue;
368 
369  double detector_coverage{calculateDetectorCoverage(ent->m_mapSCT[iProblem], ent->m_mapSCT[allRegion])};
371  auto lumiBlockAcc{Monitored::Scalar<int>("lumiBlock", pEvent->lumiBlock())};
372  auto detectorCoverageAcc{Monitored::Scalar<double>("detectorCoverage"+coverageVarNames[iProblem], detector_coverage)};
373  fill("SCTErrMonitor", lumiBlockAcc, detectorCoverageAcc);
374 
375  if (iProblem==summary) {
376  auto detectorCoverageR4PAcc{Monitored::Scalar<double>("detectorCoverage"+coverageVarNames[iProblem]+"InR4P", detector_coverage)};
377  bool atlasReady = m_atlasReadyFilter->accept();
378  if(atlasReady) {
379  fill("SCTErrMonitor", lumiBlockAcc, detectorCoverageR4PAcc);
380  }
381  }
382  }
383 
385  // Modules affected by PS Tirp
386  auto lumiBlockAcc{Monitored::Scalar<int>("lumiBlock", pEvent->lumiBlock())};
387  auto psTripModulesAcc{Monitored::Scalar<int>("psTripModules", psTripModules)};
388  fill("SCTErrMonitor", lumiBlockAcc, psTripModulesAcc);
389 
390  }
391 
392  return StatusCode::SUCCESS;
393 }

◆ fillByteStreamErrorsHelper()

int SCTErrMonAlg::fillByteStreamErrorsHelper ( const std::set< IdentifierHash > &  errors,
int  err_type,
categoryErrorMap_t categoryErrorMap,
std::array< int, SCT_Monitoring::N_REGIONS_INC_GENERAL > &  nMaskedLinks 
) const
private

Used in fillByteStreamErrors()

Fill /run_x/lb_y/SCT/SCT*‍/RateErrorsPerLumi ///

Definition at line 396 of file SCTErrMonAlg.cxx.

399  {
400  //--- Check categories of the BS error
401  std::array<bool, CategoryErrors::N_ERRCATEGORY> b_category{};
402  b_category.fill(false);
403 
404  // Error summaries
405  b_category[CategoryErrors::MASKEDLINKALL] =
406  (err_type == SCT_ByteStreamErrors::MaskedLink) or (err_type == SCT_ByteStreamErrors::MaskedROD);
407 
408  b_category[CategoryErrors::SUMMARY] = true;
409 
410  b_category[CategoryErrors::BADERR] = false;
411  for (SCT_ByteStreamErrors::ErrorType tmpBadError: SCT_ByteStreamErrors::BadErrors) {
412  if (err_type == tmpBadError) {
413  b_category[CategoryErrors::BADERR] = true;
414  break;
415  }
416  }
417 
418  b_category[CategoryErrors::LINKLEVEL] = false;
419  for (SCT_ByteStreamErrors::ErrorType linkLevelError: SCT_ByteStreamErrors::LinkLevelErrors) {
420  if (err_type == linkLevelError) {
421  b_category[CategoryErrors::LINKLEVEL] = true;
422  break;
423  }
424  }
425 
426  b_category[CategoryErrors::RODLEVEL] = false;
427  for (SCT_ByteStreamErrors::ErrorType rodLevelError: SCT_ByteStreamErrors::RodLevelErrors) {
428  if (err_type == rodLevelError) {
429  b_category[CategoryErrors::RODLEVEL] = true;
430  break;
431  }
432  }
433 
434  b_category[CategoryErrors::MASKEDCHIP] =
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);
438 
439  // Each error
440  b_category[CategoryErrors::BYTESTREAMPARSEERROR] = (err_type == SCT_ByteStreamErrors::ByteStreamParseError);
441  b_category[CategoryErrors::TIMEOUTERROR] = (err_type == SCT_ByteStreamErrors::TimeOutError);
443  b_category[CategoryErrors::LVL1IDERROR] = (err_type == SCT_ByteStreamErrors::LVL1IDError);
444  b_category[CategoryErrors::PREAMBLEERROR] = (err_type == SCT_ByteStreamErrors::PreambleError);
445  b_category[CategoryErrors::FORMATTERERROR] = (err_type == SCT_ByteStreamErrors::FormatterError);
446  b_category[CategoryErrors::TRAILERERROR] = (err_type == SCT_ByteStreamErrors::TrailerError);
447  b_category[CategoryErrors::TRAILEROVERFLOWERROR] = (err_type == SCT_ByteStreamErrors::TrailerOverflowError);
448  b_category[CategoryErrors::HEADERTRAILERLIMITERROR] = (err_type == SCT_ByteStreamErrors::HeaderTrailerLimitError);
449  b_category[CategoryErrors::ABCDERROR] = (err_type == SCT_ByteStreamErrors::ABCDError);
450  b_category[CategoryErrors::RAWERROR] = (err_type == SCT_ByteStreamErrors::RawError);
451  b_category[CategoryErrors::MASKEDLINK] = (err_type == SCT_ByteStreamErrors::MaskedLink);
452  b_category[CategoryErrors::RODCLOCKERROR] = (err_type == SCT_ByteStreamErrors::RODClockError);
453  b_category[CategoryErrors::TRUNCATEDROD] = (err_type == SCT_ByteStreamErrors::TruncatedROD);
454  b_category[CategoryErrors::ROBFRAGMENTERROR] = (err_type == SCT_ByteStreamErrors::ROBFragmentError);
455  b_category[CategoryErrors::MISSINGLINKHEADERERROR] = (err_type == SCT_ByteStreamErrors::MissingLinkHeaderError);
456  b_category[CategoryErrors::MASKEDROD] = (err_type == SCT_ByteStreamErrors::MaskedROD);
457  b_category[CategoryErrors::ABCDERROR_CHIP0] = (err_type == SCT_ByteStreamErrors::ABCDError_Chip0);
458  b_category[CategoryErrors::ABCDERROR_CHIP1] = (err_type == SCT_ByteStreamErrors::ABCDError_Chip1);
459  b_category[CategoryErrors::ABCDERROR_CHIP2] = (err_type == SCT_ByteStreamErrors::ABCDError_Chip2);
460  b_category[CategoryErrors::ABCDERROR_CHIP3] = (err_type == SCT_ByteStreamErrors::ABCDError_Chip3);
461  b_category[CategoryErrors::ABCDERROR_CHIP4] = (err_type == SCT_ByteStreamErrors::ABCDError_Chip4);
462  b_category[CategoryErrors::ABCDERROR_CHIP5] = (err_type == SCT_ByteStreamErrors::ABCDError_Chip5);
463  b_category[CategoryErrors::ABCDERROR_ERROR1] = (err_type == SCT_ByteStreamErrors::ABCDError_Error1);
464  b_category[CategoryErrors::ABCDERROR_ERROR2] = (err_type == SCT_ByteStreamErrors::ABCDError_Error2);
465  b_category[CategoryErrors::ABCDERROR_ERROR4] = (err_type == SCT_ByteStreamErrors::ABCDError_Error4);
466  b_category[CategoryErrors::TEMPMASKEDCHIP0] = (err_type == SCT_ByteStreamErrors::TempMaskedChip0);
467  b_category[CategoryErrors::TEMPMASKEDCHIP1] = (err_type == SCT_ByteStreamErrors::TempMaskedChip1);
468  b_category[CategoryErrors::TEMPMASKEDCHIP2] = (err_type == SCT_ByteStreamErrors::TempMaskedChip2);
469  b_category[CategoryErrors::TEMPMASKEDCHIP3] = (err_type == SCT_ByteStreamErrors::TempMaskedChip3);
470  b_category[CategoryErrors::TEMPMASKEDCHIP4] = (err_type == SCT_ByteStreamErrors::TempMaskedChip4);
471  b_category[CategoryErrors::TEMPMASKEDCHIP5] = (err_type == SCT_ByteStreamErrors::TempMaskedChip5);
472  b_category[CategoryErrors::ABCDERROR_ERROR7] = (err_type == SCT_ByteStreamErrors::ABCDError_Error7);
473  b_category[CategoryErrors::ABCDERROR_INVALID] = (err_type == SCT_ByteStreamErrors::ABCDError_Invalid);
474  b_category[CategoryErrors::RODSIMULATEDDATA] = (err_type == SCT_ByteStreamErrors::RODSimulatedData);
475 
476  std::vector<int> numErrorsPerLumi[N_REGIONS];
477  if (m_doPerLumiErrors) {
478  for (int reg{0}; reg<N_REGIONS; reg++) {
479  const int nLayers{n_layers[reg]*2};
480  numErrorsPerLumi[reg].resize(nLayers, 0);
481  }
482  }
483 
484  //--- Count BS errors
485  int nerrors{0};
486  for (const auto& hash: errors) {
487  nerrors++;
488  if (not hash.is_valid()) continue;
489 
490  //--- FIll module information with BS error
491  const Identifier fitId{m_pSCTHelper->wafer_id(hash)};
492  int layer{m_pSCTHelper->layer_disk(fitId)};
493  int side{m_pSCTHelper->side(fitId)};
494  int barrel_ec{m_pSCTHelper->barrel_ec(fitId)};
495  int ieta{m_pSCTHelper->eta_module(fitId)};
496  int iphi{m_pSCTHelper->phi_module(fitId)};
497  layer = layer * 2 + side;
498  // barrel_ec = {ENDCAP_C=-2, BARREL=0, ENDCAP_A=2}
499  // -> regionIndex = {ENDCAP_C_INDEX=0, BARREL_INDEX=1, ENDCAP_A_INDEX=2, GENERAL_INDEX=3}
500  int regionIndex{GENERAL_INDEX};
501  if ((barrel_ec == BARREL) and (layer >= 0) and (layer < N_BARRELSx2)) regionIndex = BARREL_INDEX;
502  else if (barrel_ec == ENDCAP_A) regionIndex = ENDCAP_A_INDEX;
503  else if (barrel_ec == ENDCAP_C) regionIndex = ENDCAP_C_INDEX;
504 
505  // Take into account offsets
506  ieta -= ((regionIndex==BARREL_INDEX) ? FIRST_ETA_BIN : FIRST_ETA_BIN_EC);
507  iphi -= ((regionIndex==BARREL_INDEX) ? FIRST_PHI_BIN : FIRST_PHI_BIN_EC);
508 
509  if (b_category[CategoryErrors::MASKEDLINKALL]) {
510  nMaskedLinks[GENERAL_INDEX]++;
511  if (regionIndex!=GENERAL_INDEX) {
512  nMaskedLinks[regionIndex]++;
513  }
514  }
515 
516  if (m_doPerLumiErrors) numErrorsPerLumi[regionIndex][layer]++;
517 
518  for (int errCate{0}; errCate < CategoryErrors::N_ERRCATEGORY; ++errCate) {
519  if (b_category[errCate] and regionIndex!=GENERAL_INDEX) {
520  categoryErrorMap[errCate][regionIndex][layer][ieta][iphi] = true;
521  }
522  }
523  }
524 
525  if (m_doPerLumiErrors) {
526  std::size_t size{static_cast<size_t>(N_REGIONS*n_layers[ENDCAP_C_INDEX]*N_SIDES)};
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);
536  vIsEC.reserve(size);
537  vIsB.reserve(size);
538  vIsEA.reserve(size);
539  for (int reg{0}; reg<N_REGIONS; reg++) {
540  const int nLayers{n_layers[reg]*N_SIDES};
541  for (int layerSide{0}; layerSide<nLayers; layerSide++) {
542  float num_modules{static_cast<float>(getNumModules(index2Bec(reg), 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);
547  vIsEC.push_back(reg==ENDCAP_C_INDEX);
548  vIsB.push_back(reg==BARREL_INDEX);
549  vIsEA.push_back(reg==ENDCAP_A_INDEX);
550  }
551  }
553  auto errorTypeAcc{Monitored::Collection("errorType", vErrorType)};
554  auto layerSideAcc{Monitored::Collection("layerSide", vLayerSide)};
555  auto errorFractionAcc{Monitored::Collection("errorFraction", vErrorFraction)};
556  auto isECAcc{Monitored::Collection("isEC", vIsEC)};
557  auto isBAcc{Monitored::Collection("isB", vIsB)};
558  auto isEAAcc{Monitored::Collection("isEA", vIsEA)};
559  fill("SCTErrMonitor", errorTypeAcc, layerSideAcc, errorFractionAcc, isECAcc, isBAcc, isEAAcc);
560  }
561 
562  if (b_category[CategoryErrors::SUMMARY]) return nerrors;
563  return 0;
564 }

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

152  {
153  ATH_MSG_DEBUG("Inside fillConfigurationDetails()");
154  unsigned int nBadMods{static_cast<unsigned int>(m_configurationTool->badModules()->size())}; // bad modules
155  const std::map<IdentifierHash, std::pair<bool, bool>>* badLinks{m_configurationTool->badLinks(ctx)}; // bad links
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)) {
160  ++nBadLink0;
161  }
162  if ((status.first == true) and (status.second == false)) {
163  ++nBadLink1;
164  }
165  if ((status.first == false) and (status.second == false)) {
166  ++nBadLinkBoth;
167  }
168  }
169 
170  const std::map<Identifier, unsigned int>* badChips{m_configurationTool->badChips(ctx)}; // bad chips
171  unsigned int nBadChips{0};
172  for (const std::pair<const Identifier, unsigned int>& chip : *badChips) {
173  unsigned int status{chip.second};
174  for (unsigned int i{0}; i < CHIPS_PER_MODULE; i++) {
175  nBadChips += ((status & (1 << i)) == 0 ? 0 : 1);
176  }
177  }
178 
179  std::set<Identifier> badStripsAll; // bad strips
180  m_configurationTool->badStrips(badStripsAll, ctx);
181  unsigned int nBadStrips{static_cast<unsigned int>(badStripsAll.size())};
182 
183  std::set<Identifier> badStripsExclusive; // bad strips w/o bad modules and chips
184  m_configurationTool->badStrips(badStripsExclusive, ctx, true, true);
185  int nBadStripsExclusive{static_cast<int>(badStripsExclusive.size())};
186  int nBadStripsExclusiveBEC[N_REGIONS] = {
187  0, 0, 0
188  };
189  for (const Identifier& strip: badStripsExclusive) {
190  int bec{m_pSCTHelper->barrel_ec(strip)};
191  nBadStripsExclusiveBEC[bec2Index(bec)] += 1;
192  }
193 
195  std::vector<int> vDetailedConfBin(ConfbinsDetailed);
196  std::vector<double> vNBad(ConfbinsDetailed);
197  for (unsigned int i{0}; i<ConfbinsDetailed; i++) {
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.;
204  }
205  auto detailedConfBinAcc{Monitored::Collection("detailedConfBin", vDetailedConfBin)};
206  auto nBadAcc{Monitored::Collection("nBad", vNBad)};
207  fill("SCTErrMonitor", detailedConfBinAcc, nBadAcc);
208 
209  ATH_MSG_DEBUG("-----------------------------------------------------------------------");
210  ATH_MSG_DEBUG("Number of bad modules = " << nBadMods);
211  ATH_MSG_DEBUG("Number of bad link 0 = " << nBadLink0);
212  ATH_MSG_DEBUG("Number of bad link 1 = " << nBadLink1);
213  ATH_MSG_DEBUG("Number of bad link both = " << nBadLinkBoth);
214  ATH_MSG_DEBUG("Number of bad chips = " << nBadChips);
215  ATH_MSG_DEBUG("Number of bad strips = " << nBadStrips);
216  ATH_MSG_DEBUG("Number of bad strips exclusive = " << nBadStripsExclusive);
217  ATH_MSG_DEBUG("Number of bad strips exclusive (ECC, B, ECA) = "
218  << nBadStripsExclusiveBEC[ENDCAP_C_INDEX] << ", "
219  << nBadStripsExclusiveBEC[BARREL_INDEX] << ", "
220  << nBadStripsExclusiveBEC[ENDCAP_A_INDEX] << ", ");
221  ATH_MSG_DEBUG("-----------------------------------------------------------------------");
222 
223  return StatusCode::SUCCESS;
224 }

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

51  {
53  if (not pEvent.isValid()) {
54  ATH_MSG_WARNING("Could not retrieve event info!");
55  return StatusCode::SUCCESS;
56  }
57 
58  bool sctFlag{false};
59  if (pEvent->errorState(xAOD::EventInfo::SCT) == xAOD::EventInfo::Error) {
60  sctFlag = true;
61  }
64  auto lumiBlockAcc{Monitored::Scalar<int>("lumiBlock", pEvent->lumiBlock())};
65  auto is1DAcc{Monitored::Scalar<bool>("is1D", true)};
66  auto sctFlagAcc{Monitored::Scalar<bool>("sctFlag", sctFlag)};
67  fill("SCTErrMonitor", lumiBlockAcc, is1DAcc, sctFlagAcc);
68 
69  // Check wafers with many fired strips (event dependent) using SCT_FlaggedConditionTool.
70  std::array<int, N_REGIONS_INC_GENERAL> flaggedWafersIndices
72  std::array<int, N_REGIONS_INC_GENERAL> nFlaggedWafers{};
73  nFlaggedWafers.fill(0);
74  const unsigned int wafer_hash_max{static_cast<unsigned int>(m_pSCTHelper->wafer_hash_max())};
75  for (unsigned int iHash{0}; iHash<wafer_hash_max; iHash++) {
76  const IdentifierHash hash{iHash};
77  if (not m_flaggedTool->isGood(hash)) {
78  const Identifier wafer_id{m_pSCTHelper->wafer_id(hash)};
79  const unsigned barrel_ec{bec2Index(m_pSCTHelper->barrel_ec(wafer_id))};
80  nFlaggedWafers[barrel_ec]++;
81  nFlaggedWafers[GENERAL_INDEX]++;
82  }
83  }
84  auto flaggedWwafersIndicesAcc{Monitored::Collection("flaggedWafersIndices", flaggedWafersIndices)};
85  auto nFlaggedWafersAcc{Monitored::Collection("nFlaggedWafers", nFlaggedWafers)};
86  fill("SCTErrMonitor", flaggedWwafersIndicesAcc, nFlaggedWafersAcc);
87 
88  if (sctFlag) {
89  return StatusCode::SUCCESS;
90  }
91 
92  // The numbers of disabled modules, links, strips do not change during a run.
93  { //scope for lock
94  std::lock_guard<std::mutex> glock{m_mutex};
98  }
99  }
100 
102 
104  // TODO: fill only at the end of a LB
105  if (m_makeConfHisto) {
106  int moduleOut{0};
109  for (; waferIterator not_eq waferEnd; ++waferIterator) {
110  Identifier waferId{*waferIterator};
111  int layer{m_pSCTHelper->layer_disk(waferId)};
112  int side{m_pSCTHelper->side(waferId)};
113  int eta{m_pSCTHelper->eta_module(waferId)};
114  int phi{m_pSCTHelper->phi_module(waferId)};
115  int barrel_ec{m_pSCTHelper->barrel_ec(waferId)};
116 
117  int reg{BARREL_INDEX};
118  if (barrel_ec == ENDCAP_A) reg = ENDCAP_A_INDEX;
119  if (barrel_ec == ENDCAP_C) reg = ENDCAP_C_INDEX;
120 
121  int IN{m_configurationTool->isGood(waferId, InDetConditions::SCT_SIDE) ? 0 : 1};
122  if (m_pSCTHelper->side(waferId) == 0) { // Use only side 0 to check module level
123  if (IN == 1) {
124  moduleOut++;
125  auto mEtaAcc{Monitored::Scalar<int>("eta_out", eta)};
126  auto mPhiAcc{Monitored::Scalar<int>("phi_out", phi)};
127  auto mOutAcc{Monitored::Scalar<int>(std::string("modulemap")+subDetNameShort[reg].Data()+std::to_string(layer)+"_"+std::to_string(side), IN)};
128  fill("SCTErrMonitor", mEtaAcc, mPhiAcc, mOutAcc);
129  }
130  }
131  }
132  auto moduleOutBinAcc{Monitored::Scalar<int>("moduleOutBin", 0)};
133  auto moduleOutAcc{Monitored::Scalar<int>("moduleOut", moduleOut)};
134  fill("SCTErrMonitor", moduleOutBinAcc, moduleOutAcc);
135  }
136 
137  return StatusCode::SUCCESS;
138 }

◆ fillWafer()

void SCTErrMonAlg::fillWafer ( moduleGeo_t  module,
TH2F &  histo 
) const
private

Definition at line 662 of file SCTErrMonAlg.cxx.

662  {
663  double etaMin{module.first.first}, etaMax{module.first.second};
664  double phiMin{module.second.first}, phiMax{module.second.second};
665  unsigned int nRep{1};
666  if (etaMin<-s_rangeEta) { etaMin = -s_rangeEta; }
667  if (etaMax> s_rangeEta) { etaMax = s_rangeEta; }
668  if (phiMin>phiMax) {
669  phiMin = -M_PI;
670  nRep=2;
671  }
672  for (unsigned int iRep{0}; iRep<nRep; iRep++) {
673  if (iRep==1) {
674  phiMin = module.second.first;
675  phiMax = M_PI;
676  }
677  const int ixMin{static_cast<int>((etaMin/s_rangeEta+1.)*s_nBinsEta/2)+1};
678  const int ixMax{static_cast<int>((etaMax/s_rangeEta+1.)*s_nBinsEta/2)};
679  const int iyMin{static_cast<int>((phiMin/M_PI+1.)*s_nBinsPhi/2)+1};
680  const int iyMax{static_cast<int>((phiMax/M_PI+1.)*s_nBinsPhi/2)};
681  const double xMin{(static_cast<double>(ixMin)/s_nBinsEta*2-1.)*s_rangeEta};
682  const double xMax{(static_cast<double>(ixMax)/s_nBinsEta*2-1.)*s_rangeEta};
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};
685  const double wxMin{(xMin-etaMin)/s_rangeEta*s_nBinsEta/2};
686  const double wxMax{(etaMax-xMax)/s_rangeEta*s_nBinsEta/2};
687  const double wxOne{(etaMax-etaMin)/s_rangeEta*s_nBinsEta/2};
688  const double wyMin{(yMin-phiMin)/M_PI*s_nBinsPhi/2};
689  const double wyMax{(phiMax-yMax)/M_PI*s_nBinsPhi/2};
690  const double wyOne{(phiMax-phiMin)/M_PI*s_nBinsPhi/2};
691  for (int ix{ixMin}; ix<=ixMax+1; ix++) {
692  double weightx{1.};
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++) {
697  double weight{weightx};
698  if (iyMin==iyMax+1) weight *= wyOne;
699  else if (iy==iyMin) weight *= wyMin;
700  else if (iy==iyMax+1) weight *= wyMax;
701  histo.SetBinContent(ix, iy, histo.GetBinContent(ix,iy)+weight); //Fill(ix, iy, weight);//
702  }
703  }
704  }
705  return;
706 }

◆ filterPassed()

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

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96  {
97  return execState( ctx ).filterPassed();
98  }

◆ GetEventInfo()

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

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

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

Definition at line 107 of file AthMonitorAlgorithm.cxx.

107  {
109 }

◆ getGroup()

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

Get a specific monitoring tool from the tool handle array.

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

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

Definition at line 164 of file AthMonitorAlgorithm.cxx.

164  {
165  // get the pointer to the tool, and check that it exists
166  auto idx = m_toolLookupMap.find(name);
167  if (ATH_LIKELY(idx != m_toolLookupMap.end())) {
168  return m_tools[idx->second];
169  }
170  else {
171  // treat empty tool handle case as in Monitored::Group
172  if (m_toolLookupMap.empty()) {
173  return m_dummy;
174  }
175 
176  if (!isInitialized()) {
178  "It seems that the AthMonitorAlgorithm::initialize was not called "
179  "in derived class initialize method");
180  } else {
181  std::string available = std::accumulate(
182  m_toolLookupMap.begin(), m_toolLookupMap.end(), std::string(""),
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 << "}.");
188  }
189  }
190  return m_dummy;
191 }

◆ getTrigDecisionTool()

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

Get the trigger decision tool member.

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

Returns
m_trigDecTool

Definition at line 194 of file AthMonitorAlgorithm.cxx.

194  {
195  return m_trigDecTool;
196 }

◆ initialize()

StatusCode SCTErrMonAlg::initialize ( )
finaloverridevirtual

initialize

Returns
StatusCode

Reimplemented from AthMonitorAlgorithm.

Definition at line 21 of file SCTErrMonAlg.cxx.

21  {
22  ATH_CHECK(detStore()->retrieve(m_pSCTHelper, "SCT_ID"));
23  ATH_CHECK(m_byteStreamErrTool.retrieve());
24  ATH_CHECK(m_configurationTool.retrieve());
25  if (m_useDCS) ATH_CHECK(m_dcsTool.retrieve());
26  else m_dcsTool.disable();
27  ATH_CHECK(m_pSummaryTool.retrieve());
28  ATH_CHECK(m_flaggedTool.retrieve());
29  ATH_CHECK(m_atlasReadyFilter.retrieve());
30  // Retrieve geometrical information
31  const InDetDD::SCT_DetectorManager* sctManager{nullptr};
32  ATH_CHECK(detStore()->retrieve(sctManager, "SCT"));
33  const unsigned int maxHash{static_cast<unsigned int>(m_pSCTHelper->wafer_hash_max())}; // 8176
34  moduleGeo_t moduleGeo; // dummy value
35  m_geo.resize(maxHash, moduleGeo);
36  double rz{0.};
37  const double deltaZ{0.};
38  for (unsigned int i{0}; i<maxHash; i++) {
39  IdentifierHash hash{i};
40  const InDetDD::SiDetectorElement* newElement{sctManager->getDetectorElement(hash)};
41  newElement->getEtaPhiRegion(deltaZ,
42  moduleGeo.first.first, moduleGeo.first.second,
43  moduleGeo.second.first, moduleGeo.second.second,
44  rz);
45  m_geo[i] = moduleGeo;
46  }
47 
49 }

◆ inputHandles()

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

Return this algorithm's input handles.

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

◆ isClonable()

bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::isClonable
overridevirtualinherited

Specify if the algorithm is clonable.

Reentrant algorithms are clonable.

Definition at line 68 of file AthCommonReentrantAlgorithm.cxx.

52 {
53  // Reentrant algorithms are clonable.
54  return true;
55 }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

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

◆ msgLvl()

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

Definition at line 30 of file AthCommonMsg.h.

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

◆ numByteStreamErrors()

void SCTErrMonAlg::numByteStreamErrors ( const std::set< IdentifierHash > &  errors,
int &  ntot 
) const
private

Definition at line 567 of file SCTErrMonAlg.cxx.

567  {
568  for (const auto& fit: errors) {
569  if (fit.is_valid()) {
570  ntot++;
571  }
572  }
573 }

◆ outputHandles()

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

Return this algorithm's output handles.

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

◆ parseList()

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

Parse a string into a vector.

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

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

Definition at line 341 of file AthMonitorAlgorithm.cxx.

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

◆ psTripDCSSCT()

bool SCTErrMonAlg::psTripDCSSCT ( std::set< IdentifierHash > &  sctHashPSTripDCS,
float &  PSTripModules 
) const
private

Definition at line 644 of file SCTErrMonAlg.cxx.

644  {
645  bool altered{false};
646  sctHashPSTripDCS.clear();
647 
648  const unsigned int maxHash{static_cast<unsigned int>(m_pSCTHelper->wafer_hash_max())}; // 8176
649  int npsw{0};
650  for (unsigned int i{0}; i<maxHash; i++) {
651  IdentifierHash hash{i};
652  if (m_useDCS and (not m_dcsTool->isGood(hash))) {
653  npsw++; //Counting the number of PS sides
654  altered = true;
655  sctHashPSTripDCS.insert(hash);
656  }
657  }
658  psTripModules = npsw/2.;
659  return altered;
660 }

◆ renounce()

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

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ setFilterPassed()

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

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100  {
101  execState( ctx ).setFilterPassed( state );
102  }

◆ stop()

StatusCode SCTErrMonAlg::stop ( )
finaloverridevirtual

Fill /SCT/GENERAL/errors/Masked Links only for last event ///

Definition at line 141 of file SCTErrMonAlg.cxx.

141  {
143  std::array<int, N_REGIONS_INC_GENERAL> maskedLinksBin{ENDCAP_C_INDEX, BARREL_INDEX, ENDCAP_A_INDEX, GENERAL_INDEX};
144  auto maskedLinksBinAcc{Monitored::Collection("maskedLinksBin", maskedLinksBin)};
145  auto maskedLinksAcc{Monitored::Collection("maskedLinks", m_nMaskedLinks)};
146  fill("SCTErrMonitor", maskedLinksBinAcc, maskedLinksAcc);
147 
148  return StatusCode::SUCCESS;
149 }

◆ summarySCT()

bool SCTErrMonAlg::summarySCT ( std::set< IdentifierHash > &  sctHashAll,
std::set< IdentifierHash > &  sctHashSummary 
) const
private

Definition at line 625 of file SCTErrMonAlg.cxx.

625  {
626  bool altered{false};
627  sctHashAll.clear();//All
628  sctHashSummary.clear();
629 
630  const EventContext& ctx{Gaudi::Hive::currentContext()};
631 
632  const unsigned int maxHash{static_cast<unsigned int>(m_pSCTHelper->wafer_hash_max())}; // 8176
633  for (unsigned int i{0}; i<maxHash; i++) {
634  IdentifierHash hash{i};
635  sctHashAll.insert(hash);//All
636  if (not m_pSummaryTool->isGood(hash, ctx)) {
637  sctHashSummary.insert(hash);
638  }
639  }
640  return altered;
641 }

◆ sysExecute()

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

Execute an algorithm.

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

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

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

◆ sysInitialize()

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

Override sysInitialize.

Override sysInitialize from the base class.

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

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

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

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

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

◆ sysStart()

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

Handle START transition.

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

◆ trigChainsArePassed()

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

Check whether triggers are passed.

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

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

Definition at line 199 of file AthMonitorAlgorithm.cxx.

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

◆ updateVHKA()

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

Definition at line 308 of file AthCommonDataStore.h.

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

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/3]

SG::SlotSpecificObj<CacheEntry> m_cache SCTErrMonAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 88 of file SCTErrMonAlg.h.

◆ ATLAS_THREAD_SAFE [2/3]

std::array<std::atomic_int, SCT_Monitoring::N_REGIONS_INC_GENERAL> m_nMaskedLinks SCTErrMonAlg::ATLAS_THREAD_SAFE {}
mutableprivate

Definition at line 89 of file SCTErrMonAlg.h.

◆ ATLAS_THREAD_SAFE [3/3]

std::set<uint32_t> m_procLB SCTErrMonAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 91 of file SCTErrMonAlg.h.

◆ m_atlasReadyFilter

ToolHandle<IDQFilterTool> SCTErrMonAlg::m_atlasReadyFilter {this,"ReadyFilterTool","DQAtlasReadyFilterTool/DQAtlasReadyFilterTool", "Tool to retrieve R4P flag"}
private

Definition at line 105 of file SCTErrMonAlg.h.

◆ m_byteStreamErrTool

ToolHandle<ISCT_ByteStreamErrorsTool> SCTErrMonAlg::m_byteStreamErrTool {this, "SCT_ByteStreamErrorsTool", "SCT_ByteStreamErrorsTool/SCT_ByteStreamErrorsTool", "Tool to retrieve SCT ByteStream Errors"}
private

Definition at line 100 of file SCTErrMonAlg.h.

◆ m_configurationTool

ToolHandle<ISCT_ConfigurationConditionsTool> SCTErrMonAlg::m_configurationTool {this, "conditionsTool", "SCT_ConfigurationConditionsTool/InDetSCT_ConfigurationConditionsTool", "Tool to retrieve SCT Configuration Tool"}
private

Definition at line 101 of file SCTErrMonAlg.h.

◆ m_coverageCheck

BooleanProperty SCTErrMonAlg::m_coverageCheck {this, "CoverageCheck", true}
private

Definition at line 94 of file SCTErrMonAlg.h.

◆ m_coverageCheckOnlyFirtsEventOfLB

BooleanProperty SCTErrMonAlg::m_coverageCheckOnlyFirtsEventOfLB {this, "CoverageCheckOnlyFirtsEventOfLB", true}
private

Definition at line 95 of file SCTErrMonAlg.h.

◆ m_dataType

AthMonitorAlgorithm::DataType_t AthMonitorAlgorithm::m_dataType
protectedinherited

Instance of the DataType_t enum.

Definition at line 351 of file AthMonitorAlgorithm.h.

◆ m_dataTypeStr

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

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

Definition at line 353 of file AthMonitorAlgorithm.h.

◆ m_dcsTool

ToolHandle<ISCT_DCSConditionsTool> SCTErrMonAlg::m_dcsTool {this, "SCT_DCSConditionsTool", "SCT_DCSConditionsTool/InDetSCT_DCSConditionsTool", "Tool to retrieve SCT DCS information"}
private

Definition at line 102 of file SCTErrMonAlg.h.

◆ m_defaultLBDuration

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

Default duration of one lumi block.

Definition at line 360 of file AthMonitorAlgorithm.h.

◆ m_detailLevel

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

Sets the level of detail used in the monitoring.

Definition at line 361 of file AthMonitorAlgorithm.h.

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_doOnline

BooleanProperty SCTErrMonAlg::m_doOnline {this, "doOnlineMon", false}
private

Definition at line 98 of file SCTErrMonAlg.h.

◆ m_doPerLumiErrors

BooleanProperty SCTErrMonAlg::m_doPerLumiErrors {this, "DoPerLumiErrors", true, "Do lumi block 2D error histos"}
private

Definition at line 97 of file SCTErrMonAlg.h.

◆ m_DQFilterTools

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

Array of Data Quality filter tools.

Definition at line 341 of file AthMonitorAlgorithm.h.

◆ m_dummy

const ToolHandle<GenericMonitoringTool> AthMonitorAlgorithm::m_dummy
privateinherited

Definition at line 369 of file AthMonitorAlgorithm.h.

◆ m_enforceExpressTriggers

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

Definition at line 372 of file AthMonitorAlgorithm.h.

◆ m_environment

AthMonitorAlgorithm::Environment_t AthMonitorAlgorithm::m_environment
protectedinherited

Instance of the Environment_t enum.

Definition at line 350 of file AthMonitorAlgorithm.h.

◆ m_environmentStr

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

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

Definition at line 352 of file AthMonitorAlgorithm.h.

◆ m_EventInfoKey

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

Key for retrieving EventInfo from StoreGate.

Definition at line 362 of file AthMonitorAlgorithm.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

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

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

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_fileKey

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

Internal Athena name for file.

Definition at line 358 of file AthMonitorAlgorithm.h.

◆ m_flaggedTool

ToolHandle<ISCT_FlaggedConditionTool> SCTErrMonAlg::m_flaggedTool {this, "SCT_FlaggedConditionTool", "SCT_FlaggedConditionTool/InDetSCT_FlaggedConditionTool", "Tool to retrieve bad wafers with many fired strips"}
private

Definition at line 104 of file SCTErrMonAlg.h.

◆ m_geo

std::vector<moduleGeo_t> SCTErrMonAlg::m_geo {}
private

Definition at line 84 of file SCTErrMonAlg.h.

◆ m_isFirstConfigurationDetails

std::atomic_bool SCTErrMonAlg::m_isFirstConfigurationDetails {true}
mutableprivate

Definition at line 86 of file SCTErrMonAlg.h.

◆ m_lbDurationDataKey

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

Definition at line 345 of file AthMonitorAlgorithm.h.

◆ m_lumiDataKey

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

Definition at line 343 of file AthMonitorAlgorithm.h.

◆ m_makeConfHisto

BooleanProperty SCTErrMonAlg::m_makeConfHisto {this, "MakeConfHisto", true}
private

Definition at line 93 of file SCTErrMonAlg.h.

◆ m_mutex

std::mutex SCTErrMonAlg::m_mutex {}
mutableprivate

Definition at line 87 of file SCTErrMonAlg.h.

◆ m_name

std::string AthMonitorAlgorithm::m_name
privateinherited

Definition at line 366 of file AthMonitorAlgorithm.h.

◆ m_pSCTHelper

const SCT_ID* SCTErrMonAlg::m_pSCTHelper {nullptr}
private

Definition at line 107 of file SCTErrMonAlg.h.

◆ m_pSummaryTool

ToolHandle<IInDetConditionsTool> SCTErrMonAlg::m_pSummaryTool {this, "SCT_ConditionsSummaryTool", "SCT_ConditionsSummaryTool/InDetSCT_ConditionsSummaryTool", "Tool to retrieve SCT Conditions summary"}
private

Definition at line 103 of file SCTErrMonAlg.h.

◆ m_toolLookupMap

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

Definition at line 367 of file AthMonitorAlgorithm.h.

◆ m_tools

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

Array of Generic Monitoring Tools.

Definition at line 338 of file AthMonitorAlgorithm.h.

◆ m_trigDecTool

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

Tool to tell whether a specific trigger is passed.

Definition at line 340 of file AthMonitorAlgorithm.h.

◆ m_triggerChainString

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

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

Definition at line 355 of file AthMonitorAlgorithm.h.

◆ m_trigLiveFractionDataKey

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

Definition at line 347 of file AthMonitorAlgorithm.h.

◆ m_useDCS

BooleanProperty SCTErrMonAlg::m_useDCS {this, "UseDCS", true}
private

Definition at line 96 of file SCTErrMonAlg.h.

◆ m_useLumi

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

Allows use of various luminosity functions.

Definition at line 359 of file AthMonitorAlgorithm.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_vTrigChainNames

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

Vector of trigger chain names parsed from trigger chain string.

Definition at line 356 of file AthMonitorAlgorithm.h.

◆ s_nBinsEta

const unsigned int SCTErrMonAlg::s_nBinsEta = 100
staticprivate

Definition at line 79 of file SCTErrMonAlg.h.

◆ s_nBinsPhi

const unsigned int SCTErrMonAlg::s_nBinsPhi = 100
staticprivate

Definition at line 81 of file SCTErrMonAlg.h.

◆ s_rangeEta

const double SCTErrMonAlg::s_rangeEta = 2.5
staticprivate

Definition at line 80 of file SCTErrMonAlg.h.

◆ s_wafersThreshold

const double SCTErrMonAlg::s_wafersThreshold = 4.0
staticprivate

Definition at line 82 of file SCTErrMonAlg.h.


The documentation for this class was generated from the following files:
SCT_Monitoring::ENDCAP_C_INDEX
@ ENDCAP_C_INDEX
Definition: SCT_MonitoringNumbers.h:19
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
SCT_Monitoring::BADERR
@ BADERR
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::badLinkError
@ badLinkError
Definition: SCT_MonitoringNumbers.h:61
SCT_CalibAlgs::bec2Index
unsigned int bec2Index(const int bec)
Definition: SCT_CalibUtilities.cxx:60
SCT_Monitoring::BCIDERROR
@ BCIDERROR
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::ABCDERROR_CHIP4
@ ABCDERROR_CHIP4
Definition: SCT_MonitoringNumbers.h:54
test_pyathena.eta
eta
Definition: test_pyathena.py:10
SCT_Monitoring::TEMPMASKEDCHIP1
@ TEMPMASKEDCHIP1
Definition: SCT_MonitoringNumbers.h:54
SCTErrMonAlg::moduleGeo_t
std::pair< std::pair< double, double >, std::pair< double, double > > moduleGeo_t
Definition: SCTErrMonAlg.h:42
SCTErrMonAlg::m_isFirstConfigurationDetails
std::atomic_bool m_isFirstConfigurationDetails
Definition: SCTErrMonAlg.h:86
SCT_Monitoring::RODSIMULATEDDATA
@ RODSIMULATEDDATA
Definition: SCT_MonitoringNumbers.h:54
AthMonitorAlgorithm::Environment_t::tier0Raw
@ tier0Raw
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
SCT_Monitoring::PREAMBLEERROR
@ PREAMBLEERROR
Definition: SCT_MonitoringNumbers.h:54
get_generator_info.result
result
Definition: get_generator_info.py:21
InDetDD::SCT_DetectorManager
Definition: SCT_DetectorManager.h:49
SCT_Monitoring::N_ENDCAPSx2
@ N_ENDCAPSx2
Definition: SCT_MonitoringNumbers.h:46
SCTErrMonAlg::m_dcsTool
ToolHandle< ISCT_DCSConditionsTool > m_dcsTool
Definition: SCTErrMonAlg.h:102
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
AthMonitorAlgorithm::m_trigDecTool
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
Definition: AthMonitorAlgorithm.h:340
SCTErrMonAlg::m_pSummaryTool
ToolHandle< IInDetConditionsTool > m_pSummaryTool
Definition: SCTErrMonAlg.h:103
SCT_ConditionsData::N_REGIONS
@ N_REGIONS
Definition: SCT_ConditionsParameters.h:28
AthMonitorAlgorithm::Environment_t::tier0
@ tier0
AthMonitorAlgorithm::Environment_t::AOD
@ AOD
SCT_Monitoring::TEMPMASKEDCHIP3
@ TEMPMASKEDCHIP3
Definition: SCT_MonitoringNumbers.h:54
ParticleGun_SamplingFraction.bec
int bec
Definition: ParticleGun_SamplingFraction.py:89
ParticleDataType::Data
@ Data
Definition: Event/EventKernel/EventKernel/IParticle.h:36
SCT_Monitoring::FIRST_ETA_BIN_EC
@ FIRST_ETA_BIN_EC
Definition: SCT_MonitoringNumbers.h:47
SCT_Monitoring::HEADERTRAILERLIMITERROR
@ HEADERTRAILERLIMITERROR
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::TEMPMASKEDCHIP4
@ TEMPMASKEDCHIP4
Definition: SCT_MonitoringNumbers.h:54
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:67
index
Definition: index.py:1
SCT_Monitoring::allRegion
@ allRegion
Definition: SCT_MonitoringNumbers.h:59
SCT_Monitoring::MASKEDCHIP
@ MASKEDCHIP
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::N_ERRCATEGORY
@ N_ERRCATEGORY
Definition: SCT_MonitoringNumbers.h:54
AthMonitorAlgorithm::m_vTrigChainNames
std::vector< std::string > m_vTrigChainNames
Vector of trigger chain names parsed from trigger chain string.
Definition: AthMonitorAlgorithm.h:356
SCT_Monitoring::ABCDERROR_ERROR1
@ ABCDERROR_ERROR1
Definition: SCT_MonitoringNumbers.h:54
SCTErrMonAlg::fillByteStreamErrorsHelper
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()
Definition: SCTErrMonAlg.cxx:396
AthCommonDataStore::renounce
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
Definition: AthCommonDataStore.h:380
AthMonitorAlgorithm::m_EventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
Key for retrieving EventInfo from StoreGate.
Definition: AthMonitorAlgorithm.h:362
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
SCTErrMonAlg::fillWafer
void fillWafer(moduleGeo_t module, TH2F &histo) const
Definition: SCTErrMonAlg.cxx:662
SCT::N_SIDES
constexpr unsigned int N_SIDES
Definition: SCT_ChipUtils.h:16
SCT_Monitoring::LAST_ETA_BIN
@ LAST_ETA_BIN
Definition: SCT_MonitoringNumbers.h:41
SCT_Monitoring::LINKLEVEL
@ LINKLEVEL
Definition: SCT_MonitoringNumbers.h:54
M_PI
#define M_PI
Definition: ActiveFraction.h:11
SCT_Monitoring::FIRST_PHI_BIN_EC
@ FIRST_PHI_BIN_EC
Definition: SCT_MonitoringNumbers.h:48
SCT_Monitoring::TRAILERERROR
@ TRAILERERROR
Definition: SCT_MonitoringNumbers.h:54
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
xAOD::etaMax
etaMax
Definition: HIEventShape_v2.cxx:46
SCT_Monitoring::N_BARRELSx2
@ N_BARRELSx2
Definition: SCT_MonitoringNumbers.h:43
SCTErrMonAlg::errorSCT
bool errorSCT(std::set< IdentifierHash > &sctHashBadLinkError, std::set< IdentifierHash > &sctHashBadRODError, std::set< IdentifierHash > &sctHashBadError) const
Definition: SCTErrMonAlg.cxx:591
SCT_Monitoring::MASKEDROD
@ MASKEDROD
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::ABCDERROR_INVALID
@ ABCDERROR_INVALID
Definition: SCT_MonitoringNumbers.h:54
AthMonitorAlgorithm::m_toolLookupMap
std::unordered_map< std::string, size_t > m_toolLookupMap
Definition: AthMonitorAlgorithm.h:367
AthMonitorAlgorithm::m_environment
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.
Definition: AthMonitorAlgorithm.h:350
SCT_ID::const_id_iterator
std::vector< Identifier >::const_iterator const_id_iterator
Definition: SCT_ID.h:73
SCTErrMonAlg::m_pSCTHelper
const SCT_ID * m_pSCTHelper
Definition: SCTErrMonAlg.h:107
SCT_ID::wafer_begin
const_id_iterator wafer_begin() const
Iterators over full set of ids. Wafer iterator is sorted.
Definition: SCT_ID.cxx:655
SCT_ID::barrel_ec
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
Definition: SCT_ID.h:728
SCT_ID::wafer_end
const_id_iterator wafer_end() const
Definition: SCT_ID.cxx:659
cosmics
Definition: cosmics.py:1
SCT_Monitoring::BARREL_INDEX
@ BARREL_INDEX
Definition: SCT_MonitoringNumbers.h:19
python.RatesEmulationExample.lock
lock
Definition: RatesEmulationExample.py:148
SCT_ID::phi_module
int phi_module(const Identifier &id) const
Definition: SCT_ID.h:740
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SCTErrMonAlg::psTripDCSSCT
bool psTripDCSSCT(std::set< IdentifierHash > &sctHashPSTripDCS, float &PSTripModules) const
Definition: SCTErrMonAlg.cxx:644
InDetDD::SolidStateDetectorElementBase::getEtaPhiRegion
void getEtaPhiRegion(double deltaZ, double &etaMin, double &etaMax, double &phiMin, double &phiMax, double &rz) const
Method for building up region of interest table.
Definition: SolidStateDetectorElementBase.cxx:140
SCT_Monitoring::ABCDERROR
@ ABCDERROR
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::badRODError
@ badRODError
Definition: SCT_MonitoringNumbers.h:62
dq_defect_bulk_create_defects.line
line
Definition: dq_defect_bulk_create_defects.py:27
SCT_Monitoring::TEMPMASKEDCHIP2
@ TEMPMASKEDCHIP2
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::BYTESTREAMPARSEERROR
@ BYTESTREAMPARSEERROR
Definition: SCT_MonitoringNumbers.h:54
SCTErrMonAlg::disabledSCT
bool disabledSCT(std::set< IdentifierHash > &sctHashDisabled) const
Definition: SCTErrMonAlg.cxx:575
AthMonitorAlgorithm::trigChainsArePassed
bool trigChainsArePassed(const std::vector< std::string > &vTrigNames) const
Check whether triggers are passed.
Definition: AthMonitorAlgorithm.cxx:199
AthMonitorAlgorithm::Environment_t::user
@ user
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:92
SCTErrMonAlg::m_mutex
std::mutex m_mutex
Definition: SCTErrMonAlg.h:87
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
Monitored::Collection
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
Definition: MonitoredCollection.h:38
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthMonitorAlgorithm::m_dummy
const ToolHandle< GenericMonitoringTool > m_dummy
Definition: AthMonitorAlgorithm.h:369
xAOD::EventInfo_v1::Error
@ Error
The sub-detector issued an error.
Definition: EventInfo_v1.h:349
SCTErrMonAlg::s_wafersThreshold
static const double s_wafersThreshold
Definition: SCTErrMonAlg.h:82
SCT_Monitoring::ABCDERROR_ERROR2
@ ABCDERROR_ERROR2
Definition: SCT_MonitoringNumbers.h:54
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:190
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
TRT::Hit::side
@ side
Definition: HitInfo.h:83
SCT_Monitoring::RAWERROR
@ RAWERROR
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::index2Bec
Bec index2Bec(const unsigned int i)
Conversion index->bec.
Definition: SCT_MonitoringNumbers.h:29
xAOD::phi
setEt phi
Definition: TrigEMCluster_v1.cxx:29
SCT_Monitoring::ENDCAP_A_INDEX
@ ENDCAP_A_INDEX
Definition: SCT_MonitoringNumbers.h:19
SCTErrMonAlg::m_geo
std::vector< moduleGeo_t > m_geo
Definition: SCTErrMonAlg.h:84
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
PyPoolBrowser.item
item
Definition: PyPoolBrowser.py:129
python.PyAthena.module
module
Definition: PyAthena.py:131
SCT_Monitoring::numberOfProblemForCoverage
@ numberOfProblemForCoverage
Definition: SCT_MonitoringNumbers.h:66
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
SCTErrMonAlg::m_doPerLumiErrors
BooleanProperty m_doPerLumiErrors
Definition: SCTErrMonAlg.h:97
SCT_Monitoring::ROBFRAGMENTERROR
@ ROBFRAGMENTERROR
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::N_REGIONS_INC_GENERAL
@ N_REGIONS_INC_GENERAL
Definition: SCT_MonitoringNumbers.h:19
TileSynchronizeBch.online
online
Definition: TileSynchronizeBch.py:88
AthCommonReentrantAlgorithm::extraOutputDeps
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Definition: AthCommonReentrantAlgorithm.cxx:89
SCT_Monitoring::ABCDERROR_CHIP3
@ ABCDERROR_CHIP3
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::LAST_ETA_BIN_EC
@ LAST_ETA_BIN_EC
Definition: SCT_MonitoringNumbers.h:47
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthMonitorAlgorithm::m_DQFilterTools
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Array of Data Quality filter tools.
Definition: AthMonitorAlgorithm.h:341
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
SCT_ID::wafer_hash_max
size_type wafer_hash_max() const
Definition: SCT_ID.cxx:646
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
SCT_Monitoring::psTripDCS
@ psTripDCS
Definition: SCT_MonitoringNumbers.h:64
lumiFormat.i
int i
Definition: lumiFormat.py:85
SCT_Monitoring::CategoryErrors
CategoryErrors
Definition: SCT_MonitoringNumbers.h:54
mergePhysValFiles.errors
list errors
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:42
SCT_Monitoring::ABCDERROR_CHIP2
@ ABCDERROR_CHIP2
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::TRUNCATEDROD
@ TRUNCATEDROD
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::RODLEVEL
@ RODLEVEL
Definition: SCT_MonitoringNumbers.h:54
AthMonitorAlgorithm::DataType_t::heavyIonCollisions
@ heavyIonCollisions
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
python.subdetectors.mmg.names
names
Definition: mmg.py:8
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
SCT_Monitoring::TRAILEROVERFLOWERROR
@ TRAILEROVERFLOWERROR
Definition: SCT_MonitoringNumbers.h:54
tolower
void tolower(std::string &s)
Definition: AthenaSummarySvc.cxx:108
python.CaloAddPedShiftConfig.str
str
Definition: CaloAddPedShiftConfig.py:42
AthMonitorAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const =0
adds event to the monitoring histograms
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
SCTErrMonAlg::fillByteStreamErrors
StatusCode fillByteStreamErrors(const EventContext &ctx) const
Definition: SCTErrMonAlg.cxx:227
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
SCT_Monitoring::SUMMARY
@ SUMMARY
Definition: SCT_MonitoringNumbers.h:54
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
DeMoScan.atlasReady
dictionary atlasReady
Definition: DeMoScan.py:207
SCTErrMonAlg::numByteStreamErrors
void numByteStreamErrors(const std::set< IdentifierHash > &errors, int &ntot) const
Definition: SCTErrMonAlg.cxx:567
SCT_Monitoring::RODCLOCKERROR
@ RODCLOCKERROR
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::disabled
@ disabled
Definition: SCT_MonitoringNumbers.h:60
SCT_ID::wafer_hash
IdentifierHash wafer_hash(const Identifier &wafer_id) const
wafer hash from id - optimized
Definition: SCT_ID.h:492
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
AthMonitorAlgorithm::fill
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
Fills a vector of variables to a group by reference.
SCT_ID::get_other_side
int get_other_side(const IdentifierHash &id, IdentifierHash &other) const
Wafer hash on other side.
Definition: SCT_ID.cxx:444
SCT_Monitoring::ENDCAP_A
@ ENDCAP_A
Definition: SCT_MonitoringNumbers.h:21
SCTErrMonAlg::m_doOnline
BooleanProperty m_doOnline
Definition: SCTErrMonAlg.h:98
SCT_Monitoring::ABCDERROR_ERROR7
@ ABCDERROR_ERROR7
Definition: SCT_MonitoringNumbers.h:54
TRTByteStreamErrors::BCIDError
@ BCIDError
Definition: ITRT_ByteStream_ConditionsSvc.h:19
AthMonitorAlgorithm::m_dataType
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.
Definition: AthMonitorAlgorithm.h:351
MuonValidation_CreateResolutionProfiles.fit
def fit(h, emin, emax)
Definition: MuonValidation_CreateResolutionProfiles.py:69
SCTErrMonAlg::summarySCT
bool summarySCT(std::set< IdentifierHash > &sctHashAll, std::set< IdentifierHash > &sctHashSummary) const
Definition: SCTErrMonAlg.cxx:625
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
AthMonitorAlgorithm::DataType_t::cosmics
@ cosmics
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
AthMonitorAlgorithm::m_tools
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.
Definition: AthMonitorAlgorithm.h:338
SCTErrMonAlg::m_coverageCheck
BooleanProperty m_coverageCheck
Definition: SCTErrMonAlg.h:94
AthMonitorAlgorithm::Environment_t::online
@ online
SCT_Monitoring::GENERAL_INDEX
@ GENERAL_INDEX
Definition: SCT_MonitoringNumbers.h:19
SCT_Monitoring::FIRST_PHI_BIN
@ FIRST_PHI_BIN
Definition: SCT_MonitoringNumbers.h:42
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
AthMonitorAlgorithm::Environment_t::tier0ESD
@ tier0ESD
SCT_ByteStreamErrors::ErrorType
ErrorType
SCT byte stream error type enums used in SCT_RodDecoder, SCT_ByteStreamErrorsTool,...
Definition: SCT_ByteStreamErrors.h:178
AthMonitorAlgorithm::Environment_t::altprod
@ altprod
SCT_Monitoring::TEMPMASKEDCHIP5
@ TEMPMASKEDCHIP5
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::LAST_PHI_BIN
@ LAST_PHI_BIN
Definition: SCT_MonitoringNumbers.h:42
SCT_ID::layer_disk
int layer_disk(const Identifier &id) const
Definition: SCT_ID.h:734
SCT_Monitoring::ENDCAP_C
@ ENDCAP_C
Definition: SCT_MonitoringNumbers.h:21
AthMonitorAlgorithm::m_enforceExpressTriggers
Gaudi::Property< bool > m_enforceExpressTriggers
Definition: AthMonitorAlgorithm.h:372
InDetDD::SiDetectorElement
Definition: SiDetectorElement.h:109
SCTErrMonAlg::s_nBinsEta
static const unsigned int s_nBinsEta
Definition: SCTErrMonAlg.h:79
SCT_Monitoring::ConfbinsDetailed
@ ConfbinsDetailed
Definition: SCT_MonitoringNumbers.h:69
item
Definition: ItemListSvc.h:43
WriteBchToCool.user
user
Definition: WriteBchToCool.py:76
SCT_Monitoring::MASKEDLINK
@ MASKEDLINK
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::TEMPMASKEDCHIP0
@ TEMPMASKEDCHIP0
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::MASKEDLINKALL
@ MASKEDLINKALL
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::ABCDERROR_CHIP1
@ ABCDERROR_CHIP1
Definition: SCT_MonitoringNumbers.h:54
Trk::iPhi
@ iPhi
Definition: ParamDefs.h:47
AthMonitorAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: AthMonitorAlgorithm.cxx:18
ATH_LIKELY
#define ATH_LIKELY(x)
Definition: AthUnlikelyMacros.h:16
SCT_Monitoring::ABCDERROR_ERROR4
@ ABCDERROR_ERROR4
Definition: SCT_MonitoringNumbers.h:54
DeMoScan.index
string index
Definition: DeMoScan.py:362
runIDAlign.accumulate
accumulate
Update flags based on parser line args.
Definition: runIDAlign.py:60
SCTErrMonAlg::m_flaggedTool
ToolHandle< ISCT_FlaggedConditionTool > m_flaggedTool
Definition: SCTErrMonAlg.h:104
SCT_Monitoring::MISSINGLINKHEADERERROR
@ MISSINGLINKHEADERERROR
Definition: SCT_MonitoringNumbers.h:54
a
TList * a
Definition: liststreamerinfos.cxx:10
LArCellBinning.etaMin
etaMin
Definition: LArCellBinning.py:84
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
h
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:108
SCTErrMonAlg::s_rangeEta
static const double s_rangeEta
Definition: SCTErrMonAlg.h:80
SCTErrMonAlg::calculateDetectorCoverage
double calculateDetectorCoverage(const TH2F &histo, const TH2F &histoAll) const
Definition: SCTErrMonAlg.cxx:708
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthMonitorAlgorithm::DataType_t::collisions
@ collisions
SCT_FlaggedCondEnum::NUM_ERROR_TYPES
@ NUM_ERROR_TYPES
Definition: SCT_FlaggedCondEnum.h:28
AthMonitorAlgorithm::m_name
std::string m_name
Definition: AthMonitorAlgorithm.h:366
SCTErrMonAlg::fillConfigurationDetails
StatusCode fillConfigurationDetails(const EventContext &ctx) const
Used in fillHistograms()
Definition: SCTErrMonAlg.cxx:152
SCT_Monitoring::LVL1IDERROR
@ LVL1IDERROR
Definition: SCT_MonitoringNumbers.h:54
SCT_ID::eta_module
int eta_module(const Identifier &id) const
Definition: SCT_ID.h:746
if
if(febId1==febId2)
Definition: LArRodBlockPhysicsV0.cxx:567
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
AthMonitorAlgorithm::AthMonitorAlgorithm
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: AthMonitorAlgorithm.cxx:7
SCTErrMonAlg::m_coverageCheckOnlyFirtsEventOfLB
BooleanProperty m_coverageCheckOnlyFirtsEventOfLB
Definition: SCTErrMonAlg.h:95
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
BARREL
@ BARREL
Definition: TRTRadiatorParameters.h:10
python.SystemOfUnits.s
float s
Definition: SystemOfUnits.py:147
SCTErrMonAlg::m_byteStreamErrTool
ToolHandle< ISCT_ByteStreamErrorsTool > m_byteStreamErrTool
Definition: SCTErrMonAlg.h:100
SCT_Monitoring::LAST_PHI_BIN_EC
@ LAST_PHI_BIN_EC
Definition: SCT_MonitoringNumbers.h:48
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
SCTErrMonAlg::m_useDCS
BooleanProperty m_useDCS
Definition: SCTErrMonAlg.h:96
SCT_ID::side
int side(const Identifier &id) const
Definition: SCT_ID.h:752
SCT_Monitoring::getNumModules
int getNumModules(const int reg, const int layer)
Definition: SCT_MonitoringNumbers.h:99
SCT_Monitoring::FIRST_ETA_BIN
@ FIRST_ETA_BIN
Definition: SCT_MonitoringNumbers.h:41
str
Definition: BTagTrackIpAccessor.cxx:11
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:801
merge.status
status
Definition: merge.py:16
SCT_Monitoring::TIMEOUTERROR
@ TIMEOUTERROR
Definition: SCT_MonitoringNumbers.h:54
SCT_ConditionsData::CHIPS_PER_MODULE
@ CHIPS_PER_MODULE
Definition: SCT_ConditionsParameters.h:20
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
Monitored::Scalar
Declare a monitored scalar variable.
Definition: MonitoredScalar.h:34
SCTErrMonAlg::m_atlasReadyFilter
ToolHandle< IDQFilterTool > m_atlasReadyFilter
Definition: SCTErrMonAlg.h:105
SCT_ID::wafer_id
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
Definition: SCT_ID.h:464
makeComparison.deltaZ
int deltaZ
Definition: makeComparison.py:46
AthMonitorAlgorithm::DataType_t::userDefined
@ userDefined
SCTErrMonAlg::m_configurationTool
ToolHandle< ISCT_ConfigurationConditionsTool > m_configurationTool
Definition: SCTErrMonAlg.h:101
InDetConditions::SCT_SIDE
@ SCT_SIDE
Definition: InDetHierarchy.h:14
plotBeamSpotCompare.histo
histo
Definition: plotBeamSpotCompare.py:414
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
xAOD::iEta
setScale setgFexType iEta
Definition: gFexJetRoI_v1.cxx:77
SCT_Monitoring::badError
@ badError
Definition: SCT_MonitoringNumbers.h:63
SCTErrMonAlg::m_makeConfHisto
BooleanProperty m_makeConfHisto
Definition: SCTErrMonAlg.h:93
SCT_Monitoring::ABCDERROR_CHIP0
@ ABCDERROR_CHIP0
Definition: SCT_MonitoringNumbers.h:54
SCT_Monitoring::FORMATTERERROR
@ FORMATTERERROR
Definition: SCT_MonitoringNumbers.h:54
SCTErrMonAlg::s_nBinsPhi
static const unsigned int s_nBinsPhi
Definition: SCTErrMonAlg.h:81
AthMonitorAlgorithm::DataType_t::monteCarlo
@ monteCarlo
fitman.k
k
Definition: fitman.py:528
xAOD::EventInfo_v1::SCT
@ SCT
The SCT.
Definition: EventInfo_v1.h:333
ServiceHandle< ICondSvc >
collisions
Definition: collisions.py:1
SCT_Monitoring::ABCDERROR_CHIP5
@ ABCDERROR_CHIP5
Definition: SCT_MonitoringNumbers.h:54
Identifier
Definition: IdentifierFieldParser.cxx:14
SCT_Monitoring::summary
@ summary
Definition: SCT_MonitoringNumbers.h:65