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

Class for Tile MBTS based monitoring. More...

#include <TileMBTSMonitorAlgorithm.h>

Inheritance diagram for TileMBTSMonitorAlgorithm:
Collaboration diagram for TileMBTSMonitorAlgorithm:

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

virtual ~TileMBTSMonitorAlgorithm ()=default
 
virtual StatusCode initialize () override
 initialize More...
 
virtual StatusCode fillHistograms (const EventContext &ctx) const override
 adds event to the monitoring histograms More...
 
virtual StatusCode start () override
 
 AthMonitorAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor. 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
 
 Files
 
 HISTFileName
 
 useTrigger
 
 enableLumiAccess
 
 MaxEvents
 
 cfg
 
 FillHistogramsPerMBTS
 
 withDetails
 
 True
 
 summariseProps
 
 sc
 

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

enum  TileDigiErrors {
  GENERAL, GLOBAL_CRC, ROD_CRC, FRONTEND_CRC,
  BCID, HEADER_FORMAT, HEADER_PARITY, SAMPLE_FORMAT,
  SAMPLE_PARITY, MEMORY_PARITY
}
 
using Tile = TileCalibUtils
 
typedef std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > MonVarVec_t
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

void setDigiError (std::vector< int > &counters, std::vector< int > &errors, int counter, int error) const
 
int getMBTSCounter (Identifier mbtsID) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

Gaudi::Property< bool > m_fillHistogramsPerMBTS
 
Gaudi::Property< bool > m_useTrigger
 
Gaudi::Property< std::vector< float > > m_energyCut
 
SG::ReadHandleKey< TileDQstatusm_DQstatusKey
 
SG::ReadHandleKey< TileDigitsContainerm_digitsContainerKey
 
SG::ReadHandleKey< TileCellContainerm_mbtsCellContainerKey
 
SG::ReadHandleKey< CTP_RDOm_ctpRdoKey
 
Gaudi::Property< std::vector< int > > m_ctpID
 
Gaudi::Property< std::vector< std::string > > m_l1Triggers
 
SG::ReadHandleKey< TrigConf::L1Menum_L1MenuKey
 
ServiceHandle< TileCablingSvcm_cablingSvc
 Name of Tile cabling service. More...
 
const TileCablingServicem_cabling {nullptr}
 
std::vector< int > m_energyGroups
 
std::vector< int > m_energyLBGroups
 
std::vector< int > m_energyTrigGroups
 
std::vector< int > m_energyTrigLBGroups
 
std::vector< int > m_timeGroups
 
std::vector< int > m_timeTrigGroups
 
std::vector< int > m_hfnGroups
 
std::vector< int > m_pedestalGroups
 
std::vector< int > m_pulseGroups
 
std::vector< int > m_pulseTrigGroups
 
std::vector< int > m_effTrigGroups
 
std::vector< int > m_trigGroups
 
std::vector< int > m_trigInWinGroups
 
std::vector< int > m_trigSumGroups
 
std::vector< int > m_coinTrigGroups
 
std::vector< int > m_deltaBCIDSumGroups
 
std::vector< std::vector< int > > m_deltaBCIDGroups
 
std::vector< std::vector< int > > m_bcidGroups
 
const TileTBIDm_tileTBID {nullptr}
 
const TileHWIDm_tileHWID {nullptr}
 
int m_MBTSchannels [Tile::MAX_ROS - 3][Tile::MAX_DRAWER]
 
int m_MBTScounters [Tile::MAX_ROS - 3][Tile::MAX_DRAWER]
 
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 MAX_MBTS_COUNTER {32}
 
static const unsigned int MBTS_DMU {0}
 

Detailed Description

Class for Tile MBTS based monitoring.

Definition at line 31 of file TileMBTSMonitorAlgorithm.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.

◆ Tile

Definition at line 44 of file TileMBTSMonitorAlgorithm.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  };

◆ TileDigiErrors

Enumerator
GENERAL 
GLOBAL_CRC 
ROD_CRC 
FRONTEND_CRC 
BCID 
HEADER_FORMAT 
HEADER_PARITY 
SAMPLE_FORMAT 
SAMPLE_PARITY 
MEMORY_PARITY 

Definition at line 46 of file TileMBTSMonitorAlgorithm.h.

Constructor & Destructor Documentation

◆ ~TileMBTSMonitorAlgorithm()

virtual TileMBTSMonitorAlgorithm::~TileMBTSMonitorAlgorithm ( )
virtualdefault

Member Function Documentation

◆ AthMonitorAlgorithm()

AthMonitorAlgorithm::AthMonitorAlgorithm

Constructor.

Definition at line 42 of file AthMonitorAlgorithm.cxx.

◆ 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 TileMBTSMonitorAlgorithm::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 133 of file TileMBTSMonitorAlgorithm.cxx.

133  {
134 
135  // In case you want to measure the execution time
136  auto timer = Monitored::Timer("TIME_execute");
137  auto timeerGroup = Monitored::Group(getGroup("TileMBTSMonExecuteTime"), timer);
138 
139  const xAOD::EventInfo* eventInfo = GetEventInfo(ctx).get();
140 
141  const int Trig_b7(7);
142  uint32_t l1TriggerType(eventInfo->level1TriggerType());
143  bool physicRun = (l1TriggerType == 0) || (((l1TriggerType >> Trig_b7) & 1) == 1);
144 
145  if (!physicRun) {
146  ATH_MSG_DEBUG("Calibration Event found => skip filling histograms.");
147  return StatusCode::SUCCESS;
148  }
149 
150  auto lumiBlock = Monitored::Scalar<int>("lumiBlock", eventInfo->lumiBlock());
151 
152  int nHitsA(0);
153  int nHitsC(0);
154  double timeA(0.0);
155  double timeC(0.0);
156 
157  // unsigned int l1aBCID(0);
158  std::vector<bool> hasTBP(MAX_MBTS_COUNTER, false);
159 
160  if (m_useTrigger) {
161  SG::ReadHandle<CTP_RDO> ctpRdoContainer(m_ctpRdoKey, ctx);
162  ATH_CHECK( ctpRdoContainer.isValid() );
163 
164  uint32_t nBunches(0);
165  CTP_Decoder ctpDecoder;
166 
167  ctpDecoder.setRDO(ctpRdoContainer.get());
168  nBunches = ctpRdoContainer->getNumberOfBunches();
169 
170  if (nBunches > 0) {
171  short l1aBunch = ctpRdoContainer->getL1AcceptBunchPosition();
172  const std::vector<CTP_BC>& ctpBunchCrossings = ctpDecoder.getBunchCrossings();
173  const CTP_BC & bunch = ctpBunchCrossings[l1aBunch];
174  auto l1aBCID = Monitored::Scalar<unsigned int>("bcid", bunch.getBCID());
175  unsigned int bcid;
176  auto triggerMultiplicityA = Monitored::Scalar<int>("multiplicityA", 0);
177  auto triggerMultiplicityC = Monitored::Scalar<int>("multiplicityC", 0);
178 
179  const std::bitset<512> currentTBP(bunch.getTBP());
180  for (size_t counter = 0; counter < m_ctpID.size(); ++counter) {
181  if (m_ctpID[counter] < 0) continue;
182  if (currentTBP.test(m_ctpID[counter])) {
183  hasTBP[counter] = true;
184  if (counter < 16) {
185  ++triggerMultiplicityA;
186  } else {
187  ++triggerMultiplicityC;
188  }
189  }
190  }
191 
192  fill("TileTriggerMultiplicityMBTSA", l1aBCID, triggerMultiplicityA);
193  fill("TileTriggerMultiplicityMBTSC", l1aBCID, triggerMultiplicityC);
194  fill("TileTriggerMultiplicityPerSideMBTS", triggerMultiplicityA, triggerMultiplicityC);
195 
196  std::vector<int> triggerTypes; // A-Inner, A-Outer, A-Total, C-Inner, C-Outer, C-Total
197  std::vector<int> triggerCounters;
198  std::vector<int> triggerInWindowCounters;
199  std::vector<int> deltaBCIDs;
200 
201  //int deltaBCID;
202  // Loop over bunch crossings in CTP window
203  for (const CTP_BC& ctpBunchCrossing : ctpBunchCrossings) {
204  bcid = ctpBunchCrossing.getBCID();
205 
206  int deltaBCID = l1aBCID - bcid;
207 
208  std::vector<std::reference_wrapper<const std::bitset<512>>> triggers;
209  triggers.push_back(ctpBunchCrossing.getTBP());
210  triggers.push_back(ctpBunchCrossing.getTAP());
211  triggers.push_back(ctpBunchCrossing.getTAV());
212 
213  int triggerIdx = 0;
214  for (const std::bitset<512>& currentTrigger : triggers) {
215  triggerTypes.clear();
216  triggerCounters.clear();
217  triggerInWindowCounters.clear();
218  deltaBCIDs.clear();
219 
220  for (size_t counter = 0; counter < m_ctpID.size(); ++counter) {
221  if (m_ctpID[counter] < 0) continue;
222  if (currentTrigger.test(m_ctpID[counter])) {
223  triggerInWindowCounters.push_back(counter);
224  auto monBCID = Monitored::Scalar<unsigned int>("MBTS_BCID", bcid);
225  fill(m_tools[m_bcidGroups[triggerIdx][counter]], monBCID);
226  deltaBCIDs.push_back(deltaBCID);
227  auto monDeltaBCID = Monitored::Scalar<float>("DeltaBCID", deltaBCID);
228  fill(m_tools[m_deltaBCIDGroups[triggerIdx][counter]], monDeltaBCID);
229  if (bcid == l1aBCID) {
230  triggerCounters.push_back(counter);
231  int mbtsType = counter / 8; // A-Inner, A-Outer, C-Inner, C-Outer
232  if (counter > 15) {
233  mbtsType += 1; // Shift C-Side to allow A-Total
234  }
235  triggerTypes.push_back(mbtsType);
236  triggerTypes.push_back(counter < 16 ? 2 : 5); // A-Total, C-Total
237  }
238  }
239  }
240 
241  auto monTriggerInWindowCounter = Monitored::Collection("TriggerCounter", triggerInWindowCounters);
242  fill(m_tools[m_trigInWinGroups[triggerIdx]], monTriggerInWindowCounter);
243 
244  auto monDeltaBCID = Monitored::Collection("DeltaBCID", deltaBCIDs);
245  fill(m_tools[m_deltaBCIDSumGroups[triggerIdx]], monTriggerInWindowCounter, monDeltaBCID);
246 
247  if (bcid == l1aBCID) {
248  auto monTriggerType = Monitored::Collection("TriggerType", triggerTypes);
249  fill(m_tools[m_trigSumGroups[triggerIdx]], monTriggerType);
250 
251  auto monTriggerCounter = Monitored::Collection("TriggerCounter", triggerCounters);
252  fill(m_tools[m_trigGroups[triggerIdx]], monTriggerCounter);
253 
254  std::vector<int> coincidentTriggers1;
255  std::vector<int> coincidentTriggers2;
256  for (int counter1 : triggerCounters) {
257  for (int counter2 : triggerCounters) {
258  coincidentTriggers1.push_back(counter1);
259  coincidentTriggers2.push_back(counter2);
260  }
261  }
262  auto monCoincidentTrigger1 = Monitored::Collection("CoincidentTrigger1", coincidentTriggers1);
263  auto monCoincidentTrigger2 = Monitored::Collection("CoincidentTrigger2", coincidentTriggers2);
264  fill(m_tools[m_coinTrigGroups[triggerIdx]], monCoincidentTrigger1, monCoincidentTrigger2);
265  }
266  ++triggerIdx;
267  }
268  }
269 
270  }
271  }
272 
273  auto monEnergy = Monitored::Scalar<float>("Energy", 0.0F);
274  auto monTime = Monitored::Scalar<float>("Time", 0.0F);
275 
276  std::vector<float> energyCounters;
277  energyCounters.reserve(MAX_MBTS_COUNTER);
278  auto monEnergyCounter = Monitored::Collection("EnergyCounter", energyCounters);
279 
280  std::vector<float> energies;
281  energies.reserve(MAX_MBTS_COUNTER);
282  auto monSummaryEnergy = Monitored::Collection("SummaryEnergy", energies);
283 
284  std::vector<float> timeCounters;
285  auto monTimeCounter = Monitored::Collection("TimeCounter", timeCounters);
286 
287  std::vector<float> times;
288  auto monSummaryTime = Monitored::Collection("SummaryTime", times);
289 
290  std::vector<float> triggerEnergies;
291  auto monTriggerSummaryEnergy = Monitored::Collection("SummaryEnergy", triggerEnergies);
292 
293  std::vector<float> triggerTimes;
294  auto monTriggerSummaryTime = Monitored::Collection("SummaryTime", triggerTimes);
295 
296  std::vector<int> energyHitCounters;
297  std::vector<int> triggerHitCounters;
298 
300  ATH_CHECK( mbtsContainer.isValid() );
301 
302  for (const TileCell* cell : *mbtsContainer) {
303 
304  Identifier id = cell->ID();
305 
306  // Calculate MBTS counter from "side", "tower" and "module"
307  // Counter goes 0-31.
308  // EBA-inner:0-7,EBA-outer:8-15,EBC-inner:16-23,EBC-outer:24-31
309  // tower is 1 for outer counter (lower eta) and 0 for inner counter (higher eta)
310  // module counts from 0-7 in increasing phi
311  // side is -1 for EBC 1 for EBA
312 
313  int counter = getMBTSCounter(id);
314  energyCounters.push_back(counter);
315 
316  double energy = cell->energy();
317  monEnergy = energy;
318  energies.push_back(energy);
319 
320  double time = cell->time();
321  monTime = time;
322 
323  float quality = cell->quality();
324 
325  ATH_MSG_VERBOSE("Counter: " << counter
326  << ", energy= " << energy << " pCb"
327  << ", time= " << time
328  << ", quality= " << quality);
329 
330 
332  fill(m_tools[m_energyGroups[counter]], monEnergy);
334  }
335 
336  if (m_useTrigger) {
337  auto monEfficiency = Monitored::Scalar<float>("Efficiency", 0.0F);
338  if (hasTBP[counter]) {
339  monEfficiency = 1.0F;
340  triggerHitCounters.push_back(counter);
341  triggerEnergies.push_back(energy);
342  triggerTimes.push_back(time);
343 
344  fill(m_tools[m_energyTrigGroups[counter]], monEnergy);
346  fill(m_tools[m_timeTrigGroups[counter]], monTime);
347  }
348  fill(m_tools[m_effTrigGroups[counter]], monEnergy, monEfficiency);
349  }
350 
351  if (energy > m_energyCut[counter]) {
352 
353  timeCounters.push_back(counter);
354  times.push_back(time);
355 
356  energyHitCounters.push_back(counter);
357 
359  fill(m_tools[m_timeGroups[counter]], monTime);
360  }
361 
362  if (std::abs(time) > 10e-4) {
363  if (counter < 16) { // MBTS A side
364  timeA += time;
365  ++nHitsA;
366  } else { // MBTS C side
367  timeC += time;
368  ++nHitsC;
369  }
370  }
371 
372  }
373  }
374 
375  auto monHitCounter = Monitored::Collection("HitCounter", energyHitCounters);
376  fill("TileOccupancyMBTS", monHitCounter);
377  fill("TileEnergySummaryMBTS", monEnergyCounter, monSummaryEnergy);
378 
379  fill("TileTimeSummaryMBTS", monTimeCounter, monSummaryTime);
380 
381  if (m_useTrigger) {
382  auto monTriggerHitCounter = Monitored::Collection("HitCounter", triggerHitCounters);
383  fill("TileTriggerOccupancyMBTS", monTriggerHitCounter);
384  fill("TileTriggerEnergySummaryMBTS", monTriggerHitCounter, monTriggerSummaryEnergy);
385  fill("TileTriggerTimeSummaryMBTS", monTriggerHitCounter, monTriggerSummaryTime);
386  }
387 
388  if (nHitsA > 0) {
389  timeA /= nHitsA;
390  auto monTimeA = Monitored::Scalar<float>("TimeA", timeA);
391  fill("TileTimeMBTSA", monTimeA);
392  }
393 
394  if (nHitsC > 0) {
395  timeC /= nHitsC;
396  auto monTimeC = Monitored::Scalar<float>("TimeC", timeC);
397  fill("TileTimeMBTSC", monTimeC);
398  }
399 
400  if (nHitsA > 0 && nHitsC > 0) {
401  double timeDifference = timeA - timeC;
402  auto monTimeDifference = Monitored::Scalar<float>("TimeDifference", timeDifference);
403  fill("TileTimeDifferenceMBTS", monTimeDifference);
404  fill("TileTimeDifferenceMBTSLB", lumiBlock, monTimeDifference);
405  }
406 
407 
408  std::vector<int> coincidentCounters1;
409  auto monCoincidentCounters1 = Monitored::Collection("CoincidentCounter1", coincidentCounters1);
410 
411  std::vector<int> coincidentCounters2;
412  auto monCoincidentCounters2 = Monitored::Collection("CoincidentCounter2", coincidentCounters2);
413 
414  for (int counter1 : energyHitCounters) {
415  for (int counter2 : energyHitCounters) {
416  coincidentCounters1.push_back(counter1);
417  coincidentCounters2.push_back(counter2);
418  }
419  }
420 
421  fill("TileCoincidentHitsMBTS", monCoincidentCounters1, monCoincidentCounters2);
422 
423  std::vector<int> errors;
424  auto monErrors = Monitored::Collection("Error", errors);
425 
426  std::vector<int> counters;
427  auto monErrorCounters = Monitored::Collection("ErrorCounter", counters);
428 
429  // Create instance of TileDQstatus used to check for readout errors in Tile
430  const TileDQstatus* dqStatus = SG::makeHandle (m_DQstatusKey, ctx).get();
431 
432  // Check only low gain (in physics runs low and high gain status should identical)
433  const int gain{0};
434  for (unsigned int ros = 3; ros < Tile::MAX_ROS; ++ros) {
435  for (unsigned int drawer = 0; drawer < Tile::MAX_DRAWER; ++drawer) {
436  int channel = m_MBTSchannels[ros - 3][drawer];
437  int counter = m_MBTScounters[ros - 3][drawer];
438 
439  if (channel > 0) {
440  // Fill Readout Error histogram
441  if (!(dqStatus->isChanDQgood(ros, drawer, channel))) {
442  setDigiError(counters, errors, counter, GENERAL);
443  }
444  if (dqStatus->checkGlobalCRCErr(ros, drawer, gain)) {
445  setDigiError(counters, errors, counter, GLOBAL_CRC);
446  }
447  if (dqStatus->checkROD_CRCErr(ros, drawer, MBTS_DMU, gain)) {
448  setDigiError(counters, errors, counter, ROD_CRC);
449  }
450  if (dqStatus->checkFE_CRCErr(ros, drawer, MBTS_DMU, gain)) {
452  }
453  if (dqStatus->checkBCIDErr(ros, drawer, MBTS_DMU, gain)) {
454  setDigiError(counters, errors, counter, BCID);
455  }
456  if (dqStatus->checkHeaderFormatErr(ros, drawer, MBTS_DMU, gain)) {
458  }
459  if (dqStatus->checkHeaderParityErr(ros, drawer, MBTS_DMU, gain)) {
461  }
462  if (dqStatus->checkSampleFormatErr(ros, drawer, MBTS_DMU, gain)) {
464  }
465  if (dqStatus->checkSampleParityErr(ros, drawer, MBTS_DMU, gain)) {
467  }
468  if (dqStatus->checkMemoryParityErr(ros, drawer, MBTS_DMU, gain)) {
470  }
471  }
472  }
473  }
474 
475  fill("TileErrorsMBTS", monErrorCounters, monErrors);
476 
477 
480  ATH_CHECK( digitsContainer.isValid() );
481 
482  auto monPedestal = Monitored::Scalar<float>("Pedestal", 0.0F);
483  auto monHFN = Monitored::Scalar<float>("HFN", 0.0F);
484 
485  for (const TileDigitsCollection* digitsCollection : *digitsContainer) {
486  if (digitsCollection->empty()) continue;
487  HWIdentifier adc_id = digitsCollection->front()->adc_HWID();
488  int ros = m_tileHWID->ros(adc_id);
489  if (ros > 2) { // Extended barrel
490  int drawer = m_tileHWID->drawer(adc_id);
491  int MBTSchannel = m_MBTSchannels[ros - 3][drawer];
492 
493  if (MBTSchannel >= 0) {
494  for (const TileDigits* tile_digits: *digitsCollection) {
495 
496  adc_id = tile_digits->adc_HWID();
497  int channel = m_tileHWID->channel(adc_id);
498  if (channel == MBTSchannel) { // MBTS channel found
499  int counter = m_MBTScounters[ros - 3][drawer];
500 
501  double sampleMean = 0;
502  double sampleRMS = 0;
503 
504  std::vector<float> samples = tile_digits->samples();
505  unsigned int nSamples = samples.size();
506  if (nSamples > 0) {
507 
508  for (float sample : samples) {
509  sampleMean += sample;
510  sampleRMS += sample * sample;
511  }
512 
513  auto min_max = std::minmax_element(samples.begin(), samples.end());
514  float minSample = *min_max.first;
515  float maxSample = *min_max.second;
516 
517  if ((maxSample - minSample) > 10) {
518 
519  auto monSamples = Monitored::Collection("Samples", samples);
520 
521  std::vector<int> sampleNumbers;
522  sampleNumbers.reserve(nSamples);
523  for (unsigned int i = 0; i < nSamples; ++i) sampleNumbers.push_back(i);
524  auto monSampleNumbers = Monitored::Collection("SampleNumbers", sampleNumbers);
525 
526  fill(m_tools[m_pulseGroups[counter]], monSampleNumbers, monSamples);
527  if (hasTBP[counter]) {
528  fill(m_tools[m_pulseTrigGroups[counter]], monSampleNumbers, monSamples);
529  }
530  }
531 
532  sampleMean /= nSamples;
533  sampleRMS = sampleRMS / nSamples - sampleMean * sampleMean;
534  sampleRMS = (sampleRMS > 0.0 && nSamples > 1u) ? sqrt(sampleRMS * nSamples / (nSamples - 1u)) : 0.0;
535 
536  monHFN = sampleRMS;
537  fill(m_tools[m_hfnGroups[counter]], monHFN);
538 
539  monPedestal = samples.front();
540  fill(m_tools[m_pedestalGroups[counter]], monPedestal);
541 
542  }
543  }
544  }
545  }
546  }
547  }
548  }
549 
550  return StatusCode::SUCCESS;
551 }

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

◆ getMBTSCounter()

int TileMBTSMonitorAlgorithm::getMBTSCounter ( Identifier  mbtsID) const
private

Definition at line 555 of file TileMBTSMonitorAlgorithm.cxx.

555  {
556  int counter = m_tileTBID->phi(mbtsID) + 8 * m_tileTBID->eta(mbtsID);
557  if (m_tileTBID->side(mbtsID) < 0) counter += 16;// EBC side
558  return counter;
559 }

◆ 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 TileMBTSMonitorAlgorithm::initialize ( )
overridevirtual

initialize

Returns
StatusCode

Reimplemented from AthMonitorAlgorithm.

Definition at line 16 of file TileMBTSMonitorAlgorithm.cxx.

16  {
17 
19 
20  ATH_MSG_INFO("in initialize()");
21 
22  if (m_energyCut.size() != MAX_MBTS_COUNTER) {
23  int numberOfCounters{MAX_MBTS_COUNTER};
24  ATH_MSG_ERROR("Energy cuts are not provided for all ("
25  << numberOfCounters << ") MBTS. Provided only "
26  << m_energyCut.size() << " energy cuts");
27 
28  return StatusCode::FAILURE;
29  }
30 
31  ATH_CHECK( m_cablingSvc.retrieve() );
32  m_cabling = m_cablingSvc->cablingService();
33 
36 
39  ATH_CHECK( m_mbtsCellContainerKey.initialize() );
40 
41  memset(m_MBTSchannels, -1, sizeof(m_MBTSchannels));
42  memset(m_MBTScounters, -1, sizeof(m_MBTScounters));
43  for (unsigned int ros = 3; ros < Tile::MAX_ROS ; ++ros) {
44  for (unsigned int drawer = 0; drawer < Tile::MAX_DRAWER; ++drawer) {
45  HWIdentifier drawerHWID = m_tileHWID->drawer_id(ros, drawer);
46  Identifier mbtsID = m_cabling->drawer2MBTS_id(drawerHWID);
47  if (mbtsID.is_valid()) {
50 
51  int counter = getMBTSCounter(mbtsID);
53 
54  ATH_MSG_DEBUG( "Found MBTS: drawer/channel (counter)=> " << drawer << "/" << channel << "(" << counter << ")" );
55 
56  }
57  }
58  }
59 
61  m_energyGroups = Monitored::buildToolMap<int>(m_tools, "TileEnergyMBTS", MAX_MBTS_COUNTER);
62  m_energyLBGroups = Monitored::buildToolMap<int>(m_tools, "TileEnergyLBMBTS", MAX_MBTS_COUNTER);
63 
64  m_timeGroups = Monitored::buildToolMap<int>(m_tools, "TileTimeMBTS", MAX_MBTS_COUNTER);
65 
66  m_hfnGroups = Monitored::buildToolMap<int>(m_tools, "TileHFNoiseMBTS", MAX_MBTS_COUNTER);
67  m_pedestalGroups = Monitored::buildToolMap<int>(m_tools, "TilePedestalMBTS", MAX_MBTS_COUNTER);
68 
69  m_pulseGroups = Monitored::buildToolMap<int>(m_tools, "TileAveragePulseMBTS", MAX_MBTS_COUNTER);
70  }
71 
72  bool doMenuInit = false;
73  if (m_useTrigger && (m_ctpID.size() != MAX_MBTS_COUNTER)) {
74  if (m_l1Triggers.size() != MAX_MBTS_COUNTER) {
75  int numberOfCounters{MAX_MBTS_COUNTER};
76  ATH_MSG_WARNING("Names are not provided for all ("
77  << numberOfCounters << ") L1 MBTS triggers. Provided only "
78  << m_l1Triggers.size() << " L1 MBTS");
79 
80  ATH_MSG_WARNING("Autoconfiguration of CTP ID to L1 MBTS mapping is not possible: force useTrigger=false");
81  m_useTrigger = false;
82  } else {
83  doMenuInit = true;
84  }
85  }
86  ATH_CHECK( m_L1MenuKey.initialize( doMenuInit ) );
87 
89  if (m_useTrigger) {
90  m_energyTrigGroups = Monitored::buildToolMap<int>(m_tools, "TileEnergyTrigMBTS", MAX_MBTS_COUNTER);
91  m_energyTrigLBGroups = Monitored::buildToolMap<int>(m_tools, "TileEnergyTrigLBMBTS", MAX_MBTS_COUNTER);
92  m_timeTrigGroups = Monitored::buildToolMap<int>(m_tools, "TileTimeTrigMBTS", MAX_MBTS_COUNTER);
93  m_pulseTrigGroups = Monitored::buildToolMap<int>(m_tools, "TileAveragePulseTrigMBTS", MAX_MBTS_COUNTER);
94  m_effTrigGroups = Monitored::buildToolMap<int>(m_tools, "TileEfficiencyTrigMBTS", MAX_MBTS_COUNTER);
95 
96  int nTriggers = 3;
97  m_trigGroups = Monitored::buildToolMap<int>(m_tools, "MBTS_Triggers", nTriggers);
98  m_trigInWinGroups = Monitored::buildToolMap<int>(m_tools, "MBTS_TriggersInWindow", nTriggers);
99  m_trigSumGroups = Monitored::buildToolMap<int>(m_tools, "MBTS_TriggersSum", nTriggers);
100  m_coinTrigGroups = Monitored::buildToolMap<int>(m_tools, "MBTS_CoincidentTriggers", nTriggers);
101  m_deltaBCIDSumGroups = Monitored::buildToolMap<int>(m_tools, "MBTS_DeltaBCID_Summary", nTriggers);
102  m_deltaBCIDGroups = Monitored::buildToolMap<std::vector<int>>(m_tools, "MBTS_DeltaBCID", nTriggers, MAX_MBTS_COUNTER);
103  m_bcidGroups = Monitored::buildToolMap<std::vector<int>>(m_tools, "MBTS_BCID", nTriggers, MAX_MBTS_COUNTER);
104  }
105 
106  return StatusCode::SUCCESS;
107 }

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

◆ setDigiError()

void TileMBTSMonitorAlgorithm::setDigiError ( std::vector< int > &  counters,
std::vector< int > &  errors,
int  counter,
int  error 
) const
private

Definition at line 562 of file TileMBTSMonitorAlgorithm.cxx.

563  {
564 
565  counters.push_back(counter);
566  errors.push_back(error);
567 }

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

◆ start()

StatusCode TileMBTSMonitorAlgorithm::start ( )
overridevirtual

Definition at line 109 of file TileMBTSMonitorAlgorithm.cxx.

109  {
110 
111  if (m_useTrigger && (m_ctpID.size() != MAX_MBTS_COUNTER)) {
112  m_ctpID.value().resize(MAX_MBTS_COUNTER, -1);
113  ATH_MSG_INFO("Try to autoconfigure CTP ID to L1 MBTS trigger mapping from L1 menu");
115  if( l1MenuHandle.isValid() ) {
116  for (const TrigConf::L1Item& item: *l1MenuHandle) {
117  auto it = std::find(m_l1Triggers.begin(), m_l1Triggers.end(), item.name());
118  if (it != m_l1Triggers.end()) {
119  unsigned int counter = std::distance(m_l1Triggers.begin(), it);
120  m_ctpID[counter] = item.ctpId();
121  ATH_MSG_DEBUG("Found in L1 Menu: " << item.name() << ", CTP ID: " << item.ctpId() << ", counter: " << counter);
122  }
123  }
124  } else {
125  ATH_MSG_WARNING("L1 menu is not available: force useTrigger=false");
126  m_useTrigger = false;
127  }
128  }
129 
130  return StatusCode::SUCCESS;
131 }

◆ 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

◆ cfg

TileMBTSMonitorAlgorithm.cfg

Definition at line 416 of file TileMBTSMonitorAlgorithm.py.

◆ enableLumiAccess

TileMBTSMonitorAlgorithm.enableLumiAccess

Definition at line 408 of file TileMBTSMonitorAlgorithm.py.

◆ Files

TileMBTSMonitorAlgorithm.Files

Definition at line 405 of file TileMBTSMonitorAlgorithm.py.

◆ FillHistogramsPerMBTS

TileMBTSMonitorAlgorithm.FillHistogramsPerMBTS

Definition at line 419 of file TileMBTSMonitorAlgorithm.py.

◆ flags

TileMBTSMonitorAlgorithm.flags

Definition at line 404 of file TileMBTSMonitorAlgorithm.py.

◆ HISTFileName

TileMBTSMonitorAlgorithm.HISTFileName

Definition at line 406 of file TileMBTSMonitorAlgorithm.py.

◆ m_bcidGroups

std::vector<std::vector<int> > TileMBTSMonitorAlgorithm::m_bcidGroups
private

Definition at line 128 of file TileMBTSMonitorAlgorithm.h.

◆ m_cabling

const TileCablingService* TileMBTSMonitorAlgorithm::m_cabling {nullptr}
private

Definition at line 104 of file TileMBTSMonitorAlgorithm.h.

◆ m_cablingSvc

ServiceHandle<TileCablingSvc> TileMBTSMonitorAlgorithm::m_cablingSvc
private
Initial value:
{this,
"TileCablingSvc", "TileCablingSvc", "The Tile cabling service" }

Name of Tile cabling service.

Definition at line 101 of file TileMBTSMonitorAlgorithm.h.

◆ m_coinTrigGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_coinTrigGroups
private

Definition at line 125 of file TileMBTSMonitorAlgorithm.h.

◆ m_ctpID

Gaudi::Property<std::vector<int> > TileMBTSMonitorAlgorithm::m_ctpID
private
Initial value:
{this,
"CTP_ID", {-1}, "Force CTP IDs for 32 MBTS counters (MBTSA00, .., MBTSC15)"}

Definition at line 83 of file TileMBTSMonitorAlgorithm.h.

◆ m_ctpRdoKey

SG::ReadHandleKey<CTP_RDO> TileMBTSMonitorAlgorithm::m_ctpRdoKey
private
Initial value:
{this,
"CTP_RDO", "CTP_RDO", "Trigger CTP RDO name" }

Definition at line 80 of file TileMBTSMonitorAlgorithm.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_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_deltaBCIDGroups

std::vector<std::vector<int> > TileMBTSMonitorAlgorithm::m_deltaBCIDGroups
private

Definition at line 127 of file TileMBTSMonitorAlgorithm.h.

◆ m_deltaBCIDSumGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_deltaBCIDSumGroups
private

Definition at line 126 of file TileMBTSMonitorAlgorithm.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_digitsContainerKey

SG::ReadHandleKey<TileDigitsContainer> TileMBTSMonitorAlgorithm::m_digitsContainerKey
private
Initial value:
{ this,
"TileDigitsContainer", "TileDigitsCnt", "Tile digits container" }

Definition at line 74 of file TileMBTSMonitorAlgorithm.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_DQstatusKey

SG::ReadHandleKey<TileDQstatus> TileMBTSMonitorAlgorithm::m_DQstatusKey
private
Initial value:
{this,
"TileDQstatus", "TileDQstatus", "Tile DQ status"}

Definition at line 71 of file TileMBTSMonitorAlgorithm.h.

◆ m_dummy

const ToolHandle<GenericMonitoringTool> AthMonitorAlgorithm::m_dummy
privateinherited

Definition at line 369 of file AthMonitorAlgorithm.h.

◆ m_effTrigGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_effTrigGroups
private

Definition at line 120 of file TileMBTSMonitorAlgorithm.h.

◆ m_energyCut

Gaudi::Property<std::vector<float> > TileMBTSMonitorAlgorithm::m_energyCut
private
Initial value:
{this,
"EnergyCuts",
{
60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222,
60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222,
60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222,
60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222},
"Energy cuts for 32 MBTS counters (MBTSA00, .., MBTSC15)"}

Definition at line 59 of file TileMBTSMonitorAlgorithm.h.

◆ m_energyGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_energyGroups
private

Definition at line 106 of file TileMBTSMonitorAlgorithm.h.

◆ m_energyLBGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_energyLBGroups
private

Definition at line 107 of file TileMBTSMonitorAlgorithm.h.

◆ m_energyTrigGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_energyTrigGroups
private

Definition at line 108 of file TileMBTSMonitorAlgorithm.h.

◆ m_energyTrigLBGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_energyTrigLBGroups
private

Definition at line 109 of file TileMBTSMonitorAlgorithm.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_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_fillHistogramsPerMBTS

Gaudi::Property<bool> TileMBTSMonitorAlgorithm::m_fillHistogramsPerMBTS
private
Initial value:
{this,
"FillHistogramsPerMBTS", false, "Switch for using per MBTS histograms"}

Definition at line 53 of file TileMBTSMonitorAlgorithm.h.

◆ m_hfnGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_hfnGroups
private

Definition at line 114 of file TileMBTSMonitorAlgorithm.h.

◆ m_L1MenuKey

SG::ReadHandleKey<TrigConf::L1Menu> TileMBTSMonitorAlgorithm::m_L1MenuKey
private
Initial value:
{this,
"L1TriggerMenu", "DetectorStore+L1TriggerMenu", "L1 Menu"}

Definition at line 95 of file TileMBTSMonitorAlgorithm.h.

◆ m_l1Triggers

Gaudi::Property<std::vector<std::string> > TileMBTSMonitorAlgorithm::m_l1Triggers
private
Initial value:
{this,
"L1_MBTS",
{
"L1_MBTSA0", "L1_MBTSA1", "L1_MBTSA2", "L1_MBTSA3", "L1_MBTSA4", "L1_MBTSA5", "L1_MBTSA6", "L1_MBTSA7",
"L1_MBTSA8", "L1_MBTSA9", "L1_MBTSA10", "L1_MBTSA11", "L1_MBTSA12", "L1_MBTSA13", "L1_MBTSA14", "L1_MBTSA15",
"L1_MBTSC0", "L1_MBTSC1", "L1_MBTSC2", "L1_MBTSC3", "L1_MBTSC4", "L1_MBTSC5", "L1_MBTSC6", "L1_MBTSC7",
"L1_MBTSC8", "L1_MBTSC9", "L1_MBTSC10", "L1_MBTSC11", "L1_MBTSC12", "L1_MBTSC13", "L1_MBTSC14", "L1_MBTSC15",
}, "Names of 32 L1 MBTS triggers (e.g.: L1_MBTSA0, .., L1_MBTSC15)"}

Definition at line 86 of file TileMBTSMonitorAlgorithm.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_mbtsCellContainerKey

SG::ReadHandleKey<TileCellContainer> TileMBTSMonitorAlgorithm::m_mbtsCellContainerKey
private
Initial value:
{this,
"MBTSContainer", "MBTSContainer", "Tile MBTS container" }

Definition at line 77 of file TileMBTSMonitorAlgorithm.h.

◆ m_MBTSchannels

int TileMBTSMonitorAlgorithm::m_MBTSchannels[Tile::MAX_ROS - 3][Tile::MAX_DRAWER]
private

Definition at line 133 of file TileMBTSMonitorAlgorithm.h.

◆ m_MBTScounters

int TileMBTSMonitorAlgorithm::m_MBTScounters[Tile::MAX_ROS - 3][Tile::MAX_DRAWER]
private

Definition at line 134 of file TileMBTSMonitorAlgorithm.h.

◆ m_name

std::string AthMonitorAlgorithm::m_name
privateinherited

Definition at line 366 of file AthMonitorAlgorithm.h.

◆ m_pedestalGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_pedestalGroups
private

Definition at line 115 of file TileMBTSMonitorAlgorithm.h.

◆ m_pulseGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_pulseGroups
private

Definition at line 117 of file TileMBTSMonitorAlgorithm.h.

◆ m_pulseTrigGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_pulseTrigGroups
private

Definition at line 118 of file TileMBTSMonitorAlgorithm.h.

◆ m_tileHWID

const TileHWID* TileMBTSMonitorAlgorithm::m_tileHWID {nullptr}
private

Definition at line 131 of file TileMBTSMonitorAlgorithm.h.

◆ m_tileTBID

const TileTBID* TileMBTSMonitorAlgorithm::m_tileTBID {nullptr}
private

Definition at line 130 of file TileMBTSMonitorAlgorithm.h.

◆ m_timeGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_timeGroups
private

Definition at line 111 of file TileMBTSMonitorAlgorithm.h.

◆ m_timeTrigGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_timeTrigGroups
private

Definition at line 112 of file TileMBTSMonitorAlgorithm.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_trigGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_trigGroups
private

Definition at line 122 of file TileMBTSMonitorAlgorithm.h.

◆ m_trigInWinGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_trigInWinGroups
private

Definition at line 123 of file TileMBTSMonitorAlgorithm.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_trigSumGroups

std::vector<int> TileMBTSMonitorAlgorithm::m_trigSumGroups
private

Definition at line 124 of file TileMBTSMonitorAlgorithm.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_useTrigger

Gaudi::Property<bool> TileMBTSMonitorAlgorithm::m_useTrigger
private
Initial value:
{this,
"useTrigger", false, "Switch for using trigger information"}

Definition at line 56 of file TileMBTSMonitorAlgorithm.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.

◆ MAX_MBTS_COUNTER

const unsigned int TileMBTSMonitorAlgorithm::MAX_MBTS_COUNTER {32}
staticprivate

Definition at line 136 of file TileMBTSMonitorAlgorithm.h.

◆ MaxEvents

TileMBTSMonitorAlgorithm.MaxEvents

Definition at line 409 of file TileMBTSMonitorAlgorithm.py.

◆ MBTS_DMU

const unsigned int TileMBTSMonitorAlgorithm::MBTS_DMU {0}
staticprivate

Definition at line 137 of file TileMBTSMonitorAlgorithm.h.

◆ sc

TileMBTSMonitorAlgorithm.sc

Definition at line 426 of file TileMBTSMonitorAlgorithm.py.

◆ summariseProps

TileMBTSMonitorAlgorithm.summariseProps

Definition at line 421 of file TileMBTSMonitorAlgorithm.py.

◆ True

TileMBTSMonitorAlgorithm.True

Definition at line 421 of file TileMBTSMonitorAlgorithm.py.

◆ useTrigger

TileMBTSMonitorAlgorithm.useTrigger

Definition at line 407 of file TileMBTSMonitorAlgorithm.py.

◆ withDetails

TileMBTSMonitorAlgorithm.withDetails

Definition at line 421 of file TileMBTSMonitorAlgorithm.py.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
TileCell
Definition: TileCell.h:57
TileMBTSMonitorAlgorithm::HEADER_PARITY
@ HEADER_PARITY
Definition: TileMBTSMonitorAlgorithm.h:47
AthMonitorAlgorithm::Environment_t::tier0Raw
@ tier0Raw
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
TileDQstatus::checkBCIDErr
int checkBCIDErr(int partition, int drawer, int dmu, int gain) const
returns 1 if DMU has BCID mismatch between DMU and ROD Since BCID errors in the DQ fragment are det...
Definition: TileDQstatus.h:100
checkFileSG.line
line
Definition: checkFileSG.py:75
TrigDefs::Group
Group
Properties of a chain group.
Definition: GroupProperties.h:13
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TileMBTSMonitorAlgorithm::m_timeTrigGroups
std::vector< int > m_timeTrigGroups
Definition: TileMBTSMonitorAlgorithm.h:112
get_generator_info.result
result
Definition: get_generator_info.py:21
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
TileMBTSMonitorAlgorithm::m_useTrigger
Gaudi::Property< bool > m_useTrigger
Definition: TileMBTSMonitorAlgorithm.h:56
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthMonitorAlgorithm::m_trigDecTool
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
Definition: AthMonitorAlgorithm.h:340
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
TileMBTSMonitorAlgorithm::m_coinTrigGroups
std::vector< int > m_coinTrigGroups
Definition: TileMBTSMonitorAlgorithm.h:125
AthMonitorAlgorithm::Environment_t::tier0
@ tier0
AthMonitorAlgorithm::Environment_t::AOD
@ AOD
TileMBTSMonitorAlgorithm::MEMORY_PARITY
@ MEMORY_PARITY
Definition: TileMBTSMonitorAlgorithm.h:47
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TileDQstatus::isChanDQgood
bool isChanDQgood(int partition, int drawer, int ch) const
returns status of single channel (if bigain, returns AND of ADCs' status
Definition: TileDQstatus.cxx:240
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
accumulate
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
Definition: FPGATrackSimMatrixAccumulator.cxx:22
AthMonitorAlgorithm::m_vTrigChainNames
std::vector< std::string > m_vTrigChainNames
Vector of trigger chain names parsed from trigger chain string.
Definition: AthMonitorAlgorithm.h:356
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
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
skel.it
it
Definition: skel.GENtoEVGEN.py:423
TileMBTSMonitorAlgorithm::ROD_CRC
@ ROD_CRC
Definition: TileMBTSMonitorAlgorithm.h:46
TileMBTSMonitorAlgorithm::m_tileHWID
const TileHWID * m_tileHWID
Definition: TileMBTSMonitorAlgorithm.h:131
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
AthMonitorAlgorithm::m_toolLookupMap
std::unordered_map< std::string, size_t > m_toolLookupMap
Definition: AthMonitorAlgorithm.h:367
TileMBTSMonitorAlgorithm::m_trigInWinGroups
std::vector< int > m_trigInWinGroups
Definition: TileMBTSMonitorAlgorithm.h:123
AthMonitorAlgorithm::m_environment
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.
Definition: AthMonitorAlgorithm.h:350
TileMBTSMonitorAlgorithm::HEADER_FORMAT
@ HEADER_FORMAT
Definition: TileMBTSMonitorAlgorithm.h:46
cosmics
Definition: cosmics.py:1
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.TrigTLAMonitorAlgorithm.triggers
triggers
Definition: TrigTLAMonitorAlgorithm.py:196
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
TileMBTSMonitorAlgorithm::GLOBAL_CRC
@ GLOBAL_CRC
Definition: TileMBTSMonitorAlgorithm.h:46
HWIdentifier
Definition: HWIdentifier.h:13
Identifier::is_valid
bool is_valid() const
Check if id is in a valid state.
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:83
Example_ReadSampleNoise.drawer
drawer
Definition: Example_ReadSampleNoise.py:39
AthMonitorAlgorithm::trigChainsArePassed
bool trigChainsArePassed(const std::vector< std::string > &vTrigNames) const
Check whether triggers are passed.
Definition: AthMonitorAlgorithm.cxx:194
TileMBTSMonitorAlgorithm::m_DQstatusKey
SG::ReadHandleKey< TileDQstatus > m_DQstatusKey
Definition: TileMBTSMonitorAlgorithm.h:71
AthMonitorAlgorithm::Environment_t::user
@ user
TileHWID::channel
int channel(const HWIdentifier &id) const
extract channel field from HW identifier
Definition: TileHWID.h:189
CTP_Decoder
Definition: CTP_Decoder.h:142
python.utils.AtlRunQueryTimer.timer
def timer(name, disabled=False)
Definition: AtlRunQueryTimer.py:86
TileDQstatus::checkGlobalCRCErr
int checkGlobalCRCErr(int partition, int drawer, int gain) const
returns 1 if adc channel has global CRC error
Definition: TileDQstatus.h:80
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
TileMBTSMonitorAlgorithm::m_L1MenuKey
SG::ReadHandleKey< TrigConf::L1Menu > m_L1MenuKey
Definition: TileMBTSMonitorAlgorithm.h:95
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
TileDQstatus::checkROD_CRCErr
int checkROD_CRCErr(int partition, int drawer, int dmu, int gain) const
returns 1 if DMU has CRC error originating in ROD
Definition: TileDQstatus.h:84
TileCalibUtils::MAX_DRAWER
static const unsigned int MAX_DRAWER
Number of drawers in ROS 1-4.
Definition: TileCalibUtils.h:139
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthMonitorAlgorithm::m_dummy
const ToolHandle< GenericMonitoringTool > m_dummy
Definition: AthMonitorAlgorithm.h:369
TileHWID::ros
int ros(const HWIdentifier &id) const
extract ros field from HW identifier
Definition: TileHWID.h:167
TileMBTSMonitorAlgorithm::m_cabling
const TileCablingService * m_cabling
Definition: TileMBTSMonitorAlgorithm.h:104
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:269
TileMBTSMonitorAlgorithm::MAX_MBTS_COUNTER
static const unsigned int MAX_MBTS_COUNTER
Definition: TileMBTSMonitorAlgorithm.h:136
PyPoolBrowser.item
item
Definition: PyPoolBrowser.py:129
TileSynchronizeBch.online
online
Definition: TileSynchronizeBch.py:88
TileDQstatus
Class that holds Data Quality fragment information and provides functions to extract the data quality...
Definition: TileDQstatus.h:49
TileMBTSMonitorAlgorithm::m_hfnGroups
std::vector< int > m_hfnGroups
Definition: TileMBTSMonitorAlgorithm.h:114
TileMBTSMonitorAlgorithm::m_MBTScounters
int m_MBTScounters[Tile::MAX_ROS - 3][Tile::MAX_DRAWER]
Definition: TileMBTSMonitorAlgorithm.h:134
TileMBTSMonitorAlgorithm::getMBTSCounter
int getMBTSCounter(Identifier mbtsID) const
Definition: TileMBTSMonitorAlgorithm.cxx:555
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthMonitorAlgorithm::m_DQFilterTools
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Array of Data Quality filter tools.
Definition: AthMonitorAlgorithm.h:341
TileMBTSMonitorAlgorithm::GENERAL
@ GENERAL
Definition: TileMBTSMonitorAlgorithm.h:46
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
TileMBTSMonitorAlgorithm::SAMPLE_FORMAT
@ SAMPLE_FORMAT
Definition: TileMBTSMonitorAlgorithm.h:47
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
TileMBTSMonitorAlgorithm::SAMPLE_PARITY
@ SAMPLE_PARITY
Definition: TileMBTSMonitorAlgorithm.h:47
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:100
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
TileMBTSMonitorAlgorithm::setDigiError
void setDigiError(std::vector< int > &counters, std::vector< int > &errors, int counter, int error) const
Definition: TileMBTSMonitorAlgorithm.cxx:562
sim_rttUpdate.user
def user
Definition: sim_rttUpdate.py:662
TileMBTSMonitorAlgorithm::m_bcidGroups
std::vector< std::vector< int > > m_bcidGroups
Definition: TileMBTSMonitorAlgorithm.h:128
lumiFormat.i
int i
Definition: lumiFormat.py:92
TileMBTSMonitorAlgorithm::m_pulseGroups
std::vector< int > m_pulseGroups
Definition: TileMBTSMonitorAlgorithm.h:117
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
AthMonitorAlgorithm::DataType_t::heavyIonCollisions
@ heavyIonCollisions
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TileCablingService::drawer2MBTS_id
Identifier drawer2MBTS_id(const HWIdentifier &id) const
Definition: TileCablingService.cxx:499
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
01SubmitToGrid.samples
samples
Definition: 01SubmitToGrid.py:58
TileMBTSMonitorAlgorithm::MBTS_DMU
static const unsigned int MBTS_DMU
Definition: TileMBTSMonitorAlgorithm.h:137
CTP_BC
Definition: CTP_Decoder.h:17
CTP_Decoder::setRDO
void setRDO(const CTP_RDO *rdo)
Set RDO and fill internal variables from the data object.
Definition: CTP_Decoder.cxx:20
tolower
void tolower(std::string &s)
Definition: AthenaSummarySvc.cxx:113
AthMonitorAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const =0
adds event to the monitoring histograms
TileMBTSMonitorAlgorithm::m_energyTrigLBGroups
std::vector< int > m_energyTrigLBGroups
Definition: TileMBTSMonitorAlgorithm.h:109
TileDQstatus::checkHeaderFormatErr
int checkHeaderFormatErr(int partition, int drawer, int dmu, int gain) const
returns 1 if DMU has header word format error
Definition: TileDQstatus.h:113
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
TileMBTSMonitorAlgorithm::m_pedestalGroups
std::vector< int > m_pedestalGroups
Definition: TileMBTSMonitorAlgorithm.h:115
RunTileCalibRec.triggerTypes
triggerTypes
Definition: RunTileCalibRec.py:411
TileMBTSMonitorAlgorithm::m_energyLBGroups
std::vector< int > m_energyLBGroups
Definition: TileMBTSMonitorAlgorithm.h:107
TrigConf::L1Item
L1 threshold configuration.
Definition: L1Item.h:18
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
TileMBTSMonitorAlgorithm::m_ctpRdoKey
SG::ReadHandleKey< CTP_RDO > m_ctpRdoKey
Definition: TileMBTSMonitorAlgorithm.h:80
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
TileCalibUtils::MAX_ROS
static const unsigned int MAX_ROS
Number of ROSs
Definition: TileCalibUtils.h:138
TileMBTSMonitorAlgorithm::m_trigGroups
std::vector< int > m_trigGroups
Definition: TileMBTSMonitorAlgorithm.h:122
maskDeadModules.ros
ros
Definition: maskDeadModules.py:35
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
TileMBTSMonitorAlgorithm::m_MBTSchannels
int m_MBTSchannels[Tile::MAX_ROS - 3][Tile::MAX_DRAWER]
Definition: TileMBTSMonitorAlgorithm.h:133
xAOD::EventInfo_v1::lumiBlock
uint32_t lumiBlock() const
The current event's luminosity block number.
SG::ReadHandle::isValid
virtual bool isValid() override final
Can the handle be successfully dereferenced?
TileMBTSMonitorAlgorithm::FRONTEND_CRC
@ FRONTEND_CRC
Definition: TileMBTSMonitorAlgorithm.h:46
AthMonitorAlgorithm::m_dataType
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.
Definition: AthMonitorAlgorithm.h:351
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
TileMBTSMonitorAlgorithm::m_deltaBCIDGroups
std::vector< std::vector< int > > m_deltaBCIDGroups
Definition: TileMBTSMonitorAlgorithm.h:127
TileMBTSMonitorAlgorithm::m_digitsContainerKey
SG::ReadHandleKey< TileDigitsContainer > m_digitsContainerKey
Definition: TileMBTSMonitorAlgorithm.h:74
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
mergePhysValFiles.errors
list errors
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:43
AthMonitorAlgorithm::m_tools
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.
Definition: AthMonitorAlgorithm.h:338
TileDigitsCollection
Definition: TileDigitsCollection.h:18
AthMonitorAlgorithm::Environment_t::online
@ online
TileHWID::drawer_id
HWIdentifier drawer_id(int frag) const
ROS HWIdentifer.
Definition: TileHWID.cxx:186
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
TileDQstatus::checkSampleParityErr
int checkSampleParityErr(int partition, int drawer, int dmu, int gain) const
returns 1 if DMU has data word parity error
Definition: TileDQstatus.h:125
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TileMBTSMonitorAlgorithm::m_energyGroups
std::vector< int > m_energyGroups
Definition: TileMBTSMonitorAlgorithm.h:106
TileDigits
Definition: TileDigits.h:30
AthMonitorAlgorithm::Environment_t::tier0ESD
@ tier0ESD
CTP_BC::getTBP
const std::bitset< 512 > & getTBP() const
get bitset of TBP words
Definition: CTP_Decoder.h:93
AthMonitorAlgorithm::Environment_t::altprod
@ altprod
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
TileMBTSMonitorAlgorithm::m_mbtsCellContainerKey
SG::ReadHandleKey< TileCellContainer > m_mbtsCellContainerKey
Definition: TileMBTSMonitorAlgorithm.h:77
TileDQstatus::checkHeaderParityErr
int checkHeaderParityErr(int partition, int drawer, int dmu, int gain) const
returns 1 if DMU has header word parity error
Definition: TileDQstatus.h:117
AthMonitorAlgorithm::m_enforceExpressTriggers
Gaudi::Property< bool > m_enforceExpressTriggers
Definition: AthMonitorAlgorithm.h:372
TileMBTSMonitorAlgorithm::m_energyTrigGroups
std::vector< int > m_energyTrigGroups
Definition: TileMBTSMonitorAlgorithm.h:108
TileMBTSMonitorAlgorithm::m_energyCut
Gaudi::Property< std::vector< float > > m_energyCut
Definition: TileMBTSMonitorAlgorithm.h:59
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
CTP_BC::getBCID
uint32_t getBCID() const
Get BCID as unsigned integer.
Definition: CTP_Decoder.cxx:292
TileMBTSMonitorAlgorithm::m_timeGroups
std::vector< int > m_timeGroups
Definition: TileMBTSMonitorAlgorithm.h:111
item
Definition: ItemListSvc.h:43
TileDQstatus::checkSampleFormatErr
int checkSampleFormatErr(int partition, int drawer, int dmu, int gain) const
returns 1 if DMU has data word format error
Definition: TileDQstatus.h:121
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
TileMBTSMonitorAlgorithm::m_tileTBID
const TileTBID * m_tileTBID
Definition: TileMBTSMonitorAlgorithm.h:130
AthMonitorAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: AthMonitorAlgorithm.cxx:18
ATH_LIKELY
#define ATH_LIKELY(x)
Definition: AthUnlikelyMacros.h:16
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
a
TList * a
Definition: liststreamerinfos.cxx:10
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
h
TileHWID::drawer
int drawer(const HWIdentifier &id) const
extract drawer field from HW identifier
Definition: TileHWID.h:171
python.CaloScaleNoiseConfig.str
str
Definition: CaloScaleNoiseConfig.py:78
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthMonitorAlgorithm::DataType_t::collisions
@ collisions
TileMBTSMonitorAlgorithm::m_ctpID
Gaudi::Property< std::vector< int > > m_ctpID
Definition: TileMBTSMonitorAlgorithm.h:83
AthMonitorAlgorithm::m_name
std::string m_name
Definition: AthMonitorAlgorithm.h:366
TileMBTSMonitorAlgorithm::m_trigSumGroups
std::vector< int > m_trigSumGroups
Definition: TileMBTSMonitorAlgorithm.h:124
TileMBTSMonitorAlgorithm::BCID
@ BCID
Definition: TileMBTSMonitorAlgorithm.h:46
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
xAOD::EventInfo_v1::level1TriggerType
uint16_t level1TriggerType() const
The Level-1 trigger type.
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
TileTBID::phi
int phi(const Identifier &id) const
extract phi field from MBTS identifier
Definition: Calorimeter/CaloIdentifier/CaloIdentifier/TileTBID.h:165
str
Definition: BTagTrackIpAccessor.cxx:11
TileMBTSMonitorAlgorithm::m_effTrigGroups
std::vector< int > m_effTrigGroups
Definition: TileMBTSMonitorAlgorithm.h:120
LArDigits2NtupleDumper.nSamples
nSamples
Definition: LArDigits2NtupleDumper.py:70
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
Monitored::Scalar
Declare a monitored scalar variable.
Definition: MonitoredScalar.h:34
TileTBID::eta
int eta(const Identifier &id) const
extract eta field from MBTS identifier
Definition: Calorimeter/CaloIdentifier/CaloIdentifier/TileTBID.h:169
TileDQstatus::checkMemoryParityErr
int checkMemoryParityErr(int partition, int drawer, int dmu, int gain) const
returns 1 if DMU has memory parity error
Definition: TileDQstatus.h:129
TileDQstatus::checkFE_CRCErr
int checkFE_CRCErr(int partition, int drawer, int dmu, int gain) const
returns 1 if DMU has CRC error originating in FE electronics
Definition: TileDQstatus.h:88
AthMonitorAlgorithm::DataType_t::userDefined
@ userDefined
test_pyathena.counter
counter
Definition: test_pyathena.py:15
xAOD::lumiBlock
setTeId lumiBlock
Definition: L2StandAloneMuon_v1.cxx:327
error
Definition: IImpactPoint3dEstimator.h:70
Amg::distance
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
Definition: GeoPrimitivesHelpers.h:54
TileMBTSMonitorAlgorithm::m_cablingSvc
ServiceHandle< TileCablingSvc > m_cablingSvc
Name of Tile cabling service.
Definition: TileMBTSMonitorAlgorithm.h:101
TileMBTSMonitorAlgorithm::m_deltaBCIDSumGroups
std::vector< int > m_deltaBCIDSumGroups
Definition: TileMBTSMonitorAlgorithm.h:126
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
CTP_Decoder::getBunchCrossings
const std::vector< CTP_BC > & getBunchCrossings()
Get vector reference of bunch-crossing data of the current event.
Definition: CTP_Decoder.h:181
Monitored::Timer
A monitored timer.
Definition: MonitoredTimer.h:32
AthMonitorAlgorithm::getGroup
const ToolHandle< GenericMonitoringTool > & getGroup(const std::string &name) const
Get a specific monitoring tool from the tool handle array.
Definition: AthMonitorAlgorithm.cxx:164
plot_times.times
def times(fn)
Definition: plot_times.py:11
AthMonitorAlgorithm::DataType_t::monteCarlo
@ monteCarlo
fitman.k
k
Definition: fitman.py:528
TileTBID::side
int side(const Identifier &id) const
define synonyms for minimum bias scintillators
Definition: Calorimeter/CaloIdentifier/CaloIdentifier/TileTBID.h:161
TileCablingService::s2h_channel_id
HWIdentifier s2h_channel_id(const Identifier &id) const
Definition: TileCablingService.cxx:1076
TileMBTSMonitorAlgorithm::m_pulseTrigGroups
std::vector< int > m_pulseTrigGroups
Definition: TileMBTSMonitorAlgorithm.h:118
TileMBTSMonitorAlgorithm::m_l1Triggers
Gaudi::Property< std::vector< std::string > > m_l1Triggers
Definition: TileMBTSMonitorAlgorithm.h:86
ServiceHandle< ICondSvc >
TileMBTSMonitorAlgorithm::m_fillHistogramsPerMBTS
Gaudi::Property< bool > m_fillHistogramsPerMBTS
Definition: TileMBTSMonitorAlgorithm.h:53
collisions
Definition: collisions.py:1