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

#include <LArSCvsRawChannelMonAlg.h>

Inheritance diagram for LArSCvsRawChannelMonAlg:

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

 ~LArSCvsRawChannelMonAlg ()=default
virtual StatusCode initialize () override final
 initialize
virtual StatusCode fillHistograms (const EventContext &ctx) const override
 adds event to the monitoring histograms
 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()
 doAlign
 Files
 AtlasVersion
 HISTFileName
 FPE
 acc = MainServicesCfg( flags )
 ShowDataDependencies
 alg = acc.getEventAlgo("LArSCvsRawChannelMon")
 EnableLumi
 TrigDecisionTool
 WarnOffenders

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  PartitionEnum {
  EMBA =0 , EMBC , EMECA , EMECC ,
  HECA , HECC , FCALA , FCALC ,
  MAXPARTITIONS
}
enum  LayerEnumNoSides {
  EMBPNS =0 , EMB1NS , EMB2NS , EMB3NS ,
  EMECPNS , EMEC1NS , EMEC2NS , EMEC3NS ,
  HECNS , FCAL1NS , FCAL2NS , FCAL3NS ,
  MAXLYRNS
}
typedef std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > MonVarVec_t
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

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

Private Attributes

SG::ReadHandleKey< LArRawSCContainerm_SCKey {this, "keySC", "SC_ET_ID","Key for SuperCells container"}
SG::ReadHandleKey< LArRawChannelContainerm_RCKey {this, "keyRC", "LArRawChannels","Key for (regular) LArRawChannel container"}
SG::ReadCondHandleKey< LArOnOffIdMappingm_cablingKey {this, "keyCabling", "LArOnOffIdMap", "Key for the cabling"}
SG::ReadCondHandleKey< LArOnOffIdMappingm_cablingSCKey {this, "keySCCabling", "LArOnOffIdMapSC", "Key for the cabling of the SC"}
SG::ReadCondHandleKey< CaloSuperCellDetDescrManagerm_caloSuperCellMgrKey {this, "CaloSuperCellDetDescrManager", "CaloSuperCellDetDescrManager", "SG key of the resulting CaloSuperCellDetDescrManager" }
SG::ReadCondHandleKey< LArBadChannelContm_badChanKey {this, "BadChanKey", "LArBadChannel", "SG bad channels key"}
SG::ReadCondHandleKey< LArBadChannelContm_badSCKey {this, "BadSCKey", "LArBadChannelSC", "Key of the LArBadChannelCont SC" }
SG::ReadHandleKey< CaloBCIDAveragem_caloBCIDAvg {this,"CaloBCIDAverageKey","CaloBCIDAverage","SG Key of CaloBCIDAverage object (empty: Distable BCID correction)"}
Gaudi::Property< int > m_scEneCut {this,"SCEnergyCut",70,"Ignore SuperCells below this threshold (in terms of SC output integers"}
Gaudi::Property< bool > m_warnOffenders {this,"WarnOffenders",false,"Print warning about the worst offenders"}
Gaudi::Property< std::string > m_MonGroupName {this, "MonGroupName", "LArSCvsRawMon"}
Gaudi::Property< std::vector< std::string > > m_problemsToMask {this,"ProblemsToMask",{}, "Bad-Channel categories to mask"}
StringArrayProperty m_partitionNames {this, "PartitionNames", {"EMBA","EMBC","EMECA","EMECC","HECA","HECC","FCALA","FCALC"}}
StringArrayProperty m_layerNames
const std::array< unsigned, CaloSampling::Unknown > m_caloSamplingToLyrNS
std::map< std::string, int > m_toolmapPerLayer
const LArOnlineIDm_onlineID
const CaloCell_IDm_calo_id
ToolHandle< ICaloSuperCellIDToolm_scidtool {this, "CaloSuperCellIDTool", "CaloSuperCellIDTool", "Offline / SuperCell ID mapping tool"}
LArBadChannelMask m_bcMask
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 25 of file LArSCvsRawChannelMonAlg.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.

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

◆ LayerEnumNoSides

enum LArSCvsRawChannelMonAlg::LayerEnumNoSides
private
Enumerator
EMBPNS 
EMB1NS 
EMB2NS 
EMB3NS 
EMECPNS 
EMEC1NS 
EMEC2NS 
EMEC3NS 
HECNS 
FCAL1NS 
FCAL2NS 
FCAL3NS 
MAXLYRNS 

Definition at line 59 of file LArSCvsRawChannelMonAlg.h.

59{EMBPNS=0,EMB1NS,EMB2NS,EMB3NS,EMECPNS,EMEC1NS,EMEC2NS,EMEC3NS,HECNS,FCAL1NS,FCAL2NS,FCAL3NS,MAXLYRNS};

◆ PartitionEnum

enum LArSCvsRawChannelMonAlg::PartitionEnum
private
Enumerator
EMBA 
EMBC 
EMECA 
EMECC 
HECA 
HECC 
FCALA 
FCALC 
MAXPARTITIONS 

Definition at line 53 of file LArSCvsRawChannelMonAlg.h.

53{EMBA=0,EMBC,EMECA,EMECC,HECA,HECC,FCALA,FCALC,MAXPARTITIONS};

Constructor & Destructor Documentation

◆ ~LArSCvsRawChannelMonAlg()

LArSCvsRawChannelMonAlg::~LArSCvsRawChannelMonAlg ( )
default

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 LArSCvsRawChannelMonAlg::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 41 of file LArSCvsRawChannelMonAlg.cxx.

41 {
42
43 SG::ReadCondHandle<LArOnOffIdMapping> cablingHdl(m_cablingKey, ctx);
44 if (!cablingHdl.isValid()) {
45 ATH_MSG_ERROR("Do not have Onl-Ofl cabling map !!!!");
46 return StatusCode::FAILURE;
47 }
48
49 SG::ReadCondHandle<LArOnOffIdMapping> cablingSCHdl(m_cablingSCKey, ctx);
50 if (!cablingSCHdl.isValid()) {
51 ATH_MSG_ERROR("Do not have Onl-Ofl cabling map for SuperCells !!!!");
52 return StatusCode::FAILURE;
53 }
54
55 SG::ReadCondHandle<CaloSuperCellDetDescrManager> scDetMgr(m_caloSuperCellMgrKey, ctx);
56 if (!scDetMgr.isValid()) {
57 ATH_MSG_ERROR("Do not have CaloSuperCellDetDescrManager !!!!");
58 return StatusCode::FAILURE;
59 }
60
61 SG::ReadCondHandle<LArBadChannelCont> bcHdl(m_badChanKey, ctx);
62 if (!bcHdl.isValid()) {
63 ATH_MSG_ERROR("Do not have BadChannelContainer !!!!");
64 return StatusCode::FAILURE;
65 }
66 const LArBadChannelCont* bcCont = *bcHdl;
67
68 SG::ReadCondHandle<LArBadChannelCont> bcSCHdl(m_badSCKey, ctx);
69 if (!bcSCHdl.isValid()) {
70 ATH_MSG_ERROR("Do not have BadSCContainer !!!!");
71 return StatusCode::FAILURE;
72 }
73 const LArBadChannelCont* bcSCCont = *bcSCHdl;
74
75 // get SuperCellContainer
76 SG::ReadHandle<LArRawSCContainer> scHdl(m_SCKey, ctx);
77 if (!scHdl.isValid()) {
78 ATH_MSG_WARNING("Do not have LArRawSCContainer container with key" << m_SCKey.key());
79 return StatusCode::SUCCESS;
80 } else {
81 ATH_MSG_DEBUG("Reading SuperCell container with key " << m_SCKey.key() << ", size=" << scHdl->size());
82 }
83
84 // get regular LArRawChannel container
85 SG::ReadHandle<LArRawChannelContainer> rcHdl(m_RCKey, ctx);
86 if (!scHdl.isValid()) {
87 ATH_MSG_WARNING("Do not have LArRawChannel container with key" << m_RCKey.key());
88 return StatusCode::SUCCESS;
89 } else {
90 ATH_MSG_DEBUG("Reading LArRawChannel container with key " << m_RCKey.key() << ", size=" << rcHdl->size());
91 }
92
93 const CaloBCIDAverage* bcidavgshift = nullptr;
94 if (!(m_caloBCIDAvg.key().empty())) {
95 SG::ReadHandle<CaloBCIDAverage> bcidavgshiftHdl(m_caloBCIDAvg, ctx);
96 bcidavgshift = bcidavgshiftHdl.cptr();
97 }
98
99 const unsigned int bcid = ctx.eventID().bunch_crossing_id();
100
101 std::vector<std::pair<Monitored::Scalar<float>, Monitored::Scalar<float> > > monVars;
102 for (int p = 0; p < MAXPARTITIONS; ++p) {
103 monVars.emplace_back(Monitored::Scalar<float>("scEne_" + m_partitionNames.value()[p], 0.0),
104 Monitored::Scalar<float>("eneSum_" + m_partitionNames.value()[p], 0.0));
105 }
106
107 std::vector<std::vector<MonValues>> MonValueVec(m_layerNames.size());
108
109 for (const LArRawSC* rawSC : *scHdl) {
110 const std::vector<unsigned short>& bcids = rawSC->bcids();
111 const std::vector<int>& energies = rawSC->energies();
112 const std::vector<bool>& satur = rawSC->satur();
113
114 // Look for bcid:
115 float scEne = 0;
116
117 const size_t nBCIDs = bcids.size();
118 size_t i = 0;
119 for (i = 0; i < nBCIDs && bcids[i] != bcid; i++)
120 ;
121 if (satur[i])
122 continue;
123
124 if (!bcSCCont->status(rawSC->hardwareID()).good())
125 continue;
126
127 scEne = energies[i];
128 if (scEne < m_scEneCut)
129 continue;
130 Identifier off_id = cablingSCHdl->cnvToIdentifier(rawSC->hardwareID());
131
132
133 const int iPart = getPartition(off_id);
134 if (iPart < 0) {
135 ATH_MSG_ERROR("Got unkonwn partition number " << iPart);
136 return StatusCode::FAILURE;
137 }
138 const std::vector<Identifier>& regularIDs = m_scidtool->superCellToOfflineID(off_id);
139 std::set<HWIdentifier> hwids;
140 for (const Identifier& id : regularIDs) {
141 hwids.insert(cablingHdl->createSignalChannelID(id));
142 }
143 // Loop over regular RawChannelContainer to find the relevant cells:
144 float eneSum = 0;
145 const size_t nChans = rcHdl->size();
146 bool hasBadChan = false;
147 for (size_t i = 0; i < nChans && !hwids.empty(); ++i) {
148 const LArRawChannel& rc = rcHdl->at(i);
149 if (hwids.contains(rc.hardwareID())) {
150 if (m_bcMask.cellShouldBeMasked(bcCont, rc.hardwareID())) {
151 hasBadChan = true;
152 break;
153 }
154
155 eneSum += rc.energy();
156 if (bcidavgshift)
157 eneSum -= bcidavgshift->average(rc.hardwareID());
158 hwids.erase(rc.hardwareID());
159 }
160 } // end loop over regular raw channels
161
162 if (hasBadChan) {
163 ATH_MSG_DEBUG("SuperCell with id 0x" << std::hex << off_id.get_identifier32().get_compact() << std::dec << " E[" << i << "]=" << scEne
164 << " is connected to at least one bad channel. Ignoring SC.");
165 continue;
166 }
167 if (!hwids.empty()) {
168 ATH_MSG_ERROR("SuperCell with id 0x" << std::hex << off_id.get_identifier32().get_compact() << std::dec << ": " << hwids.size()
169 << " attached regular RawChannels not found");
170 continue; // Ignore this supercell
171 }
172 const CaloDetDescrElement* scDDE = scDetMgr->get_element(off_id);
173 scEne *= 12.5 / scDDE->sinTh();
174 ATH_MSG_VERBOSE("SuperCell with id 0x" << std::hex << off_id.get_identifier32().get_compact() << std::dec << ", eta=" << scDDE->eta() << " E[" << i
175 << "]=" << scEne << " Sum of RC energies=" << eneSum << ", Ratio=" << (eneSum != 0 ? scEne / eneSum : 0.0));
176
177 if (m_warnOffenders && scEne > 15000 && eneSum < 5000) {
178 ATH_MSG_WARNING("SuperCell with id 0x" << std::hex << off_id.get_identifier32().get_compact() << std::dec << ", eta=" << scDDE->eta() << " E[" << i
179 << "]=" << scEne << " Sum of RC energies=" << eneSum);
180 }
181
182 float eneFrac = 0;
183 if ( eneSum != 0 and scEne != 0 ){
184 eneFrac = scEne / eneSum;
185 }
186
187
188 const float eta = scDDE->eta_raw();
189 const float phi = scDDE->phi_raw();
190 const int calosample=scDDE->getSampling();
191 const unsigned iLyrNS=m_caloSamplingToLyrNS[calosample];
192 const int side = m_onlineID->pos_neg(rawSC->hardwareID());
193 const unsigned iLyr=iLyrNS*2+side;
194
195 auto& lvaluemap = MonValueVec[iLyr];
196
197 ATH_MSG_DEBUG("Chan "<<rawSC->hardwareID()<<" "<<rawSC->SourceId()<<" "<<m_onlineID->channel_name(rawSC->hardwareID())<<" iPart "<<iPart<<" iLyrNS "<<iLyrNS<<" side "<<side<<" iLyr "<<iLyr<<" "<<m_layerNames[iLyr]<<" MAXP "<<MAXPARTITIONS<<" MAXL "<<MAXLYRNS);
198
199
200 auto& monPair = monVars[iPart];
201 monPair.first = scEne;
202 monPair.second = eneSum;
203
204
205 lvaluemap.emplace_back(eta, phi, scEne, eneSum, eneFrac);
206
207
208 fill(m_MonGroupName, monPair.first, monPair.second); //, monPairLyr.first, monPairLyr.second);
209 }
210
211
212 for (size_t ilayer = 0; ilayer < MonValueVec.size(); ++ilayer) {
213 const auto& tool = MonValueVec[ilayer];
214 auto part_eta = Monitored::Collection("part_eta",tool,[](const auto& v){return v.raw_eta;});
215 auto part_phi = Monitored::Collection("part_phi",tool,[](const auto& v){return v.raw_phi;});
216 auto part_scEne = Monitored::Collection("part_scEne",tool,[](const auto& v){return v.scEne;});
217 auto part_eneSum = Monitored::Collection("part_eneSum",tool,[](const auto& v){return v.eneSum;});
218 auto part_eneFrac = Monitored::Collection("part_eneFrac",tool,[](const auto& v){return v.eneFrac;});
219
220 fill(m_tools[m_toolmapPerLayer.at(m_layerNames[ilayer])],
221 part_eta, part_phi, part_scEne, part_eneSum, part_eneFrac);
222
223 }
224
225
226 return StatusCode::SUCCESS;
227}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_MSG_ERROR(x)
#define ATH_MSG_VERBOSE(x)
LArBadXCont< LArBadChannel > LArBadChannelCont
static Double_t rc
float average(const Identifier &id) const
float sinTh() const
for algorithm working in transverse Energy
CaloCell_ID::CaloSample getSampling() const
cell sampling
value_type get_compact() const
Get the compact id.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
bool cellShouldBeMasked(const LArBadChannelCont *bcCont, const HWIdentifier &hardwareId) const
bool good() const
Returns true if no problems at all (all bits at zero)
LArBC_t status(const HWIdentifier channel) const
Query the status of a particular channel or FEB This is the main client access method.
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...
std::string channel_name(const HWIdentifier id) const
Return a string corresponding to a feedthrough name given an identifier.
SG::ReadHandleKey< LArRawChannelContainer > m_RCKey
StringArrayProperty m_partitionNames
int getPartition(const Identifier &scid) const
SG::ReadHandleKey< CaloBCIDAverage > m_caloBCIDAvg
std::map< std::string, int > m_toolmapPerLayer
const std::array< unsigned, CaloSampling::Unknown > m_caloSamplingToLyrNS
SG::ReadHandleKey< LArRawSCContainer > m_SCKey
ToolHandle< ICaloSuperCellIDTool > m_scidtool
const std::string & key() const
Return the StoreGate ID for the referenced object.
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
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.

◆ getPartition()

int LArSCvsRawChannelMonAlg::getPartition ( const Identifier & scid) const
private

Definition at line 229 of file LArSCvsRawChannelMonAlg.cxx.

229 {
230 const int s = m_calo_id->calo_sample(id);
231
232 // PreSamplerB=0, EMB1, EMB2, EMB3, PreSamplerE, EME1, EME2, EME3, HEC0, HEC1,
233 // HEC2, HEC3, TileBar0, TileBar1, TileBar2,TileGap1, TileGap2, TileGap3,
234 // TileExt0, TileExt1, TileExt2, FCAL0, FCAL1, FCAL2, MINIFCAL0, MINIFCAL1,
235 // MINIFCAL2, MINIFCAL3,
236 constexpr std::array<int, CaloSampling::getNumberOfSamplings()> samplingToPartitonMap{
237 0, 0, 0, 0, // Barrel BS to EMB3
238 2, 2, 2, 2, // EMEC PS to EME3
239 4, 4, 4, 4, // HEC0 to HEC3
240 -1, -1, -1, // TileBar0 - 2 (ignored)
241 -1, -1, -1, // Tile Gap 0 -2 (ignored)
242 -1, -1, -1, // TIleExt0 0-2 (ignored)
243 6, 6, 6, // FCAL 0-2
244 -1, -1, -1, -1 // MiniFCAL0-3 (ignored)
245 };
246
247 const int pNoSide = samplingToPartitonMap[s];
248 if (ATH_UNLIKELY(pNoSide < 0)) {
249 return MAXPARTITIONS;
250 }
251
252 return (m_calo_id->pos_neg(id) < 0) ? pNoSide + 1 : pNoSide;
253}
#define ATH_UNLIKELY(x)
int pos_neg(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
int calo_sample(const Identifier id) const
returns an int taken from Sampling enum and describing the subCalo to which the Id belongs.
static constexpr unsigned int getNumberOfSamplings()
Get number of available samplings.

◆ 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 LArSCvsRawChannelMonAlg::initialize ( )
finaloverridevirtual

initialize

Returns
StatusCode

Reimplemented from AthMonitorAlgorithm.

Definition at line 11 of file LArSCvsRawChannelMonAlg.cxx.

11 {
12
13 ATH_CHECK(m_SCKey.initialize());
14 ATH_CHECK(m_RCKey.initialize());
15 ATH_CHECK(m_cablingKey.initialize());
16 ATH_CHECK(m_cablingSCKey.initialize());
17 ATH_CHECK(m_badChanKey.initialize());
18 ATH_CHECK(m_badSCKey.initialize());
19 ATH_CHECK(m_caloSuperCellMgrKey.initialize());
20 ATH_CHECK(detStore()->retrieve(m_onlineID, "LArOnlineID"));
21 ATH_CHECK(detStore()->retrieve(m_calo_id, "CaloCell_ID"));
22 ATH_CHECK(m_scidtool.retrieve());
23 ATH_CHECK(m_bcMask.buildBitMask(m_problemsToMask, msg()));
24 ATH_CHECK(m_caloBCIDAvg.initialize(SG::AllowEmpty));
25
26 ATH_MSG_INFO("Building tool map");
27 m_toolmapPerLayer = Monitored::buildToolMap<int>( m_tools, "LArSCvsRawChannelMon", m_layerNames);
28
30}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
virtual StatusCode initialize() override
initialize
StatusCode buildBitMask(const std::vector< std::string > &problemsToMask, MsgStream &msg)
StatusCode initialize(bool used=true)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
std::vector< V > buildToolMap(const ToolHandleArray< GenericMonitoringTool > &tools, const std::string &baseName, int nHist)
Builds an array of indices (base case)
MsgStream & msg
Definition testRead.cxx:32

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

◆ acc

LArSCvsRawChannelMonAlg.acc = MainServicesCfg( flags )

Definition at line 121 of file LArSCvsRawChannelMonAlg.py.

◆ alg

LArSCvsRawChannelMonAlg.alg = acc.getEventAlgo("LArSCvsRawChannelMon")

Definition at line 126 of file LArSCvsRawChannelMonAlg.py.

◆ AtlasVersion

LArSCvsRawChannelMonAlg.AtlasVersion

Definition at line 115 of file LArSCvsRawChannelMonAlg.py.

◆ doAlign

LArSCvsRawChannelMonAlg.doAlign

Definition at line 113 of file LArSCvsRawChannelMonAlg.py.

◆ EnableLumi

LArSCvsRawChannelMonAlg.EnableLumi

Definition at line 127 of file LArSCvsRawChannelMonAlg.py.

◆ Files

LArSCvsRawChannelMonAlg.Files

Definition at line 114 of file LArSCvsRawChannelMonAlg.py.

◆ flags

LArSCvsRawChannelMonAlg.flags = initConfigFlags()

Definition at line 107 of file LArSCvsRawChannelMonAlg.py.

◆ FPE

LArSCvsRawChannelMonAlg.FPE

Definition at line 117 of file LArSCvsRawChannelMonAlg.py.

◆ HISTFileName

LArSCvsRawChannelMonAlg.HISTFileName

Definition at line 116 of file LArSCvsRawChannelMonAlg.py.

◆ m_badChanKey

SG::ReadCondHandleKey<LArBadChannelCont> LArSCvsRawChannelMonAlg::m_badChanKey {this, "BadChanKey", "LArBadChannel", "SG bad channels key"}
private

Definition at line 41 of file LArSCvsRawChannelMonAlg.h.

41{this, "BadChanKey", "LArBadChannel", "SG bad channels key"};

◆ m_badSCKey

SG::ReadCondHandleKey<LArBadChannelCont> LArSCvsRawChannelMonAlg::m_badSCKey {this, "BadSCKey", "LArBadChannelSC", "Key of the LArBadChannelCont SC" }
private

Definition at line 42 of file LArSCvsRawChannelMonAlg.h.

42{this, "BadSCKey", "LArBadChannelSC", "Key of the LArBadChannelCont SC" };

◆ m_bcMask

LArBadChannelMask LArSCvsRawChannelMonAlg::m_bcMask
private

Definition at line 100 of file LArSCvsRawChannelMonAlg.h.

◆ m_cablingKey

SG::ReadCondHandleKey<LArOnOffIdMapping> LArSCvsRawChannelMonAlg::m_cablingKey {this, "keyCabling", "LArOnOffIdMap", "Key for the cabling"}
private

Definition at line 38 of file LArSCvsRawChannelMonAlg.h.

38{this, "keyCabling", "LArOnOffIdMap", "Key for the cabling"};

◆ m_cablingSCKey

SG::ReadCondHandleKey<LArOnOffIdMapping> LArSCvsRawChannelMonAlg::m_cablingSCKey {this, "keySCCabling", "LArOnOffIdMapSC", "Key for the cabling of the SC"}
private

Definition at line 39 of file LArSCvsRawChannelMonAlg.h.

39{this, "keySCCabling", "LArOnOffIdMapSC", "Key for the cabling of the SC"};

◆ m_calo_id

const CaloCell_ID* LArSCvsRawChannelMonAlg::m_calo_id
private

Definition at line 97 of file LArSCvsRawChannelMonAlg.h.

◆ m_caloBCIDAvg

SG::ReadHandleKey<CaloBCIDAverage> LArSCvsRawChannelMonAlg::m_caloBCIDAvg {this,"CaloBCIDAverageKey","CaloBCIDAverage","SG Key of CaloBCIDAverage object (empty: Distable BCID correction)"}
private

Definition at line 44 of file LArSCvsRawChannelMonAlg.h.

44{this,"CaloBCIDAverageKey","CaloBCIDAverage","SG Key of CaloBCIDAverage object (empty: Distable BCID correction)"};

◆ m_caloSamplingToLyrNS

const std::array<unsigned,CaloSampling::Unknown> LArSCvsRawChannelMonAlg::m_caloSamplingToLyrNS
private
Initial value:

Definition at line 63 of file LArSCvsRawChannelMonAlg.h.

63 {
64 EMBPNS, //CALOSAMPLING(PreSamplerB, 1, 0) // 0
65 EMB1NS, //CALOSAMPLING(EMB1, 1, 0) // 1
66 EMB2NS, //CALOSAMPLING(EMB2, 1, 0) // 2
67 EMB3NS, //CALOSAMPLING(EMB3, 1, 0) // 3
68 EMECPNS, //CALOSAMPLING(PreSamplerE, 0, 1) // 4
69 EMEC1NS, //CALOSAMPLING(EME1, 0, 1) // 5
70 EMEC2NS, //CALOSAMPLING(EME2, 0, 1) // 6
71 EMEC3NS, //CALOSAMPLING(EME3, 0, 1) // 7
72 HECNS, //CALOSAMPLING(HEC0, 0, 1) // 8
73 HECNS, //CALOSAMPLING(HEC0, 0, 1) // 9
74 HECNS, //CALOSAMPLING(HEC0, 0, 1) // 19
75 HECNS, //CALOSAMPLING(HEC0, 0, 1) // 11
76 MAXLYRNS, //CALOSAMPLING(TileBar0, 1, 0) // 12
77 MAXLYRNS, //CALOSAMPLING(TileBar1, 1, 0) // 13
78 MAXLYRNS, //CALOSAMPLING(TileBar2, 1, 0) // 14
79 MAXLYRNS, //CALOSAMPLING(TileGap1, 1, 0) // 15
80 MAXLYRNS, //CALOSAMPLING(TileGap2, 1, 0) // 16
81 MAXLYRNS, // CALOSAMPLING(TileGap3, 1, 0) // 17
82 MAXLYRNS, //CALOSAMPLING(TileExt0, 1, 0) // 18
83 MAXLYRNS, //CALOSAMPLING(TileExt1, 1, 0) // 19
84 MAXLYRNS, //CALOSAMPLING(TileExt2, 1, 0) // 20
85 FCAL1NS, //CALOSAMPLING(FCAL0, 0, 1) // 21
86 FCAL2NS, //CALOSAMPLING(FCAL1, 0, 1) // 22
87 FCAL3NS, //ALOSAMPLING(FCAL2, 0, 1) // 23
88 MAXLYRNS, //CALOSAMPLING(MINIFCAL0, 0, 1) // 24
89 MAXLYRNS, //CALOSAMPLING(MINIFCAL1, 0, 1) // 25
90 MAXLYRNS, //CALOSAMPLING(MINIFCAL2, 0, 1) // 26
91 MAXLYRNS, //CALOSAMPLING(MINIFCAL3, 0, 1) // 27
92 };

◆ m_caloSuperCellMgrKey

SG::ReadCondHandleKey<CaloSuperCellDetDescrManager> LArSCvsRawChannelMonAlg::m_caloSuperCellMgrKey {this, "CaloSuperCellDetDescrManager", "CaloSuperCellDetDescrManager", "SG key of the resulting CaloSuperCellDetDescrManager" }
private

Definition at line 40 of file LArSCvsRawChannelMonAlg.h.

40{this, "CaloSuperCellDetDescrManager", "CaloSuperCellDetDescrManager", "SG key of the resulting CaloSuperCellDetDescrManager" };

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

StringArrayProperty LArSCvsRawChannelMonAlg::m_layerNames
private
Initial value:
{this, "LayerNames", {"EMBPC", "EMBPA", "EMB1C", "EMB1A", "EMB2C", "EMB2A", "EMB3C", "EMB3A", "EMECPC", "EMECPA", "EMEC1C", "EMEC1A", "EMEC2C", "EMEC2A", "EMEC3C", "EMEC3A", "HECC", "HECA", "FCAL1C", "FCAL1A", "FCAL2C", "FCAL2A", "FCAL3C", "FCAL3A"},
"Names of individual layers to monitor"}

Definition at line 55 of file LArSCvsRawChannelMonAlg.h.

55 {this, "LayerNames", {"EMBPC", "EMBPA", "EMB1C", "EMB1A", "EMB2C", "EMB2A", "EMB3C", "EMB3A", "EMECPC", "EMECPA", "EMEC1C", "EMEC1A", "EMEC2C", "EMEC2A", "EMEC3C", "EMEC3A", "HECC", "HECA", "FCAL1C", "FCAL1A", "FCAL2C", "FCAL2A", "FCAL3C", "FCAL3A"},
56 "Names of individual layers to monitor"};

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

Gaudi::Property<std::string> LArSCvsRawChannelMonAlg::m_MonGroupName {this, "MonGroupName", "LArSCvsRawMon"}
private

Definition at line 48 of file LArSCvsRawChannelMonAlg.h.

48{this, "MonGroupName", "LArSCvsRawMon"};

◆ m_name

std::string AthMonitorAlgorithm::m_name
privateinherited

Definition at line 371 of file AthMonitorAlgorithm.h.

◆ m_onlineID

const LArOnlineID* LArSCvsRawChannelMonAlg::m_onlineID
private

Definition at line 96 of file LArSCvsRawChannelMonAlg.h.

◆ m_partitionNames

StringArrayProperty LArSCvsRawChannelMonAlg::m_partitionNames {this, "PartitionNames", {"EMBA","EMBC","EMECA","EMECC","HECA","HECC","FCALA","FCALC"}}
private

Definition at line 52 of file LArSCvsRawChannelMonAlg.h.

52{this, "PartitionNames", {"EMBA","EMBC","EMECA","EMECC","HECA","HECC","FCALA","FCALC"}};

◆ m_problemsToMask

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

Definition at line 49 of file LArSCvsRawChannelMonAlg.h.

49{this,"ProblemsToMask",{}, "Bad-Channel categories to mask"};

◆ m_RCKey

SG::ReadHandleKey<LArRawChannelContainer> LArSCvsRawChannelMonAlg::m_RCKey {this, "keyRC", "LArRawChannels","Key for (regular) LArRawChannel container"}
private

Definition at line 37 of file LArSCvsRawChannelMonAlg.h.

37{this, "keyRC", "LArRawChannels","Key for (regular) LArRawChannel container"};

◆ m_scEneCut

Gaudi::Property<int> LArSCvsRawChannelMonAlg::m_scEneCut {this,"SCEnergyCut",70,"Ignore SuperCells below this threshold (in terms of SC output integers"}
private

Definition at line 46 of file LArSCvsRawChannelMonAlg.h.

46{this,"SCEnergyCut",70,"Ignore SuperCells below this threshold (in terms of SC output integers"};

◆ m_scidtool

ToolHandle<ICaloSuperCellIDTool> LArSCvsRawChannelMonAlg::m_scidtool {this, "CaloSuperCellIDTool", "CaloSuperCellIDTool", "Offline / SuperCell ID mapping tool"}
private

Definition at line 98 of file LArSCvsRawChannelMonAlg.h.

98{this, "CaloSuperCellIDTool", "CaloSuperCellIDTool", "Offline / SuperCell ID mapping tool"};

◆ m_SCKey

SG::ReadHandleKey<LArRawSCContainer> LArSCvsRawChannelMonAlg::m_SCKey {this, "keySC", "SC_ET_ID","Key for SuperCells container"}
private

Definition at line 36 of file LArSCvsRawChannelMonAlg.h.

36{this, "keySC", "SC_ET_ID","Key for SuperCells container"};

◆ m_toolLookupMap

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

Definition at line 372 of file AthMonitorAlgorithm.h.

◆ m_toolmapPerLayer

std::map<std::string,int> LArSCvsRawChannelMonAlg::m_toolmapPerLayer
private

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

◆ m_warnOffenders

Gaudi::Property<bool> LArSCvsRawChannelMonAlg::m_warnOffenders {this,"WarnOffenders",false,"Print warning about the worst offenders"}
private

Definition at line 47 of file LArSCvsRawChannelMonAlg.h.

47{this,"WarnOffenders",false,"Print warning about the worst offenders"};

◆ ShowDataDependencies

LArSCvsRawChannelMonAlg.ShowDataDependencies

Definition at line 125 of file LArSCvsRawChannelMonAlg.py.

◆ TrigDecisionTool

LArSCvsRawChannelMonAlg.TrigDecisionTool

Definition at line 128 of file LArSCvsRawChannelMonAlg.py.

◆ WarnOffenders

LArSCvsRawChannelMonAlg.WarnOffenders

Definition at line 129 of file LArSCvsRawChannelMonAlg.py.


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