ATLAS Offline Software
Loading...
Searching...
No Matches
TileMBTSMonitorAlgorithm Class Reference

Class for Tile MBTS based monitoring. More...

#include <TileMBTSMonitorAlgorithm.h>

Inheritance diagram for TileMBTSMonitorAlgorithm:

Public Types

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

Public Member Functions

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

Public Attributes

 flags = initConfigFlags()
 Files
 HISTFileName
 useTrigger
 enableLumiAccess
 MaxEvents
 cfg = MainServicesCfg(flags)
 withDetails
 True
 summariseProps
 sc = cfg.run()

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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.

Protected Attributes

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

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, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

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.
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.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
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 370 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

using TileMBTSMonitorAlgorithm::Tile = TileCalibUtils
private

Definition at line 44 of file TileMBTSMonitorAlgorithm.h.

Member Enumeration Documentation

◆ DataType_t

enum class 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 194 of file AthMonitorAlgorithm.h.

194 {
195 userDefined = 0,
196 monteCarlo,
197 collisions,
198 cosmics,
199 heavyIonCollisions,
200 };
AthConfigFlags cosmics(AthConfigFlags flags, str instanceName, str recoMode)

◆ Environment_t

enum class 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 175 of file AthMonitorAlgorithm.h.

175 {
176 user = 0,
177 online,
178 tier0,
179 tier0Raw,
180 tier0ESD,
181 AOD,
182 altprod,
183 };

◆ TileDigiErrors

enum TileMBTSMonitorAlgorithm::TileDigiErrors
private
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.

46 {GENERAL, GLOBAL_CRC, ROD_CRC, FRONTEND_CRC, BCID, HEADER_FORMAT,
47 HEADER_PARITY, SAMPLE_FORMAT, SAMPLE_PARITY, MEMORY_PARITY};

Constructor & Destructor Documentation

◆ ~TileMBTSMonitorAlgorithm()

virtual TileMBTSMonitorAlgorithm::~TileMBTSMonitorAlgorithm ( )
virtualdefault

Member Function Documentation

◆ AthMonitorAlgorithm()

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

Constructor.

Definition at line 45 of file AthMonitorAlgorithm.cxx.

9:AthReentrantAlgorithm(name,pSvcLocator)
10 // Put this here rather than in the header to allow forward-declaring
11 // TrigDecisionTool.
12,m_trigDecTool{this, "TrigDecisionTool",""}
13,m_environment(Environment_t::user)
14,m_dataType(DataType_t::userDefined)
15,m_vTrigChainNames({})
16{}
An algorithm that can be simultaneously executed in multiple threads.

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::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.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ dataType()

DataType_t AthMonitorAlgorithm::dataType ( ) const
inlineinherited

Accessor functions for the data type.

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

Definition at line 224 of file AthMonitorAlgorithm.h.

224{ return m_dataType; }
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.

◆ 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 144 of file AthMonitorAlgorithm.cxx.

144 {
145 // convert the string to all lowercase
146 std::string lowerCaseStr = str;
147 std::transform(lowerCaseStr.begin(), lowerCaseStr.end(), lowerCaseStr.begin(), ::tolower);
148
149 // check if it matches one of the enum choices
150 if( lowerCaseStr == "userdefined" ) {
152 } else if( lowerCaseStr == "montecarlo" ) {
154 } else if( lowerCaseStr == "collisions" ) {
156 } else if( lowerCaseStr == "cosmics" ) {
157 return DataType_t::cosmics;
158 } else if( lowerCaseStr == "heavyioncollisions" ) {
160 } else { // otherwise, warn the user and return "userDefined"
161 ATH_MSG_WARNING("AthMonitorAlgorithm::dataTypeStringToEnum(): Unknown data type "
162 <<str<<", returning userDefined.");
164 }
165}
#define ATH_MSG_WARNING(x)
void tolower(std::string &s)

◆ declareGaudiProperty()

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

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

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

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

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

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

◆ 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 208 of file AthMonitorAlgorithm.h.

208{ return m_environment; }
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.

◆ 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 116 of file AthMonitorAlgorithm.cxx.

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

◆ evtStore()

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.

◆ 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 77 of file AthMonitorAlgorithm.cxx.

77 {
78
79 // Checks that all of the DQ filters are passed. If any one of the filters
80 // fails, return SUCCESS code and do not fill the histograms with the event.
81 for ( const auto& filterItr : m_DQFilterTools ) {
82 if (!filterItr->accept()) {
83 ATH_MSG_DEBUG("Event rejected due to filter tool.");
84 return StatusCode::SUCCESS;
85 }
86 }
87
88 // Trigger: If there is a decision tool and the chains fail, skip the event.
90 ATH_MSG_DEBUG("Event rejected due to trigger filter.");
91 return StatusCode::SUCCESS;
92 }
93
94 ATH_MSG_DEBUG("Event accepted!");
95 return fillHistograms(ctx);
96}
#define ATH_MSG_DEBUG(x)
virtual StatusCode fillHistograms(const EventContext &ctx) const =0
adds event to the monitoring histograms
bool trigChainsArePassed(const std::vector< std::string > &vTrigNames) const
Check whether triggers are passed.
std::vector< std::string > m_vTrigChainNames
Vector of trigger chain names parsed from trigger chain string.
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Array of Data Quality filter tools.

◆ extraDeps_update_handler()

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

Add StoreName to extra input/output deps as needed.

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

◆ extraOutputDeps()

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

Return the list of extra output dependencies.

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

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ 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
299 SG::ReadHandle<TileCellContainer> mbtsContainer(m_mbtsCellContainerKey, ctx);
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
331 if (m_fillHistogramsPerMBTS) {
332 fill(m_tools[m_energyGroups[counter]], monEnergy);
333 fill(m_tools[m_energyLBGroups[counter]], lumiBlock, 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);
345 fill(m_tools[m_energyTrigLBGroups[counter]], lumiBlock, 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
358 if (m_fillHistogramsPerMBTS) {
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)) {
451 setDigiError(counters, errors, counter, FRONTEND_CRC);
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)) {
457 setDigiError(counters, errors, counter, HEADER_FORMAT);
458 }
459 if (dqStatus->checkHeaderParityErr(ros, drawer, MBTS_DMU, gain)) {
460 setDigiError(counters, errors, counter, HEADER_PARITY);
461 }
462 if (dqStatus->checkSampleFormatErr(ros, drawer, MBTS_DMU, gain)) {
463 setDigiError(counters, errors, counter, SAMPLE_FORMAT);
464 }
465 if (dqStatus->checkSampleParityErr(ros, drawer, MBTS_DMU, gain)) {
466 setDigiError(counters, errors, counter, SAMPLE_PARITY);
467 }
468 if (dqStatus->checkMemoryParityErr(ros, drawer, MBTS_DMU, gain)) {
469 setDigiError(counters, errors, counter, MEMORY_PARITY);
470 }
471 }
472 }
473 }
474
475 fill("TileErrorsMBTS", monErrorCounters, monErrors);
476
477
478 if (m_fillHistogramsPerMBTS) {
479 SG::ReadHandle<TileDigitsContainer> digitsContainer(m_digitsContainerKey, ctx);
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}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
uint32_t getBCID() const
Get BCID as unsigned integer.
const std::bitset< 512 > & getTBP() const
get bitset of TBP words
Definition CTP_Decoder.h:92
const std::vector< CTP_BC > & getBunchCrossings()
Get vector reference of bunch-crossing data of the current event.
void setRDO(const CTP_RDO *rdo)
Set RDO and fill internal variables from the data object.
Group of local monitoring quantities and retain correlation when filling histograms
Declare a monitored scalar variable.
A monitored timer.
int checkHeaderFormatErr(int partition, int drawer, int dmu, int gain) const
returns 1 if DMU has header word format error
bool isChanDQgood(int partition, int drawer, int ch) const
returns status of single channel (if bigain, returns AND of ADCs' status
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...
int checkGlobalCRCErr(int partition, int drawer, int gain) const
returns 1 if adc channel has global CRC error
int checkSampleFormatErr(int partition, int drawer, int dmu, int gain) const
returns 1 if DMU has data word format error
int checkROD_CRCErr(int partition, int drawer, int dmu, int gain) const
returns 1 if DMU has CRC error originating in ROD
int checkHeaderParityErr(int partition, int drawer, int dmu, int gain) const
returns 1 if DMU has header word parity error
int checkFE_CRCErr(int partition, int drawer, int dmu, int gain) const
returns 1 if DMU has CRC error originating in FE electronics
int checkMemoryParityErr(int partition, int drawer, int dmu, int gain) const
returns 1 if DMU has memory parity error
int checkSampleParityErr(int partition, int drawer, int dmu, int gain) const
returns 1 if DMU has data word parity error
int channel(const HWIdentifier &id) const
extract channel field from HW identifier
Definition TileHWID.h:189
int drawer(const HWIdentifier &id) const
extract drawer field from HW identifier
Definition TileHWID.h:171
int ros(const HWIdentifier &id) const
extract ros field from HW identifier
Definition TileHWID.h:167
int getMBTSCounter(Identifier mbtsID) const
void setDigiError(std::vector< int > &counters, std::vector< int > &errors, int counter, int error) const
Gaudi::Property< std::vector< int > > m_ctpID
int m_MBTSchannels[Tile::MAX_ROS - 3][Tile::MAX_DRAWER]
int m_MBTScounters[Tile::MAX_ROS - 3][Tile::MAX_DRAWER]
uint32_t lumiBlock() const
The current event's luminosity block number.
uint16_t level1TriggerType() const
The Level-1 trigger type.
time(flags, cells_name, *args, **kw)
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
EventInfo_v1 EventInfo
Definition of the latest event info version.
setEventNumber setTimeStamp bcid
void fill(H5::Group &out_file, size_t iterations)

◆ filterPassed()

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

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ 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 111 of file AthMonitorAlgorithm.cxx.

111 {
112 return SG::ReadHandle<xAOD::EventInfo>(m_EventInfoKey, ctx);
113}
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
Key for retrieving EventInfo from StoreGate.

◆ 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 168 of file AthMonitorAlgorithm.cxx.

168 {
169 // get the pointer to the tool, and check that it exists
170 auto idx = m_toolLookupMap.find(name);
171 if (ATH_LIKELY(idx != m_toolLookupMap.end())) {
172 return m_tools[idx->second];
173 }
174 else {
175 // treat empty tool handle case as in Monitored::Group
176 if (m_toolLookupMap.empty()) {
177 return m_dummy;
178 }
179
180 if (!isInitialized()) {
182 "It seems that the AthMonitorAlgorithm::initialize was not called "
183 "in derived class initialize method");
184 } else {
185 std::string available = std::accumulate(
186 m_toolLookupMap.begin(), m_toolLookupMap.end(), std::string(""),
187 [](const std::string& s, auto h) { return s + "," + h.first; });
188 ATH_MSG_FATAL("The tool " << name << " could not be found in the tool array of the "
189 << "monitoring algorithm " << m_name << ". This probably reflects a discrepancy between "
190 << "your python configuration and c++ filling code. Note: your available groups are {"
191 << available << "}.");
192 }
193 }
194 return m_dummy;
195}
#define ATH_MSG_FATAL(x)
#define ATH_LIKELY(x)
std::unordered_map< std::string, size_t > m_toolLookupMap
const ToolHandle< GenericMonitoringTool > m_dummy
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.

◆ 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}
int side(const Identifier &id) const
define synonyms for minimum bias scintillators
int phi(const Identifier &id) const
extract phi field from MBTS identifier
int eta(const Identifier &id) const
extract eta field from MBTS identifier

◆ 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 198 of file AthMonitorAlgorithm.cxx.

198 {
199 return m_trigDecTool;
200}

◆ 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
34 ATH_CHECK( detStore()->retrieve(m_tileTBID) );
35 ATH_CHECK( detStore()->retrieve(m_tileHWID) );
36
38 ATH_CHECK( m_digitsContainerKey.initialize(m_fillHistogramsPerMBTS) );
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
60 if (m_fillHistogramsPerMBTS) {
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
88 ATH_CHECK( m_ctpRdoKey.initialize(m_useTrigger) );
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);
104 }
105
106 return StatusCode::SUCCESS;
107}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
const ServiceHandle< StoreGateSvc > & detStore() const
virtual StatusCode initialize() override
initialize
bool is_valid() const
Check if id is in a valid state.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Identifier drawer2MBTS_id(const HWIdentifier &id) const
HWIdentifier s2h_channel_id(const Identifier &id) const
HWIdentifier drawer_id(int frag) const
ROS HWIdentifer.
Definition TileHWID.cxx:187
SG::ReadHandleKey< CTP_RDO > m_ctpRdoKey
SG::ReadHandleKey< TrigConf::L1Menu > m_L1MenuKey
SG::ReadHandleKey< TileDQstatus > m_DQstatusKey
SG::ReadHandleKey< TileCellContainer > m_mbtsCellContainerKey
std::vector< std::vector< int > > m_bcidGroups
SG::ReadHandleKey< TileDigitsContainer > m_digitsContainerKey
Gaudi::Property< bool > m_useTrigger
static const unsigned int MAX_MBTS_COUNTER
const TileCablingService * m_cabling
Gaudi::Property< std::vector< std::string > > m_l1Triggers
ServiceHandle< TileCablingSvc > m_cablingSvc
Name of Tile cabling service.
std::vector< std::vector< int > > m_deltaBCIDGroups
std::vector< V > buildToolMap(const ToolHandleArray< GenericMonitoringTool > &tools, const std::string &baseName, int nHist)
Builds an array of indices (base case)
retrieve(aClass, aKey=None)
Definition PyKernel.py:110

◆ 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()

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ 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 345 of file AthMonitorAlgorithm.cxx.

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

◆ 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();
384 }
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)

◆ 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 {
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 AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ 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");
114 SG::ReadHandle<TrigConf::L1Menu> l1MenuHandle = SG::makeHandle( m_L1MenuKey );
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}
virtual bool isValid() override final
Can the handle be successfully dereferenced?
L1 threshold configuration.
Definition L1Item.h:18

◆ sysExecute()

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

Execute an algorithm.

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

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

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

◆ sysInitialize()

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

Override sysInitialize.

Override sysInitialize from the base class.

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

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

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

Reimplemented in HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

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

◆ 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 203 of file AthMonitorAlgorithm.cxx.

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

◆ 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) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ cfg

TileMBTSMonitorAlgorithm.cfg = MainServicesCfg(flags)

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.

◆ flags

TileMBTSMonitorAlgorithm.flags = initConfigFlags()

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.

104{nullptr};

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

101 {this,
102 "TileCablingSvc", "TileCablingSvc", "The Tile cabling service" };

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

83 {this,
84 "CTP_ID", {-1}, "Force CTP IDs for 32 MBTS counters (MBTSA00, .., MBTSC15)"};

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

80 {this,
81 "CTP_RDO", "CTP_RDO", "Trigger CTP RDO name" };

◆ m_dataType

AthMonitorAlgorithm::DataType_t AthMonitorAlgorithm::m_dataType
protectedinherited

Instance of the DataType_t enum.

Definition at line 356 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 358 of file AthMonitorAlgorithm.h.

358{this,"DataType","userDefined"};

◆ m_defaultLBDuration

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

Default duration of one lumi block.

Definition at line 365 of file AthMonitorAlgorithm.h.

365{this,"DefaultLBDuration",60.};

◆ 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 366 of file AthMonitorAlgorithm.h.

366{this,"DetailLevel",0};

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

74 { this,
75 "TileDigitsContainer", "TileDigitsCnt", "Tile digits container" };

◆ m_DQFilterTools

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

Array of Data Quality filter tools.

Definition at line 346 of file AthMonitorAlgorithm.h.

346{this,"FilterTools",{}};

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

71 {this,
72 "TileDQstatus", "TileDQstatus", "Tile DQ status"};

◆ m_dummy

const ToolHandle<GenericMonitoringTool> AthMonitorAlgorithm::m_dummy
privateinherited

Definition at line 374 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.

59 {this,
60 "EnergyCuts",
61 {//MBTSA00 MBTSA01 MBTSA02 MBTSA03 MBTSA04 MBTSA05 MBTSA06 MBTSA07
62 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222,
63 //MBTSA08 MBTSA09 MBTSA10 MBTSA11 MBTSA12 MBTSA13 MBTSA14 MBTSA15
64 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222,
65 //MBTSC00 MBTSC01 MBTSC02 MBTSC03 MBTSC04 MBTSC05 MBTSC06 MBTSC07
66 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222,
67 //MBTSC08 MBTSC09 MBTSC10 MBTSC11 MBTSC12 MBTSC13 MBTSC14 MBTSC15
68 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222, 60.f/222},
69 "Energy cuts for 32 MBTS counters (MBTSA00, .., MBTSC15)"};

◆ 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 377 of file AthMonitorAlgorithm.h.

377 {this,
378 "EnforceExpressTriggers", false,
379 "Requires that matched triggers made the event enter the express stream"};

◆ m_environment

AthMonitorAlgorithm::Environment_t AthMonitorAlgorithm::m_environment
protectedinherited

Instance of the Environment_t enum.

Definition at line 355 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 357 of file AthMonitorAlgorithm.h.

357{this,"Environment","user"};

◆ m_EventInfoKey

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

Key for retrieving EventInfo from StoreGate.

Definition at line 367 of file AthMonitorAlgorithm.h.

367{this,"EventInfoKey","EventInfo"};

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

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

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

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_fileKey

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

Internal Athena name for file.

Definition at line 363 of file AthMonitorAlgorithm.h.

363{this,"FileKey",""};

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

53 {this,
54 "FillHistogramsPerMBTS", false, "Switch for using per MBTS histograms"};

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

95 {this,
96 "L1TriggerMenu", "DetectorStore+L1TriggerMenu", "L1 Menu"};

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

86 {this,
87 "L1_MBTS",
88 {
89 "L1_MBTSA0", "L1_MBTSA1", "L1_MBTSA2", "L1_MBTSA3", "L1_MBTSA4", "L1_MBTSA5", "L1_MBTSA6", "L1_MBTSA7",
90 "L1_MBTSA8", "L1_MBTSA9", "L1_MBTSA10", "L1_MBTSA11", "L1_MBTSA12", "L1_MBTSA13", "L1_MBTSA14", "L1_MBTSA15",
91 "L1_MBTSC0", "L1_MBTSC1", "L1_MBTSC2", "L1_MBTSC3", "L1_MBTSC4", "L1_MBTSC5", "L1_MBTSC6", "L1_MBTSC7",
92 "L1_MBTSC8", "L1_MBTSC9", "L1_MBTSC10", "L1_MBTSC11", "L1_MBTSC12", "L1_MBTSC13", "L1_MBTSC14", "L1_MBTSC15",
93 }, "Names of 32 L1 MBTS triggers (e.g.: L1_MBTSA0, .., L1_MBTSC15)"};

◆ m_lbDurationDataKey

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

Definition at line 350 of file AthMonitorAlgorithm.h.

351{this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"};

◆ m_lumiDataKey

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

Definition at line 348 of file AthMonitorAlgorithm.h.

349{this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"};

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

77 {this,
78 "MBTSContainer", "MBTSContainer", "Tile MBTS container" };

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

131{nullptr};

◆ m_tileTBID

const TileTBID* TileMBTSMonitorAlgorithm::m_tileTBID {nullptr}
private

Definition at line 130 of file TileMBTSMonitorAlgorithm.h.

130{nullptr};

◆ 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 372 of file AthMonitorAlgorithm.h.

◆ m_tools

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

Array of Generic Monitoring Tools.

Definition at line 341 of file AthMonitorAlgorithm.h.

341{this,"GMTools",{}};

◆ m_trigDecTool

PublicToolHandle<Trig::TrigDecisionTool> AthMonitorAlgorithm::m_trigDecTool
protectedinherited

Tool to tell whether a specific trigger is passed.

Definition at line 345 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 360 of file AthMonitorAlgorithm.h.

360{this,"TriggerChain",""};

◆ 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 352 of file AthMonitorAlgorithm.h.

353{this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData", "SG Key of TrigLiveFractionCondData object"};

◆ 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 364 of file AthMonitorAlgorithm.h.

364{this,"EnableLumi",false};

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

56 {this,
57 "useTrigger", false, "Switch for using trigger information"};

◆ 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 361 of file AthMonitorAlgorithm.h.

◆ MAX_MBTS_COUNTER

const unsigned int TileMBTSMonitorAlgorithm::MAX_MBTS_COUNTER {32}
staticprivate

Definition at line 136 of file TileMBTSMonitorAlgorithm.h.

136{32};

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

137{0};

◆ sc

TileMBTSMonitorAlgorithm.sc = cfg.run()

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: