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

#include <L2MuonSAMon.h>

Inheritance diagram for L2MuonSAMon:
Collaboration diagram for L2MuonSAMon:

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

 L2MuonSAMon (const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize () override
 initialize
virtual StatusCode fillHistograms (const EventContext &ctx) const override
 Function that steers anlayses.
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) const
 Calculate the average mu, i.e.
virtual float lbInteractionsPerCrossing (const EventContext &ctx) const
 Calculate instantaneous number of interactions, i.e.
virtual float lbAverageLuminosity (const EventContext &ctx) const
 Calculate average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1).
virtual float lbLuminosityPerBCID (const EventContext &ctx) const
 Calculate the instantaneous luminosity per bunch crossing.
virtual double lbDuration (const EventContext &ctx) const
 Calculate the duration of the luminosity block (in seconds).
virtual float lbAverageLivefraction (const EventContext &ctx) const
 Calculate the average luminosity livefraction.
virtual float livefractionPerBCID (const EventContext &ctx) const
 Calculate the live fraction per bunch crossing ID.
virtual double lbLumiWeight (const EventContext &ctx) 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 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
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
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

Protected Member Functions

virtual StatusCode fillVariablesPerChain (const EventContext &ctx, const std::string &chain) const override
 Function that fills variables of trigger objects associated to specified trigger chains.
virtual StatusCode fillVariablesPerOfflineMuonPerChain (const EventContext &ctx, const xAOD::Muon *mu, const std::string &chain) const override
 Function that fills variables of trigger objects associated to specified trigger chains comparing offline muons.
virtual StatusCode fillVariables (const EventContext &ctx) const override
 Function that fills variables by just retrieving containers of trigger objects.
virtual StatusCode fillVariablesPerOfflineMuon (const EventContext &ctx, const xAOD::Muon *mu) const override
 Function that fills variables that are compared to offline muons but the trigger chains are not specified.
virtual bool selectEvents () const
 Function that defines the event selection for anlayses User should reimlement in a subclass if needed.
virtual StatusCode selectMuons (const EventContext &ctx, SG::ReadHandle< xAOD::MuonContainer > &muons, std::vector< const xAOD::Muon * > &probes) const
 Function that defines the event selection for anlayses Users should reimlement in a subclass if needed.
template<class T, class FUNCT>
StatusCode fillVariablesRatioPlots (const EventContext &ctx, const xAOD::Muon *mu, std::string &&trigstep, xAOD::Muon::TrackParticleType type, FUNCT matchFunc) const
 Function that fills variables of ratio plots.
template<class T>
StatusCode fillVariableEtaPhi (const EventContext &ctx, SG::ReadHandleKey< DataVector< T > > ReadHandleKey, std::string &&trigstep, std::tuple< bool, double, double >(*PosFunc)(const T *)=&TrigMuonMonitorAlgorithm::defaultPosFunc< T >) const
 Function that fills variables of etaphi2D plots.
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.

Static Protected Member Functions

template<class T>
static std::tuple< bool, double, double > defaultPosFunc (const T *trig)

Protected Attributes

ToolHandle< MuonMatchingToolm_matchTool {this, "MuonMatchingTool", "MuonMatchingTool", "Tool for matching offline and online objects"}
ToolHandle< CP::IMuonSelectionToolm_muonSelectionTool {this,"MuonSelectionTool","CP::MuonSelectionTool/MuonSelectionTool","MuonSelectionTool"}
SG::ReadHandleKey< xAOD::MuonContainerm_MuonContainerKey {this, "MuonContainerName", "Muons", "Offline muon container"}
Gaudi::Property< std::vector< std::string > > m_monitored_chains {this, "MonitoredChains", {}, "Trigger chains that are monitored"}
 List of trigger chains that are monitored in fillVariablesPerChain and fillVariablesPerOfflineMuonPerChain.
Gaudi::Property< int > m_muontype
 Requirement for the offline muon type considered in analyses.
Gaudi::Property< std::string > m_group {this, "Group", "", "Histogram group"}
 Name of monitored group.
const float m_ratio_measurement_threshold = 4
 Threshold for ratio measurement.
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

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

SG::ReadHandleKey< xAOD::L2StandAloneMuonContainerm_L2MuonSAContainerKey {this, "L2StandAloneMuonContainerName", "HLT_MuonL2SAInfo", "L2MuonSA container"}
SG::ReadHandleKey< xAOD::MuonContainerm_EFFastRecoContainerKey {this, "EFFastRecoSAContainerName", "HLT_FastMuonsInfo", "EFFastRecoSA container (Phase2)"}
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 14 of file L2MuonSAMon.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 };

Constructor & Destructor Documentation

◆ L2MuonSAMon()

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

Definition at line 10 of file L2MuonSAMon.cxx.

11 : TrigMuonMonitorAlgorithm(name, pSvcLocator)
12{}
TrigMuonMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)

Member Function Documentation

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

◆ defaultPosFunc()

template<class T>
std::tuple< bool, double, double > TrigMuonMonitorAlgorithm::defaultPosFunc ( const T * trig)
inlinestaticprotectedinherited

◆ 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(ctx)) {
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 & AthCommonAlgorithm< 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 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ fillHistograms()

StatusCode TrigMuonMonitorAlgorithm::fillHistograms ( const EventContext & ctx) const
overridevirtualinherited

Function that steers anlayses.

It currently calles four types of analyses, fillVariables, fillVariablesPerOfflineMuon, fillVariablesPerChain and fillVariablesPerOfflineMuonPerChain that can be overridden in subclasses to do specific analyses.

See also
fillVariables, fillVariablesPerOfflineMuon, fillVariablesPerChain and fillVariablesPerOfflineMuonPerChain
Parameters
ctxEventContext provided by athenaMT

Implements AthMonitorAlgorithm.

Definition at line 22 of file TrigMuonMonitorAlgorithm.cxx.

22 {
23
24
25 bool passToMonitor = selectEvents();
26
27 if(passToMonitor){
28
31
33 for(const std::string& chain : m_monitored_chains){
34 ATH_CHECK( fillVariablesPerChain(ctx, chain) );
35 }
36
37
39 SG::ReadHandle<xAOD::MuonContainer> muons(m_MuonContainerKey, ctx);
40 if (! muons.isValid() ) {
41 ATH_MSG_ERROR("evtStore() does not contain muon Collection with name "<< m_MuonContainerKey);
42 return StatusCode::FAILURE;
43 }
44 std::vector<const xAOD::Muon*> probes;
45 ATH_CHECK(selectMuons(ctx, muons, probes));
46
47 for(const xAOD::Muon* mu : probes){
49
51 for(const std::string& chain : m_monitored_chains){
53 }
54 }
55
56 }
57
58
59
60 return StatusCode::SUCCESS;
61}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
SG::ReadHandleKey< xAOD::MuonContainer > m_MuonContainerKey
virtual StatusCode fillVariablesPerOfflineMuonPerChain(const EventContext &ctx, const xAOD::Muon *mu, const std::string &chain) const
Function that fills variables of trigger objects associated to specified trigger chains comparing off...
Gaudi::Property< std::vector< std::string > > m_monitored_chains
List of trigger chains that are monitored in fillVariablesPerChain and fillVariablesPerOfflineMuonPer...
virtual StatusCode fillVariables(const EventContext &ctx) const
Function that fills variables by just retrieving containers of trigger objects.
virtual StatusCode fillVariablesPerOfflineMuon(const EventContext &ctx, const xAOD::Muon *mu) const
Function that fills variables that are compared to offline muons but the trigger chains are not speci...
virtual bool selectEvents() const
Function that defines the event selection for anlayses User should reimlement in a subclass if needed...
virtual StatusCode fillVariablesPerChain(const EventContext &ctx, const std::string &chain) const
Function that fills variables of trigger objects associated to specified trigger chains.
virtual StatusCode selectMuons(const EventContext &ctx, SG::ReadHandle< xAOD::MuonContainer > &muons, std::vector< const xAOD::Muon * > &probes) const
Function that defines the event selection for anlayses Users should reimlement in a subclass if neede...
Muon_v1 Muon
Reference the current persistent version:

◆ fillVariableEtaPhi()

template<class T>
StatusCode TrigMuonMonitorAlgorithm::fillVariableEtaPhi ( const EventContext & ctx,
SG::ReadHandleKey< DataVector< T > > ReadHandleKey,
std::string && trigstep,
std::tuple< bool, double, double >(* PosFunc )(const T *) = &TrigMuonMonitorAlgorithm::defaultPosFunc< T > ) const
protectedinherited

Function that fills variables of etaphi2D plots.

See also
TrigMuonMonitorAlgorithm.icc for the implementation
Parameters
ctxEventContext provided by athenaMT
ReadHandleKeySG::ReadHandleKey of online muon.
trigsteptrigger step
PosFuncFunction pointer that implements cuts for the online muon candidates.

◆ fillVariables()

StatusCode L2MuonSAMon::fillVariables ( const EventContext & ctx) const
overrideprotectedvirtual

Function that fills variables by just retrieving containers of trigger objects.

Users should reimlement in a subclass if needed.

See also
fillHistograms
Parameters
ctxEventContext provided by athenaMT

Reimplemented from TrigMuonMonitorAlgorithm.

Definition at line 452 of file L2MuonSAMon.cxx.

452 {
453
454 ATH_MSG_DEBUG ("Filling histograms for " << name() << "...");
455
456 if(!m_L2MuonSAContainerKey.empty()) {
458 }
459
460 if (!m_EFFastRecoContainerKey.empty()) {
462 }
463
464 return StatusCode::SUCCESS;
465
466}
SG::ReadHandleKey< xAOD::MuonContainer > m_EFFastRecoContainerKey
Definition L2MuonSAMon.h:29
SG::ReadHandleKey< xAOD::L2StandAloneMuonContainer > m_L2MuonSAContainerKey
Definition L2MuonSAMon.h:28
StatusCode fillVariableEtaPhi(const EventContext &ctx, SG::ReadHandleKey< DataVector< T > > ReadHandleKey, std::string &&trigstep, std::tuple< bool, double, double >(*PosFunc)(const T *)=&TrigMuonMonitorAlgorithm::defaultPosFunc< T >) const
Function that fills variables of etaphi2D plots.

◆ fillVariablesPerChain()

StatusCode L2MuonSAMon::fillVariablesPerChain ( const EventContext & ctx,
const std::string & chain ) const
overrideprotectedvirtual

Function that fills variables of trigger objects associated to specified trigger chains.

This is called in the for loop of trigger chains in fillHistograms. Users should reimlement in a subclass if needed.

See also
fillHistograms
Parameters
ctxEventContext provided by athenaMT
chainTrigger chain provided in @cfillHistograms

Reimplemented from TrigMuonMonitorAlgorithm.

Definition at line 23 of file L2MuonSAMon.cxx.

23 {
24
25 ATH_MSG_DEBUG("Filling histograms for " << name() << ", chain " << chain << "...");
26
27 auto lb = Monitored::Scalar<int>(chain+"_LB",-1.0);
28 lb = GetEventInfo(ctx)->lumiBlock();
29
30 const float ZERO_LIMIT = 0.00001;
31
32 const bool isPh2FastReco = chain.find("newFast") != std::string::npos;
33 if (isPh2FastReco) {
34 std::vector< TrigCompositeUtils::LinkInfo<xAOD::MuonContainer> > featureCont =
36
37 for (const TrigCompositeUtils::LinkInfo<xAOD::MuonContainer>& muLinkInfo : featureCont){
38 ATH_CHECK( muLinkInfo.isValid() );
39 const ElementLink<xAOD::MuonContainer> muEL = muLinkInfo.link;
40 ATH_MSG_DEBUG("Found EFFastReco object with pt = " << (*muEL)->pt() << ", eta = " << (*muEL)->eta() << ", phi = " << (*muEL)->phi());
41
42 auto saPt = Monitored::Scalar<float>(chain+"_Pt",-999.);
43 auto saEta = Monitored::Scalar<float>(chain+"_Eta",-999.);
44 auto saPhi = Monitored::Scalar<float>(chain+"_Phi",-999.);
45 auto roiEta = Monitored::Scalar<float>(chain+"_roiEta",-999.);
46 auto roiPhi = Monitored::Scalar<float>(chain+"_roiPhi",-999.);
47 auto mf_failure = Monitored::Scalar<bool>(chain+"_mf_failure",false);
48
49 saPt = (*muEL)->pt() * (*muEL)->charge() / Gaudi::Units::GeV; // signed pt
50 saEta = (*muEL)->eta();
51 saPhi = (*muEL)->phi();
52 if(std::abs(saPt) < ZERO_LIMIT) mf_failure = true;
53
54 //retrieve the L1 roi
55 bool L1pass = false;
56 const xAOD::MuonRoI* l1roi = m_matchTool->matchL1(ctx, *muEL, chain, L1pass);
57 roiEta = l1roi ? l1roi->eta() : -999.;
58 roiPhi = l1roi ? l1roi->phi() : -999.;
59
60 fill(m_group+"_"+chain, roiEta, roiPhi, mf_failure);
61 if ( mf_failure ) continue;
62
63 // define barrel or endcap
64 auto isBarrel = Monitored::Scalar<bool>(chain+"_isBarrel",false);
65 auto isEndcap = Monitored::Scalar<bool>(chain+"_isEndcap",false);
66
67 if(std::abs(saEta) < 1.05) isBarrel = true;
68 else isEndcap = true;
69
70 fill(m_group+"_"+chain, saPt, saEta, saPhi, isBarrel, isEndcap);
71 }
72 return StatusCode::SUCCESS;
73 }
74
75 std::vector< TrigCompositeUtils::LinkInfo<xAOD::L2StandAloneMuonContainer> > featureCont =
77 for(const TrigCompositeUtils::LinkInfo<xAOD::L2StandAloneMuonContainer>& muLinkInfo : featureCont){
78 ATH_CHECK( muLinkInfo.isValid() );
79 const ElementLink<xAOD::L2StandAloneMuonContainer> muEL = muLinkInfo.link;
80
81
82 // basic EDM variables
83 auto saPt = Monitored::Scalar<float>(chain+"_Pt",-999.);
84 auto saEta = Monitored::Scalar<float>(chain+"_Eta",-999.);
85 auto saPhi = Monitored::Scalar<float>(chain+"_Phi",-999.);
86 auto saddr = Monitored::Scalar<int>(chain+"_saddr",-999.);
87 auto roiEta = Monitored::Scalar<float>(chain+"_roiEta",-999.);
88 auto roiPhi = Monitored::Scalar<float>(chain+"_roiPhi",-999.);
89 auto mf_failure = Monitored::Scalar<bool>(chain+"_mf_failure",false);
90
91 saPt = (*muEL)->pt();
92 saEta = (*muEL)->eta();
93 saPhi = (*muEL)->phi();
94 saddr = (*muEL)->sAddress();
95 roiEta = (*muEL)->roiEta();
96 roiPhi = (*muEL)->roiPhi();
97
98 ATH_MSG_DEBUG("saPt = " << saPt << ", saEta =" << saEta << ", saPhi = " << saPhi << ", saddr = " << saddr);
99 if(std::abs(saPt) < ZERO_LIMIT) mf_failure = true;
100
101 fill(m_group+"_"+chain, roiEta, roiPhi, mf_failure);
102 if( mf_failure ) continue;
103
104 // define barrel or endcap
105 auto isBarrel = Monitored::Scalar<bool>(chain+"_isBarrel",false);
106 auto isEndcap = Monitored::Scalar<bool>(chain+"_isEndcap",false);
107
108 if(saddr == -1) isEndcap = true;
109 else isBarrel = true;;
110
111 fill(m_group+"_"+chain, saPt, saEta, saPhi, saddr, isBarrel, isEndcap);
112
113
114 // define process flow
115 std::vector<int> proc_flow;
116 auto mon_proc_flow = Monitored::Collection(chain+"_proc_flow", proc_flow);
117
118 bool isL1hitThere = false;
119 bool isL1emuOkForTriggerPlane = false;
120 bool isMDThitThereForTriggerPlane = false;
121 bool isMDTFitOkForTriggerPlane = false;
122 bool isMDTFitOkFor2Plane = false;
123
124
125 // detector variables
126 // RPC and TGC
127 auto nRPC = Monitored::Scalar<int>(chain+"_RPC_Pad_N",0);
128 auto TGCMidRhoChi2 = Monitored::Scalar<float>(chain+"_TGC_Mid_rho_chi2",-1.0);
129 auto TGCMidPhiChi2 = Monitored::Scalar<float>(chain+"_TGC_Mid_phi_chi2",-1.0);
130 auto nTGCMidRho = Monitored::Scalar<int>(chain+"_TGC_Mid_rho_N",0);
131 auto nTGCMidPhi = Monitored::Scalar<int>(chain+"_TGC_Mid_phi_N",0);
132
133 nRPC = (*muEL)->rpcHitLayer().size();
134 TGCMidRhoChi2 = (*muEL)->tgcMidRhoChi2();
135 TGCMidPhiChi2 = (*muEL)->tgcMidPhiChi2();
136 nTGCMidRho = (*muEL)->tgcMidRhoN();
137 nTGCMidPhi = (*muEL)->tgcMidPhiN();
138
139 fill(m_group+"_"+chain, nRPC, TGCMidRhoChi2, TGCMidPhiChi2, nTGCMidRho, nTGCMidPhi, isBarrel, isEndcap);
140
141
142 // use process flow
143 if(isBarrel){
144 if( nRPC > 0 ) isL1hitThere = true;
145 float rpcFitMidSlope = (*muEL)->rpcFitMidSlope();
146 if( std::abs(rpcFitMidSlope) > ZERO_LIMIT ) isL1emuOkForTriggerPlane = true;
147 }
148 else {
149 if( nTGCMidRho > 0 && nTGCMidPhi > 0 ) isL1hitThere = true;
150 float TGCMid1Z = (*muEL)->tgcMid1Z();
151 if( std::abs(TGCMid1Z) > ZERO_LIMIT ) isL1emuOkForTriggerPlane = true;
152 }
153
154
155 // define inner, middle, and outer
156 int inner = 0;
157 int middle = 1;
158 int outer = 2;
159
160 if (isEndcap) {
164 } else {
168 }
169
170 float sign = 1;
171 if( saPhi < 0 ) sign = -1;
172
173
174 // super point
175 std::vector<float> sp_r, sp_z;
176
177 auto mon_sp_r= Monitored::Collection(chain+"_MDTpoints_r", sp_r);
178 auto mon_sp_z= Monitored::Collection(chain+"_MDTpoints_z", sp_z);
179
180 if( std::abs((*muEL)->superPointR(inner)) > ZERO_LIMIT ) {
181 sp_r.push_back( sign * (*muEL)->superPointR(inner) );
182 sp_z.push_back( (*muEL)->superPointZ(inner) );
183 }
184 if( std::abs((*muEL)->superPointR(middle)) > ZERO_LIMIT ) {
185 sp_r.push_back( sign * (*muEL)->superPointR(middle) );
186 sp_z.push_back( (*muEL)->superPointZ(middle) );
187 }
188 if( std::abs((*muEL)->superPointR(outer)) > ZERO_LIMIT ) {
189 sp_r.push_back( sign * (*muEL)->superPointR(outer) );
190 sp_z.push_back( (*muEL)->superPointZ(outer) );
191 }
192
193 fill(m_group+"_"+chain, mon_sp_r, mon_sp_z);
194
195
196 // MDT
197 auto MDTInnChi2 = Monitored::Scalar<float>(chain+"_MDT_Inn_fit_chi2",-1.0);
198 auto MDTMidChi2 = Monitored::Scalar<float>(chain+"_MDT_Mid_fit_chi2",-1.0);
199 auto MDTOutChi2 = Monitored::Scalar<float>(chain+"_MDT_Out_fit_chi2",-1.0);
200 auto n_mdt_hits = Monitored::Scalar<int>(chain+"_MDT_N",0);
201 auto n_mdt_hits_inner = Monitored::Scalar<int>(chain+"_MDT_Inn_N",0);
202 auto n_mdt_hits_middle = Monitored::Scalar<int>(chain+"_MDT_Mid_N",0);
203 auto n_mdt_hits_outer = Monitored::Scalar<int>(chain+"_MDT_Out_N",0);
204
205 MDTInnChi2 = (*muEL)->superPointChi2(inner);
206 MDTMidChi2 = (*muEL)->superPointChi2(middle);
207 MDTOutChi2 = (*muEL)->superPointChi2(outer);
208
209
210 std::vector<float> res_inn, res_mid, res_out;
211
212 auto mon_res_inn = Monitored::Collection(chain+"_MDT_Inn_residual",res_inn);
213 auto mon_res_mid = Monitored::Collection(chain+"_MDT_Mid_residual",res_mid);
214 auto mon_res_out = Monitored::Collection(chain+"_MDT_Out_residual",res_out);
215
216
217 n_mdt_hits = (*muEL)->nMdtHits();
218
219 for (int i_tube=0; i_tube<n_mdt_hits; i_tube++) {
220 float res = (*muEL)->mdtHitResidual(i_tube) / 10 ; // to cm
221 int imr = (*muEL)->mdtHitChamber(i_tube);
222
223 if (imr == inner) {
224 n_mdt_hits_inner++;
225 res_inn.push_back(res);
226 }
227 else if (imr == middle) {
228 n_mdt_hits_middle++;
229 res_mid.push_back(res);
230 }
231 else if (imr == outer) {
232 n_mdt_hits_outer++;
233 res_out.push_back(res);
234 }
235 }
236
237 fill(m_group+"_"+chain, MDTInnChi2, MDTMidChi2, MDTOutChi2, n_mdt_hits, n_mdt_hits_inner, n_mdt_hits_middle, n_mdt_hits_outer, mon_res_inn, mon_res_mid, mon_res_out, lb, isBarrel, isEndcap);
238
239
240 // use process flow
241 float MDTInnR = (*muEL)->superPointR(inner);
242 float MDTMidR = (*muEL)->superPointR(middle);
243 float MDTOutR = (*muEL)->superPointR(outer);
244
245 if( n_mdt_hits_middle > 0 ) isMDThitThereForTriggerPlane = true;
246 if( MDTMidR > ZERO_LIMIT ) isMDTFitOkForTriggerPlane = true;
247 if( isMDTFitOkForTriggerPlane && (MDTInnR > ZERO_LIMIT || MDTOutR > ZERO_LIMIT) ) isMDTFitOkFor2Plane = true;
248
249 proc_flow.push_back(1);
250 if( isL1hitThere ) proc_flow.push_back(2);
251 if( isL1emuOkForTriggerPlane ) proc_flow.push_back(3);
252 if( isMDThitThereForTriggerPlane ) proc_flow.push_back(4);
253 if( isMDTFitOkForTriggerPlane ) proc_flow.push_back(5);
254 if( isMDTFitOkFor2Plane ) proc_flow.push_back(6);
255
256 fill(m_group+"_"+chain, mon_proc_flow);
257
258
259 // matching to offline
260 const xAOD::Muon* RecMuonCB = m_matchTool->matchL2SAtoOff(ctx, (*muEL));
261 if(RecMuonCB == nullptr) continue;
262
263 std::vector<float> res_inn_OffMatch = res_inn;
264 std::vector<float> res_mid_OffMatch = res_mid;
265 std::vector<float> res_out_OffMatch = res_out;
266
267 auto mon_res_inn_OffMatch = Monitored::Collection(chain+"_MDT_Inn_residual_OffMatch",res_inn_OffMatch);
268 auto mon_res_mid_OffMatch = Monitored::Collection(chain+"_MDT_Mid_residual_OffMatch",res_mid_OffMatch);
269 auto mon_res_out_OffMatch = Monitored::Collection(chain+"_MDT_Out_residual_OffMatch",res_out_OffMatch);
270
271 fill(m_group+"_"+chain, mon_res_inn_OffMatch, mon_res_mid_OffMatch, mon_res_out_OffMatch, isBarrel, isEndcap);
272
273 }
274
275 return StatusCode::SUCCESS;
276}
std::pair< std::vector< unsigned int >, bool > res
int sign(int a)
const float ZERO_LIMIT
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool() const
Get the trigger decision tool member.
SG::ReadHandle< xAOD::EventInfo > GetEventInfo(const EventContext &) const
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.).
Gaudi::Property< std::string > m_group
Name of monitored group.
ToolHandle< MuonMatchingTool > m_matchTool
float eta() const
The pseudorapidity ( ) of the muon candidate.
float phi() const
The azimuthal angle ( ) of the muon candidate.
int lb
Definition globals.cxx:23
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.
constexpr float roiPhi(const AnyRoIPointer &roi)
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
static const unsigned int includeFailedDecisions
Run3 synonym of alsoDeactivateTEs.
@ BarrelInner
Inner station in the barrel spectrometer.
@ EndcapOuter
Outer station in the endcap spectrometer.
@ BarrelMiddle
Middle station in the barrel spectrometer.
@ EndcapMiddle
Middle station in the endcap spectrometer.
@ BarrelOuter
Outer station in the barrel spectrometer.
@ EndcapInner
Inner station in the endcap spectrometer.
L2StandAloneMuonContainer_v2 L2StandAloneMuonContainer
Define the latest version of the muon SA container.
setTeId setLumiBlock setRoiId setRoiSubsystem setRoiNumber roiEta
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".
MuonRoI_v1 MuonRoI
Definition MuonRoI.h:15

◆ fillVariablesPerOfflineMuon()

StatusCode L2MuonSAMon::fillVariablesPerOfflineMuon ( const EventContext & ctx,
const xAOD::Muon * mu ) const
overrideprotectedvirtual

Function that fills variables that are compared to offline muons but the trigger chains are not specified.

This is called in the for loop of offline muons in fillHistograms. Users should reimlement in a subclass if needed.

See also
fillHistograms
Parameters
ctxEventContext provided by athenaMT
muPointer to an offline muon provided in fillHistograms

Reimplemented from TrigMuonMonitorAlgorithm.

Definition at line 470 of file L2MuonSAMon.cxx.

470 {
471
472 if(!m_L2MuonSAContainerKey.empty()) {
473 ATH_CHECK( fillVariablesRatioPlots<xAOD::L2StandAloneMuon>(ctx, mu, "L2SA", xAOD::Muon::TrackParticleType::ExtrapolatedMuonSpectrometerTrackParticle,
474 [this](const EventContext &ctx, const xAOD::Muon *m){ return m_matchTool->matchL2SAReadHandle(ctx,m); }
475 ));
476 }
477
478 if (!m_EFFastRecoContainerKey.empty()) {
479 ATH_CHECK( fillVariablesRatioPlots<xAOD::Muon>(ctx, mu, "L2SA", xAOD::Muon::TrackParticleType::ExtrapolatedMuonSpectrometerTrackParticle,
480 [this](const EventContext &ctx, const xAOD::Muon *m){ return m_matchTool->matchFastRecoSAReadHandle(ctx,m); }
481 ));
482 }
483
484 return StatusCode::SUCCESS;
485
486}
StatusCode fillVariablesRatioPlots(const EventContext &ctx, const xAOD::Muon *mu, std::string &&trigstep, xAOD::Muon::TrackParticleType type, FUNCT matchFunc) const
Function that fills variables of ratio plots.

◆ fillVariablesPerOfflineMuonPerChain()

StatusCode L2MuonSAMon::fillVariablesPerOfflineMuonPerChain ( const EventContext & ctx,
const xAOD::Muon * mu,
const std::string & chain ) const
overrideprotectedvirtual

Function that fills variables of trigger objects associated to specified trigger chains comparing offline muons.

This is called in the for loop of trigger chains and offline muons in fillHistograms. Users should reimlement in a subclass if needed.

See also
fillHistograms
Parameters
ctxEventContext provided by athenaMT
muPointer to an offline muon provided in fillHistograms
chainTrigger chain provided in fillHistograms

Reimplemented from TrigMuonMonitorAlgorithm.

Definition at line 280 of file L2MuonSAMon.cxx.

280 {
281
282 ATH_MSG_DEBUG ("Filling histograms for " << name() << ", chain: " << chain
283 << ", offMuon with pt = " << mu->pt() << ", eta = " << mu->eta() << ", phi = " << mu->phi());
284
285 const float ZERO_LIMIT = 0.00001;
286
287
288 // offline muon variables
289 auto offEta = Monitored::Scalar<float>(chain+"_offEta",-999.);
290 auto offPt_signed = Monitored::Scalar<float>(chain+"_offPt_signed",-999.);
291 offEta = mu->eta();
292
293 float offPt = mu->pt() / Gaudi::Units::GeV; // in GeV
294 float offPhi = mu->phi();
295 float offCharge = mu->charge();
296 offPt_signed = offPt * offCharge;
297
298 float muSAPt{0.}, muSAdR{0.}, roiEta{0.}, roiPhi{0.};
299 bool isMatchedL2SA = false;
300
301 const bool isPh2FastReco = chain.find("newFast") != std::string::npos;
302 if (isPh2FastReco) {
303
304 bool isPassedL2 {false};
305 const xAOD::Muon* muSA = m_matchTool->matchFastRecoSA(ctx, mu, chain, isPassedL2);
306 if ( muSA ) {
307 isMatchedL2SA = true;
308
309 muSAdR = xAOD::P4Helpers::deltaR(mu, muSA, false);
310 muSAPt = muSA->pt() * muSA->charge() / Gaudi::Units::GeV; // signed pt
311
312 bool isPassedL1 {false};
313 const xAOD::MuonRoI* l1roi = m_matchTool->matchL1(ctx, muSA, chain, isPassedL1);
314 roiEta = l1roi ? l1roi->eta() : -999.;
315 roiPhi = l1roi ? l1roi->phi() : -999.;
316
317 } else {
318 isMatchedL2SA = false;
319
320 const TrigCompositeUtils::LinkInfo<xAOD::MuonContainer> muLinkInfo = m_matchTool->searchFastRecoSALinkInfo(mu, chain);
321 if ( !muLinkInfo.isValid() ) return StatusCode::SUCCESS;
322 const ElementLink<xAOD::MuonContainer> muEL = muLinkInfo.link;
323
324 muSAdR = xAOD::P4Helpers::deltaR(mu, *muEL, false);
325 }
326
327 } else {
328 // get L2SA muon link
329 const TrigCompositeUtils::LinkInfo<xAOD::L2StandAloneMuonContainer> muLinkInfo = m_matchTool->searchL2SALinkInfo(mu, chain);
330 if ( !muLinkInfo.isValid() ) return StatusCode::SUCCESS;
332 isMatchedL2SA = m_matchTool->isMatchedL2SA( *muEL, mu);
333
334 muSAdR = xAOD::P4Helpers::deltaR(mu, *muEL, false);
335 muSAPt = (*muEL)->pt();
336 roiEta = (*muEL)->roiEta();
337 roiPhi = (*muEL)->roiPhi();
338 }
339
340 // dR wrt offline
341 auto dRmin = Monitored::Scalar<float>(chain+"_dRmin",1000.);
342 dRmin = muSAdR;
343 fill(m_group+"_"+chain, dRmin);
344
345 if( !isMatchedL2SA ) return StatusCode::SUCCESS; // not matched to L2MuonSA
346
347 // L1 RoI wrt offline
348 auto roidEta = Monitored::Scalar<float>(chain+"_initialRoI_dEta",-999.);
349 auto roidPhi = Monitored::Scalar<float>(chain+"_initialRoI_dPhi",-999.);
350 auto roidR = Monitored::Scalar<float>(chain+"_initialRoI_dR",-999.);
351
352 roidEta = roiEta - offEta;
353 roidPhi = xAOD::P4Helpers::deltaPhi(offPhi, roiPhi);
354 roidR = sqrt(roidEta*roidEta + roidPhi*roidPhi);
355
356 fill(m_group+"_"+chain, roidEta, roidPhi, roidR, offEta);
357
358 // pt resolution, inverse pt resolution
359 auto ptresol = Monitored::Scalar<float>(chain+"_ptresol",-999.);
360 auto invptresol = Monitored::Scalar<float>(chain+"_invptresol",-999.);
361 if ( std::abs(offPt) > ZERO_LIMIT && std::abs(muSAPt) > ZERO_LIMIT ) {
362 ptresol = std::abs(muSAPt)/std::abs(offPt) - 1.;
363 ATH_MSG_ALWAYS("Pt: "<< muSAPt << " vs " << offPt * offCharge << " => ptresol = " << ptresol);
364 invptresol = (1./(offPt * offCharge) - 1./muSAPt) / (1./(offPt * offCharge));
365 }
366
367 // inverse pt resolution depends on charge of offline muon
368 std::vector<float> invptresol_pos, invptresol_neg;
369
370 auto mon_invptresol_pos = Monitored::Collection(chain+"_invptresol_pos",invptresol_pos);
371 auto mon_invptresol_neg = Monitored::Collection(chain+"_invptresol_neg",invptresol_neg);
372
373 if( offCharge > 0. ) invptresol_pos.push_back(invptresol);
374 else invptresol_neg.push_back(invptresol);
375
376 // region variables
377 const float ETA_OF_BARREL = 1.05;
378 const float ETA_OF_ENDCAP1 = 1.5;
379 const float ETA_OF_ENDCAP2 = 2.0;
380 const float ETA_OF_ENDCAP3 = 2.5;
381
382 auto isBarrel = Monitored::Scalar<bool>(chain+"_isBarrel",false);
383 auto isBarrelA = Monitored::Scalar<bool>(chain+"_isBarrelA",false);
384 auto isBarrelC = Monitored::Scalar<bool>(chain+"_isBarrelC",false);
385 auto isEndcapA = Monitored::Scalar<bool>(chain+"_isEndcapA",false);
386 auto isEndcapC = Monitored::Scalar<bool>(chain+"_isEndcapC",false);
387 auto isEndcap1 = Monitored::Scalar<bool>(chain+"_isEndcap1",false);
388 auto isEndcap2 = Monitored::Scalar<bool>(chain+"_isEndcap2",false);
389 auto isEndcap3 = Monitored::Scalar<bool>(chain+"_isEndcap3",false);
390 auto isEndcap1A = Monitored::Scalar<bool>(chain+"_isEndcap1A",false);
391 auto isEndcap2A = Monitored::Scalar<bool>(chain+"_isEndcap2A",false);
392 auto isEndcap3A = Monitored::Scalar<bool>(chain+"_isEndcap3A",false);
393 auto isEndcap1C = Monitored::Scalar<bool>(chain+"_isEndcap1C",false);
394 auto isEndcap2C = Monitored::Scalar<bool>(chain+"_isEndcap2C",false);
395 auto isEndcap3C = Monitored::Scalar<bool>(chain+"_isEndcap3C",false);
396
397 // offline pt variables
398 auto pt4to6 = Monitored::Scalar<bool>(chain+"_pt4to6",false);
399 auto pt6to8 = Monitored::Scalar<bool>(chain+"_pt6to8",false);
400 auto ptover8 = Monitored::Scalar<bool>(chain+"_ptover8",false);
401
402
403 // define region
404 if( std::abs(offEta) < ETA_OF_BARREL ) {
405 if( offEta > 0. ) isBarrelA = true;
406 else isBarrelC = true;
407 }
408 else{
409 if( offEta > 0. ) isEndcapA = true;
410 else isEndcapC = true;
411 }
412
413
414 if( std::abs(offEta) < ETA_OF_BARREL ){
415 isBarrel = true;
416 if( offEta > 0. ) isBarrelA = true;
417 else isBarrelC = true;
418 }
419 else if ( std::abs(offEta) < ETA_OF_ENDCAP1 ){
420 isEndcap1 = true;
421 if( offEta > 0. ) isEndcap1A = true;
422 else isEndcap1C = true;
423 }
424 else if ( std::abs(offEta) < ETA_OF_ENDCAP2 ){
425 isEndcap2 = true;
426 if( offEta > 0. ) isEndcap2A = true;
427 else isEndcap2C = true;
428 }
429 else if ( std::abs(offEta) < ETA_OF_ENDCAP3 ){
430 isEndcap3 = true;
431 if( offEta > 0. ) isEndcap3A = true;
432 else isEndcap3C = true;
433 }
434
435
436 if( std::abs(offPt) > 4 ){
437 if( std::abs(offPt) < 6 ) pt4to6 = true;
438 else if( std::abs(offPt) < 8 ) pt6to8 = true;
439 else ptover8 = true;
440 }
441
442
443 fill(m_group+"_"+chain, ptresol, offPt_signed, offEta, isBarrel, isEndcap1, isEndcap2, isEndcap3, isBarrelA, isBarrelC, isEndcapA, isEndcapC, pt4to6, pt6to8, ptover8);
444 fill(m_group+"_"+chain, mon_invptresol_pos, mon_invptresol_neg, isBarrelA, isBarrelC, isEndcap1A, isEndcap2A, isEndcap3A, isEndcap1C, isEndcap2C, isEndcap3C);
445
446
447 return StatusCode::SUCCESS;
448}
#define ATH_MSG_ALWAYS(x)
virtual double pt() const override
The transverse momentum ( ) of the particle.
float charge() const
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
double deltaR(double rapidity1, double phi1, double rapidity2, double phi2)
from bare bare rapidity,phi
ElementLink< T > link
Link to the feature.
Definition LinkInfo.h:55

◆ fillVariablesRatioPlots()

template<class T, class FUNCT>
StatusCode TrigMuonMonitorAlgorithm::fillVariablesRatioPlots ( const EventContext & ctx,
const xAOD::Muon * mu,
std::string && trigstep,
xAOD::Muon::TrackParticleType type,
FUNCT matchFunc ) const
protectedinherited

Function that fills variables of ratio plots.

See also
TrigMuonMonitorAlgorithm.icc for the implementation
Parameters
ctxEventContext provided by athenaMT
muPointer to an offline muon provided in fillHistograms
trigsteptrigger step
typexAOD::Muon::TrackParticleType of offline muon
matchFuncFunction pointer that implements cuts for the online muon candidates gotten by ReadHandle.

◆ filterPassed()

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

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ 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 //Check if the tool exists in the map
172 if (ATH_LIKELY(idx != m_toolLookupMap.end())) {
173 return m_tools[idx->second];
174 }
175 else {
176 //Check if the map is empty
177 if (m_toolLookupMap.empty()) {
178 ATH_MSG_FATAL("The m_toolLookupMap is empty. The tool " << name << " cannot be found in an empty map.");
179 return m_dummy;
180 }
181 //If the map is not empty and the tool was not found, print a fatal error
182 if (!m_toolLookupMap.empty()) {
183 std::string available = std::accumulate(
184 m_toolLookupMap.begin(), m_toolLookupMap.end(), std::string(""),
185 [](const std::string& s, auto h) { return s + "," + h.first; });
186 ATH_MSG_FATAL("The tool " << name << " could not be found in the tool array of the "
187 << "monitoring algorithm " << m_name << ". This probably reflects a discrepancy between "
188 << "your python configuration and c++ filling code. Note: your available groups are {"
189 << available << "}.");
190
191 return m_dummy;
192 }
193 if (!isInitialized()) {
195 "It seems that the AthMonitorAlgorithm::initialize was not called "
196 "in derived class initialize method, group name: " << name);
197 }
198 }
199 return m_dummy;
200}
#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 203 of file AthMonitorAlgorithm.cxx.

203 {
204 return m_trigDecTool;
205}

◆ initialize()

StatusCode L2MuonSAMon::initialize ( )
overridevirtual

initialize

Returns
StatusCode

Reimplemented from TrigMuonMonitorAlgorithm.

Definition at line 15 of file L2MuonSAMon.cxx.

15 {
17 ATH_CHECK( m_L2MuonSAContainerKey.initialize() );
19 return sc;
20}
static Double_t sc
virtual StatusCode initialize() override
initialize
::StatusCode StatusCode
StatusCode definition for legacy code.

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

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
inlineoverridevirtualinherited

Specify if the algorithm is clonable.

Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.

Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

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

350 {
351 std::string item;
352 std::stringstream ss(line);
353
354 ATH_MSG_DEBUG( "AthMonitorAlgorithm::parseList()" );
355
356 while ( std::getline(ss, item, ',') ) {
357 std::stringstream iss(item); // remove whitespace
358 iss >> item;
359 result.push_back(item);
360 }
361
362 return StatusCode::SUCCESS;
363}
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 }

◆ selectEvents()

bool TrigMuonMonitorAlgorithm::selectEvents ( ) const
protectedvirtualinherited

Function that defines the event selection for anlayses User should reimlement in a subclass if needed.

Returns
True if the event is used for an analysis.

Reimplemented in TrigMuonEfficiencyMon.

Definition at line 65 of file TrigMuonMonitorAlgorithm.cxx.

65 {
66 return true;
67}

◆ selectMuons()

StatusCode TrigMuonMonitorAlgorithm::selectMuons ( const EventContext & ctx,
SG::ReadHandle< xAOD::MuonContainer > & muons,
std::vector< const xAOD::Muon * > & probes ) const
protectedvirtualinherited

Function that defines the event selection for anlayses Users should reimlement in a subclass if needed.

Parameters
ctxEventContext provided by athenaMT
muonsOffline muons in the MuonContainer
probesList of offline muons that are used in analyses

Reimplemented in TrigMuonEfficiencyMon.

Definition at line 70 of file TrigMuonMonitorAlgorithm.cxx.

70 {
71 for (const xAOD::Muon* mu : *muons) {
72 if(mu->author()==xAOD::Muon::Author::MuidCo &&
73 m_muonSelectionTool->getQuality(*mu)<=xAOD::Muon::Quality::Medium ){
74 probes.push_back(mu);
75 }
76 }
77 return StatusCode::SUCCESS;
78}
ToolHandle< CP::IMuonSelectionTool > m_muonSelectionTool

◆ setFilterPassed()

virtual void AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Set filter decision:

Reimplemented in AthFilterAlgorithm.

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< 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.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< 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 AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.

Definition at line 60 of file AthCommonAlgorithm.cxx.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
virtual StatusCode sysInitialize() override
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 208 of file AthMonitorAlgorithm.cxx.

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

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

SG::ReadHandleKey<xAOD::MuonContainer> L2MuonSAMon::m_EFFastRecoContainerKey {this, "EFFastRecoSAContainerName", "HLT_FastMuonsInfo", "EFFastRecoSA container (Phase2)"}
private

Definition at line 29 of file L2MuonSAMon.h.

29{this, "EFFastRecoSAContainerName", "HLT_FastMuonsInfo", "EFFastRecoSA container (Phase2)"};

◆ 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 AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

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

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.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_group

Gaudi::Property<std::string> TrigMuonMonitorAlgorithm::m_group {this, "Group", "", "Histogram group"}
protectedinherited

Name of monitored group.

Definition at line 144 of file TrigMuonMonitorAlgorithm.h.

144{this, "Group", "", "Histogram group"};

◆ m_L2MuonSAContainerKey

SG::ReadHandleKey<xAOD::L2StandAloneMuonContainer> L2MuonSAMon::m_L2MuonSAContainerKey {this, "L2StandAloneMuonContainerName", "HLT_MuonL2SAInfo", "L2MuonSA container"}
private

Definition at line 28 of file L2MuonSAMon.h.

28{this, "L2StandAloneMuonContainerName", "HLT_MuonL2SAInfo", "L2MuonSA container"};

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

ToolHandle<MuonMatchingTool> TrigMuonMonitorAlgorithm::m_matchTool {this, "MuonMatchingTool", "MuonMatchingTool", "Tool for matching offline and online objects"}
protectedinherited

Definition at line 130 of file TrigMuonMonitorAlgorithm.h.

130{this, "MuonMatchingTool", "MuonMatchingTool", "Tool for matching offline and online objects"};

◆ m_monitored_chains

Gaudi::Property<std::vector<std::string> > TrigMuonMonitorAlgorithm::m_monitored_chains {this, "MonitoredChains", {}, "Trigger chains that are monitored"}
protectedinherited

List of trigger chains that are monitored in fillVariablesPerChain and fillVariablesPerOfflineMuonPerChain.

Definition at line 138 of file TrigMuonMonitorAlgorithm.h.

138{this, "MonitoredChains", {}, "Trigger chains that are monitored"};

◆ m_MuonContainerKey

SG::ReadHandleKey<xAOD::MuonContainer> TrigMuonMonitorAlgorithm::m_MuonContainerKey {this, "MuonContainerName", "Muons", "Offline muon container"}
protectedinherited

Definition at line 134 of file TrigMuonMonitorAlgorithm.h.

134{this, "MuonContainerName", "Muons", "Offline muon container"};

◆ m_muonSelectionTool

ToolHandle<CP::IMuonSelectionTool> TrigMuonMonitorAlgorithm::m_muonSelectionTool {this,"MuonSelectionTool","CP::MuonSelectionTool/MuonSelectionTool","MuonSelectionTool"}
protectedinherited

Definition at line 131 of file TrigMuonMonitorAlgorithm.h.

131{this,"MuonSelectionTool","CP::MuonSelectionTool/MuonSelectionTool","MuonSelectionTool"};

◆ m_muontype

Gaudi::Property<int> TrigMuonMonitorAlgorithm::m_muontype
protectedinherited
Initial value:
{this, "MuonType",
static_cast<int>(xAOD::Muon::MuonType::Combined),
"MuonType used for monitoring"}

Requirement for the offline muon type considered in analyses.

Definition at line 140 of file TrigMuonMonitorAlgorithm.h.

140 {this, "MuonType",
141 static_cast<int>(xAOD::Muon::MuonType::Combined),
142 "MuonType used for monitoring"};

◆ m_name

std::string AthMonitorAlgorithm::m_name
privateinherited

Definition at line 371 of file AthMonitorAlgorithm.h.

◆ m_ratio_measurement_threshold

const float TrigMuonMonitorAlgorithm::m_ratio_measurement_threshold = 4
protectedinherited

Threshold for ratio measurement.

Definition at line 147 of file TrigMuonMonitorAlgorithm.h.

◆ m_toolLookupMap

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

Definition at line 372 of file AthMonitorAlgorithm.h.

◆ m_tools

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

Array of Generic Monitoring Tools.

Definition at line 341 of file AthMonitorAlgorithm.h.

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

◆ m_trigDecTool

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

Tool to tell whether a specific trigger is passed.

Definition at line 345 of file AthMonitorAlgorithm.h.

◆ m_triggerChainString

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

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

Definition at line 360 of file AthMonitorAlgorithm.h.

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

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


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