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

#include <OverviewMonitorAlgorithm.h>

Inheritance diagram for OverviewMonitorAlgorithm:
Collaboration diagram for OverviewMonitorAlgorithm:

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

 OverviewMonitorAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~OverviewMonitorAlgorithm ()=default
virtual StatusCode initialize () override
 initialize
virtual StatusCode fillHistograms (const EventContext &ctx) const override
 adds event to the monitoring histograms
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

 inputs = glob.glob('/eos/atlas/atlastier0/rucio/data18_13TeV/physics_Main/00354311/data18_13TeV.00354311.physics_Main.recon.ESD.f1129/data18_13TeV.00354311.physics_Main.recon.ESD.f1129._lb0013._SFO-8._0001.1')
 flags = initConfigFlags()
 Files
 HISTFileName
 cfg = MainServicesCfg(flags)
 OverviewMonitorCfg = OverviewMonitoringConfig(flags)
 OutputLevel
 withDetails
 False
 summariseProps
int nevents = -1

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  PPMErrors { DataStatus , DataError , PPMSubStatus }
enum  CPMErrors {
  CPMEMParity , CPMEMLink , CPMHadParity , CPMHadLink ,
  CPMStatus , CMXCPTobParity , CMXCPSumParity , CMXCPStatus
}
enum  JEMErrors {
  JEMEMParity , JEMHadParity , JEMEMLink , JEMHadLink ,
  JEMStatus
}
enum  CMXErrors { JEMCMXJetStatus , JEMCMXEnergyStatus , JEMCMXJetParity , JEMCMXEnergyParity }
enum  RODErrors {
  GLink , LVDSLink , FIFOOverflow , DataTransport ,
  Timeout , BCNMismatch , TriggerType , NoPayload ,
  NoFragment , ROBStatusError , UnpackingError
}
enum  PPMMismatch { LUTMismatch }
enum  CPMMismatch {
  EMTowerMismatch , HadTowerMismatch , EMRoIMismatch , TauRoIMismatch ,
  LeftCMXTobMismatch , RightCMXTobMismatch , LocalSumMismatch , RemoteSumMismatch ,
  TotalSumMismatch , TopoMismatch
}
enum  JEMMismatch {
  EMElementMismatch , HadElementMismatch , JEMRoIMismatch , CMXJetTobMismatch ,
  LocalJetMismatch , RemoteJetMismatch , TotalJetMismatch , CMXJetTopoMismatch ,
  JEMEtSumsMismatch , CMXEtSumsMismatch , LocalEnergyMismatch , RemoteEnergyMismatch ,
  TotalEnergyMismatch , SumEtMismatch , MissingEtMismatch , MissingEtSigMismatch ,
  EnergyRoIMismatch
}
enum  GlobalErrors {
  PPMDataStatus , PPMDataError , SubStatus , Parity ,
  LinkDown , Transmission , Simulation , CMXSubStatus ,
  GbCMXParity , CMXTransmission , CMXSimulation , RODStatus ,
  RODMissing , ROBStatus , Unpacking , NumberOfGlobalErrors
}
typedef std::vector< int > ErrorVector
typedef std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > MonVarVec_t
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

StringProperty m_packageName {this,"PackageName","OverviewMonitor","group name for histograming"}
SG::ReadHandleKey< ErrorVectorm_ppmErrorLocation {this,"PPMErrorLocation","L1CaloPPMErrorVector","PPM Error Vector"}
StringProperty m_ppmSpareErrorLocation {this,"PPMSpareErrorLocation","L1CaloPPMSpareErrorVector","PPM Spare Error Vector"}
SG::ReadHandleKey< ErrorVectorm_cpmErrorLocation {this,"CPMErrorLocation","L1CaloCPMErrorVector","CPM Error Vector"}
StringProperty m_jemErrorLocation {this,"JEMErrorLocation","L1CaloJEMErrorVector","JEM Error Vector"}
StringProperty m_jemCmxErrorLocation {this,"JEMCMXErrorLocation","L1CaloJEMCMXErrorVector","JEM-CMX Error Vector"}
StringProperty m_rodErrorLocation {this,"RODErrorLocation","L1CaloRODErrorVector","ROD Error Vector"}
StringProperty m_ppmMismatchLocation {this,"PPMMismatchLocation","L1CaloPPMMismatchVector","PPM Mismatch Error Vector"}
SG::ReadHandleKey< ErrorVectorm_cpmMismatchLocation {this,"CPMMismatchLocation","L1CaloCPMMismatchVector","CPM Mismatch Error Vector"}
StringProperty m_jemMismatchLocation {this,"JEMMismatchLocation","L1CaloJEMMismatchVector","JEM Mismatch Error Vector"}
SG::ReadHandleKey< ErrorVectorm_ppmSimBSMismatchLocation {this, "PPMSimBSMismatchLocation", "L1CaloPPMSimBSMismatchVector", "PPMSimBS Mismatch Vector"}
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

Detailed Description

Definition at line 13 of file OverviewMonitorAlgorithm.h.

Member Typedef Documentation

◆ ErrorVector

typedef std::vector<int> OverviewMonitorAlgorithm::ErrorVector
private

Definition at line 21 of file OverviewMonitorAlgorithm.h.

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

Member Enumeration Documentation

◆ CMXErrors

enum OverviewMonitorAlgorithm::CMXErrors
private
Enumerator
JEMCMXJetStatus 
JEMCMXEnergyStatus 
JEMCMXJetParity 
JEMCMXEnergyParity 

Definition at line 63 of file OverviewMonitorAlgorithm.h.

63 {
64 JEMCMXJetStatus,
65 JEMCMXEnergyStatus,
66 JEMCMXJetParity,
67 JEMCMXEnergyParity
68 };

◆ CPMErrors

enum OverviewMonitorAlgorithm::CPMErrors
private
Enumerator
CPMEMParity 
CPMEMLink 
CPMHadParity 
CPMHadLink 
CPMStatus 
CMXCPTobParity 
CMXCPSumParity 
CMXCPStatus 

Definition at line 44 of file OverviewMonitorAlgorithm.h.

44 {
45 CPMEMParity,
46 CPMEMLink,
47 CPMHadParity,
48 CPMHadLink,
49 CPMStatus,
50 CMXCPTobParity,
51 CMXCPSumParity,
52 CMXCPStatus
53 };

◆ CPMMismatch

enum OverviewMonitorAlgorithm::CPMMismatch
private
Enumerator
EMTowerMismatch 
HadTowerMismatch 
EMRoIMismatch 
TauRoIMismatch 
LeftCMXTobMismatch 
RightCMXTobMismatch 
LocalSumMismatch 
RemoteSumMismatch 
TotalSumMismatch 
TopoMismatch 

Definition at line 88 of file OverviewMonitorAlgorithm.h.

88 {
89 EMTowerMismatch,
90 HadTowerMismatch,
91 EMRoIMismatch,
92 TauRoIMismatch,
93 LeftCMXTobMismatch,
94 RightCMXTobMismatch,
95 LocalSumMismatch,
96 RemoteSumMismatch,
97 TotalSumMismatch,
98 TopoMismatch
99 };

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

◆ GlobalErrors

enum OverviewMonitorAlgorithm::GlobalErrors
private
Enumerator
PPMDataStatus 
PPMDataError 
SubStatus 
Parity 
LinkDown 
Transmission 
Simulation 
CMXSubStatus 
GbCMXParity 
CMXTransmission 
CMXSimulation 
RODStatus 
RODMissing 
ROBStatus 
Unpacking 
NumberOfGlobalErrors 

Definition at line 122 of file OverviewMonitorAlgorithm.h.

122 {
123 PPMDataStatus,
124 PPMDataError,
125 SubStatus,
126 Parity,
127 LinkDown,
128 Transmission,
130 CMXSubStatus,
131 GbCMXParity,
132 CMXTransmission,
133 CMXSimulation,
134 RODStatus,
135 RODMissing,
136 ROBStatus,
137 Unpacking,
138 NumberOfGlobalErrors
139 };
calculates the parity of a passed word
Definition Parity.h:20

◆ JEMErrors

enum OverviewMonitorAlgorithm::JEMErrors
private
Enumerator
JEMEMParity 
JEMHadParity 
JEMEMLink 
JEMHadLink 
JEMStatus 

Definition at line 55 of file OverviewMonitorAlgorithm.h.

55 {
56 JEMEMParity,
57 JEMHadParity,
58 JEMEMLink,
59 JEMHadLink,
60 JEMStatus
61 };

◆ JEMMismatch

enum OverviewMonitorAlgorithm::JEMMismatch
private
Enumerator
EMElementMismatch 
HadElementMismatch 
JEMRoIMismatch 
CMXJetTobMismatch 
LocalJetMismatch 
RemoteJetMismatch 
TotalJetMismatch 
CMXJetTopoMismatch 
JEMEtSumsMismatch 
CMXEtSumsMismatch 
LocalEnergyMismatch 
RemoteEnergyMismatch 
TotalEnergyMismatch 
SumEtMismatch 
MissingEtMismatch 
MissingEtSigMismatch 
EnergyRoIMismatch 

Definition at line 101 of file OverviewMonitorAlgorithm.h.

101 {
102 EMElementMismatch,
103 HadElementMismatch,
104 JEMRoIMismatch,
105 CMXJetTobMismatch,
106 LocalJetMismatch,
107 RemoteJetMismatch,
108 TotalJetMismatch,
109 CMXJetTopoMismatch,
110 JEMEtSumsMismatch,
111 CMXEtSumsMismatch,
112 LocalEnergyMismatch,
113 RemoteEnergyMismatch,
114 TotalEnergyMismatch,
115 SumEtMismatch,
116 MissingEtMismatch,
117 MissingEtSigMismatch,
118 EnergyRoIMismatch
119 };

◆ PPMErrors

enum OverviewMonitorAlgorithm::PPMErrors
private
Enumerator
DataStatus 
DataError 
PPMSubStatus 

Definition at line 42 of file OverviewMonitorAlgorithm.h.

42{ DataStatus, DataError, PPMSubStatus };

◆ PPMMismatch

enum OverviewMonitorAlgorithm::PPMMismatch
private
Enumerator
LUTMismatch 

Definition at line 86 of file OverviewMonitorAlgorithm.h.

86{ LUTMismatch };

◆ RODErrors

enum OverviewMonitorAlgorithm::RODErrors
private
Enumerator
GLink 
LVDSLink 
FIFOOverflow 
DataTransport 
Timeout 
BCNMismatch 
TriggerType 
NoPayload 
NoFragment 
ROBStatusError 
UnpackingError 

Definition at line 70 of file OverviewMonitorAlgorithm.h.

70 {
71 GLink,
72 /*CMMParity,*/ LVDSLink,
73 FIFOOverflow,
74 DataTransport,
75 Timeout,
76 BCNMismatch,
77 TriggerType,
78 NoPayload,
79 NoFragment,
80 ROBStatusError,
81 UnpackingError
82 };

Constructor & Destructor Documentation

◆ OverviewMonitorAlgorithm()

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

Definition at line 7 of file OverviewMonitorAlgorithm.cxx.

8 : AthMonitorAlgorithm(name,pSvcLocator)
9{
10}
Base class for Athena Monitoring Algorithms.

◆ ~OverviewMonitorAlgorithm()

virtual OverviewMonitorAlgorithm::~OverviewMonitorAlgorithm ( )
virtualdefault

Member Function Documentation

◆ 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 OverviewMonitorAlgorithm::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 26 of file OverviewMonitorAlgorithm.cxx.

26 {
27
28 ATH_MSG_DEBUG("OverviewMonitorAlgorithm::fillHistograms");
29
30 std::vector<std::reference_wrapper<Monitored::IMonitoredVariable>> variables;
31
32
33 // Update Global overview plot
34
35 const int ppmCrates = 8;
36 const int cpmCrates = 4;
37
38 Monitored::Scalar<int> globalOverviewX = Monitored::Scalar<int>("globalOverviewX", 0);
39 Monitored::Scalar<int> globalOverviewY = Monitored::Scalar<int>("globalOverviewY", 0);
40
41 int err_per_LB=0;
42
43
44 // PPM data
45 {
46 const auto* errTES = SG::get(m_ppmErrorLocation, ctx);
47 if (!errTES || errTES->size() != size_t(ppmCrates)) {
48 ATH_MSG_INFO("No PPM error vector of expected size");
49 } else {
50 for (int crate = 0; crate < ppmCrates; ++crate) {
51 const int err = (*errTES)[crate];
52 if (err == 0)
53 continue;
54 globalOverviewY=crate;
55 if ((err >> DataStatus) & 0x1) {
56 globalOverviewX=DataStatus;
57 fill(m_packageName,globalOverviewX,globalOverviewY);
58 err_per_LB+=1;
59 }
60 if ((err >> DataError) & 0x1) {
61 globalOverviewX=DataError;
62 fill(m_packageName,globalOverviewX,globalOverviewY);
63 err_per_LB+=1;
64
65 }
66 if ((err >> PPMSubStatus) & 0x1) {
67 globalOverviewX=PPMSubStatus;
68 globalOverviewY=crate;
69 fill(m_packageName,globalOverviewX,globalOverviewY);
70 err_per_LB+=1;
71 }
72 }
73 }
74 }
75
76
77
78 // CPM and CPM CMX Error data
80 const auto* errTES = SG::get(m_cpmErrorLocation, ctx);
81
82 if (!errTES || errTES->size() != size_t(cpmCrates)) {
83 ATH_MSG_INFO("No CPM error vector of expected size");
84 } else {
85 for (int crate = 0; crate < cpmCrates; ++crate) {
86 const int err = (*errTES)[crate];
87 if (err == 0)
88 continue;
89 const int cr = crate + ppmCrates;
90
91 if ((err >> CPMStatus) & 0x1){
92 globalOverviewX=SubStatus;
93 globalOverviewY=cr;
94 fill(m_packageName,globalOverviewX,globalOverviewY);
95 err_per_LB+=1;
96 }
97 if (((err >> CPMEMParity) & 0x1) || ((err >> CPMHadParity) & 0x1)) {
98 globalOverviewX=Parity;
99 globalOverviewY=cr;
100 fill(m_packageName,globalOverviewX,globalOverviewY);
101 err_per_LB+=1;
102 }
103 if (((err >> CPMEMLink) & 0x1) || ((err >> CPMHadLink) & 0x1)) {
104 globalOverviewX=LinkDown;
105 globalOverviewY=cr;
106 fill(m_packageName,globalOverviewX,globalOverviewY);
107 err_per_LB+=1;
108 }
109 if ((err >> CMXCPTobParity) & 0x1) {
110 globalOverviewX=GbCMXParity;
111 globalOverviewY=cr;
112 fill(m_packageName,globalOverviewX,globalOverviewY);
113 err_per_LB+=1;
114 }
115 if ((err >> CMXCPSumParity) & 0x1) {
116 globalOverviewX=GbCMXParity;
117 globalOverviewY=cr;
118 fill(m_packageName,globalOverviewX,globalOverviewY);
119 err_per_LB+=1;
120 }
121 if ((err >> CMXCPStatus) & 0x1) {
122 globalOverviewX=CMXSubStatus;
123 globalOverviewY=cr;
124 fill(m_packageName,globalOverviewX,globalOverviewY);
125 err_per_LB+=1;
126 }
127 } // crates
128 }
129 }
130
131 // CPM and CMX Simulation Mismatch data
133 const auto* errTES = SG::get(m_cpmMismatchLocation, ctx);
134
135 if (!errTES || errTES->size() != size_t(cpmCrates)) {
136 ATH_MSG_INFO("No CPM mismatch vector of expected size");
137 } else {
138 for (int crate = 0; crate < cpmCrates; ++crate) {
139 const int err = (*errTES)[crate];
140 if (err == 0)
141 continue;
142 const int cr = crate + ppmCrates;
143 if (((err >> EMTowerMismatch) & 0x1) || ((err >> HadTowerMismatch) & 0x1)) {
144 globalOverviewX=Transmission;
145 globalOverviewY=cr;
146 fill(m_packageName,globalOverviewX,globalOverviewY);
147 err_per_LB+=1;
148 }
149 if (((err >> EMRoIMismatch) & 0x1) || ((err >> TauRoIMismatch) & 0x1)) {
150 globalOverviewX=Simulation;
151 globalOverviewY=cr;
152 fill(m_packageName,globalOverviewX,globalOverviewY);
153 err_per_LB+=1;
154 }
155 if (((err >> LeftCMXTobMismatch) & 0x1) ||
156 ((err >> RightCMXTobMismatch) & 0x1) ||
157 ((err >> RemoteSumMismatch) & 0x1)) {
158 globalOverviewX=CMXTransmission;
159 globalOverviewY=cr;
160 fill(m_packageName,globalOverviewX,globalOverviewY);
161 err_per_LB+=1;
162 }
163 if (((err >> LocalSumMismatch) & 0x1) ||
164 ((err >> TotalSumMismatch) &
165 0x1)) {
166 globalOverviewX=CMXSimulation;
167 globalOverviewY=cr;
168 fill(m_packageName,globalOverviewX,globalOverviewY);
169 err_per_LB+=1;
170 }
171 } // crates
172 }
173 }
174
175
176 // PPM Mismatch data
177 {
178 const auto* errTES = SG::get(m_ppmSimBSMismatchLocation, ctx);
179 if (!errTES || errTES->size() != size_t(ppmCrates)) {
180 ATH_MSG_INFO("No PPM SimBS mismatch vector of expected size");
181 } else {
182 for (int crate = 0; crate < ppmCrates; ++crate) {
183 const int err = (*errTES)[crate];
184 if (err == 0)
185 continue;
186 if (((err >> LUTMismatch) & 0x1)){
187 globalOverviewX=Simulation;
188 globalOverviewY=crate;
189 fill(m_packageName,globalOverviewX,globalOverviewY);
190 err_per_LB+=1;
191 }
192 }
193 }
194 }
195
196
197
198 // errors per lumiblock and events processed
199 auto lb = GetEventInfo(ctx)->lumiBlock();
200
201 auto n_processed = Monitored::Scalar("n_processed",0);
202 auto lb_errors = Monitored::Scalar("lb_errors",lb);
203 auto n_lb_errors = Monitored::Scalar("n_lb_errors",err_per_LB);
204
205 variables.push_back(n_processed);
206 if (err_per_LB>0) {
207 variables.push_back(lb_errors);
208 variables.push_back(n_lb_errors);
209 }
210
211 fill(m_packageName,variables);
212 variables.clear();
213 return StatusCode::SUCCESS;
214}
#define ATH_MSG_INFO(x)
SG::ReadHandle< xAOD::EventInfo > GetEventInfo(const EventContext &) const
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)
Declare a monitored scalar variable.
SG::ReadHandleKey< ErrorVector > m_cpmErrorLocation
SG::ReadHandleKey< ErrorVector > m_cpmMismatchLocation
bool empty() const
Test if the key is blank.
int lb
Definition globals.cxx:23
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
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.

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

initialize

Returns
StatusCode

Reimplemented from AthMonitorAlgorithm.

Definition at line 12 of file OverviewMonitorAlgorithm.cxx.

12 {
13
14 ATH_MSG_DEBUG("OverviewMonitorAlgorith::initialize");
15 ATH_MSG_DEBUG("Package Name "<< m_packageName);
16
17 ATH_CHECK(m_ppmErrorLocation.initialize());
18 ATH_CHECK(m_cpmErrorLocation.initialize(SG::AllowEmpty));
19 ATH_CHECK(m_cpmMismatchLocation.initialize(SG::AllowEmpty));
20 ATH_CHECK(m_ppmSimBSMismatchLocation.initialize());
21
22
24}
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual StatusCode initialize() override
initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.

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

◆ 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

◆ 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}
#define ATH_MSG_ERROR(x)
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

OverviewMonitorAlgorithm.cfg = MainServicesCfg(flags)

Definition at line 140 of file OverviewMonitorAlgorithm.py.

◆ False

OverviewMonitorAlgorithm.False

Definition at line 149 of file OverviewMonitorAlgorithm.py.

◆ Files

OverviewMonitorAlgorithm.Files

Definition at line 132 of file OverviewMonitorAlgorithm.py.

◆ flags

OverviewMonitorAlgorithm.flags = initConfigFlags()

Definition at line 131 of file OverviewMonitorAlgorithm.py.

◆ HISTFileName

OverviewMonitorAlgorithm.HISTFileName

Definition at line 133 of file OverviewMonitorAlgorithm.py.

◆ inputs

OverviewMonitorAlgorithm.inputs = glob.glob('/eos/atlas/atlastier0/rucio/data18_13TeV/physics_Main/00354311/data18_13TeV.00354311.physics_Main.recon.ESD.f1129/data18_13TeV.00354311.physics_Main.recon.ESD.f1129._lb0013._SFO-8._0001.1')

Definition at line 129 of file OverviewMonitorAlgorithm.py.

◆ m_cpmErrorLocation

SG::ReadHandleKey<ErrorVector> OverviewMonitorAlgorithm::m_cpmErrorLocation {this,"CPMErrorLocation","L1CaloCPMErrorVector","CPM Error Vector"}
private

Definition at line 28 of file OverviewMonitorAlgorithm.h.

28{this,"CPMErrorLocation","L1CaloCPMErrorVector","CPM Error Vector"};

◆ m_cpmMismatchLocation

SG::ReadHandleKey<ErrorVector> OverviewMonitorAlgorithm::m_cpmMismatchLocation {this,"CPMMismatchLocation","L1CaloCPMMismatchVector","CPM Mismatch Error Vector"}
private

Definition at line 33 of file OverviewMonitorAlgorithm.h.

33{this,"CPMMismatchLocation","L1CaloCPMMismatchVector","CPM Mismatch Error Vector"};

◆ 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_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_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_dummy

const ToolHandle<GenericMonitoringTool> AthMonitorAlgorithm::m_dummy
privateinherited

Definition at line 374 of file AthMonitorAlgorithm.h.

◆ m_enforceExpressTriggers

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

Definition at line 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_jemCmxErrorLocation

StringProperty OverviewMonitorAlgorithm::m_jemCmxErrorLocation {this,"JEMCMXErrorLocation","L1CaloJEMCMXErrorVector","JEM-CMX Error Vector"}
private

Definition at line 30 of file OverviewMonitorAlgorithm.h.

30{this,"JEMCMXErrorLocation","L1CaloJEMCMXErrorVector","JEM-CMX Error Vector"};

◆ m_jemErrorLocation

StringProperty OverviewMonitorAlgorithm::m_jemErrorLocation {this,"JEMErrorLocation","L1CaloJEMErrorVector","JEM Error Vector"}
private

Definition at line 29 of file OverviewMonitorAlgorithm.h.

29{this,"JEMErrorLocation","L1CaloJEMErrorVector","JEM Error Vector"};

◆ m_jemMismatchLocation

StringProperty OverviewMonitorAlgorithm::m_jemMismatchLocation {this,"JEMMismatchLocation","L1CaloJEMMismatchVector","JEM Mismatch Error Vector"}
private

Definition at line 34 of file OverviewMonitorAlgorithm.h.

34{this,"JEMMismatchLocation","L1CaloJEMMismatchVector","JEM Mismatch Error Vector"};

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

std::string AthMonitorAlgorithm::m_name
privateinherited

Definition at line 371 of file AthMonitorAlgorithm.h.

◆ m_packageName

StringProperty OverviewMonitorAlgorithm::m_packageName {this,"PackageName","OverviewMonitor","group name for histograming"}
private

Definition at line 23 of file OverviewMonitorAlgorithm.h.

23{this,"PackageName","OverviewMonitor","group name for histograming"};

◆ m_ppmErrorLocation

SG::ReadHandleKey<ErrorVector> OverviewMonitorAlgorithm::m_ppmErrorLocation {this,"PPMErrorLocation","L1CaloPPMErrorVector","PPM Error Vector"}
private

Definition at line 26 of file OverviewMonitorAlgorithm.h.

26{this,"PPMErrorLocation","L1CaloPPMErrorVector","PPM Error Vector"};

◆ m_ppmMismatchLocation

StringProperty OverviewMonitorAlgorithm::m_ppmMismatchLocation {this,"PPMMismatchLocation","L1CaloPPMMismatchVector","PPM Mismatch Error Vector"}
private

Definition at line 32 of file OverviewMonitorAlgorithm.h.

32{this,"PPMMismatchLocation","L1CaloPPMMismatchVector","PPM Mismatch Error Vector"};

◆ m_ppmSimBSMismatchLocation

SG::ReadHandleKey<ErrorVector> OverviewMonitorAlgorithm::m_ppmSimBSMismatchLocation {this, "PPMSimBSMismatchLocation", "L1CaloPPMSimBSMismatchVector", "PPMSimBS Mismatch Vector"}
private

Definition at line 35 of file OverviewMonitorAlgorithm.h.

35{this, "PPMSimBSMismatchLocation", "L1CaloPPMSimBSMismatchVector", "PPMSimBS Mismatch Vector"};

◆ m_ppmSpareErrorLocation

StringProperty OverviewMonitorAlgorithm::m_ppmSpareErrorLocation {this,"PPMSpareErrorLocation","L1CaloPPMSpareErrorVector","PPM Spare Error Vector"}
private

Definition at line 27 of file OverviewMonitorAlgorithm.h.

27{this,"PPMSpareErrorLocation","L1CaloPPMSpareErrorVector","PPM Spare Error Vector"};

◆ m_rodErrorLocation

StringProperty OverviewMonitorAlgorithm::m_rodErrorLocation {this,"RODErrorLocation","L1CaloRODErrorVector","ROD Error Vector"}
private

Definition at line 31 of file OverviewMonitorAlgorithm.h.

31{this,"RODErrorLocation","L1CaloRODErrorVector","ROD Error Vector"};

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

◆ nevents

int OverviewMonitorAlgorithm.nevents = -1

Definition at line 151 of file OverviewMonitorAlgorithm.py.

◆ OutputLevel

OverviewMonitorAlgorithm.OutputLevel

Definition at line 147 of file OverviewMonitorAlgorithm.py.

◆ OverviewMonitorCfg

OverviewMonitorAlgorithm.OverviewMonitorCfg = OverviewMonitoringConfig(flags)

Definition at line 143 of file OverviewMonitorAlgorithm.py.

◆ summariseProps

OverviewMonitorAlgorithm.summariseProps

Definition at line 149 of file OverviewMonitorAlgorithm.py.

◆ withDetails

OverviewMonitorAlgorithm.withDetails

Definition at line 149 of file OverviewMonitorAlgorithm.py.


The documentation for this class was generated from the following files: