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

#include <LArRawChannelMonAlg.h>

Inheritance diagram for LArRawChannelMonAlg:
Collaboration diagram for LArRawChannelMonAlg:

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

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

Public Attributes

 flags = initConfigFlags()
 
 Files
 
 HISTFileName
 
 enableLumiAccess
 
 useTrigger
 
 Type
 
 cfg = CaloRecoCfg(flags)
 
def acc = LArRawChannelMonConfig(flags)
 
 f = open("LArRawChannelMon.pkl", "wb")
 

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::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > MonVarVec_t
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

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

Private Attributes

bool _USE_LEGACY_BINNING_IN_ENDCAPS = True
 
Gaudi::Property< bool > m_monitor_occupancy
 
Gaudi::Property< bool > m_monitor_signal
 
Gaudi::Property< bool > m_monitor_positive_noise
 
Gaudi::Property< bool > m_monitor_negative_noise
 
Gaudi::Property< bool > m_monitor_time
 
Gaudi::Property< bool > m_monitor_quality
 
Gaudi::Property< bool > m_monitor_burst
 
Gaudi::Property< bool > m_monitor_febs
 
Gaudi::Property< bool > m_monitor_feedthroughs
 
Gaudi::Property< bool > m_monitor_detectors
 
Gaudi::Property< std::vector< double > > m_occupancy_thresholds
 
Gaudi::Property< std::vector< double > > m_signal_thresholds
 
Gaudi::Property< std::vector< int > > m_pos_noise_thresholds
 
Gaudi::Property< std::vector< int > > m_neg_noise_thresholds
 
Gaudi::Property< double > m_bcid_signal_threshold
 
Gaudi::Property< short > m_time_threshold
 
Gaudi::Property< unsigned short > m_quality_threshold
 
Gaudi::Property< short > m_noise_threshold
 
Gaudi::Property< std::vector< double > > m_noise_burst_percent_thresholds
 
Gaudi::Property< std::vector< unsigned > > m_noise_burst_nChannel_thresholds
 
Gaudi::Property< std::vector< std::string > > m_noise_streams
 
Gaudi::Property< bool > m_db_and_ofc_only
 
Gaudi::Property< std::vector< std::string > > m_problemsToMask
 
ToolHandleArray< IDQFilterToolm_atlasReady_tools
 
SG::ReadHandleKey< LArRawChannelContainerm_LArRawChannel_container_key
 
const LArOnlineIDm_lar_online_id_ptr {nullptr}
 
LArBadChannelMask m_bcMask
 
SG::ReadCondHandleKey< LArBadChannelContm_bcContKey
 
SG::ReadCondHandleKey< CaloNoisem_noiseKey
 
SG::ReadCondHandleKey< LArOnOffIdMappingm_cablingKey
 
SG::ReadDecorHandleKey< xAOD::EventInfom_larFlagKey {this, "LArStatusFlag", "EventInfo.larFlags", "Key for EventInfo object"}
 
std::array< int, 8 > m_monitoring_tool_index
 
std::vector< int8_t > m_feb_hash_to_detector
 
std::array< uint32_t, 8 > m_det_to_nchannels
 
std::set< std::string > m_noise_streams_set
 
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
 

Detailed Description

Definition at line 32 of file LArRawChannelMonAlg.h.

Member Typedef Documentation

◆ MonVarVec_t

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

Definition at line 365 of file AthMonitorAlgorithm.h.

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ DataType_t

enum AthMonitorAlgorithm::DataType_t
stronginherited

Specifies what type of input data is being monitored.

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

Enumerator
userDefined 
monteCarlo 
collisions 
cosmics 
heavyIonCollisions 

Definition at line 191 of file AthMonitorAlgorithm.h.

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

◆ Environment_t

enum AthMonitorAlgorithm::Environment_t
stronginherited

Specifies the processing environment.

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

Enumerator
user 
online 
tier0 
tier0Raw 
tier0ESD 
AOD 
altprod 

Definition at line 172 of file AthMonitorAlgorithm.h.

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

Constructor & Destructor Documentation

◆ LArRawChannelMonAlg()

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

Definition at line 60 of file LArRawChannelMonAlg.cxx.

62  : AthMonitorAlgorithm(name, pSvcLocator) {
63  using T = decltype(m_det_to_nchannels);
64  static_assert(std::tuple_size_v<T> >= ::NDETECTORS);
65  using U = decltype(m_monitoring_tool_index);
66  static_assert(std::tuple_size_v<U> >= ::NDETECTORS);
67 }

◆ ~LArRawChannelMonAlg()

LArRawChannelMonAlg::~LArRawChannelMonAlg ( )
virtual

Definition at line 70 of file LArRawChannelMonAlg.cxx.

70 {}

Member Function Documentation

◆ cardinality()

unsigned int AthReentrantAlgorithm::cardinality ( ) const
overridevirtualinherited

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

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ dataType()

DataType_t AthMonitorAlgorithm::dataType ( ) const
inlineinherited

Accessor functions for the data type.

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

Definition at line 221 of file AthMonitorAlgorithm.h.

221 { return m_dataType; }

◆ dataTypeStringToEnum()

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

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

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

Definition at line 140 of file AthMonitorAlgorithm.cxx.

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

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

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

◆ declareGaudiProperty() [4/4]

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

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

Definition at line 199 of file AthCommonDataStore.h.

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

◆ declareProperty() [1/6]

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

Declare a new Gaudi property.

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

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

Definition at line 245 of file AthCommonDataStore.h.

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

◆ declareProperty() [2/6]

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

Declare a new Gaudi property.

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

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

Definition at line 221 of file AthCommonDataStore.h.

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

◆ declareProperty() [3/6]

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

Definition at line 259 of file AthCommonDataStore.h.

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

◆ declareProperty() [4/6]

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

Declare a new Gaudi property.

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

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

Definition at line 333 of file AthCommonDataStore.h.

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

◆ declareProperty() [5/6]

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

Declare a new Gaudi property.

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

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

Definition at line 352 of file AthCommonDataStore.h.

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

◆ declareProperty() [6/6]

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

Definition at line 145 of file AthCommonDataStore.h.

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

◆ detStore()

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

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

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ environment()

Environment_t AthMonitorAlgorithm::environment ( ) const
inlineinherited

Accessor functions for the environment.

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

Definition at line 205 of file AthMonitorAlgorithm.h.

205 { return m_environment; }

◆ envStringToEnum()

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

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

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

Definition at line 112 of file AthMonitorAlgorithm.cxx.

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

◆ evtStore() [1/2]

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

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

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

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

Applies filters and trigger requirements.

Then, calls fillHistograms().

Parameters
ctxevent context for reentrant Athena call
Returns
StatusCode

Definition at line 73 of file AthMonitorAlgorithm.cxx.

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

◆ extraDeps_update_handler()

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

Add StoreName to extra input/output deps as needed.

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

◆ extraOutputDeps()

const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 79 of file AthReentrantAlgorithm.cxx.

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

◆ fillHistograms()

StatusCode LArRawChannelMonAlg::fillHistograms ( const EventContext &  ctx) const
overridevirtual

adds event to the monitoring histograms

User will overwrite this function. Histogram booking is no longer done in C++. This function is called in execute once the filters are all passed.

Parameters
ctxforwarded from execute
Returns
StatusCode

Implements AthMonitorAlgorithm.

Definition at line 155 of file LArRawChannelMonAlg.cxx.

156 {
157  ATH_MSG_DEBUG("===> start " << name() << "::fillHistograms() <=== ");
158 
159  // Retrieve raw channels
162  if (!raw_channels.isValid()) {
163  ATH_MSG_WARNING("Cannot retrieve LArRawChannelContainer with key: "
165  return StatusCode::SUCCESS;
166  }
167 
168  const bool is_atlas_ready = std::all_of(
169  m_atlasReady_tools.begin(),
170  m_atlasReady_tools.end(),
171  [](auto &f) { return f->accept(); });
172 
174  int bcid{0}, lumi_block{0};
175  bool larNoisyROAlg_flag{false};
176  bool larNoisyROAlgInTimeW_flag{false};
177  bool larNoisyROAlg_W_flag{false};
178  bool noisy_event{false};
179  if (event_info.isValid()) {
180  auto checkEventFlag = [&](auto bitinfo, const char *txt) {
181  bool flag = event_info->isEventFlagBitSet(
182  xAOD::EventInfo::LAr, bitinfo);
183  if (flag) ATH_MSG_DEBUG(" !!! Noisy event found " << txt << " !!!");
184  return flag; };
185  larNoisyROAlg_flag = checkEventFlag(
186  LArEventBitInfo::BADFEBS, "from LArNoisyROAlg");
187  larNoisyROAlg_W_flag = checkEventFlag(
188  LArEventBitInfo::BADFEBS_W, "from LArNoisyROAlg_W");
189  larNoisyROAlgInTimeW_flag = checkEventFlag(
190  3, "by LArNoisyROAlg in Time window of 500ms");
191  bcid = event_info->bcid();
192  lumi_block = event_info->lumiBlock();
193 
194  const auto &tags = event_info->streamTags();
195  auto inSet = [&](auto &x){ return m_noise_streams_set.count(x.name()); };
196  noisy_event = m_noise_streams_set.empty()
197  || std::any_of(tags.begin(), tags.end(), inSet);
198  } else {
199  ATH_MSG_DEBUG("Cannot retrieve EventInfo");
200  }
201 
202  std::array<uint32_t, ::NDETECTORS> det_n_noisy_channels{};
203  std::array<uint32_t, ::NDETECTORS> det_n_noisy_channels_Neg{};
204  std::array<uint32_t, ::NDETECTORS> det_n_badQ_channels{};
205  using wsum_t = std::complex<double>;
206  wsum_t event_mean_time{};
207  std::array<wsum_t, ::NDETECTORS> mean_detector_times;
208  std::vector<wsum_t> mean_feb_times(m_feb_hash_to_detector.size(), 0.);
209  std::array<double, ::NDETECTORS> per_detector_total_energy{};
210  int8_t lastdet{::UNDEF};
211  ToolHandle<GenericMonitoringTool> monitoring{nullptr};
215  ATH_CHECK(noiseH.isValid());
216  ATH_CHECK(bcContH.isValid());
217  ATH_CHECK(cablingH.isValid());
218 
219  Monitored::Scalar<int> dqm_superslot{"S", -1};
220  Monitored::Scalar<int> dqm_channel{"C", -1};
221  Monitored::Scalar<float> dqm_posn{"posn", 0};
222  Monitored::Scalar<float> dqm_negn{"negn", 0};
223  Monitored::Scalar<float> dqm_qual{"Q4k", 0};
224  Monitored::Scalar<float> dqm_energy{"E", 0};
225  Monitored::Scalar<int> dqm_gain{"G", 0};
226  Monitored::Scalar<bool> dqmf_occ{"occ", false};
227  Monitored::Scalar<bool> dqmf_sig{"sig", false};
228 
229  for (const LArRawChannel &chan : *raw_channels) {
230  HWIdentifier hardware_id{chan.hardwareID()};
231  Identifier offline_id{0};
232  HWIdentifier feb_id{0};
233  IdentifierHash feb_hash{0};
234  int channel{-1};
235  int slot_number{-1}, feedthrough_number{-1};
236  int8_t det{::UNDEF};
237  float energy, time, noise, significance;
238  int gain{-1};
239  bool bad_quality;
240 
241  // Skip unconnected channels
242  if (!cablingH->isOnlineConnected(hardware_id)) continue;
243  // Skip masked channels
244  if (m_bcMask.cellShouldBeMasked(*bcContH, hardware_id)) continue;
245 
246  // Monitor properly reconstructed channels only:
247  // - provenance&0x00ff == 0x00a5:
248  // raw channels from OFC iteration, all calib constants found in DB
249  // - provenance&0x1000 == 0x1000:
250  // raw channels from DSP. If no constant loaded in DSP, energy==0
251  if (!m_db_and_ofc_only
252  && !LArProv::test(chan.provenance(), LArProv::DEFAULTRECO)
253  && !LArProv::test(chan.provenance(), LArProv::DSPCALC)) continue;
254 
255  try {
256  feb_id = m_lar_online_id_ptr->feb_Id(hardware_id);
257  feb_hash = m_lar_online_id_ptr->feb_Hash(feb_id);
258  det = m_feb_hash_to_detector.at(feb_hash);
259  if (det != lastdet) {
260  if (det >= 0 && det < ::NDETECTORS) {
261  monitoring = m_tools[m_monitoring_tool_index[det]];
262  } else {
263  monitoring = nullptr;
264  }
265  lastdet = det;
266  }
267 
268  slot_number = m_lar_online_id_ptr->slot(hardware_id);
269  feedthrough_number = m_lar_online_id_ptr->feedthrough(hardware_id);
270  channel = m_lar_online_id_ptr->channel(hardware_id);
271  energy = chan.energy() * Athena::Units::MeV; // fixed in MeV by DSP
272  time = chan.time() * Athena::Units::picosecond; // fixed in ps by DSP
273  gain = chan.gain();
274  noise = noiseH->getNoise(offline_id, gain);
275  significance = energy / noise;
276  bad_quality = (energy > 0.1 * Athena::Units::MeV)
277  && (chan.quality() > m_quality_threshold);
278  }
279  catch (const LArOnlID_Exception &) {
280  continue; // skip this channel
281  }
282  catch (const std::out_of_range &err) {
283  ATH_MSG_WARNING("FEB hash out of range. Detector undefined"
284  << err.what());
285  continue; // skip this channel
286  }
287  catch (const LArID_Exception &) {
288  ATH_MSG_WARNING("channel offline id undefined ... skipping");
289  continue; // skip this channel
290  }
291 
292  // Fill per-detector histograms ---
293  if (m_monitor_detectors && monitoring) {
294  bool noisy_pos{significance > m_pos_noise_thresholds[det]};
295  bool noisy_neg{-significance > m_neg_noise_thresholds[det]};
296  per_detector_total_energy[det] += energy;
297  det_n_noisy_channels[det] += noisy_pos;
298  det_n_noisy_channels_Neg[det] += noisy_neg;
299  det_n_badQ_channels[det] += bad_quality;
300  dqm_superslot = feedthrough_number * ::numberOfSlotsPerFeedthrough(det)
301  + slot_number;
302  dqm_channel = channel;
303  dqmf_occ = noisy_event && (energy > m_occupancy_thresholds[det]);
304  dqmf_sig = noisy_event && (energy > m_signal_thresholds[det])
305  && is_atlas_ready && !larNoisyROAlgInTimeW_flag;
306  dqm_energy = energy;
307  dqm_gain = gain;
308  dqm_posn = 100 * (noisy_event && !larNoisyROAlgInTimeW_flag
309  && noisy_pos && is_atlas_ready);
310  dqm_negn = 100 * (noisy_event && !larNoisyROAlgInTimeW_flag
311  && noisy_neg && is_atlas_ready);
312  dqm_qual = 100 * (bad_quality && is_atlas_ready
313  && !larNoisyROAlgInTimeW_flag);
314  fill(monitoring, dqm_superslot, dqm_channel,
315  dqmf_occ, dqmf_sig, dqm_energy, dqm_gain,
316  dqm_posn, dqm_negn, dqm_qual);
317 
318  if (m_monitor_time && significance > m_time_threshold) {
319  // The time resolution is \sigma_t = \frac{a}{E/\sigma_{E}} \oplus b
320  // where a and b depend on the channel position (partition + layer);
321  // in practice a = 30ns and b = 1ns are assumed.
322  if (significance != 0.) {
323  double weight = 1. + 900. / std::pow(significance, 2);
324  // <t> = ( \sum w*t ) / ( \sum w )
325  // -> num. & den. are accumulated separately using a complex variable
326  wsum_t datapoint{weight * (double(time) + 1i)};
327  event_mean_time += datapoint;
328  mean_detector_times[det] += datapoint;
329  mean_feb_times[feb_hash] += datapoint;
330  }
331  }
332  }
333  }
334 
335  Monitored::Scalar<int> dqm_lb{"lb", lumi_block};
336  Monitored::Scalar<int> dqm_bcid{"bc", bcid};
337  Monitored::Scalar<int> dqm_qnChan{"nQ4k", 0};
338  Monitored::Scalar<float> dqm_percent_noisy{"%noisy", 0};
339  Monitored::Scalar<float> dqm_percent_neg_noisy{"%noisy_neg", 0};
340  Monitored::Scalar<bool> dqmf_burst{"burst", false};
341  Monitored::Scalar<bool> dqmf_burst_timevetoed{"burst_quietW", false};
342  Monitored::Scalar<float> dqm_total_energy{"detE", 0};
343  Monitored::Scalar<bool> dqmf_qburst{"qburst", false};
344  Monitored::Scalar<bool> dqmf_noNoisyRO{"quiet", !larNoisyROAlg_flag};
345  Monitored::Scalar<bool> dqmf_noNoisyRO_W{"quietW", !larNoisyROAlg_W_flag};
346  Monitored::Scalar<bool> dqmf_noNoisyRO_ITW{
347  "quietITW", !larNoisyROAlgInTimeW_flag};
348  for (int8_t det : ::partitions()) {
349  float scaling = 100.f / m_det_to_nchannels[det];
350  float percent_noisy = scaling * det_n_noisy_channels[det];
351  float percent_bad_quality = scaling * det_n_badQ_channels[det];
352  dqmf_burst = percent_noisy > m_noise_burst_percent_thresholds[det];
353  dqmf_burst_timevetoed = dqmf_burst && !larNoisyROAlgInTimeW_flag;
354  dqm_percent_noisy = percent_noisy;
355  dqm_percent_neg_noisy = scaling * det_n_noisy_channels_Neg[det];
356  dqm_qnChan = det_n_badQ_channels[det];
357  dqmf_qburst = percent_bad_quality > m_noise_burst_percent_thresholds[det];
358  dqm_total_energy = per_detector_total_energy[det];
359 
360  if (m_monitor_burst) {
361  fill(m_tools[m_monitoring_tool_index[det]], dqm_lb, dqm_bcid,
362  dqm_percent_noisy, dqm_percent_neg_noisy,
363  dqmf_noNoisyRO, dqmf_noNoisyRO_W, dqmf_noNoisyRO_ITW,
364  dqmf_burst, dqmf_burst_timevetoed, dqmf_qburst,
365  dqm_qnChan);
366  }
367  if (m_monitor_signal) {
368  fill(m_tools[m_monitoring_tool_index[det]], dqm_lb, dqm_bcid,
369  dqmf_noNoisyRO_W, dqm_total_energy);
370  }
371  }
372 
373  Monitored::Scalar<float> dqm_time{"T", 0};
375  // sum w*t and sum w are accumulated respectively in Re(z) and Im(z)
376  double t{event_mean_time.real() / event_mean_time.imag()};
377  for (uint32_t h = 0; h < mean_feb_times.size(); ++h) {
378  wsum_t w{mean_feb_times[h]};
379  if (w.imag() == 0.) continue;
380  int8_t det = m_feb_hash_to_detector.at(h);
381  double t_feb = w.real() / w.imag();
382  dqm_time = (t_feb - t) / Athena::Units::nanosecond;
384  }
385  }
386 
387  return StatusCode::SUCCESS;
388 }

◆ filterPassed()

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

Definition at line 135 of file AthReentrantAlgorithm.h.

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

◆ GetEventInfo()

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

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

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

Definition at line 107 of file AthMonitorAlgorithm.cxx.

107  {
109 }

◆ getGroup()

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

Get a specific monitoring tool from the tool handle array.

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

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

Definition at line 164 of file AthMonitorAlgorithm.cxx.

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

◆ getTrigDecisionTool()

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

Get the trigger decision tool member.

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

Returns
m_trigDecTool

Definition at line 189 of file AthMonitorAlgorithm.cxx.

189  {
190  return m_trigDecTool;
191 }

◆ initialize()

StatusCode LArRawChannelMonAlg::initialize ( )
overridevirtual

initialize

Returns
StatusCode

Reimplemented from AthMonitorAlgorithm.

Definition at line 73 of file LArRawChannelMonAlg.cxx.

74 {
75  ATH_MSG_DEBUG("===> start " << name() << "::initialize <=== ");
76 
77  ATH_CHECK(m_larFlagKey.initialize());
79  ATH_CHECK(detStore()->retrieve(m_lar_online_id_ptr, "LArOnlineID"));
80  ATH_CHECK(m_bcContKey.initialize());
82  ATH_CHECK(m_atlasReady_tools.retrieve());
85 
86  auto get_detector = [&](auto hwid) {
87  const bool sideA = m_lar_online_id_ptr->pos_neg(hwid);
89  return sideA ? ::EMBA : ::EMBC;
90  else if (m_lar_online_id_ptr->isEMECchannel(hwid))
91  return sideA ? ::EMECA : ::EMECC;
92  else if (m_lar_online_id_ptr->isHECchannel(hwid))
93  return sideA ? ::HECA : ::HECC;
94  else if (m_lar_online_id_ptr->isFCALchannel(hwid))
95  return sideA ? ::FCALA : ::FCALC;
96  return ::UNDEF; };
97 
98  // Create FEB hash -> Detector map
99  std::size_t feb_hash_max = m_lar_online_id_ptr->febHashMax();
100  m_feb_hash_to_detector.resize(feb_hash_max, ::UNDEF);
101  auto end_feb = m_lar_online_id_ptr->feb_end();
102  for (auto itr = m_lar_online_id_ptr->feb_begin(); itr != end_feb; ++itr) {
103  IdentifierHash feb_hash = m_lar_online_id_ptr->feb_Hash(*itr);
104  auto det = get_detector(*itr);
105  if (feb_hash < m_feb_hash_to_detector.size()) {
106  m_feb_hash_to_detector.at(feb_hash) = det;
107  } else {
108  ATH_MSG_WARNING("FEB hash out of range, ignored.");
109  }
110  }
111 
112  // Count number of channels in each detector ---
114  auto citr = m_lar_online_id_ptr->channel_begin();
115  auto citr_end = m_lar_online_id_ptr->channel_end();
116  for (; citr != citr_end; ++citr) {
117  // TODO: skip unconnected/masked channels, but these may depend on IOV...
118  auto det = get_detector(*citr);
119  if (det != ::UNDEF)
120  m_det_to_nchannels[det] += 1;
121  }
122 
123  std::vector<std::string> det2str(::NDETECTORS);
124  det2str[::EMBA] = "EMBA";
125  det2str[::EMBC] = "EMBC";
126  det2str[::EMECA] = "EMECA";
127  det2str[::EMECC] = "EMECC";
128  det2str[::HECA] = "HECA";
129  det2str[::HECC] = "HECC";
130  det2str[::FCALA] = "FCalA";
131  det2str[::FCALC] = "FCalC";
132 
133  if (msgLvl(MSG::DEBUG)) {
134  ATH_MSG_DEBUG("Number of channels in detectors: ");
135  for (int8_t det : partitions()) {
136  auto n = m_det_to_nchannels[det];
137  ATH_MSG_DEBUG(det2str[det] << " has " << n << "channels ");
138  }
139  }
140 
141  m_noise_streams_set.insert(m_noise_streams.begin(), m_noise_streams.end());
142 
143  auto toolmap = Monitored::buildToolMap<int>(
144  m_tools, "LArRawChannelMon", det2str);
145  for (int8_t det : partitions()) {
146  m_monitoring_tool_index[det] = toolmap.at(det2str[det]);
147  }
148 
149  ATH_MSG_DEBUG("===> end " << name() << "::initialize, "
150  "will now initialize base class <=== ");
152 }

◆ inputHandles()

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

Return this algorithm's input handles.

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

◆ isClonable()

bool AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

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

◆ msgLvl()

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

Definition at line 30 of file AthCommonMsg.h.

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

◆ outputHandles()

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

Return this algorithm's output handles.

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

◆ parseList()

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

Parse a string into a vector.

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

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

Definition at line 336 of file AthMonitorAlgorithm.cxx.

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

◆ renounce()

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

Definition at line 380 of file AthCommonDataStore.h.

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

◆ renounceArray()

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

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ setFilterPassed()

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

Definition at line 139 of file AthReentrantAlgorithm.h.

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

◆ sysExecute()

StatusCode AthReentrantAlgorithm::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

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

Definition at line 67 of file AthReentrantAlgorithm.cxx.

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

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

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

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

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

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 96 of file AthReentrantAlgorithm.cxx.

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

◆ sysStart()

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

Handle START transition.

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

◆ trigChainsArePassed()

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

Check whether triggers are passed.

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

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

Definition at line 194 of file AthMonitorAlgorithm.cxx.

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

◆ updateVHKA()

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

Definition at line 308 of file AthCommonDataStore.h.

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

Member Data Documentation

◆ _USE_LEGACY_BINNING_IN_ENDCAPS

bool LArRawChannelMonAlg._USE_LEGACY_BINNING_IN_ENDCAPS = True
private

Definition at line 15 of file LArRawChannelMonAlg.py.

◆ acc

def LArRawChannelMonAlg.acc = LArRawChannelMonConfig(flags)

Definition at line 330 of file LArRawChannelMonAlg.py.

◆ cfg

LArRawChannelMonAlg.cfg = CaloRecoCfg(flags)

Definition at line 329 of file LArRawChannelMonAlg.py.

◆ enableLumiAccess

LArRawChannelMonAlg.enableLumiAccess

Definition at line 323 of file LArRawChannelMonAlg.py.

◆ f

LArRawChannelMonAlg.f = open("LArRawChannelMon.pkl", "wb")

Definition at line 332 of file LArRawChannelMonAlg.py.

◆ Files

LArRawChannelMonAlg.Files

Definition at line 321 of file LArRawChannelMonAlg.py.

◆ flags

LArRawChannelMonAlg.flags = initConfigFlags()

Definition at line 310 of file LArRawChannelMonAlg.py.

◆ HISTFileName

LArRawChannelMonAlg.HISTFileName

Definition at line 322 of file LArRawChannelMonAlg.py.

◆ m_atlasReady_tools

ToolHandleArray<IDQFilterTool> LArRawChannelMonAlg::m_atlasReady_tools
private
Initial value:
{
this, "AtlasReadyFilterTool", {}}

Definition at line 99 of file LArRawChannelMonAlg.h.

◆ m_bcContKey

SG::ReadCondHandleKey<LArBadChannelCont> LArRawChannelMonAlg::m_bcContKey
private
Initial value:
{
this, "BadChanKey", "LArBadChannel", "SG key for LArBadChan object"}

Definition at line 111 of file LArRawChannelMonAlg.h.

◆ m_bcid_signal_threshold

Gaudi::Property<double> LArRawChannelMonAlg::m_bcid_signal_threshold
private
Initial value:
{
this, "bcid_signal_threshold", 500. * Gaudi::Units::MeV, ""}

Definition at line 80 of file LArRawChannelMonAlg.h.

◆ m_bcMask

LArBadChannelMask LArRawChannelMonAlg::m_bcMask
private

Definition at line 110 of file LArRawChannelMonAlg.h.

◆ m_cablingKey

SG::ReadCondHandleKey<LArOnOffIdMapping> LArRawChannelMonAlg::m_cablingKey
private
Initial value:
{
this,"CablingKey", "LArOnOffIdMap",
"SG Key of LArOnOffIdMapping object"}

Definition at line 115 of file LArRawChannelMonAlg.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_db_and_ofc_only

Gaudi::Property<bool> LArRawChannelMonAlg::m_db_and_ofc_only
private
Initial value:
{
this, "db_and_ofc_only", true, "use channels "
"only if pedestal and adc2e value from DB and OFC was used"}

Definition at line 94 of file LArRawChannelMonAlg.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_det_to_nchannels

std::array<uint32_t, 8> LArRawChannelMonAlg::m_det_to_nchannels
private

Definition at line 129 of file LArRawChannelMonAlg.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_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 AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

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

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_feb_hash_to_detector

std::vector<int8_t> LArRawChannelMonAlg::m_feb_hash_to_detector
private

Definition at line 126 of file LArRawChannelMonAlg.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_lar_online_id_ptr

const LArOnlineID* LArRawChannelMonAlg::m_lar_online_id_ptr {nullptr}
private

Definition at line 107 of file LArRawChannelMonAlg.h.

◆ m_larFlagKey

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

Definition at line 119 of file LArRawChannelMonAlg.h.

◆ m_LArRawChannel_container_key

SG::ReadHandleKey<LArRawChannelContainer> LArRawChannelMonAlg::m_LArRawChannel_container_key
private
Initial value:
{
this, "LArRawChannelContainerKey", "LArRawChannels"}

Definition at line 103 of file LArRawChannelMonAlg.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_monitor_burst

Gaudi::Property<bool> LArRawChannelMonAlg::m_monitor_burst
private
Initial value:
{
this, "monitor_burst", true, ""}

Definition at line 64 of file LArRawChannelMonAlg.h.

◆ m_monitor_detectors

Gaudi::Property<bool> LArRawChannelMonAlg::m_monitor_detectors
private
Initial value:
{
this, "monitor_detectors", true, ""}

Definition at line 70 of file LArRawChannelMonAlg.h.

◆ m_monitor_febs

Gaudi::Property<bool> LArRawChannelMonAlg::m_monitor_febs
private
Initial value:
{
this, "monitor_febs", false, ""}

Definition at line 66 of file LArRawChannelMonAlg.h.

◆ m_monitor_feedthroughs

Gaudi::Property<bool> LArRawChannelMonAlg::m_monitor_feedthroughs
private
Initial value:
{
this, "monitor_feedthroughs", false, ""}

Definition at line 68 of file LArRawChannelMonAlg.h.

◆ m_monitor_negative_noise

Gaudi::Property<bool> LArRawChannelMonAlg::m_monitor_negative_noise
private
Initial value:
{
this, "monitor_negative_noise", true, ""}

Definition at line 58 of file LArRawChannelMonAlg.h.

◆ m_monitor_occupancy

Gaudi::Property<bool> LArRawChannelMonAlg::m_monitor_occupancy
private
Initial value:
{
this, "monitor_occupancy", false, ""}

Definition at line 52 of file LArRawChannelMonAlg.h.

◆ m_monitor_positive_noise

Gaudi::Property<bool> LArRawChannelMonAlg::m_monitor_positive_noise
private
Initial value:
{
this, "monitor_positive_noise", true, ""}

Definition at line 56 of file LArRawChannelMonAlg.h.

◆ m_monitor_quality

Gaudi::Property<bool> LArRawChannelMonAlg::m_monitor_quality
private
Initial value:
{
this, "monitor_quality", false, ""}

Definition at line 62 of file LArRawChannelMonAlg.h.

◆ m_monitor_signal

Gaudi::Property<bool> LArRawChannelMonAlg::m_monitor_signal
private
Initial value:
{
this, "monitor_signal", true, ""}

Definition at line 54 of file LArRawChannelMonAlg.h.

◆ m_monitor_time

Gaudi::Property<bool> LArRawChannelMonAlg::m_monitor_time
private
Initial value:
{
this, "monitor_time", true, ""}

Definition at line 60 of file LArRawChannelMonAlg.h.

◆ m_monitoring_tool_index

std::array<int, 8> LArRawChannelMonAlg::m_monitoring_tool_index
private

Definition at line 123 of file LArRawChannelMonAlg.h.

◆ m_name

std::string AthMonitorAlgorithm::m_name
privateinherited

Definition at line 366 of file AthMonitorAlgorithm.h.

◆ m_neg_noise_thresholds

Gaudi::Property<std::vector<int> > LArRawChannelMonAlg::m_neg_noise_thresholds
private
Initial value:
{
this, "neg_noise_thresholds", {8, 3}, ""}

Definition at line 78 of file LArRawChannelMonAlg.h.

◆ m_noise_burst_nChannel_thresholds

Gaudi::Property<std::vector<unsigned> > LArRawChannelMonAlg::m_noise_burst_nChannel_thresholds
private
Initial value:
{
this, "noise_burst_nChannel_threshold", {8, 10}, ""}

Definition at line 90 of file LArRawChannelMonAlg.h.

◆ m_noise_burst_percent_thresholds

Gaudi::Property<std::vector<double> > LArRawChannelMonAlg::m_noise_burst_percent_thresholds
private
Initial value:
{
this, "noise_burst_percent_threshold", {8, 1.}, ""}

Definition at line 88 of file LArRawChannelMonAlg.h.

◆ m_noise_streams

Gaudi::Property<std::vector<std::string> > LArRawChannelMonAlg::m_noise_streams
private
Initial value:
{
this, "noise_streams", {}, ""}

Definition at line 92 of file LArRawChannelMonAlg.h.

◆ m_noise_streams_set

std::set<std::string> LArRawChannelMonAlg::m_noise_streams_set
private

Definition at line 132 of file LArRawChannelMonAlg.h.

◆ m_noise_threshold

Gaudi::Property<short> LArRawChannelMonAlg::m_noise_threshold
private
Initial value:
{
this, "noise_threshold", 3, ""}

Definition at line 86 of file LArRawChannelMonAlg.h.

◆ m_noiseKey

SG::ReadCondHandleKey<CaloNoise> LArRawChannelMonAlg::m_noiseKey
private
Initial value:
{
this, "NoiseKey", "totalNoise", "SG key for noise" }

Definition at line 113 of file LArRawChannelMonAlg.h.

◆ m_occupancy_thresholds

Gaudi::Property<std::vector<double> > LArRawChannelMonAlg::m_occupancy_thresholds
private
Initial value:
{
this, "occupancy_thresholds", {8, 500. * Gaudi::Units::MeV}, ""}

Definition at line 72 of file LArRawChannelMonAlg.h.

◆ m_pos_noise_thresholds

Gaudi::Property<std::vector<int> > LArRawChannelMonAlg::m_pos_noise_thresholds
private
Initial value:
{
this, "pos_noise_thresholds", {8, 3}, ""}

Definition at line 76 of file LArRawChannelMonAlg.h.

◆ m_problemsToMask

Gaudi::Property<std::vector<std::string> > LArRawChannelMonAlg::m_problemsToMask
private
Initial value:
{
this,"ProblemsToMask", {}, "Bad-Channel categories to mask"}

Definition at line 97 of file LArRawChannelMonAlg.h.

◆ m_quality_threshold

Gaudi::Property<unsigned short> LArRawChannelMonAlg::m_quality_threshold
private
Initial value:
{
this, "quality_threshold", 4000, ""}

Definition at line 84 of file LArRawChannelMonAlg.h.

◆ m_signal_thresholds

Gaudi::Property<std::vector<double> > LArRawChannelMonAlg::m_signal_thresholds
private
Initial value:
{
this, "signal_thresholds", {8, 500. * Gaudi::Units::MeV}, ""}

Definition at line 74 of file LArRawChannelMonAlg.h.

◆ m_time_threshold

Gaudi::Property<short> LArRawChannelMonAlg::m_time_threshold
private
Initial value:
{
this, "time_threshold", 5, ""}

Definition at line 82 of file LArRawChannelMonAlg.h.

◆ m_toolLookupMap

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

Definition at line 367 of file AthMonitorAlgorithm.h.

◆ m_tools

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

Array of Generic Monitoring Tools.

Definition at line 338 of file AthMonitorAlgorithm.h.

◆ m_trigDecTool

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

Tool to tell whether a specific trigger is passed.

Definition at line 340 of file AthMonitorAlgorithm.h.

◆ m_triggerChainString

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

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

Definition at line 355 of file AthMonitorAlgorithm.h.

◆ m_trigLiveFractionDataKey

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

Definition at line 347 of file AthMonitorAlgorithm.h.

◆ m_useLumi

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

Allows use of various luminosity functions.

Definition at line 359 of file AthMonitorAlgorithm.h.

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_vTrigChainNames

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

Vector of trigger chain names parsed from trigger chain string.

Definition at line 356 of file AthMonitorAlgorithm.h.

◆ Type

LArRawChannelMonAlg.Type

Definition at line 325 of file LArRawChannelMonAlg.py.

◆ useTrigger

LArRawChannelMonAlg.useTrigger

Definition at line 324 of file LArRawChannelMonAlg.py.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
AthMonitorAlgorithm::Environment_t::tier0Raw
@ tier0Raw
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
checkFileSG.line
line
Definition: checkFileSG.py:75
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
HECA
@ HECA
Definition: CellClusterLinkTool.h:50
get_generator_info.result
result
Definition: get_generator_info.py:21
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
EMBA
@ EMBA
Definition: CellClusterLinkTool.h:50
LArRawChannelMonAlg::m_db_and_ofc_only
Gaudi::Property< bool > m_db_and_ofc_only
Definition: LArRawChannelMonAlg.h:94
LArRawChannelMonAlg::m_larFlagKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_larFlagKey
Definition: LArRawChannelMonAlg.h:119
LArOnlineID_Base::febHashMax
size_type febHashMax(void) const
define feb hash tables max size
Definition: LArOnlineID_Base.cxx:1896
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
AthMonitorAlgorithm::m_trigDecTool
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
Definition: AthMonitorAlgorithm.h:340
python.SystemOfUnits.nanosecond
int nanosecond
Definition: SystemOfUnits.py:119
FCALA
@ FCALA
Definition: CellClusterLinkTool.h:50
AthMonitorAlgorithm::Environment_t::tier0
@ tier0
AthMonitorAlgorithm::Environment_t::AOD
@ AOD
LArRawChannelMonAlg::m_occupancy_thresholds
Gaudi::Property< std::vector< double > > m_occupancy_thresholds
Definition: LArRawChannelMonAlg.h:72
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LArRawChannelMonAlg::m_bcMask
LArBadChannelMask m_bcMask
Definition: LArRawChannelMonAlg.h:110
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
LArRawChannelMonAlg::m_atlasReady_tools
ToolHandleArray< IDQFilterTool > m_atlasReady_tools
Definition: LArRawChannelMonAlg.h:99
accumulate
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
Definition: FPGATrackSimMatrixAccumulator.cxx:22
LArRawChannelMonAlg::m_pos_noise_thresholds
Gaudi::Property< std::vector< int > > m_pos_noise_thresholds
Definition: LArRawChannelMonAlg.h:76
AthMonitorAlgorithm::m_vTrigChainNames
std::vector< std::string > m_vTrigChainNames
Vector of trigger chain names parsed from trigger chain string.
Definition: AthMonitorAlgorithm.h:356
conifer::pow
constexpr int pow(int x)
Definition: conifer.h:20
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
python.SystemOfUnits.MeV
int MeV
Definition: SystemOfUnits.py:154
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
LArRawChannelMonAlg::m_monitor_time
Gaudi::Property< bool > m_monitor_time
Definition: LArRawChannelMonAlg.h:60
LArOnlineID_Base::slot
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
Definition: LArOnlineID_Base.cxx:1961
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
LArBadChannelMask::buildBitMask
StatusCode buildBitMask(const std::vector< std::string > &problemsToMask, MsgStream &msg)
Definition: LArBadChannelMask.cxx:10
LArEventBitInfo::BADFEBS
@ BADFEBS
Definition: LArEventBitInfo.h:10
AthMonitorAlgorithm::m_toolLookupMap
std::unordered_map< std::string, size_t > m_toolLookupMap
Definition: AthMonitorAlgorithm.h:367
AthCommonMsg< Gaudi::Algorithm >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
AthMonitorAlgorithm::m_environment
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.
Definition: AthMonitorAlgorithm.h:350
python.sizes.txt
string txt
Definition: sizes.py:141
TrigConf::JetWindowSize::UNDEF
@ UNDEF
Definition: TriggerThresholdValue.h:17
LArOnlineID_Base::feb_begin
id_iterator feb_begin() const
Returns an iterator pointing to a feb identifier collection.
Definition: LArOnlineID_Base.cxx:1910
cosmics
Definition: cosmics.py:1
LArRawChannelMonAlg::m_signal_thresholds
Gaudi::Property< std::vector< double > > m_signal_thresholds
Definition: LArRawChannelMonAlg.h:74
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
LArRawChannelMonAlg::m_bcContKey
SG::ReadCondHandleKey< LArBadChannelCont > m_bcContKey
Definition: LArRawChannelMonAlg.h:111
LArBadChannelMask::cellShouldBeMasked
bool cellShouldBeMasked(const LArBadChannelCont *bcCont, const HWIdentifier &hardwareId) const
Definition: LArBadChannelMask.h:42
x
#define x
xAOD::EventInfo_v1::LAr
@ LAr
The LAr calorimeter.
Definition: EventInfo_v1.h:335
LArOnlineID_Base::channel_end
id_iterator channel_end() const
Definition: LArOnlineID_Base.cxx:1931
AthMonitorAlgorithm::trigChainsArePassed
bool trigChainsArePassed(const std::vector< std::string > &vTrigNames) const
Check whether triggers are passed.
Definition: AthMonitorAlgorithm.cxx:194
AthMonitorAlgorithm::Environment_t::user
@ user
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
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
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthMonitorAlgorithm::m_dummy
const ToolHandle< GenericMonitoringTool > m_dummy
Definition: AthMonitorAlgorithm.h:369
EMECA
@ EMECA
Definition: CellClusterLinkTool.h:50
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:200
PyPoolBrowser.item
item
Definition: PyPoolBrowser.py:129
LArOnlineID_Base::isFCALchannel
bool isFCALchannel(const HWIdentifier id) const
Definition: LArOnlineID_Base.cxx:1657
TileSynchronizeBch.online
online
Definition: TileSynchronizeBch.py:88
EMBC
@ EMBC
Definition: CellClusterLinkTool.h:50
tags
std::vector< std::string > tags
Definition: hcg.cxx:102
LArOnlineID_Base::channel
int channel(const HWIdentifier id) const
Return the channel number of a hardware cell identifier channel = [0,127] in all FEB.
Definition: LArOnlineID_Base.cxx:1967
LArRawChannelMonAlg::m_lar_online_id_ptr
const LArOnlineID * m_lar_online_id_ptr
Definition: LArRawChannelMonAlg.h:107
LArOnlineID::isEMECchannel
bool isEMECchannel(const HWIdentifier id) const override final
Definition: LArOnlineID.cxx:774
LArRawChannelMonAlg::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArRawChannelMonAlg.h:115
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
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:193
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
sim_rttUpdate.user
def user
Definition: sim_rttUpdate.py:662
lumiFormat.i
int i
Definition: lumiFormat.py:92
LArRawChannel
Liquid Argon ROD output object base class.
Definition: LArRawChannel.h:40
ReadCellNoiseFromCool.chan
chan
Definition: ReadCellNoiseFromCool.py:52
h
beamspotman.n
n
Definition: beamspotman.py:731
AthMonitorAlgorithm::DataType_t::heavyIonCollisions
@ heavyIonCollisions
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
extractSporadic.h
list h
Definition: extractSporadic.py:97
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
LArOnlID_Exception
Exception class for LAr online Identifiers.
Definition: LArOnlID_Exception.h:16
tolower
void tolower(std::string &s)
Definition: AthenaSummarySvc.cxx:113
LArRawChannelMonAlg::m_monitor_detectors
Gaudi::Property< bool > m_monitor_detectors
Definition: LArRawChannelMonAlg.h:70
AthMonitorAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const =0
adds event to the monitoring histograms
LArRawChannelMonAlg::m_time_threshold
Gaudi::Property< short > m_time_threshold
Definition: LArRawChannelMonAlg.h:82
WritePulseShapeToCool.det
det
Definition: WritePulseShapeToCool.py:204
master.flag
bool flag
Definition: master.py:29
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
LArEventBitInfo::BADFEBS_W
@ BADFEBS_W
Definition: LArEventBitInfo.h:16
LArRawChannelMonAlg::m_monitoring_tool_index
std::array< int, 8 > m_monitoring_tool_index
Definition: LArRawChannelMonAlg.h:123
LArOnlineID_Base::pos_neg
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...
Definition: LArOnlineID_Base.cxx:1954
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
LArProv::DEFAULTRECO
@ DEFAULTRECO
Definition: LArProvenance.h:27
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.
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
LArRawChannelMonAlg::m_noise_streams_set
std::set< std::string > m_noise_streams_set
Definition: LArRawChannelMonAlg.h:132
LArRawChannelMonAlg::m_quality_threshold
Gaudi::Property< unsigned short > m_quality_threshold
Definition: LArRawChannelMonAlg.h:84
AthMonitorAlgorithm::GetEventInfo
SG::ReadHandle< xAOD::EventInfo > GetEventInfo(const EventContext &) const
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)
Definition: AthMonitorAlgorithm.cxx:107
DeMoScan.partitions
dictionary partitions
Definition: DeMoScan.py:67
LArRawChannelMonAlg::m_monitor_signal
Gaudi::Property< bool > m_monitor_signal
Definition: LArRawChannelMonAlg.h:54
AthMonitorAlgorithm::m_dataType
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.
Definition: AthMonitorAlgorithm.h:351
LArRawChannelMonAlg::m_monitor_burst
Gaudi::Property< bool > m_monitor_burst
Definition: LArRawChannelMonAlg.h:64
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
LArOnlineID_Base::feb_Id
HWIdentifier feb_Id(int barrel_ec, int pos_neg, int feedthrough, int slot) const
Create feb_Id from fields.
Definition: LArOnlineID_Base.cxx:1483
LArProv::DSPCALC
@ DSPCALC
Definition: LArProvenance.h:32
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
LArRawChannelMonAlg::m_problemsToMask
Gaudi::Property< std::vector< std::string > > m_problemsToMask
Definition: LArRawChannelMonAlg.h:97
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
HECC
@ HECC
Definition: CellClusterLinkTool.h:50
LArOnlineID_Base::feb_end
id_iterator feb_end() const
Definition: LArOnlineID_Base.cxx:1915
AthMonitorAlgorithm::m_tools
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.
Definition: AthMonitorAlgorithm.h:338
AthMonitorAlgorithm::Environment_t::online
@ online
LArRawChannelMonAlg::m_noise_streams
Gaudi::Property< std::vector< std::string > > m_noise_streams
Definition: LArRawChannelMonAlg.h:92
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
LArRawChannelMonAlg::m_feb_hash_to_detector
std::vector< int8_t > m_feb_hash_to_detector
Definition: LArRawChannelMonAlg.h:126
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LArProv::test
bool test(const uint16_t prov, const LArProvenance check)
Definition: LArProvenance.h:37
AthMonitorAlgorithm::Environment_t::tier0ESD
@ tier0ESD
AthMonitorAlgorithm::Environment_t::altprod
@ altprod
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
LArRawChannelMonAlg::m_noise_burst_percent_thresholds
Gaudi::Property< std::vector< double > > m_noise_burst_percent_thresholds
Definition: LArRawChannelMonAlg.h:88
AthMonitorAlgorithm::m_enforceExpressTriggers
Gaudi::Property< bool > m_enforceExpressTriggers
Definition: AthMonitorAlgorithm.h:372
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
item
Definition: ItemListSvc.h:43
LArOnlineID_Base::isEMBchannel
bool isEMBchannel(const HWIdentifier id) const
Definition: LArOnlineID_Base.cxx:1652
AthMonitorAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: AthMonitorAlgorithm.cxx:18
ATH_LIKELY
#define ATH_LIKELY(x)
Definition: AthUnlikelyMacros.h:16
LArRawChannelMonAlg::m_neg_noise_thresholds
Gaudi::Property< std::vector< int > > m_neg_noise_thresholds
Definition: LArRawChannelMonAlg.h:78
ZDC::sideA
BySideTypeMod sideA(1)
LArOnlineID_Base::feedthrough
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
Definition: LArOnlineID_Base.cxx:1948
a
TList * a
Definition: liststreamerinfos.cxx:10
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
h
python.CaloScaleNoiseConfig.str
str
Definition: CaloScaleNoiseConfig.py:78
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
lumiFormat.fill
fill
Definition: lumiFormat.py:111
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthMonitorAlgorithm::DataType_t::collisions
@ collisions
AthMonitorAlgorithm::m_name
std::string m_name
Definition: AthMonitorAlgorithm.h:366
DEBUG
#define DEBUG
Definition: page_access.h:11
AthCommonMsg< Gaudi::Algorithm >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
AthMonitorAlgorithm::AthMonitorAlgorithm
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: AthMonitorAlgorithm.cxx:7
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
LArRawChannelMonAlg::m_noiseKey
SG::ReadCondHandleKey< CaloNoise > m_noiseKey
Definition: LArRawChannelMonAlg.h:113
str
Definition: BTagTrackIpAccessor.cxx:11
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
LArOnlineID::isHECchannel
bool isHECchannel(const HWIdentifier id) const override final
Definition: LArOnlineID.cxx:734
Monitored::Scalar
Declare a monitored scalar variable.
Definition: MonitoredScalar.h:34
LArRawChannelMonAlg::m_det_to_nchannels
std::array< uint32_t, 8 > m_det_to_nchannels
Definition: LArRawChannelMonAlg.h:129
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
AthMonitorAlgorithm::DataType_t::userDefined
@ userDefined
EMECC
@ EMECC
Definition: CellClusterLinkTool.h:50
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
LArRawChannelMonAlg::m_LArRawChannel_container_key
SG::ReadHandleKey< LArRawChannelContainer > m_LArRawChannel_container_key
Definition: LArRawChannelMonAlg.h:103
LArOnlineID_Base::channel_begin
id_iterator channel_begin() const
Returns an iterator pointing to a channel identifier collection.
Definition: LArOnlineID_Base.cxx:1926
LArID_Exception
Exception class for LAr Identifiers.
Definition: LArID_Exception.h:20
LArOnlineID_Base::feb_Hash
IdentifierHash feb_Hash(HWIdentifier febId) const
Create feb hash identifiers from feb identifiers.
Definition: LArOnlineID_Base.cxx:1516
WriteCellNoiseToCool.noise
noise
Definition: WriteCellNoiseToCool.py:380
python.SystemOfUnits.picosecond
int picosecond
Definition: SystemOfUnits.py:123
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
LArRawChannelMonAlg.f
f
Definition: LArRawChannelMonAlg.py:332
AthMonitorAlgorithm::DataType_t::monteCarlo
@ monteCarlo
fitman.k
k
Definition: fitman.py:528
FCALC
@ FCALC
Definition: CellClusterLinkTool.h:50
ServiceHandle< ICondSvc >
collisions
Definition: collisions.py:1