|
ATLAS Offline Software
|
#include <TrigEgammaMonitorTopoAlgorithm.h>
|
enum | Environment_t {
Environment_t::user = 0,
Environment_t::online,
Environment_t::tier0,
Environment_t::tier0Raw,
Environment_t::tier0ESD,
Environment_t::AOD,
Environment_t::altprod
} |
| Specifies the processing environment. More...
|
|
enum | DataType_t {
DataType_t::userDefined = 0,
DataType_t::monteCarlo,
DataType_t::collisions,
DataType_t::cosmics,
DataType_t::heavyIonCollisions
} |
| Specifies what type of input data is being monitored. More...
|
|
|
| TrigEgammaMonitorTopoAlgorithm (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~TrigEgammaMonitorTopoAlgorithm () override |
| ========================================================================= More...
|
|
virtual StatusCode | initialize () override |
| ========================================================================= More...
|
|
virtual StatusCode | fillHistograms (const EventContext &ctx) const override |
| ========================================================================= More...
|
|
virtual StatusCode | execute (const EventContext &ctx) const override |
| Applies filters and trigger requirements. More...
|
|
void | fill (const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const |
| Fills a vector of variables to a group by reference. More...
|
|
void | fill (const ToolHandle< GenericMonitoringTool > &groupHandle, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &variables) const |
| Fills a vector of variables to a group by reference. More...
|
|
template<typename... T> |
void | fill (const ToolHandle< GenericMonitoringTool > &groupHandle, T &&... variables) const |
| Fills a variadic list of variables to a group by reference. More...
|
|
void | fill (const std::string &groupName, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const |
| Fills a vector of variables to a group by name. More...
|
|
void | fill (const std::string &groupName, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &variables) const |
| Fills a vector of variables to a group by name. More...
|
|
template<typename... T> |
void | fill (const std::string &groupName, T &&... variables) const |
| Fills a variadic list of variables to a group by name. More...
|
|
Environment_t | environment () const |
| Accessor functions for the environment. More...
|
|
Environment_t | envStringToEnum (const std::string &str) const |
| Convert the environment string from the python configuration to an enum object. More...
|
|
DataType_t | dataType () const |
| Accessor functions for the data type. More...
|
|
DataType_t | dataTypeStringToEnum (const std::string &str) const |
| Convert the data type string from the python configuration to an enum object. More...
|
|
const ToolHandle< GenericMonitoringTool > & | getGroup (const std::string &name) const |
| Get a specific monitoring tool from the tool handle array. More...
|
|
const ToolHandle< Trig::TrigDecisionTool > & | getTrigDecisionTool () const |
| Get the trigger decision tool member. More...
|
|
bool | trigChainsArePassed (const std::vector< std::string > &vTrigNames) const |
| Check whether triggers are passed. More...
|
|
SG::ReadHandle< xAOD::EventInfo > | GetEventInfo (const EventContext &) const |
| Return a ReadHandle for an EventInfo object (get run/event numbers, etc.) More...
|
|
virtual float | lbAverageInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate the average mu, i.e. More...
|
|
virtual float | lbInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate instantaneous number of interactions, i.e. More...
|
|
virtual float | lbAverageLuminosity (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1). More...
|
|
virtual float | lbLuminosityPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate the instantaneous luminosity per bunch crossing. More...
|
|
virtual double | lbDuration (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate the duration of the luminosity block (in seconds) More...
|
|
virtual float | lbAverageLivefraction (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate the average luminosity livefraction. More...
|
|
virtual float | livefractionPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate the live fraction per bunch crossing ID. More...
|
|
virtual double | lbLumiWeight (const EventContext &ctx=Gaudi::Hive::currentContext()) const |
| Calculate the average integrated luminosity multiplied by the live fraction. More...
|
|
virtual StatusCode | parseList (const std::string &line, std::vector< std::string > &result) const |
| Parse a string into a vector. More...
|
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. More...
|
|
virtual unsigned int | cardinality () const override |
| Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
|
|
virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
virtual bool | filterPassed (const EventContext &ctx) const |
|
virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
const std::map< std::string, TrigInfo > & | getTrigInfoMap () |
| Helper methods. More...
|
|
bool | ApplyElectronPid (const xAOD::Electron *eg, const std::string &) const |
| Get offline electron decision. More...
|
|
bool | ApplyPhotonPid (const xAOD::Photon *eg, const std::string &) const |
| Get offline electron decision. More...
|
|
const ToolHandle< Trig::TrigDecisionTool > & | tdt () const |
| Get the TDT
More...
|
|
const ToolHandle< TrigEgammaMatchingToolMT > & | match () const |
| Get the e/g match tool. More...
|
|
asg::AcceptData | setAccept (const TrigCompositeUtils::Decision *, const TrigInfo &) const |
| Set the accept object for all trigger levels. More...
|
|
TrigInfo | getTrigInfo (const std::string &) const |
| Get the trigger info parsed from the chain name (only single lepton triggers) More...
|
|
float | dR (const float, const float, const float, const float) const |
| Get delta R. More...
|
|
std::string | getL1Item (const std::string &trigger) const |
| Creates static map to return L1 item from trigger name. More...
|
|
bool | isIsolated (const xAOD::Electron *, const std::string &) const |
| Check if electron fulfils isolation criteria. More...
|
|
bool | isPrescaled (const std::string &) const |
| Check if the event is prescaled. More...
|
|
void | setTrigInfo (const std::string &) |
| Set the trigger info parsed from the chain name. More...
|
|
bool | isHLTTruncated () const |
|
float | getEta2 (const xAOD::Egamma *eg) const |
| Features helper. More...
|
|
float | getEt (const xAOD::Electron *eg) const |
|
float | getEtCluster37 (const xAOD::Egamma *eg) const |
|
float | getDEmaxs1 (const xAOD::Egamma *eg) const |
|
float | rTRT (const xAOD::Electron *eg) const |
|
float | getSigmaD0 (const xAOD::Electron *eg) const |
|
float | getD0sig (const xAOD::Electron *eg) const |
|
float | getEnergyBE0 (const xAOD::Egamma *eg) const |
|
float | getEnergyBE1 (const xAOD::Egamma *eg) const |
|
float | getEnergyBE2 (const xAOD::Egamma *eg) const |
|
float | getEnergyBE3 (const xAOD::Egamma *eg) const |
|
float | getEaccordion (const xAOD::Egamma *eg) const |
|
float | getE0Eaccordion (const xAOD::Egamma *eg) const |
|
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution More...
|
|
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
|
void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. More...
|
|
|
ToolHandle< TrigEgammaMatchingToolMT > | m_matchTool |
|
ToolHandle< Trig::TrigEgammaEmulationToolMT > | m_emulatorTool |
|
ToolHandleArray< IAsgElectronIsEMSelector > | m_electronIsEMTool {this,"ElectronIsEMSelector",{}} |
| Offline isEM Selectors. More...
|
|
ToolHandleArray< IAsgElectronLikelihoodTool > | m_electronLHTool {this,"ElectronLikelihoodTool",{}} |
| Offline LH Selectors. More...
|
|
ToolHandleArray< IAsgElectronLikelihoodTool > | m_electronDNNTool { this, "ElectronDNNSelectorTool", {},"DNN tools" } |
| Offline DNN Selectors. More...
|
|
ToolHandleArray< IAsgPhotonIsEMSelector > | m_photonIsEMTool {this,"PhotonIsEMSelector",{}} |
| Offline isEM Photon Selectors. More...
|
|
Gaudi::Property< bool > | m_doEmulation {this, "DoEmulation", false } |
| Do emulation. More...
|
|
Gaudi::Property< bool > | m_tp {this, "TPTrigger", false } |
| TP Trigger Analysis. More...
|
|
Gaudi::Property< std::string > | m_defaultProbePidElectron {this, "DefaultProbeSelectionElectron", "lhloose"} |
| default probe pid for electron trigitems that don't have pid in their name More...
|
|
Gaudi::Property< std::string > | m_defaultProbePidPhoton {this, "DefaultProbeSelectionPhoton", "loose"} |
| default probe pid for photon trigitems that don't have pid in their name More...
|
|
Gaudi::Property< std::vector< std::string > > | m_isemname {this, "isEMResultNames", {} } |
| isem names More...
|
|
Gaudi::Property< std::vector< std::string > > | m_lhname {this, "LHResultNames", {} } |
| lh names More...
|
|
Gaudi::Property< std::vector< std::string > > | m_dnnname {this, "DNNResultNames", {}, } |
| dnn names More...
|
|
Gaudi::Property< bool > | m_detailedHists {this, "DetailedHistograms", false} |
| Include more detailed histograms. More...
|
|
asg::AcceptInfo | m_accept |
|
ToolHandleArray< GenericMonitoringTool > | m_tools {this,"GMTools",{}} |
| Array of Generic Monitoring Tools. More...
|
|
PublicToolHandle< Trig::TrigDecisionTool > | m_trigDecTool {this, "TrigDecisionTool",""} |
| Tool to tell whether a specific trigger is passed. More...
|
|
ToolHandleArray< IDQFilterTool > | m_DQFilterTools {this,"FilterTools",{}} |
| Array of Data Quality filter tools. More...
|
|
SG::ReadCondHandleKey< LuminosityCondData > | m_lumiDataKey {this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"} |
|
SG::ReadCondHandleKey< LBDurationCondData > | m_lbDurationDataKey {this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"} |
|
SG::ReadCondHandleKey< TrigLiveFractionCondData > | m_trigLiveFractionDataKey {this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData", "SG Key of TrigLiveFractionCondData object"} |
|
AthMonitorAlgorithm::Environment_t | m_environment |
| Instance of the Environment_t enum. More...
|
|
AthMonitorAlgorithm::DataType_t | m_dataType |
| Instance of the DataType_t enum. More...
|
|
Gaudi::Property< std::string > | m_environmentStr {this,"Environment","user"} |
| Environment string pulled from the job option and converted to enum. More...
|
|
Gaudi::Property< std::string > | m_dataTypeStr {this,"DataType","userDefined"} |
| DataType string pulled from the job option and converted to enum. More...
|
|
Gaudi::Property< std::string > | m_triggerChainString {this,"TriggerChain",""} |
| Trigger chain string pulled from the job option and parsed into a vector. More...
|
|
std::vector< std::string > | m_vTrigChainNames |
| Vector of trigger chain names parsed from trigger chain string. More...
|
|
Gaudi::Property< std::string > | m_fileKey {this,"FileKey",""} |
| Internal Athena name for file. More...
|
|
Gaudi::Property< bool > | m_useLumi {this,"EnableLumi",false} |
| Allows use of various luminosity functions. More...
|
|
Gaudi::Property< float > | m_defaultLBDuration {this,"DefaultLBDuration",60.} |
| Default duration of one lumi block. More...
|
|
Gaudi::Property< int > | m_detailLevel {this,"DetailLevel",0} |
| Sets the level of detail used in the monitoring. More...
|
|
SG::ReadHandleKey< xAOD::EventInfo > | m_EventInfoKey {this,"EventInfoKey","EventInfo"} |
| Key for retrieving EventInfo from StoreGate. More...
|
|
|
Gaudi::Property< std::vector< std::map< std::string, std::string > > > | m_trigListConfig {this, "TriggerListConfig", {}} |
| List of configurations. More...
|
|
Gaudi::Property< float > | m_dR {this, "DeltaR", 0.07} |
| Min Delta R between online and offline. More...
|
|
SG::ReadHandleKey< xAOD::ElectronContainer > | m_offElectronKey { this, "ElectronKey", "Electrons", ""} |
| Event Wise offline ElectronContainer Access and end iterator. More...
|
|
SG::ReadHandleKey< xAOD::PhotonContainer > | m_offPhotonKey { this, "PhotonKey", "Photons", ""} |
|
ToolHandle< Trig::TrigDecisionTool > | m_trigdec |
| Trigger decision tool. More...
|
|
std::map< std::string, TrigInfo > | m_trigInfo |
| creates map of trigger name and TrigInfo struct More...
|
|
std::string | m_name |
|
std::unordered_map< std::string, size_t > | m_toolLookupMap |
|
const ToolHandle< GenericMonitoringTool > | m_dummy |
|
Gaudi::Property< bool > | m_enforceExpressTriggers |
|
DataObjIDColl | m_extendedExtraObjects |
| Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
|
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
◆ MonVarVec_t
◆ StoreGateSvc_t
◆ DataType_t
Specifies what type of input data is being monitored.
An enumeration of the different types of data the monitoring application may be running over. This can be used to select which histograms to produce, e.g. to prevent the production of colliding-beam histograms when running on cosmic-ray data. Strings of the same names may be given as jobOptions.
Enumerator |
---|
userDefined | |
monteCarlo | |
collisions | |
cosmics | |
heavyIonCollisions | |
Definition at line 191 of file AthMonitorAlgorithm.h.
◆ Environment_t
Specifies the processing environment.
The running environment may be used to select which histograms are produced, and where they are located in the output. For example, the output paths of the histograms are different for the "user", "online" and the various offline flags. Strings of the same names may be given as jobOptions.
Enumerator |
---|
user | |
online | |
tier0 | |
tier0Raw | |
tier0ESD | |
AOD | |
altprod | |
Definition at line 172 of file AthMonitorAlgorithm.h.
◆ TrigEgammaMonitorTopoAlgorithm()
TrigEgammaMonitorTopoAlgorithm::TrigEgammaMonitorTopoAlgorithm |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~TrigEgammaMonitorTopoAlgorithm()
TrigEgammaMonitorTopoAlgorithm::~TrigEgammaMonitorTopoAlgorithm |
( |
| ) |
|
|
overridevirtual |
◆ ApplyElectronPid()
Get offline electron decision.
Definition at line 49 of file TrigEgammaMonitorBaseAlgorithm.cxx.
51 const auto& ctx = Gaudi::Hive::currentContext() ;
52 if (pidname ==
"tight"){
55 else if (pidname ==
"medium"){
58 else if (pidname ==
"loose"){
61 else if (pidname ==
"lhtight"){
64 else if (pidname ==
"lhmedium"){
67 else if (pidname ==
"lhloose"){
70 else if (pidname ==
"lhvloose"){
73 else if (pidname ==
"dnntight"){
76 else if (pidname ==
"dnnmedium"){
79 else if (pidname ==
"dnnloose"){
◆ ApplyPhotonPid()
bool TrigEgammaMonitorBaseAlgorithm::ApplyPhotonPid |
( |
const xAOD::Photon * |
eg, |
|
|
const std::string & |
pidname |
|
) |
| const |
|
protectedinherited |
Get offline electron decision.
Definition at line 91 of file TrigEgammaMonitorBaseAlgorithm.cxx.
93 const auto& ctx = Gaudi::Hive::currentContext() ;
94 if (pidname ==
"tight"){
97 else if (pidname ==
"medium"){
100 else if (pidname ==
"loose"){
◆ cardinality()
unsigned int AthReentrantAlgorithm::cardinality |
( |
| ) |
const |
|
overridevirtualinherited |
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 55 of file AthReentrantAlgorithm.cxx.
◆ dataType()
DataType_t AthMonitorAlgorithm::dataType |
( |
| ) |
const |
|
inlineinherited |
Accessor functions for the data type.
- Returns
- the current value of the class's DataType_t instance.
Definition at line 221 of file AthMonitorAlgorithm.h.
◆ dataTypeStringToEnum()
Convert the data type string from the python configuration to an enum object.
- Returns
- a value in the DataType_t enumeration which matches the input string.
Definition at line 140 of file AthMonitorAlgorithm.cxx.
142 std::string lowerCaseStr =
str;
146 if( lowerCaseStr ==
"userdefined" ) {
148 }
else if( lowerCaseStr ==
"montecarlo" ) {
150 }
else if( lowerCaseStr ==
"collisions" ) {
152 }
else if( lowerCaseStr ==
"cosmics" ) {
154 }
else if( lowerCaseStr ==
"heavyioncollisions" ) {
157 ATH_MSG_WARNING(
"AthMonitorAlgorithm::dataTypeStringToEnum(): Unknown data type "
158 <<
str<<
", returning userDefined.");
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ dR()
float TrigEgammaMonitorBaseAlgorithm::dR |
( |
const float |
eta1, |
|
|
const float |
phi1, |
|
|
const float |
eta2, |
|
|
const float |
phi2 |
|
) |
| const |
|
protectedinherited |
Get delta R.
Definition at line 272 of file TrigEgammaMonitorBaseAlgorithm.cxx.
274 float dphi = fabs(phi1 - phi2) < TMath::Pi() ? fabs(phi1 - phi2) : 2*TMath:: \
275 Pi() - fabs(phi1 - phi2);
276 return sqrt(deta*deta + dphi*dphi);
◆ environment()
Accessor functions for the environment.
- Returns
- the current value of the class's Environment_t instance.
Definition at line 205 of file AthMonitorAlgorithm.h.
◆ envStringToEnum()
Convert the environment string from the python configuration to an enum object.
- Returns
- a value in the Environment_t enumeration which matches the input string.
Definition at line 112 of file AthMonitorAlgorithm.cxx.
114 std::string lowerCaseStr =
str;
118 if( lowerCaseStr ==
"user" ) {
120 }
else if( lowerCaseStr ==
"online" ) {
122 }
else if( lowerCaseStr ==
"tier0" ) {
124 }
else if( lowerCaseStr ==
"tier0raw" ) {
126 }
else if( lowerCaseStr ==
"tier0esd" ) {
128 }
else if( lowerCaseStr ==
"aod" ) {
130 }
else if( lowerCaseStr ==
"altprod" ) {
133 ATH_MSG_WARNING(
"AthMonitorAlgorithm::envStringToEnum(): Unknown environment "
134 <<
str<<
", returning user.");
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode AthMonitorAlgorithm::execute |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtualinherited |
Applies filters and trigger requirements.
Then, calls fillHistograms().
- Parameters
-
ctx | event context for reentrant Athena call |
- Returns
- StatusCode
Definition at line 73 of file AthMonitorAlgorithm.cxx.
78 if (!filterItr->accept()) {
80 return StatusCode::SUCCESS;
87 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 79 of file AthReentrantAlgorithm.cxx.
86 return Algorithm::extraOutputDeps();
◆ fillHistograms()
StatusCode TrigEgammaMonitorTopoAlgorithm::fillHistograms |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtual |
=========================================================================
Reimplemented from TrigEgammaMonitorBaseAlgorithm.
Definition at line 39 of file TrigEgammaMonitorTopoAlgorithm.cxx.
46 return StatusCode::SUCCESS;
53 if(!offElectrons.isValid())
56 return StatusCode::SUCCESS;
59 if(!offPhotons.isValid())
62 return StatusCode::SUCCESS;
68 std::string trigger_num =
d.at(
"trigger_num");
69 std::string trigger_den =
d.at(
"trigger_den");
71 auto monGroup_online =
getGroup( trigger_num +
"_Efficiency_HLT" );
72 auto monGroup_offline =
getGroup( trigger_num +
"_Efficiency_Offline" );
74 std::vector<float> mass_vec, mass_off_vec, match_mass_vec, match_mass_off_vec;
75 std::vector<float> dphi_vec, dphi_off_vec, match_dphi_vec, match_dphi_off_vec;
87 std::vector<Legs> legs_den_vec, legs_num_vec;
89 make_legs( trigger_num ,
d.at(
"leg0_key"),
d.at(
"leg1_key"), legs_num_vec);
90 make_legs( trigger_den ,
d.at(
"leg0_key"),
d.at(
"leg1_key"), legs_den_vec);
94 for (
auto &legs : legs_den_vec){
96 if( legs.leg0 && legs.leg1 ){
97 mass_vec.push_back( (legs.leg0->p4() + legs.leg1->p4()).M() );
98 dphi_vec.push_back( legs.leg0->p4().DeltaPhi(legs.leg1->p4()) );
101 if(
match( *offElectrons, legs.leg0, leg0_off) &&
102 match( *offElectrons, legs.leg1, leg1_off))
104 if (! (leg0_off == leg1_off)){
105 mass_off_vec.push_back( (leg0_off->
p4() + leg1_off->
p4()).M() );
106 dphi_off_vec.push_back( leg0_off->
p4().DeltaPhi(leg1_off->
p4()) );
114 for (
auto &legs : legs_num_vec){
117 if( legs.leg0 && legs.leg1 ){
118 match_mass_vec.push_back( (legs.leg0->p4() + legs.leg1->p4()).M() );
119 match_dphi_vec.push_back( legs.leg0->p4().DeltaPhi(legs.leg1->p4()) );
122 if(
match( *offElectrons, legs.leg0, leg0_off) &&
123 match( *offElectrons, legs.leg1, leg1_off))
125 if (! (leg0_off == leg1_off)){
126 match_mass_off_vec.push_back( (leg0_off->
p4() + leg1_off->
p4()).M() );
127 match_dphi_off_vec.push_back( leg0_off->
p4().DeltaPhi(leg1_off->
p4()) );
134 fill(monGroup_online, mass_col, match_mass_col, dphi_col, match_dphi_col);
135 fill(monGroup_offline, mass_off_col, match_mass_off_col, dphi_off_col, match_dphi_off_col);
139 return StatusCode::SUCCESS;
◆ filterPassed()
virtual bool AthReentrantAlgorithm::filterPassed |
( |
const EventContext & |
ctx | ) |
const |
|
inlinevirtualinherited |
◆ getD0sig()
Definition at line 362 of file TrigEgammaMonitorBaseAlgorithm.cxx.
367 float vard0 =
t->definingParametersCovMatrix()(0,0);
369 d0sigma=sqrtf(vard0);
373 if (fabs(d0sigma) < 1
e-6)
return -99.;
374 return t->d0()/d0sigma;
◆ getDEmaxs1()
◆ getE0Eaccordion()
float TrigEgammaMonitorBaseAlgorithm::getE0Eaccordion |
( |
const xAOD::Egamma * |
eg | ) |
const |
|
protectedinherited |
◆ getEaccordion()
◆ getEnergyBE0()
◆ getEnergyBE1()
◆ getEnergyBE2()
◆ getEnergyBE3()
◆ getEt()
◆ getEta2()
◆ getEtCluster37()
float TrigEgammaMonitorBaseAlgorithm::getEtCluster37 |
( |
const xAOD::Egamma * |
eg | ) |
const |
|
protectedinherited |
◆ GetEventInfo()
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.)
- Parameters
-
ctx | EventContext for the event |
- Returns
- a SG::ReadHandle<xAOD::EventInfo>
Definition at line 107 of file AthMonitorAlgorithm.cxx.
◆ getGroup()
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
-
name | string name of the desired tool |
- Returns
- reference to the desired monitoring tool
Definition at line 164 of file AthMonitorAlgorithm.cxx.
171 if (!isInitialized()) {
173 "It seems that the AthMonitorAlgorithm::initialize was not called "
174 "in derived class initialize method");
178 [](
const std::string&
s,
auto h) { return s +
"," + h.first; });
179 ATH_MSG_FATAL(
"The tool " <<
name <<
" could not be found in the tool array of the "
180 <<
"monitoring algorithm " <<
m_name <<
". This probably reflects a discrepancy between "
181 <<
"your python configuration and c++ filling code. Note: your available groups are {"
182 << available <<
"}.");
◆ getL1Item()
std::string TrigEgammaMonitorBaseAlgorithm::getL1Item |
( |
const std::string & |
trigger | ) |
const |
|
protectedinherited |
◆ getSigmaD0()
◆ getTrigDecisionTool()
Get the trigger decision tool member.
The trigger decision tool is used to check whether a specific trigger is passed by an event.
- Returns
- m_trigDecTool
Definition at line 189 of file AthMonitorAlgorithm.cxx.
◆ getTrigInfo()
TrigInfo TrigEgammaMonitorBaseAlgorithm::getTrigInfo |
( |
const std::string & |
trigger | ) |
const |
|
protectedinherited |
◆ getTrigInfoMap()
const std::map<std::string,TrigInfo>& TrigEgammaMonitorBaseAlgorithm::getTrigInfoMap |
( |
| ) |
|
|
inlineprotectedinherited |
◆ initialize()
StatusCode TrigEgammaMonitorTopoAlgorithm::initialize |
( |
| ) |
|
|
overridevirtual |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ isClonable()
bool AthReentrantAlgorithm::isClonable |
( |
| ) |
const |
|
overridevirtualinherited |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in Simulation::BeamEffectsAlg, InDet::SiTrackerSpacePointFinder, InDet::SCT_Clusterization, InDet::SiSPSeededTrackFinder, SCTRawDataProvider, InDet::GNNSeedingTrackMaker, SCT_PrepDataToxAOD, RoIBResultToxAOD, SCT_CablingCondAlgFromCoraCool, SCT_ReadCalibDataTestAlg, SCT_CablingCondAlgFromText, InDet::SiSPGNNTrackMaker, SCT_ReadCalibChipDataTestAlg, SCT_TestCablingAlg, SCT_ConfigurationConditionsTestAlg, ITkPixelCablingAlg, ITkStripCablingAlg, SCTEventFlagWriter, SCT_ConditionsSummaryTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_TdaqEnabledTestAlg, SCT_SiliconConditionsTestAlg, SCTSiLorentzAngleTestAlg, SCT_ByteStreamErrorsTestAlg, SCT_ConditionsParameterTestAlg, SCT_FlaggedConditionTestAlg, SCT_StripVetoTestAlg, SCT_RawDataToxAOD, and SCTSiPropertiesTestAlg.
Definition at line 44 of file AthReentrantAlgorithm.cxx.
◆ isHLTTruncated()
bool TrigEgammaMonitorBaseAlgorithm::isHLTTruncated |
( |
| ) |
const |
|
protectedinherited |
◆ isIsolated()
Check if electron fulfils isolation criteria.
Definition at line 112 of file TrigEgammaMonitorBaseAlgorithm.cxx.
117 ATH_MSG_DEBUG(
"Electron doesn't provide isolation for ptcone20");
120 if (!(fabs(
eg->pt()) > 0)) {
121 ATH_MSG_DEBUG(
"Electron pt is zero, can't calculate relative isolation");
127 if (isolation ==
"loose"){
128 if (ptcone20_rel > 0.1) {
137 ATH_MSG_DEBUG(
"No valid working point defined for " << isolation <<
" continue without isolation");
◆ isPrescaled()
bool TrigEgammaMonitorBaseAlgorithm::isPrescaled |
( |
const std::string & |
trigger | ) |
const |
|
protectedinherited |
Check if the event is prescaled.
Definition at line 144 of file TrigEgammaMonitorBaseAlgorithm.cxx.
146 bool efprescale=
false;
147 bool l1prescale=
false;
150 std::string l1item=
"";
152 if(trigger.starts_with(
"L1" ))
154 if(trigger.starts_with(
"HLT")){
156 const unsigned int bit=
tdt()->isPassedBits(trigger);
157 efprescale=bit & TrigDefs::EF_prescaled;
158 rerun=bit&TrigDefs::EF_resurrected;
162 ATH_MSG_DEBUG(
"Checking prescale for " << trigger <<
" " << l1item);
163 const unsigned int l1bit=
tdt()->isPassedBits(l1item);
164 bool l1_afterpre=l1bit&TrigDefs::L1_isPassedAfterPrescale;
165 bool l1_beforepre=l1bit&TrigDefs::L1_isPassedBeforePrescale;
166 l1prescale=l1_beforepre && !l1_afterpre;
167 prescale=efprescale || l1prescale;
168 ATH_MSG_DEBUG(
"L1 prescale " << l1item <<
" " << l1prescale <<
" before " << l1_beforepre <<
" after " << l1_afterpre);
169 ATH_MSG_DEBUG(
"EF prescale " << trigger <<
" " << efprescale <<
" Prescale " << prescale);
170 if(rerun)
return false;
171 if(prescale)
return true;
◆ make_legs()
void TrigEgammaMonitorTopoAlgorithm::make_legs |
( |
const std::string & |
trigger, |
|
|
std::string |
key_leg0, |
|
|
std::string |
key_leg1, |
|
|
std::vector< Legs > & |
legs_vec |
|
) |
| const |
|
private |
Get all combinations.
=========================================================================
Definition at line 162 of file TrigEgammaMonitorTopoAlgorithm.cxx.
187 ATH_MSG_DEBUG(
"We have " << vec_leg0.size() <<
" combinations for leg0 from " << trigger);
188 ATH_MSG_DEBUG(
"We have " << vec_leg1.
size() <<
" combinations for leg1 from " << trigger);
190 for (
auto & leg0_feat : vec_leg0){
192 for (
auto & leg1_feat : vec_leg1){
194 if ( !leg0_feat.isValid() || !leg1_feat.isValid() )
198 auto leg0 = (*leg0_feat.link);
199 auto leg1 = (*leg1_feat.link);
201 if (leg0 == leg1)
continue;
203 legs_vec.push_back( Legs{leg0 , leg1} );
◆ match() [1/2]
◆ match() [2/2]
=========================================================================
Definition at line 144 of file TrigEgammaMonitorTopoAlgorithm.cxx.
149 float min_deltaR = 999;
150 for (
auto part : container){
151 float dR = part_on->
p4().DeltaR(
part->p4());
152 if (
dR < min_deltaR ){
157 return ( (min_deltaR <
m_dR) && part_off);
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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
-
line | The input string. |
result | The parsed output vector of strings. |
- Returns
- StatusCode
Definition at line 336 of file AthMonitorAlgorithm.cxx.
338 std::stringstream
ss(
line);
342 while ( std::getline(
ss,
item,
',') ) {
343 std::stringstream iss(
item);
348 return StatusCode::SUCCESS;
◆ renounce()
◆ renounceArray()
◆ rTRT()
◆ setAccept()
Set the accept object for all trigger levels.
Definition at line 177 of file TrigEgammaMonitorBaseAlgorithm.cxx.
181 unsigned int condition=TrigDefs::includeFailedDecisions;
185 bool passedL1Calo=
false;
186 bool passedL2Calo=
false;
187 bool passedEFCalo=
false;
189 bool passedEFTrk=
false;
194 auto trigger =
info.trigger;
205 if(
info.signature ==
"Electron"){
206 std::string
key =
match()->key(
"FastElectrons");
209 }
else if(
info.signature ==
"Photon"){
216 std::string
key =
match()->key(
"PrecisionCalo_Electron");
217 if(
info.signature ==
"Photon")
key =
match()->key(
"PrecisionCalo_Photon");
229 if(
info.signature ==
"Electron"){
233 std::string
key =
match()->key(
"Electrons_GSF");
239 }
else if(
info.signature ==
"Photon"){
253 acceptData.setCutResult(
"L1Calo",passedL1Calo);
254 acceptData.setCutResult(
"L2Calo",passedL2Calo);
255 acceptData.setCutResult(
"L2",passedL2);
256 acceptData.setCutResult(
"EFCalo",passedEFCalo);
257 acceptData.setCutResult(
"EFTrack",passedEFTrk);
258 acceptData.setCutResult(
"HLT",passedEF);
◆ setFilterPassed()
virtual void AthReentrantAlgorithm::setFilterPassed |
( |
bool |
state, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
inlinevirtualinherited |
◆ setTrigInfo()
void TrigEgammaMonitorBaseAlgorithm::setTrigInfo |
( |
const std::string & |
trigger | ) |
|
|
protectedinherited |
Set the trigger info parsed from the chain name.
Definition at line 591 of file TrigEgammaMonitorBaseAlgorithm.cxx.
617 std::map<std::string, std::string> pidMap = { {
"vloose" ,
"loose" },
618 {
"loose" ,
"loose" },
619 {
"medium" ,
"medium" },
620 {
"tight" ,
"tight" },
621 {
"loose1" ,
"loose" },
622 {
"medium1" ,
"medium" },
623 {
"tight1" ,
"tight" },
624 {
"lhvloose" ,
"lhvloose" },
625 {
"lhloose" ,
"lhloose" },
626 {
"lhmedium" ,
"lhmedium" },
627 {
"lhtight" ,
"lhtight" },
628 {
"dnnloose" ,
"dnnloose" },
629 {
"dnnmedium",
"dnnmedium"},
630 {
"dnntight" ,
"dnntight" } };
632 std::vector<std::string> isoNames = {
"ivarloose",
"ivarmedium",
"ivartight",
"icaloloose",
"icalomedium",
"icalotight"};
639 bool isolated =
false;
641 std::string isolation=
"";
644 std::string hltinfo=trigger;
645 std::string signature =
"";
651 std::vector<std::string>
parts;
657 signature =
"Electron";
660 signature =
"Photon";
667 if(
parts.at(1) ==
"idperf"){
671 else if(
parts.at(1)==
"etcut"){
677 pidname = pidMap.at(
parts.at(1));
686 for(
auto& iso : isoNames){
688 isolation=iso; isolated=
true;
break;
693 std::string str_thr =
parts.at(0);
694 str_thr.erase( 0, 1);
702 ATH_MSG_DEBUG(
"=================== Chain Parser =======================");
714 ATH_MSG_DEBUG(
"L1Seed : " << l1seed <<
" (Is Legacy? " << (l1legacy?
"Yes":
"No") <<
")");
715 ATH_MSG_DEBUG(
"========================================================");
717 TrigInfo info{l1legacy,l1seed,trigger,signature,
threshold,pidname,idperf,etcut,nogsf,lrt,ion,isolation,isolated};
◆ sysExecute()
StatusCode AthReentrantAlgorithm::sysExecute |
( |
const EventContext & |
ctx | ) |
|
|
overridevirtualinherited |
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Definition at line 67 of file AthReentrantAlgorithm.cxx.
69 return Gaudi::Algorithm::sysExecute (ctx);
◆ sysInitialize()
StatusCode AthReentrantAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in InputMakerBase, and HypoBase.
Definition at line 96 of file AthReentrantAlgorithm.cxx.
107 if ( cs.retrieve().isFailure() ) {
109 return StatusCode::SUCCESS;
111 if (cs->regHandle(
this,*
h).isFailure()) {
112 sc = StatusCode::FAILURE;
113 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ tdt()
◆ 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
-
vTrigNames | List of trigger names. |
- Returns
- If empty input, default to true. If at least one trigger is specified, returns whether at least one trigger was passed.
Definition at line 194 of file AthMonitorAlgorithm.cxx.
198 if (vTrigNames.empty())
return true;
210 bool expressPass = passedBits & TrigDefs::Express_passed;
217 return group->isPassed();
◆ updateVHKA()
◆ m_accept
◆ m_dataType
◆ m_dataTypeStr
Gaudi::Property<std::string> AthMonitorAlgorithm::m_dataTypeStr {this,"DataType","userDefined"} |
|
protectedinherited |
◆ m_defaultLBDuration
Gaudi::Property<float> AthMonitorAlgorithm::m_defaultLBDuration {this,"DefaultLBDuration",60.} |
|
protectedinherited |
◆ m_defaultProbePidElectron
Gaudi::Property<std::string> TrigEgammaMonitorBaseAlgorithm::m_defaultProbePidElectron {this, "DefaultProbeSelectionElectron", "lhloose"} |
|
protectedinherited |
◆ m_defaultProbePidPhoton
Gaudi::Property<std::string> TrigEgammaMonitorBaseAlgorithm::m_defaultProbePidPhoton {this, "DefaultProbeSelectionPhoton", "loose"} |
|
protectedinherited |
◆ m_detailedHists
Gaudi::Property<bool> TrigEgammaMonitorBaseAlgorithm::m_detailedHists {this, "DetailedHistograms", false} |
|
protectedinherited |
◆ m_detailLevel
Gaudi::Property<int> AthMonitorAlgorithm::m_detailLevel {this,"DetailLevel",0} |
|
protectedinherited |
◆ m_detStore
◆ m_dnnname
Gaudi::Property<std::vector<std::string> > TrigEgammaMonitorBaseAlgorithm::m_dnnname {this, "DNNResultNames", {}, } |
|
protectedinherited |
◆ m_doEmulation
Gaudi::Property<bool> TrigEgammaMonitorBaseAlgorithm::m_doEmulation {this, "DoEmulation", false } |
|
protectedinherited |
◆ m_DQFilterTools
ToolHandleArray<IDQFilterTool> AthMonitorAlgorithm::m_DQFilterTools {this,"FilterTools",{}} |
|
protectedinherited |
◆ m_dR
Gaudi::Property<float> TrigEgammaMonitorTopoAlgorithm::m_dR {this, "DeltaR", 0.07} |
|
private |
◆ m_dummy
◆ m_electronDNNTool
ToolHandleArray<IAsgElectronLikelihoodTool> TrigEgammaMonitorBaseAlgorithm::m_electronDNNTool { this, "ElectronDNNSelectorTool", {},"DNN tools" } |
|
protectedinherited |
◆ m_electronIsEMTool
ToolHandleArray<IAsgElectronIsEMSelector> TrigEgammaMonitorBaseAlgorithm::m_electronIsEMTool {this,"ElectronIsEMSelector",{}} |
|
protectedinherited |
◆ m_electronLHTool
◆ m_emulatorTool
◆ m_enforceExpressTriggers
Gaudi::Property<bool> AthMonitorAlgorithm::m_enforceExpressTriggers |
|
privateinherited |
Initial value:{this,
"EnforceExpressTriggers", false,
"Requires that matched triggers made the event enter the express stream"}
Definition at line 372 of file AthMonitorAlgorithm.h.
◆ m_environment
◆ m_environmentStr
Gaudi::Property<std::string> AthMonitorAlgorithm::m_environmentStr {this,"Environment","user"} |
|
protectedinherited |
Environment string pulled from the job option and converted to enum.
Definition at line 352 of file AthMonitorAlgorithm.h.
◆ m_EventInfoKey
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects |
|
privateinherited |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 153 of file AthReentrantAlgorithm.h.
◆ m_fileKey
Gaudi::Property<std::string> AthMonitorAlgorithm::m_fileKey {this,"FileKey",""} |
|
protectedinherited |
◆ m_isemname
Gaudi::Property<std::vector<std::string> > TrigEgammaMonitorBaseAlgorithm::m_isemname {this, "isEMResultNames", {} } |
|
protectedinherited |
◆ m_lbDurationDataKey
◆ m_lhname
Gaudi::Property<std::vector<std::string> > TrigEgammaMonitorBaseAlgorithm::m_lhname {this, "LHResultNames", {} } |
|
protectedinherited |
◆ m_lumiDataKey
◆ m_matchTool
◆ m_name
std::string AthMonitorAlgorithm::m_name |
|
privateinherited |
◆ m_offElectronKey
◆ m_offPhotonKey
◆ m_photonIsEMTool
ToolHandleArray<IAsgPhotonIsEMSelector> TrigEgammaMonitorBaseAlgorithm::m_photonIsEMTool {this,"PhotonIsEMSelector",{}} |
|
protectedinherited |
◆ m_toolLookupMap
std::unordered_map<std::string, size_t> AthMonitorAlgorithm::m_toolLookupMap |
|
privateinherited |
◆ m_tools
◆ m_tp
Gaudi::Property<bool> TrigEgammaMonitorBaseAlgorithm::m_tp {this, "TPTrigger", false } |
|
protectedinherited |
◆ m_trigdec
◆ m_trigDecTool
◆ m_triggerChainString
Gaudi::Property<std::string> AthMonitorAlgorithm::m_triggerChainString {this,"TriggerChain",""} |
|
protectedinherited |
Trigger chain string pulled from the job option and parsed into a vector.
Definition at line 355 of file AthMonitorAlgorithm.h.
◆ m_trigInfo
std::map<std::string,TrigInfo> TrigEgammaMonitorBaseAlgorithm::m_trigInfo |
|
privateinherited |
◆ m_trigListConfig
Gaudi::Property<std::vector<std::map<std::string, std::string> > > TrigEgammaMonitorTopoAlgorithm::m_trigListConfig {this, "TriggerListConfig", {}} |
|
private |
List of configurations.
d = {'trigger_num' : 'HLT_e26_lhtight_e15_etcut_Zee', 'trigger_den' : 'HLT_e26_lhtight_e15_etcut', 'leg0_type':'electron', 'leg1_type':'electron'}
Definition at line 42 of file TrigEgammaMonitorTopoAlgorithm.h.
◆ m_trigLiveFractionDataKey
◆ m_useLumi
Gaudi::Property<bool> AthMonitorAlgorithm::m_useLumi {this,"EnableLumi",false} |
|
protectedinherited |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_vTrigChainNames
std::vector<std::string> AthMonitorAlgorithm::m_vTrigChainNames |
|
protectedinherited |
The documentation for this class was generated from the following files:
FeatureRequestDescriptor & setCondition(const unsigned int condition)
Set the Condition: TrigDefs::Physics - (default), only returns features from paths through the naviga...
ToolHandleArray< IAsgPhotonIsEMSelector > m_photonIsEMTool
Offline isEM Photon Selectors.
float dR(const float, const float, const float, const float) const
Get delta R.
SG::ReadHandleKey< xAOD::PhotonContainer > m_offPhotonKey
ToolHandle< Trig::TrigDecisionTool > m_trigdec
Trigger decision tool.
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
Tool to tell whether a specific trigger is passed.
void make_legs(const std::string &trigger, std::string key_leg0, std::string key_leg1, std::vector< Legs > &) const
Get all combinations.
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
std::vector< std::string > m_vTrigChainNames
Vector of trigger chain names parsed from trigger chain string.
FeatureRequestDescriptor & setChainGroup(const std::string &chainGroupName)
Set the desired Chain or Chain Group.
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)
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
Key for retrieving EventInfo from StoreGate.
@ ptcone20
Track isolation.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::unordered_map< std::string, size_t > m_toolLookupMap
AthMonitorAlgorithm::Environment_t m_environment
Instance of the Environment_t enum.
setEt setPhi setE277 setWeta2 eta1
@ numberOfTRTHits
number of TRT hits [unit8_t].
Gaudi::Property< float > m_dR
Min Delta R between online and offline.
const ToolHandle< Trig::TrigDecisionTool > & tdt() const
Get the TDT
Class providing the definition of the 4-vector interface.
bool trigChainsArePassed(const std::vector< std::string > &vTrigNames) const
Check whether triggers are passed.
@ numberOfTRTHighThresholdHits
number of TRT hits which pass the high threshold (only xenon counted) [unit8_t].
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
virtual void setOwner(IDataHandleHolder *o)=0
const ToolHandle< GenericMonitoringTool > m_dummy
SG::ReadHandleKey< xAOD::ElectronContainer > m_offElectronKey
Event Wise offline ElectronContainer Access and end iterator.
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
bool isHLTTruncated() const
Description of a calorimeter cluster.
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Array of Data Quality filter tools.
std::map< std::string, TrigInfo > m_trigInfo
creates map of trigger name and TrigInfo struct
Gaudi::Property< std::string > m_defaultProbePidElectron
default probe pid for electron trigitems that don't have pid in their name
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
void tolower(std::string &s)
virtual StatusCode fillHistograms(const EventContext &ctx) const =0
adds event to the monitoring histograms
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
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.
AthConfigFlags cosmics(AthConfigFlags flags, str instanceName, str recoMode)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
ToolHandleArray< IAsgElectronIsEMSelector > m_electronIsEMTool
Offline isEM Selectors.
ToolHandleArray< IAsgElectronLikelihoodTool > m_electronLHTool
Offline LH Selectors.
void reset()
Reset the FeatureRequestDescriptor to its default configuration.
AthMonitorAlgorithm::DataType_t m_dataType
Instance of the DataType_t enum.
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
double atof(std::string_view str)
Converts a string into a double / float.
virtual void renounce()=0
FeatureRequestDescriptor & setRestrictRequestToLeg(const int restrictToLegIndex)
Set to -1 by default, indicating that all legs of multi-leg chains are searched.
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.
virtual StatusCode sysInitialize() override
Override sysInitialize.
Gaudi::Property< bool > m_enforceExpressTriggers
FeatureRequestDescriptor & setRequireSGKey(const std::string &containerSGKey)
Set the StoreGate key filter.
ToolHandle< TrigEgammaMatchingToolMT > m_matchTool
virtual FourMom_t p4() const =0
The full 4-momentum of the particle.
TrigEgammaMonitorBaseAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
const ToolHandle< TrigEgammaMatchingToolMT > & match() const
Get the e/g match tool.
ToolHandleArray< IAsgElectronLikelihoodTool > m_electronDNNTool
Offline DNN Selectors.
#define ATH_MSG_WARNING(x)
float energyBE(const unsigned layer) const
Get the energy in one layer of the EM Calo.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Class describing a TrackParticle.
@ e2tsts1
energy of the cell corresponding to second energy maximum in the first sampling
virtual StatusCode initialize() override
initialize
Gaudi::Property< std::string > m_defaultProbePidPhoton
default probe pid for photon trigitems that don't have pid in their name
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
@ emaxs1
energy of strip with maximal energy deposit
virtual double e() const
The total energy of the particle.
std::string getL1Item(const std::string &trigger) const
Creates static map to return L1 item from trigger name.
const ToolHandle< GenericMonitoringTool > & getGroup(const std::string &name) const
Get a specific monitoring tool from the tool handle array.
Gaudi::Property< std::vector< std::map< std::string, std::string > > > m_trigListConfig
List of configurations.