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

#include <TrigTauMonitorSingleAlgorithm.h>

Inheritance diagram for TrigTauMonitorSingleAlgorithm:
Collaboration diagram for TrigTauMonitorSingleAlgorithm:

Public Types

using VarPropertyMap = std::map<std::string, std::map<std::string, std::pair<std::string, std::string>>>
using VarKeysMap = std::map<std::string, std::map<std::string, std::pair<SG::ReadDecorHandleKey<xAOD::TauJetContainer>, SG::ReadDecorHandleKey<xAOD::TauJetContainer>>>>
enum  TauID { None = 0 , RNN = 1 , GNTau = 2 }
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

 TrigTauMonitorSingleAlgorithm (const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize () override
 initialize
virtual StatusCode fillHistograms (const EventContext &ctx) const override
 adds event to the monitoring histograms
virtual StatusCode execute (const EventContext &ctx) const override
 Applies filters and trigger requirements.
void fill (const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > &&variables) const
 Fills a vector of variables to a group by reference.
void fill (const ToolHandle< GenericMonitoringTool > &groupHandle, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > &variables) const
 Fills a vector of variables to a group by reference.
template<typename... T>
void fill (const ToolHandle< GenericMonitoringTool > &groupHandle, T &&... variables) const
 Fills a variadic list of variables to a group by reference.
void fill (std::string_view groupName, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > &&variables) const
 Fills a vector of variables to a group by name.
void fill (std::string_view groupName, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > &variables) const
 Fills a vector of variables to a group by name.
template<typename S, typename... T>
requires std::convertible_to<S, std::string_view>
void fill (S &&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 (std::string_view 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::EventInfo > GetEventInfo (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

std::map< std::string, TrigTauInfo > & getTrigInfoMap ()
const TrigTauInfo & getTrigInfo (const std::string &trigger) const
std::vector< const xAOD::TauJet * > getOnlineTausAll (const std::string &trigger, bool include_0P=true, bool filter_legs=false) const
std::tuple< std::vector< const xAOD::TauJet * >, std::vector< const xAOD::TauJet * >, std::vector< const xAOD::TauJet * > > getOnlineTaus (const EventContext &ctx, const std::string &trigger) const
std::vector< const xAOD::TauJet * > getOfflineTausAll (const EventContext &ctx, const float threshold=20.0) const
std::pair< std::vector< const xAOD::TauJet * >, std::vector< const xAOD::TauJet * > > getOfflineTaus (const EventContext &ctx, const float threshold=20.0, const TauID tau_id=TauID::None) const
std::vector< const xAOD::eFexTauRoI * > getL1eTAUs (const EventContext &ctx, const std::string &l1_item) const
std::vector< std::pair< const xAOD::eFexTauRoI *, const xAOD::jFexTauRoI * > > getL1cTAUs (const EventContext &ctx, const std::string &l1_item) const
double dR (const double eta1, const double phi1, const double eta2, const double phi2) const
template<typename T1 = xAOD::IParticle, typename T2 = xAOD::IParticle>
bool matchObjects (const T1 *tau, const std::vector< const T2 * > &tau_vec, float threshold) const
bool matchObjects (const TLorentzVector &tau, const std::vector< TLorentzVector > &tau_vec, float threshold) const
template<typename T1 = xAOD::IParticle, typename T2 = xAOD::eFexTauRoI>
bool matchObjects (const T1 *tau_1, const T2 *tau_2, float threshold) const
template<typename T1 = xAOD::IParticle, typename T2 = xAOD::IParticle>
bool matchTruthObjects (const T1 *true_tau, const std::vector< const T2 * > &tau_vec, float threshold) const
std::vector< const xAOD::TauJet * > classifyTausAll (const EventContext &ctx, const std::vector< const xAOD::TauJet * > &taus, const float threshold=0.0, const TauID tau_id=TauID::None) const
std::pair< std::vector< const xAOD::TauJet * >, std::vector< const xAOD::TauJet * > > classifyOfflineTaus (const EventContext &ctx, const std::vector< const xAOD::TauJet * > &taus, const float threshold=0.0, const TauID tau_id=TauID::None) const
std::tuple< std::vector< const xAOD::TauJet * >, std::vector< const xAOD::TauJet * >, std::vector< const xAOD::TauJet * > > classifyOnlineTaus (const EventContext &ctx, const std::vector< const xAOD::TauJet * > &taus, const float threshold=0.0) const
const SG::ReadHandleKey< xAOD::TauJetContainer > & getOnlineContainerKey (const std::string &container_suffix) const
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Protected Attributes

Gaudi::Property< std::vector< std::string > > m_triggers {this, "TriggerList", {}}
Gaudi::Property< std::map< std::string, float > > m_L1_Phase1_thresholds {this, "L1Phase1Thresholds", {}}
Gaudi::Property< std::map< std::string, uint64_t > > m_L1_Phase1_threshold_patterns {this, "L1Phase1ThresholdPatterns", {}}
Gaudi::Property< bool > m_L1_select_by_et_only {this, "SelectL1ByETOnly", false}
Gaudi::Property< bool > m_do_efficiency_plots {this, "DoEfficiencyPlots", true}
Gaudi::Property< bool > m_do_variable_plots {this, "DoVariablePlots", true}
SG::ReadHandleKey< xAOD::TauJetContainer > m_offlineTauJetKey {this, "OfflineTauJetKey", "TauJets", "Offline taujet container key"}
std::unordered_map< std::string, SG::ReadHandleKey< xAOD::TauJetContainer >, CxxUtils::TransparentStringHash, std::equal_to<> > m_hltTauJetKeysMap
ToolHandleArray< GenericMonitoringTool > m_tools {this,"GMTools",{}}
 Array of Generic Monitoring Tools.
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecTool
 Tool to tell whether a specific trigger is passed.
ToolHandleArray< IDQFilterTool > m_DQFilterTools {this,"FilterTools",{}}
 Array of Data Quality filter tools.
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.
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::EventInfo > m_EventInfoKey {this,"EventInfoKey","EventInfo"}
 Key for retrieving EventInfo from StoreGate.

Private Types

typedef std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > MonVarVec_t
typedef ServiceHandle< StoreGateSvc > StoreGateSvc_t

Private Member Functions

StatusCode createKeys (const VarPropertyMap &var_names_map)
virtual StatusCode processEvent (const EventContext &ctx) const override
void fillHLTEfficiencies (const EventContext &ctx, const std::string &trigger, const bool l1_accept_flag, const std::vector< const xAOD::TauJet * > &offline_tau_vec, const std::vector< const xAOD::TauJet * > &online_tau_vec, const std::string &nProng) const
void fillIDInputVars (const std::string &trigger, const std::vector< const xAOD::TauJet * > &tau_vec, const std::string &nProng, bool online) const
void fillIDTrack (const std::string &trigger, const std::vector< const xAOD::TauJet * > &tau_vec, bool online) const
void fillIDCluster (const std::string &trigger, const std::vector< const xAOD::TauJet * > &tau_vec, bool online) const
void fillBasicVars (const EventContext &ctx, const std::string &trigger, const std::vector< const xAOD::TauJet * > &tau_vec, const std::string &nProng, bool online) const
void fillIDScores (const EventContext &ctx, const std::string &trigger, const std::vector< const xAOD::TauJet * > &tau_vec, const std::string &nProng, bool online) const
void fillHitZVars (const EventContext &ctx, const std::string &trigger, const std::vector< const xAOD::TauJet * > &tau_vec, const std::string &nProng) const
void fillVarPairs (const EventContext &ctx, const ToolHandle< GenericMonitoringTool > &mon_group, const VarPropertyMap::mapped_type &vars, const std::string &category, const std::string &match_var_name, const std::string &mon_var_1_name, const std::string &mon_var_2_name, const std::vector< const xAOD::TauJet * > &tau_vec) const
std::vector< TLorentzVector > getRoIsVector (const EventContext &ctx, const std::string &trigger) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

Gaudi::Property< bool > m_doTotalEfficiency {this, "DoTotalEfficiency", false, "Do total efficiency histograms"}
Gaudi::Property< bool > m_requireOfflineTaus {this, "RequireOfflineTaus", true, "Require at leat 1 offline tau per event"}
Gaudi::Property< unsigned int > m_offline_tau_id {this, "OfflineTauID", TauID::RNN, "Offline TauID (1: RNN, 2: GNTau)"}
Gaudi::Property< bool > m_doOfflineTausDistributions {this, "DoOfflineTausDistributions", true}
Gaudi::Property< VarPropertyMap > m_monitoredHLTIdScores {this, "HLTTauIDScores", {}, "Pairs of the TauID score and signal-transformed scores for each HLT TauID algorithm to be monitored, for each Tau container suffix (type, e.g. MVA, LLP, etc...)"}
Gaudi::Property< VarPropertyMap > m_monitoredHLTCaloHitsPreselIdScores {this, "HLTTauCaloHitsPreselIDScores", {}, "Pairs of the Calo+Hits preselection TauID score and signal-transformed scores for each HLT TauID algorithm to be monitored, for each Tau container suffix (type, e.g. MVA_CaloHitsBase, MVA_HitZ, etc...)"}
Gaudi::Property< VarPropertyMap > m_monitoredHLTHitZVars {this, "HLTTauHitZVars", {}, "Pairs of the HitZ z0 and z0 sigma for each HLT HitZ algorithm to be monitored, for each Tau container suffix (type, e.g. MVA_HitZ, etc...)"}
VarKeysMap m_monitoredVarPairsDecorHandleKeys
Gaudi::Property< std::map< std::string, std::pair< std::string, std::string > > > m_monitoredOfflineIdScores {this, "OfflineTauIDScores", {}, "Pairs of the TauID score and signal-transformed scores for each Offline TauID algorithm to be monitored"}
std::map< std::string, TrigTauInfo > m_trigInfo
SG::ReadDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey {this, "LArStatusFlag", "EventInfo.larFlags", "Key for EventInfo object"}
SG::ReadDecorHandleKey< xAOD::TauJetContainer > m_offlineGNTauDecorKey {this, "OfflineGNTauDecorKey", "", "Offline GNTau decoration key"}
SG::ReadHandleKey< xAOD::eFexTauRoIContainer > m_phase1l1eTauRoIKey {this, "Phase1L1eTauRoIKey", "L1_eTauRoI", "eTau Phase1 L1 RoI key"}
SG::ReadDecorHandleKey< xAOD::eFexTauRoIContainer > m_phase1l1eTauRoIThresholdPatternsKey {this, "Phase1L1eTauRoIThresholdPatternsKey", "L1_eTauRoI.thresholdPatterns", "Decoration for the threshold patterns for the eTau RoIs"}
SG::ReadHandleKey< xAOD::jFexTauRoIContainer > m_phase1l1jTauRoIKey {this, "Phase1L1jTauRoIKey", "L1_jFexTauRoI", "jTau Phase1 L1 RoI key"}
SG::ReadDecorHandleKey< xAOD::jFexTauRoIContainer > m_phase1l1jTauRoIThresholdPatternsKey {this, "Phase1L1jTauRoIThresholdPatternsKey", "L1_jFexTauRoI.thresholdPatterns", "Decoration for the threshold patterns for the jTau RoIs"}
SG::ReadHandleKey< xAOD::eFexTauRoIContainer > m_phase1l1cTauRoIKey {this, "Phase1L1cTauRoIKey", "L1_cTauRoI", "cTau Phase1 L1 RoI key"}
SG::ReadDecorHandleKey< xAOD::eFexTauRoIContainer > m_phase1l1cTauRoIDecorKey {this, "Phase1L1cTauRoIjTauRoILinkKey", "L1_cTauRoI.jTauLink", "Decoration for the link from eTau to the matching jTau"}
SG::ReadDecorHandleKey< xAOD::eFexTauRoIContainer > m_phase1l1cTauRoIThresholdPatternsKey {this, "Phase1L1cTauRoIThresholdPatternsKey", "L1_cTauRoI.thresholdPatterns", "Decoration for the threshold patterns for the cTau RoIs"}
std::string m_name
std::unordered_map< std::string, size_t, CxxUtils::TransparentStringHash, std::equal_to<> > 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.
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 12 of file TrigTauMonitorSingleAlgorithm.h.

Member Typedef Documentation

◆ MonVarVec_t

typedef std::vector<std::reference_wrapper<Monitored::IMonitoredVariable> > AthMonitorAlgorithm::MonVarVec_t
privateinherited

Definition at line 379 of file AthMonitorAlgorithm.h.

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

◆ VarKeysMap

◆ VarPropertyMap

using TrigTauMonitorSingleAlgorithm::VarPropertyMap = std::map<std::string, std::map<std::string, std::pair<std::string, std::string>>>

Definition at line 17 of file TrigTauMonitorSingleAlgorithm.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 203 of file AthMonitorAlgorithm.h.

203 {
204 userDefined = 0,
205 monteCarlo,
206 collisions,
207 cosmics,
208 heavyIonCollisions,
209 };
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 184 of file AthMonitorAlgorithm.h.

184 {
185 user = 0,
186 online,
187 tier0,
188 tier0Raw,
189 tier0ESD,
190 AOD,
191 altprod,
192 };

◆ TauID

Constructor & Destructor Documentation

◆ TrigTauMonitorSingleAlgorithm()

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

Definition at line 11 of file TrigTauMonitorSingleAlgorithm.cxx.

12 : TrigTauMonitorBaseAlgorithm(name, pSvcLocator)
13{}
TrigTauMonitorBaseAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)

Member Function Documentation

◆ classifyOfflineTaus()

std::pair< std::vector< const xAOD::TauJet * >, std::vector< const xAOD::TauJet * > > TrigTauMonitorBaseAlgorithm::classifyOfflineTaus ( const EventContext & ctx,
const std::vector< const xAOD::TauJet * > & taus,
const float threshold = 0.0,
const TauID tau_id = TauID::None ) const
protectedinherited

Definition at line 314 of file TrigTauMonitorBaseAlgorithm.cxx.

315{
316 std::vector<const xAOD::TauJet*> tau_vec_1p, tau_vec_3p;
317
318 for(const xAOD::TauJet* const tau : classifyTausAll(ctx, taus, threshold, tau_id)) {
319 int nTracks = -1;
321
322 if(nTracks == 1) tau_vec_1p.push_back(tau);
323 else if(nTracks == 3) tau_vec_3p.push_back(tau);
324 }
325
326 return {tau_vec_1p, tau_vec_3p};
327}
static Double_t taus
std::vector< const xAOD::TauJet * > classifyTausAll(const EventContext &ctx, const std::vector< const xAOD::TauJet * > &taus, const float threshold=0.0, const TauID tau_id=TauID::None) const
TauJet_v3 TauJet
Definition of the current "tau version".
Definition TauJet.h:17

◆ classifyOnlineTaus()

std::tuple< std::vector< const xAOD::TauJet * >, std::vector< const xAOD::TauJet * >, std::vector< const xAOD::TauJet * > > TrigTauMonitorBaseAlgorithm::classifyOnlineTaus ( const EventContext & ctx,
const std::vector< const xAOD::TauJet * > & taus,
const float threshold = 0.0 ) const
protectedinherited

Definition at line 297 of file TrigTauMonitorBaseAlgorithm.cxx.

298{
299 std::vector<const xAOD::TauJet*> tau_vec_0p, tau_vec_1p, tau_vec_mp;
300
301 for(const xAOD::TauJet* tau : classifyTausAll(ctx, taus, threshold, TauID::None)) {
302 int nTracks = -1;
304
305 if(nTracks == 0) tau_vec_0p.push_back(tau);
306 else if(nTracks == 1) tau_vec_1p.push_back(tau);
307 else tau_vec_mp.push_back(tau);
308 }
309
310 return {tau_vec_0p, tau_vec_1p, tau_vec_mp};
311}

◆ classifyTausAll()

std::vector< const xAOD::TauJet * > TrigTauMonitorBaseAlgorithm::classifyTausAll ( const EventContext & ctx,
const std::vector< const xAOD::TauJet * > & taus,
const float threshold = 0.0,
const TauID tau_id = TauID::None ) const
protectedinherited

Definition at line 261 of file TrigTauMonitorBaseAlgorithm.cxx.

262{
263 std::vector<const xAOD::TauJet*> tau_vec;
264
265 // Protection since GNTau is not run for taus below 13 GeV
266 float upd_threshold = threshold;
267 if(tau_id == TauID::GNTau){
268 if( upd_threshold < 13){
269 upd_threshold = 13;
270 }
271 }
272
273 SG::ReadDecorHandle<xAOD::TauJetContainer, char> tauid_medium{m_offlineGNTauDecorKey, ctx};
274 if(!tauid_medium.isValid()) {
275 ATH_MSG_WARNING("Cannot retrieve " << tauid_medium.key());
276 return tau_vec;
277 }
278
279 for(const xAOD::TauJet* tau : taus) {
280 if(tau->pt() < upd_threshold*Gaudi::Units::GeV) continue;
281
282 // Consider only offline taus which pass medium ID WP
283 if(tau_id == TauID::RNN) {
284 if(!tau->isTau(xAOD::TauJetParameters::JetRNNSigMedium)) continue;
285 }
286 else if(tau_id == TauID::GNTau) {
287 if(!tauid_medium(*tau)) continue;
288 }
289
290 tau_vec.push_back(tau);
291 }
292
293 return tau_vec;
294}
#define ATH_MSG_WARNING(x,...)
SG::ReadDecorHandleKey< xAOD::TauJetContainer > m_offlineGNTauDecorKey

◆ createKeys()

StatusCode TrigTauMonitorSingleAlgorithm::createKeys ( const VarPropertyMap & var_names_map)
private

Definition at line 50 of file TrigTauMonitorSingleAlgorithm.cxx.

51{
52 for(const auto& [container_sfx, m] : var_names_map) {
53 if(m_hltTauJetKeysMap.find(container_sfx) == m_hltTauJetKeysMap.end()) {
54 ATH_MSG_DEBUG("No triggers using container suffix \"" << container_sfx << "\". Skipping key creation for this suffix.");
55 continue;
56 }
57
58 const std::string online_container_name = getOnlineContainerKey(container_sfx).key();
59 for(const auto& [key, p] : m) {
60 if(p.first.empty() || p.second.empty()) {
61 ATH_MSG_ERROR("Invalid HLT variable names for \"" << key << "\".");
62 return StatusCode::FAILURE;
63 }
64
65 m_monitoredVarPairsDecorHandleKeys[container_sfx].emplace(
66 key,
67 std::make_pair(
68 SG::ReadDecorHandleKey<xAOD::TauJetContainer>(online_container_name + "." + p.first),
69 SG::ReadDecorHandleKey<xAOD::TauJetContainer>(online_container_name + "." + p.second)
70 )
71 );
72
73 ATH_CHECK(m_monitoredVarPairsDecorHandleKeys.at(container_sfx).at(key).first.initialize());
74 ATH_CHECK(m_monitoredVarPairsDecorHandleKeys.at(container_sfx).at(key).second.initialize());
75 }
76 }
77
78 return StatusCode::SUCCESS;
79}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
std::unordered_map< std::string, SG::ReadHandleKey< xAOD::TauJetContainer >, CxxUtils::TransparentStringHash, std::equal_to<> > m_hltTauJetKeysMap
const SG::ReadHandleKey< xAOD::TauJetContainer > & getOnlineContainerKey(const std::string &container_suffix) const

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

233{ 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}
void tolower(std::string &s)

◆ declareGaudiProperty()

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

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

Definition at line 156 of file AthCommonDataStore.h.

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

◆ declareProperty()

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

Definition at line 145 of file AthCommonDataStore.h.

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

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ dR()

double TrigTauMonitorBaseAlgorithm::dR ( const double eta1,
const double phi1,
const double eta2,
const double phi2 ) const
inlineprotectedinherited

Definition at line 70 of file TrigTauMonitorBaseAlgorithm.h.

71 {
72 double deta = std::fabs(eta1 - eta2);
73 double dphi = std::fabs(CxxUtils::wrapToPi(phi1-phi2));
74 return std::sqrt(deta*deta + dphi*dphi);
75 }
constexpr T wrapToPi(T phi)
Wrap angle in radians to [-pi, pi].
Definition phihelper.h:31

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

217{ 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}
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.

◆ fillBasicVars()

void TrigTauMonitorSingleAlgorithm::fillBasicVars ( const EventContext & ctx,
const std::string & trigger,
const std::vector< const xAOD::TauJet * > & tau_vec,
const std::string & nProng,
bool online ) const
private

Definition at line 438 of file TrigTauMonitorSingleAlgorithm.cxx.

439{
440 ATH_MSG_DEBUG("Fill Basic Variables: " << trigger);
441
442 const auto & monGroup = getGroup(trigger+"_"+(online ? "HLT" : "Offline")+"_basicVars_"+nProng);
443
444 auto Pt = Monitored::Collection("Pt", tau_vec, [](const xAOD::TauJet* tau){ return tau->pt()/Gaudi::Units::GeV; });
445 auto Eta = Monitored::Collection("Eta", tau_vec, [](const xAOD::TauJet* tau){ return tau->eta(); });
446 auto Phi = Monitored::Collection("Phi", tau_vec, [](const xAOD::TauJet* tau){ return tau->phi(); });
447
448 auto nTrack = Monitored::Collection("nTrack", tau_vec, [](const xAOD::TauJet* tau){
449 int nTrack = -1;
451 return nTrack;
452 });
453 auto nIsoTrack = Monitored::Collection("nIsoTrack", tau_vec, [](const xAOD::TauJet* tau){ return tau->nTracksIsolation(); });
454
455 auto averageMu = Monitored::Scalar<float>("averageMu", 0.0);
456 averageMu = lbAverageInteractionsPerCrossing(ctx);
457
458 auto TauVertexX = Monitored::Collection("TauVertexX", tau_vec, [](const xAOD::TauJet* tau){
459 double vtx = -999;
460 if(tau->vertex() != nullptr) vtx = tau->vertex()->x();
461 return vtx;
462 });
463 auto TauVertexY = Monitored::Collection("TauVertexY", tau_vec, [](const xAOD::TauJet* tau){
464 double vty = -999;
465 if(tau->vertex() != nullptr) vty = tau->vertex()->y();
466 return vty;
467 });
468 auto TauVertexZ = Monitored::Collection("TauVertexZ", tau_vec, [](const xAOD::TauJet* tau){
469 double vtz = -999;
470 if(tau->vertex() != nullptr) vtz = tau->vertex()->z();
471 return vtz;
472 });
473
474 fill(monGroup, Pt, Eta, Phi, nTrack, nIsoTrack, averageMu, TauVertexX, TauVertexY, TauVertexZ);
475
476 ATH_MSG_DEBUG("After fill Basic variables: " << trigger);
477}
@ Phi
Definition RPCdef.h:8
@ Eta
Definition RPCdef.h:8
const ToolHandle< GenericMonitoringTool > & getGroup(std::string_view name) const
Get a specific monitoring tool from the tool handle array.
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.
virtual float lbAverageInteractionsPerCrossing(const EventContext &ctx) const
Calculate the average mu, i.e.
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
monGroup(analysis_chain)

◆ fillHistograms()

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

adds event to the monitoring histograms

User will overwrite this function. Histogram booking is no longer done in C++. This function is called in execute once the filters are all passed.

Parameters
ctxforwarded from execute
Returns
StatusCode

Implements AthMonitorAlgorithm.

Definition at line 234 of file TrigTauMonitorBaseAlgorithm.cxx.

235{
236 ATH_MSG_DEBUG("Executing Monitoring algorithm");
237
238 // Protect against truncated events
239 // Since this happens very rarely, it won't bias the L1 distributions and efficiencies
240 if(m_trigDecTool->ExperimentalAndExpertMethods().isHLTTruncated()){
241 ATH_MSG_WARNING("HLTResult truncated, skip trigger analysis");
242 return StatusCode::SUCCESS;
243 }
244
245 // Protect against LAr noise bursts and other detector errors
246 SG::ReadHandle<xAOD::EventInfo> eventInfo(GetEventInfo(ctx));
247 ATH_CHECK(eventInfo.isValid());
248 if (eventInfo->errorState(xAOD::EventInfo::LAr) == xAOD::EventInfo::Error
249 || eventInfo->errorState(xAOD::EventInfo::Tile) == xAOD::EventInfo::Error
250 || eventInfo->errorState(xAOD::EventInfo::SCT) == xAOD::EventInfo::Error
251 || eventInfo->isEventFlagBitSet(xAOD::EventInfo::Core, 18)) {
252 return StatusCode::SUCCESS;
253 }
254
256
257 return StatusCode::SUCCESS;
258}
SG::ReadHandle< xAOD::EventInfo > GetEventInfo(const EventContext &) const
Return a ReadHandle for an EventInfo object (get run/event numbers, etc.).
virtual StatusCode processEvent(const EventContext &ctx) const =0
@ Tile
The Tile calorimeter.
@ Core
Core flags describing the event.
@ LAr
The LAr calorimeter.
@ Error
The sub-detector issued an error.

◆ fillHitZVars()

void TrigTauMonitorSingleAlgorithm::fillHitZVars ( const EventContext & ctx,
const std::string & trigger,
const std::vector< const xAOD::TauJet * > & tau_vec,
const std::string & nProng ) const
private

Definition at line 551 of file TrigTauMonitorSingleAlgorithm.cxx.

552{
553 ATH_MSG_DEBUG("Fill HitZ Variables: " << trigger);
554
555 const TrigTauInfo& info = getTrigInfo(trigger);
556 if(m_monitoredHLTHitZVars.value().find(info.getHLTTauLegContainerSfx()) == m_monitoredHLTHitZVars.value().end()) return;
557 if(info.getHLTTauHitZAlg().empty() && info.getHLTTauCaloHitsPreselectionID().empty()) return;
558
559 const auto & monGroup = getGroup(trigger+"_HLT_HitZ_"+nProng);
560
561 for(const auto& [key, p] : m_monitoredHLTHitZVars.value().at(info.getHLTTauLegContainerSfx())) {
562 const auto& [z0_key, z0_sigma_key] = m_monitoredVarPairsDecorHandleKeys.at(info.getHLTTauLegContainerSfx()).at(key);
563 SG::ReadDecorHandle<xAOD::TauJetContainer, float> z0_handle(z0_key, ctx);
564 SG::ReadDecorHandle<xAOD::TauJetContainer, float> z0_sigma_handle(z0_sigma_key, ctx);
565
566 // Skip if both the Score and ScoreSigTrans aren't available
567 if(!z0_handle.isAvailable() || !z0_sigma_handle.isAvailable()) continue;
568
569 std::vector<float> z0, z0_sigma, z0_delta, z0_delta_sig;
570 for(const xAOD::TauJet* tau : tau_vec) {
571 z0.push_back(z0_handle(*tau));
572 z0_sigma.push_back(z0_sigma_handle(*tau));
573
574 if(tau->vertex() != nullptr) {
575 const float tau_z = tau->vertex()->z();
576 z0_delta.push_back(z0_handle(*tau) - tau_z);
577 z0_delta_sig.push_back(z0_sigma_handle(*tau) ? (z0_handle(*tau) - tau_z) / z0_sigma_handle(*tau) : -999);
578 } else {
579 z0_delta.push_back(-999);
580 z0_delta_sig.push_back(-999);
581 }
582 }
583
584 auto mon_z0 = Monitored::Collection(key + "_z0", z0);
585 auto mon_z0_sigma = Monitored::Collection(key + "_z0_sigma", z0_sigma);
586 auto mon_z0_delta = Monitored::Collection(key + "_z0_delta", z0_delta);
587 auto mon_z0_delta_sig = Monitored::Collection(key + "_z0_delta_sig", z0_delta_sig);
588 fill(monGroup, mon_z0, mon_z0_sigma, mon_z0_delta, mon_z0_delta_sig);
589 }
590
591 ATH_MSG_DEBUG("After fill HitZ Variables: " << trigger);
592}
const TrigTauInfo & getTrigInfo(const std::string &trigger) const
Gaudi::Property< VarPropertyMap > m_monitoredHLTHitZVars

◆ fillHLTEfficiencies()

void TrigTauMonitorSingleAlgorithm::fillHLTEfficiencies ( const EventContext & ctx,
const std::string & trigger,
const bool l1_accept_flag,
const std::vector< const xAOD::TauJet * > & offline_tau_vec,
const std::vector< const xAOD::TauJet * > & online_tau_vec,
const std::string & nProng ) const
private

Definition at line 176 of file TrigTauMonitorSingleAlgorithm.cxx.

177{
178 ATH_MSG_DEBUG("Fill HLT " << nProng << " efficiencies: " << trigger);
179
180 const TrigTauInfo& info = getTrigInfo(trigger);
181
182 // Efficiency for single leg tau triggers:
183 // denominator = offline tau + matching with L1 object with dR(offline tau,L1 item) < 0.3
184 // numerator = denominator + hlt fires + matching with HLT tau with dR(offline tau, HLT tau) < 0.2
185
186 const auto & monGroup = getGroup(trigger+"_HLT_Efficiency_"+nProng);
187
188 auto tauPt = Monitored::Scalar<float>("tauPt", 0.0);
189 auto tauEta = Monitored::Scalar<float>("tauEta", 0.0);
190 auto tauPhi = Monitored::Scalar<float>("tauPhi", 0.0);
191 auto averageMu = Monitored::Scalar<float>("averageMu", 0.0);
192 auto HLT_match = Monitored::Scalar<bool>("HLT_pass", false);
193 auto HLT_match_highPt = Monitored::Scalar<bool>("HLT_pass_highPt", false);
194 auto Total_match = Monitored::Scalar<bool>("Total_pass", false);
195 auto Total_match_highPt = Monitored::Scalar<bool>("Total_pass_highPt", false);
196
197 bool hlt_fires = m_trigDecTool->isPassed(trigger, TrigDefs::Physics | TrigDefs::allowResurrectedDecision);
198
199 std::vector<TLorentzVector> rois = getRoIsVector(ctx, trigger);
200 for(const auto *offline_tau : offline_tau_vec) {
201 bool L1_match = false;
202
203 // Check the matching offline tau with L1 item -> depending on the L1 type (phase-1 eTAU, cTAU)
204 // All L1 RoIs have a core size of 3x3 TTs -> 0.3 x 0.3
205 for(const TLorentzVector& roi : rois) {
206 L1_match = offline_tau->p4().DeltaR(roi) <= 0.3;
207 if(L1_match) break;
208 }
209
210 tauPt = offline_tau->pt()/Gaudi::Units::GeV;
211 tauEta = offline_tau->eta();
212 tauPhi = offline_tau->phi();
213 averageMu = lbAverageInteractionsPerCrossing(ctx);
214
215 bool is_highPt = tauPt > info.getHLTTauThreshold() + 20.0;
216
217 // HLT matching: dR matching + HLT fires
218 HLT_match = matchObjects(offline_tau, online_tau_vec, 0.2) && hlt_fires;
219
220 // Total efficiency (without L1 matching)
222 Total_match = static_cast<bool>(HLT_match);
223 fill(monGroup, tauPt, tauEta, tauPhi, Total_match);
224
225 if(is_highPt) {
226 Total_match_highPt = static_cast<bool>(HLT_match);
227 fill(monGroup, tauEta, tauPhi, Total_match_highPt);
228 }
229 }
230
231 if(!L1_match || !l1_accept_flag) continue; // Skip this offline tau since not matched with L1 item
232
233 fill(monGroup, tauPt, tauEta, tauPhi, averageMu, HLT_match);
234
235 if(is_highPt) {
236 HLT_match_highPt = static_cast<bool>(HLT_match);
237 fill(monGroup, tauEta, tauPhi, HLT_match_highPt);
238 }
239 }
240
241 ATH_MSG_DEBUG("After fill HLT efficiencies: " << trigger);
242}
bool matchObjects(const T1 *tau, const std::vector< const T2 * > &tau_vec, float threshold) const
std::vector< TLorentzVector > getRoIsVector(const EventContext &ctx, const std::string &trigger) const

◆ fillIDCluster()

void TrigTauMonitorSingleAlgorithm::fillIDCluster ( const std::string & trigger,
const std::vector< const xAOD::TauJet * > & tau_vec,
bool online ) const
private

Definition at line 386 of file TrigTauMonitorSingleAlgorithm.cxx.

387{
388 ATH_MSG_DEBUG("Fill ID input Cluster: " << trigger << " for online/offline " << online);
389
390 const auto & monGroup = getGroup(trigger+"_ID_"+(online ? "HLT" : "Offline")+"_InputCluster");
391
392 for(const auto *tau : tau_vec){
393 auto cluster_pt_jetseed_log = Monitored::Collection("cluster_pt_jetseed_log", tau_vec, [](const xAOD::TauJet* tau){ return std::log10(tau->ptJetSeed()); });
394
395 std::vector<const xAOD::CaloCluster*> clusters;
396 for(const xAOD::IParticle* particle : tau->clusters()) {
397 const xAOD::CaloCluster* cluster = static_cast<const xAOD::CaloCluster*>(particle);
398 clusters.push_back(cluster);
399 }
400 std::sort(clusters.begin(), clusters.end(), [](const xAOD::CaloCluster *lhs, const xAOD::CaloCluster *rhs){ return lhs->et() > rhs->et(); });
401
402 auto n_cluster = Monitored::Scalar<int>("n_cluster", 0);
403 n_cluster = clusters.size();
404
405 auto cluster_et_log = Monitored::Collection("cluster_et_log",clusters, [](const xAOD::CaloCluster *cluster){ return std::log10( cluster->et()); });
406 auto cluster_eta = Monitored::Collection("cluster_eta", clusters, [](const xAOD::CaloCluster *cluster){ return cluster->eta(); });
407 auto cluster_phi = Monitored::Collection("cluster_phi", clusters, [](const xAOD::CaloCluster *cluster){ return cluster->phi(); });
408 auto cluster_dEta = Monitored::Collection("cluster_dEta", clusters, [&tau](const xAOD::CaloCluster *cluster){ return cluster->eta() - tau->eta(); });
409 auto cluster_dPhi = Monitored::Collection("cluster_dPhi", clusters, [&tau](const xAOD::CaloCluster *cluster){ return cluster->p4().DeltaPhi(tau->p4()); });
410 auto cluster_SECOND_R_log10 = Monitored::Collection("cluster_SECOND_R_log10", clusters, [](const xAOD::CaloCluster *cluster){
411 double detail = -999;
412 const auto success_SECOND_R = cluster->retrieveMoment(xAOD::CaloCluster::MomentType::SECOND_R,detail);
413 if(success_SECOND_R) detail = std::log10(detail + 0.1);
414 return detail;
415 });
416
417 auto cluster_SECOND_LAMBDA_log10 = Monitored::Collection("cluster_SECOND_LAMBDA_log10", clusters, [](const xAOD::CaloCluster *cluster){
418 double detail = -999;
419 const auto success_SECOND_LAMBDA = cluster->retrieveMoment(xAOD::CaloCluster::MomentType::SECOND_LAMBDA, detail);
420 if(success_SECOND_LAMBDA) detail = std::log10(detail + 0.1);
421 return detail;
422 });
423
424 auto cluster_CENTER_LAMBDA_log10 = Monitored::Collection("cluster_CENTER_LAMBDA_log10", clusters, [](const xAOD::CaloCluster *cluster){
425 double detail = -999;
426 const auto success_CENTER_LAMBDA = cluster->retrieveMoment(xAOD::CaloCluster::MomentType::CENTER_LAMBDA, detail);
427 if(success_CENTER_LAMBDA) detail = std::log10(detail + 1e-6);
428 return detail;
429 });
430
431 fill(monGroup, n_cluster, cluster_pt_jetseed_log, cluster_et_log, cluster_eta, cluster_phi, cluster_dEta, cluster_dPhi, cluster_SECOND_R_log10, cluster_SECOND_LAMBDA_log10, cluster_CENTER_LAMBDA_log10);
432 }
433
434 ATH_MSG_DEBUG("After fill ID input Cluster: " << trigger);
435}
bool retrieveMoment(MomentType type, double &value) const
Retrieve individual moment.
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual double phi() const
The azimuthal angle ( ) of the particle.
@ SECOND_LAMBDA
Second Moment in .
@ SECOND_R
Second Moment in .
@ CENTER_LAMBDA
Shower depth at Cluster Centroid.
virtual FourMom_t p4() const
The full 4-momentum of the particle.
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.

◆ fillIDInputVars()

void TrigTauMonitorSingleAlgorithm::fillIDInputVars ( const std::string & trigger,
const std::vector< const xAOD::TauJet * > & tau_vec,
const std::string & nProng,
bool online ) const
private

Definition at line 245 of file TrigTauMonitorSingleAlgorithm.cxx.

246{
247 ATH_MSG_DEBUG("Fill ID input variables: " << trigger);
248
249 const auto & monGroup = getGroup(trigger+"_ID_"+(online ? "HLT" : "Offline")+"_InputScalar_"+nProng);
250
251 auto centFrac = Monitored::Collection("centFrac", tau_vec, [](const xAOD::TauJet* tau){
252 float detail = -999;
253 if(tau->detail(xAOD::TauJetParameters::centFrac, detail)) detail = std::min(detail, 1.0f);
254 return detail;
255 });
256 auto etOverPtLeadTrk = Monitored::Collection("etOverPtLeadTrk", tau_vec, [](const xAOD::TauJet* tau){
257 float detail = -999;
258 if(tau->detail(xAOD::TauJetParameters::etOverPtLeadTrk, detail)) detail = std::log10(std::max(detail, 0.1f));
259 return detail;
260 });
261 auto dRmax = Monitored::Collection("dRmax", tau_vec, [](const xAOD::TauJet* tau){
262 float detail = -999;
263 tau->detail(xAOD::TauJetParameters::dRmax, detail);
264 return detail;
265 });
266 auto absipSigLeadTrk = Monitored::Collection("absipSigLeadTrk", tau_vec, [](const xAOD::TauJet* tau){
267 float detail = (tau->nTracks()>0) ? std::abs(tau->track(0)->d0SigTJVA()) : 0;
268 detail = std::min(std::abs(detail), 30.0f);
269 return detail;
270 });
271 auto sumPtTrkFrac = Monitored::Collection("sumPtTrkFrac", tau_vec, [](const xAOD::TauJet* tau){
272 float detail = -999;
274 return detail;
275 });
276 auto emPOverTrkSysP = Monitored::Collection("emPOverTrkSysP", tau_vec, [](const xAOD::TauJet* tau){
277 float detail = -999;
278 if(tau->detail(xAOD::TauJetParameters::EMPOverTrkSysP, detail)) detail = std::log10(std::max(detail, 1e-3f));
279 return detail;
280 });
281 auto ptRatioEflowApprox = Monitored::Collection("ptRatioEflowApprox", tau_vec, [](const xAOD::TauJet* tau){
282 float detail = -999;
283 if(tau->detail(xAOD::TauJetParameters::ptRatioEflowApprox, detail)) detail = std::min(detail, 4.0f);
284 return detail;
285 });
286 auto mEflowApprox = Monitored::Collection("mEflowApprox", tau_vec, [](const xAOD::TauJet* tau){
287 float detail = -999;
288 if(tau->detail(xAOD::TauJetParameters::mEflowApprox, detail)) detail = std::log10(std::max(detail, 140.0f));
289 return detail;
290 });
291 auto ptDetectorAxis = Monitored::Collection("ptDetectorAxis", tau_vec, [](const xAOD::TauJet* tau){
292 float detail = -999;
293 if( tau->ptDetectorAxis() > 0) detail = std::log10(std::min(tau->ptDetectorAxis()/Gaudi::Units::GeV, 100.0));
294 return detail;
295 });
296 auto massTrkSys = Monitored::Collection("massTrkSys", tau_vec, [&nProng](const xAOD::TauJet* tau){
297 float detail = -999;
298 if( tau->detail(xAOD::TauJetParameters::massTrkSys, detail) && (nProng.find("MP") != std::string::npos || nProng.find("3P") != std::string::npos)) {
299 detail = std::log10(std::max(detail, 140.0f));
300 }
301 return detail;});
302 auto trFlightPathSig = Monitored::Collection("trFlightPathSig", tau_vec, [&nProng](const xAOD::TauJet* tau){
303 float detail = -999;
304 if(nProng.find("MP") != std::string::npos || nProng.find("3P") != std::string::npos) tau->detail(xAOD::TauJetParameters::trFlightPathSig, detail);
305 return detail;
306 });
307
308 fill(monGroup, centFrac, etOverPtLeadTrk, dRmax, absipSigLeadTrk, sumPtTrkFrac, emPOverTrkSysP, ptRatioEflowApprox, mEflowApprox, ptDetectorAxis, massTrkSys, trFlightPathSig);
309
310 ATH_MSG_DEBUG("After fill ID input variables: " << trigger);
311}
bool ptDetectorAxis(const xAOD::TauJet &tau, float &out)
bool absipSigLeadTrk(const xAOD::TauJet &tau, float &out)
@ centFrac
Get centrality fraction.
Definition TauDefs.h:200
@ dRmax
Get maximal dR of tracks associated to calo-seeded tau.
Definition TauDefs.h:226

◆ fillIDScores()

void TrigTauMonitorSingleAlgorithm::fillIDScores ( const EventContext & ctx,
const std::string & trigger,
const std::vector< const xAOD::TauJet * > & tau_vec,
const std::string & nProng,
bool online ) const
private

Definition at line 480 of file TrigTauMonitorSingleAlgorithm.cxx.

481{
482 ATH_MSG_DEBUG("Fill TauID Scores: " << trigger);
483
484 const TrigTauInfo& info = getTrigInfo(trigger);
485
486 if(online) {
487 if(info.getHLTTauType() == "ptonly") return;
488 const bool monitor_ids = m_monitoredHLTIdScores.value().find(info.getHLTTauLegContainerSfx()) != m_monitoredHLTIdScores.value().end();
489 const bool monitor_ch_presel = m_monitoredHLTCaloHitsPreselIdScores.value().find(info.getHLTTauLegContainerSfx()) != m_monitoredHLTCaloHitsPreselIdScores.value().end();
490 if(!monitor_ids && !monitor_ch_presel) return;
491
492 const auto & monGroup = getGroup(trigger+"_HLT_IDScores_"+nProng);
493
494 if(monitor_ids) {
495 std::string match = info.getHLTTauID();
496 if(match == "idperf" || match == "perf") match.clear(); // Monitor all
497
498 fillVarPairs(ctx, monGroup, m_monitoredHLTIdScores.value().at(info.getHLTTauLegContainerSfx()), info.getHLTTauLegContainerSfx(), match, "TauIDScore", "TauIDScoreSigTrans", tau_vec);
499 }
500
501 if(monitor_ch_presel) {
502 std::string match = info.getHLTTauCaloHitsPreselectionID();
503 if(match == "idperfCHP") match.clear(); // Monitor all
504
505 fillVarPairs(ctx, monGroup, m_monitoredHLTCaloHitsPreselIdScores.value().at(info.getHLTTauLegContainerSfx()), info.getHLTTauLegContainerSfx(), match, "TauIDScore", "TauIDScoreSigTrans", tau_vec);
506 }
507
508 } else {
509 if(m_monitoredOfflineIdScores.value().size() == 0) return;
510
511 const auto & monGroup = getGroup(trigger+"_Offline_IDScores_"+nProng);
512 fillVarPairs(ctx, monGroup, m_monitoredOfflineIdScores.value(), "OfflineTauJets", "", "TauIDScore", "TauIDScoreSigTrans", tau_vec);
513 }
514
515 ATH_MSG_DEBUG("After fill TauID Scores: " << trigger);
516}
void fillVarPairs(const EventContext &ctx, const ToolHandle< GenericMonitoringTool > &mon_group, const VarPropertyMap::mapped_type &vars, const std::string &category, const std::string &match_var_name, const std::string &mon_var_1_name, const std::string &mon_var_2_name, const std::vector< const xAOD::TauJet * > &tau_vec) const
Gaudi::Property< VarPropertyMap > m_monitoredHLTIdScores
Gaudi::Property< std::map< std::string, std::pair< std::string, std::string > > > m_monitoredOfflineIdScores
Gaudi::Property< VarPropertyMap > m_monitoredHLTCaloHitsPreselIdScores
bool match(std::string s1, std::string s2)
match the individual directories of two strings
Definition hcg.cxx:359

◆ fillIDTrack()

void TrigTauMonitorSingleAlgorithm::fillIDTrack ( const std::string & trigger,
const std::vector< const xAOD::TauJet * > & tau_vec,
bool online ) const
private

Definition at line 314 of file TrigTauMonitorSingleAlgorithm.cxx.

315{
316 ATH_MSG_DEBUG("Fill ID input Track: " << trigger);
317
318 const auto & monGroup = getGroup(trigger+"_ID_"+(online ? "HLT" : "Offline")+"_InputTrack");
319
320 auto track_pt_jetseed_log = Monitored::Collection("track_pt_jetseed_log", tau_vec, [](const xAOD::TauJet* tau){ return std::log10(tau->ptJetSeed()); });
321 fill(monGroup, track_pt_jetseed_log);
322
323 for(const auto *tau : tau_vec) {
324 // Don't call ->allTracks() unless the element links are valid
325 //coverity[UNNECESSARY_STRING_COPY:FALSE]
326 static const SG::ConstAccessor< std::vector<ElementLink<xAOD::TauTrackContainer>> > tauTrackAcc("tauTrackLinks");
327 bool linksValid = true;
328 for(const ElementLink<xAOD::TauTrackContainer>& trackEL : tauTrackAcc(*tau)) {
329 if(!trackEL.isValid()) {
330 linksValid = false;
331 break;
332 }
333 }
334 if(!linksValid) {
335 ATH_MSG_WARNING("Invalid track element links from TauJet in " << trigger);
336 continue;
337 }
338
339 auto tracks = tau->allTracks();
340 std::sort(tracks.begin(), tracks.end(), [](const xAOD::TauTrack* lhs, const xAOD::TauTrack* rhs){ return lhs->pt() > rhs->pt(); });
341
342 auto n_track = Monitored::Scalar<int>("n_track", tracks.size());
343
344 auto track_pt_log = Monitored::Collection("track_pt_log", tracks, [](const xAOD::TauTrack *track){ return std::log10(track->pt()); });
345 auto track_eta = Monitored::Collection("track_eta", tracks, [](const xAOD::TauTrack *track){ return track->eta(); });
346 auto track_phi = Monitored::Collection("track_phi", tracks, [](const xAOD::TauTrack *track){ return track->phi(); });
347
348 auto track_dEta = Monitored::Collection("track_dEta", tracks, [&tau](const xAOD::TauTrack *track){ return track->eta() - tau->eta(); });
349 auto track_dPhi = Monitored::Collection("track_dPhi", tracks, [&tau](const xAOD::TauTrack *track){ return track->p4().DeltaPhi(tau->p4()); });
350
351 auto track_z0sinthetaTJVA_abs_log = Monitored::Collection("track_z0sinthetaTJVA_abs_log", tracks, [](const xAOD::TauTrack *track){return track->z0sinthetaTJVA(); });
352 auto track_d0_abs_log = Monitored::Collection("track_d0_abs_log", tracks, [](const xAOD::TauTrack *track){ return std::log10(std::abs(track->track()->d0()) + 1e-6); });
353
354 auto track_nIBLHitsAndExp = Monitored::Collection("track_nIBLHitsAndExp", tracks, [](const xAOD::TauTrack *track){
355 uint8_t inner_pixel_hits, inner_pixel_exp;
356 const auto success1_innerPixel_hits = track->track()->summaryValue(inner_pixel_hits, xAOD::numberOfInnermostPixelLayerHits);
357 const auto success2_innerPixel_exp = track->track()->summaryValue(inner_pixel_exp, xAOD::expectInnermostPixelLayerHit);
358 float detail = -999;
359 if(success1_innerPixel_hits && success2_innerPixel_exp) { detail = inner_pixel_exp ? inner_pixel_hits : 1.; };
360 return detail;
361 });
362 auto track_nPixelHitsPlusDeadSensors = Monitored::Collection("track_nPixelHitsPlusDeadSensors", tracks, [](const xAOD::TauTrack *track){
363 uint8_t pixel_hits, pixel_dead;
364 const auto success1_pixel_hits = track->track()->summaryValue(pixel_hits, xAOD::numberOfPixelHits);
365 const auto success2_pixel_dead = track->track()->summaryValue(pixel_dead, xAOD::numberOfPixelDeadSensors);
366 float detail = -999;
367 if(success1_pixel_hits && success2_pixel_dead) { detail = pixel_hits + pixel_dead; };
368 return detail;
369 });
370 auto track_nSCTHitsPlusDeadSensors = Monitored::Collection("track_nSCTHitsPlusDeadSensors", tracks, [](const xAOD::TauTrack *track){
371 uint8_t sct_hits, sct_dead;
372 const auto success1_sct_hits = track->track()->summaryValue(sct_hits, xAOD::numberOfSCTHits);
373 const auto success2_sct_dead = track->track()->summaryValue(sct_dead, xAOD::numberOfSCTDeadSensors);
374 float detail = -999;
375 if(success1_sct_hits && success2_sct_dead) { detail = sct_hits + sct_dead; };
376 return detail;
377 });
378
379 fill(monGroup, n_track, track_pt_log, track_eta, track_phi, track_dEta, track_dPhi, track_z0sinthetaTJVA_abs_log, track_d0_abs_log, track_nIBLHitsAndExp, track_nPixelHitsPlusDeadSensors, track_nSCTHitsPlusDeadSensors);
380 }
381
382 ATH_MSG_DEBUG("After fill ID input Track: " << trigger);
383}
SG::ConstAccessor< T, ALLOC > ConstAccessor
Definition AuxElement.h:570
TauTrack_v1 TauTrack
Definition of the current version.
Definition TauTrack.h:16
@ expectInnermostPixelLayerHit
Do we expect a 0th-layer barrel hit for this track?
@ numberOfSCTDeadSensors
number of dead SCT sensors crossed [unit8_t].
@ numberOfSCTHits
number of hits in SCT [unit8_t].
@ numberOfInnermostPixelLayerHits
these are the hits in the 0th pixel barrel layer
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
@ numberOfPixelDeadSensors
number of dead pixel sensors crossed [unit8_t].

◆ fillVarPairs()

void TrigTauMonitorSingleAlgorithm::fillVarPairs ( const EventContext & ctx,
const ToolHandle< GenericMonitoringTool > & mon_group,
const VarPropertyMap::mapped_type & vars,
const std::string & category,
const std::string & match_var_name,
const std::string & mon_var_1_name,
const std::string & mon_var_2_name,
const std::vector< const xAOD::TauJet * > & tau_vec ) const
private

Definition at line 519 of file TrigTauMonitorSingleAlgorithm.cxx.

527{
528 for(const auto& [key, p] : vars) {
529 if(!match_var_name.empty() && match_var_name != key) continue;
530
531 const auto& [var_1_key, var_2_key] = m_monitoredVarPairsDecorHandleKeys.at(category).at(key);
532 SG::ReadDecorHandle<xAOD::TauJetContainer, float> var_1_handle(var_1_key, ctx);
533 SG::ReadDecorHandle<xAOD::TauJetContainer, float> var_2_handle(var_2_key, ctx);
534
535 // Skip if both the Score and ScoreSigTrans aren't available
536 if(!var_1_handle.isAvailable() || !var_2_handle.isAvailable()) continue;
537
538 std::vector<float> var_1, var_2;
539 for(const xAOD::TauJet* tau : tau_vec) {
540 var_1.push_back(var_1_handle(*tau));
541 var_2.push_back(var_2_handle(*tau));
542 }
543
544 auto mon_var_1 = Monitored::Collection(key + "_" + mon_var_1_name, var_1);
545 auto mon_var_2 = Monitored::Collection(key + "_" + mon_var_2_name, var_2);
546 fill(mon_group, mon_var_1, mon_var_2);
547 }
548}

◆ 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 ( std::string_view 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 (idx != m_toolLookupMap.end()) [[likely]] {
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,...)
const ToolHandle< GenericMonitoringTool > m_dummy
std::unordered_map< std::string, size_t, CxxUtils::TransparentStringHash, std::equal_to<> > m_toolLookupMap
ToolHandleArray< GenericMonitoringTool > m_tools
Array of Generic Monitoring Tools.
#define likely(x)

◆ getL1cTAUs()

std::vector< std::pair< const xAOD::eFexTauRoI *, const xAOD::jFexTauRoI * > > TrigTauMonitorBaseAlgorithm::getL1cTAUs ( const EventContext & ctx,
const std::string & l1_item ) const
protectedinherited

Definition at line 175 of file TrigTauMonitorBaseAlgorithm.cxx.

176{
177 std::vector<std::pair<const xAOD::eFexTauRoI*, const xAOD::jFexTauRoI*>> roi_vec;
178
179 SG::ReadHandle<xAOD::eFexTauRoIContainer> rois(m_phase1l1cTauRoIKey, ctx);
180 if(!rois.isValid()) {
181 ATH_MSG_WARNING("Failed to retrieve the L1_cTauRoi container");
182 return roi_vec;
183 }
184 SG::ReadDecorHandle<xAOD::eFexTauRoIContainer, ElementLink<xAOD::jFexTauRoIContainer>> jTau_roi_link{m_phase1l1cTauRoIDecorKey, ctx};
185 if(!jTau_roi_link.isValid()) {
186 ATH_MSG_WARNING("Failed to create jTauLink accessor for the L1_cTauRoi container");
187 return roi_vec;
188 }
189
191 for(size_t i = 0; i < rois->size(); i++) {
192 const xAOD::eFexTauRoI* roi = (*rois)[i];
193 const xAOD::jFexTauRoI* jTau_roi = jTau_roi_link(i).isValid() ? *jTau_roi_link(i) : nullptr;
194
195 // Select by RoI ET value only
196 if(roi->et() > m_L1_Phase1_thresholds.value().at(l1_item)) roi_vec.push_back(std::make_pair(roi, jTau_roi));
197 }
198 } else {
199 SG::ReadDecorHandle<xAOD::eFexTauRoIContainer, uint64_t> thresholdPatterns(m_phase1l1cTauRoIThresholdPatternsKey, ctx);
200 if(!thresholdPatterns.isValid()) {
201 ATH_MSG_WARNING("Failed to create thresholdPatterns property accessor for the L1_cTauRoi container");
202 return roi_vec;
203 }
204
205 for(size_t i = 0; i < rois->size(); i++) {
206 const xAOD::eFexTauRoI* roi = (*rois)[i];
207 const xAOD::jFexTauRoI* jTau_roi = jTau_roi_link(i).isValid() ? *jTau_roi_link(i) : nullptr;
208
209 // Check that the RoI passed the threshold selection
210 if(thresholdPatterns(*roi) & m_L1_Phase1_threshold_patterns.value().at(l1_item)) roi_vec.push_back(std::make_pair(roi, jTau_roi));
211 }
212 }
213
214
215 return roi_vec;
216}
Gaudi::Property< std::map< std::string, float > > m_L1_Phase1_thresholds
SG::ReadDecorHandleKey< xAOD::eFexTauRoIContainer > m_phase1l1cTauRoIDecorKey
SG::ReadDecorHandleKey< xAOD::eFexTauRoIContainer > m_phase1l1cTauRoIThresholdPatternsKey
Gaudi::Property< bool > m_L1_select_by_et_only
SG::ReadHandleKey< xAOD::eFexTauRoIContainer > m_phase1l1cTauRoIKey
Gaudi::Property< std::map< std::string, uint64_t > > m_L1_Phase1_threshold_patterns
float et() const
TOB ET (decoded from TOB, stored for convenience).
jFexTauRoI_v1 jFexTauRoI
Define the latest version of the jFexSRJetRoI class.
Definition jFexTauRoI.h:13
eFexTauRoI_v1 eFexTauRoI
Define the latest version of the eFexTauRoI class.
Definition eFexTauRoI.h:16

◆ getL1eTAUs()

std::vector< const xAOD::eFexTauRoI * > TrigTauMonitorBaseAlgorithm::getL1eTAUs ( const EventContext & ctx,
const std::string & l1_item ) const
protectedinherited

Definition at line 143 of file TrigTauMonitorBaseAlgorithm.cxx.

144{
145 std::vector<const xAOD::eFexTauRoI*> roi_vec;
146
147 SG::ReadHandle<xAOD::eFexTauRoIContainer> rois(m_phase1l1eTauRoIKey, ctx);
148 if(!rois.isValid()) {
149 ATH_MSG_WARNING("Failed to retrieve the L1_eTauRoi container");
150 return roi_vec;
151 }
152
154 for(const xAOD::eFexTauRoI* roi : *rois) {
155 // Select by RoI ET value only
156 if(roi->et() > m_L1_Phase1_thresholds.value().at(l1_item)) roi_vec.push_back(roi);
157 }
158 } else {
159 SG::ReadDecorHandle<xAOD::eFexTauRoIContainer, uint64_t> thresholdPatterns(m_phase1l1eTauRoIThresholdPatternsKey, ctx);
160 if(!thresholdPatterns.isValid()) {
161 ATH_MSG_WARNING("Failed to create thresholdPatterns property accessor for the L1_eTauRoi container");
162 return roi_vec;
163 }
164
165 for(const xAOD::eFexTauRoI* roi : *rois) {
166 // Check that the RoI passed the threshold selection
167 if(thresholdPatterns(*roi) & m_L1_Phase1_threshold_patterns.value().at(l1_item)) roi_vec.push_back(roi);
168 }
169 }
170
171 return roi_vec;
172}
SG::ReadHandleKey< xAOD::eFexTauRoIContainer > m_phase1l1eTauRoIKey
SG::ReadDecorHandleKey< xAOD::eFexTauRoIContainer > m_phase1l1eTauRoIThresholdPatternsKey

◆ getOfflineTaus()

std::pair< std::vector< const xAOD::TauJet * >, std::vector< const xAOD::TauJet * > > TrigTauMonitorBaseAlgorithm::getOfflineTaus ( const EventContext & ctx,
const float threshold = 20.0,
const TauID tau_id = TauID::None ) const
protectedinherited

Definition at line 137 of file TrigTauMonitorBaseAlgorithm.cxx.

138{
139 return classifyOfflineTaus(ctx, getOfflineTausAll(ctx, threshold), threshold, tau_id);
140}
std::pair< std::vector< const xAOD::TauJet * >, std::vector< const xAOD::TauJet * > > classifyOfflineTaus(const EventContext &ctx, const std::vector< const xAOD::TauJet * > &taus, const float threshold=0.0, const TauID tau_id=TauID::None) const
std::vector< const xAOD::TauJet * > getOfflineTausAll(const EventContext &ctx, const float threshold=20.0) const

◆ getOfflineTausAll()

std::vector< const xAOD::TauJet * > TrigTauMonitorBaseAlgorithm::getOfflineTausAll ( const EventContext & ctx,
const float threshold = 20.0 ) const
protectedinherited

Definition at line 104 of file TrigTauMonitorBaseAlgorithm.cxx.

105{
106 ATH_MSG_DEBUG("Retrieving offline Taus");
107
108 std::vector<const xAOD::TauJet*> tau_vec;
109
110 SG::ReadHandle<xAOD::TauJetContainer> taus(m_offlineTauJetKey, ctx);
111 if(!taus.isValid()) {
112 ATH_MSG_WARNING("Failed to retrieve offline Taus");
113 return tau_vec;
114 }
115
116 for(const xAOD::TauJet* const tau : *taus) {
117 // Consider only offline taus with a certain minimum pT
118 if(tau->pt() < threshold*Gaudi::Units::GeV) continue;
119
120 // Consider only offline taus outside of the crack region
121 if(std::abs(tau->eta()) > 1.37 && std::abs(tau->eta()) < 1.52) continue;
122
123 // Consider only offline taus which pass thinning
124 static const SG::ConstAccessor<char> passThinningAcc("passThinning");
125 if(!passThinningAcc.withDefault(*tau, true)) continue;
126
127 int nTracks = -1;
129 ATH_MSG_DEBUG("NTracks Offline: " << nTracks);
130 if(nTracks == 1 || nTracks == 3) tau_vec.push_back(tau);
131 }
132
133 return tau_vec;
134}
SG::ReadHandleKey< xAOD::TauJetContainer > m_offlineTauJetKey

◆ getOnlineContainerKey()

const SG::ReadHandleKey< xAOD::TauJetContainer > & TrigTauMonitorBaseAlgorithm::getOnlineContainerKey ( const std::string & container_suffix) const
protectedinherited

Definition at line 219 of file TrigTauMonitorBaseAlgorithm.cxx.

220{
221 if(m_hltTauJetKeysMap.find(container_suffix) != m_hltTauJetKeysMap.end()) return m_hltTauJetKeysMap.at(container_suffix);
222 else {
223 if(m_hltTauJetKeysMap.find("MVA") != m_hltTauJetKeysMap.end()) {
224 ATH_MSG_ERROR("HLT TauJet container not registered for suffix \"" << container_suffix << "\". Returning the default \"" << m_hltTauJetKeysMap.at("MVA").key() << "\"");
225 return m_hltTauJetKeysMap.at("MVA");
226 } else {
227 ATH_MSG_ERROR("HLT TauJet container not registered for suffix \"" << container_suffix << "\". Returning the first available container \"" << m_hltTauJetKeysMap.begin()->second.key() << "\"");
228 return m_hltTauJetKeysMap.begin()->second;
229 }
230 }
231}

◆ getOnlineTaus()

std::tuple< std::vector< const xAOD::TauJet * >, std::vector< const xAOD::TauJet * >, std::vector< const xAOD::TauJet * > > TrigTauMonitorBaseAlgorithm::getOnlineTaus ( const EventContext & ctx,
const std::string & trigger ) const
protectedinherited

Definition at line 98 of file TrigTauMonitorBaseAlgorithm.cxx.

99{
100 return classifyOnlineTaus(ctx, getOnlineTausAll(trigger, true), 0.0);
101}
std::tuple< std::vector< const xAOD::TauJet * >, std::vector< const xAOD::TauJet * >, std::vector< const xAOD::TauJet * > > classifyOnlineTaus(const EventContext &ctx, const std::vector< const xAOD::TauJet * > &taus, const float threshold=0.0) const
std::vector< const xAOD::TauJet * > getOnlineTausAll(const std::string &trigger, bool include_0P=true, bool filter_legs=false) const

◆ getOnlineTausAll()

std::vector< const xAOD::TauJet * > TrigTauMonitorBaseAlgorithm::getOnlineTausAll ( const std::string & trigger,
bool include_0P = true,
bool filter_legs = false ) const
protectedinherited

Definition at line 68 of file TrigTauMonitorBaseAlgorithm.cxx.

69{
70 std::vector<const xAOD::TauJet*> tau_vec;
71
72 const TrigTauInfo& info = getTrigInfo(trigger);
73
74 std::vector<int> leg_indices = {-1};
75 if(filter_legs) leg_indices = info.getHLTTauLegIndices();
76 for(size_t i = 0; i < leg_indices.size(); ++i) {
77 const int leg = leg_indices[i];
78 const std::string tau_container_name = getOnlineContainerKey(info.getHLTTauLegContainerSfxs().at(leg == -1 ? 0 : i)).key();
79 ATH_MSG_DEBUG("Tau container name is: " << tau_container_name);
80
82 for(auto& featLinkInfo : vec) {
83 const xAOD::TauJet* feat = *(featLinkInfo.link);
84 if(!feat) continue;
85
86 int nTracks = -1;
88 ATH_MSG_DEBUG("NTracks Online: " << nTracks);
89
90 tau_vec.push_back(feat);
91 }
92 }
93
94 return tau_vec;
95}
std::vector< size_t > vec
bool detail(TauJetParameters::Detail detail, int &value) const
Get and set values of common details variables via enum.
const std::string & featureString()
static const unsigned int lastFeatureOfType
Run 3 "enum". Only return the final feature along each route through the navigation.
TauJetContainer_v3 TauJetContainer
Definition of the current "taujet container version".

◆ getRoIsVector()

std::vector< TLorentzVector > TrigTauMonitorSingleAlgorithm::getRoIsVector ( const EventContext & ctx,
const std::string & trigger ) const
private

Definition at line 595 of file TrigTauMonitorSingleAlgorithm.cxx.

596{
597 std::vector<TLorentzVector> ret;
598
599 const TrigTauInfo& info = getTrigInfo(trigger);
600
601 TLorentzVector v;
602 if(info.getL1TauType() == "eTAU") {
603 for(const xAOD::eFexTauRoI* roi : getL1eTAUs(ctx, info.getL1TauItem())) {
604 v.SetPtEtaPhiM(roi->et(), roi->eta(), roi->phi(), 0);
605 ret.push_back(v);
606 }
607 } else if(info.getL1TauType() == "cTAU") {
608 for(const auto& [eTau_roi, jTau_roi] : getL1cTAUs(ctx, info.getL1TauItem())) {
609 v.SetPtEtaPhiM(eTau_roi->et(), eTau_roi->eta(), eTau_roi->phi(), 0);
610 ret.push_back(v);
611 }
612 }
613
614 return ret;
615}
std::vector< const xAOD::eFexTauRoI * > getL1eTAUs(const EventContext &ctx, const std::string &l1_item) const
std::vector< std::pair< const xAOD::eFexTauRoI *, const xAOD::jFexTauRoI * > > getL1cTAUs(const EventContext &ctx, const std::string &l1_item) const

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

◆ getTrigInfo()

const TrigTauInfo & TrigTauMonitorBaseAlgorithm::getTrigInfo ( const std::string & trigger) const
inlineprotectedinherited

Definition at line 52 of file TrigTauMonitorBaseAlgorithm.h.

52{ return m_trigInfo.at(trigger); }
std::map< std::string, TrigTauInfo > m_trigInfo

◆ getTrigInfoMap()

std::map< std::string, TrigTauInfo > & TrigTauMonitorBaseAlgorithm::getTrigInfoMap ( )
inlineprotectedinherited

Definition at line 51 of file TrigTauMonitorBaseAlgorithm.h.

51{ return m_trigInfo; }

◆ initialize()

StatusCode TrigTauMonitorSingleAlgorithm::initialize ( )
overridevirtual

initialize

Returns
StatusCode

Reimplemented from TrigTauMonitorBaseAlgorithm.

Definition at line 16 of file TrigTauMonitorSingleAlgorithm.cxx.

17{
19
23 const std::string jetName{"OfflineTauJets"};
25 ATH_MSG_ERROR("Cannot have an HLT monitored ID or HitZ variable with the key OfflineTauJets.");
26 return StatusCode::FAILURE;
27 }
28
29 for(const auto& [key, p] : m_monitoredOfflineIdScores) {
30 if(p.first.empty() || p.second.empty()) {
31 ATH_MSG_WARNING("Invalid Offline TauID score variable names; skipping this entry for the monitoring!");
32 continue;
33 }
34
36 key,
37 std::make_pair(
38 SG::ReadDecorHandleKey<xAOD::TauJetContainer>(m_offlineTauJetKey.key() + "." + p.first),
39 SG::ReadDecorHandleKey<xAOD::TauJetContainer>(m_offlineTauJetKey.key() + "." + p.second)
40 )
41 );
42 ATH_CHECK(m_monitoredVarPairsDecorHandleKeys.at(jetName).at(key).first.initialize());
43 ATH_CHECK(m_monitoredVarPairsDecorHandleKeys.at(jetName).at(key).second.initialize());
44 }
45
46 return StatusCode::SUCCESS;
47}
virtual StatusCode initialize() override
initialize
StatusCode createKeys(const VarPropertyMap &var_names_map)

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

◆ matchObjects() [1/3]

template<typename T1 = xAOD::IParticle, typename T2 = xAOD::IParticle>
bool TrigTauMonitorBaseAlgorithm::matchObjects ( const T1 * tau,
const std::vector< const T2 * > & tau_vec,
float threshold ) const
inlineprotectedinherited

Definition at line 78 of file TrigTauMonitorBaseAlgorithm.h.

79 {
80 for(auto tau_2 : tau_vec) {
81 if(tau->p4().DeltaR(tau_2->p4()) < threshold) return true;
82 }
83 return false;
84 }

◆ matchObjects() [2/3]

template<typename T1 = xAOD::IParticle, typename T2 = xAOD::eFexTauRoI>
bool TrigTauMonitorBaseAlgorithm::matchObjects ( const T1 * tau_1,
const T2 * tau_2,
float threshold ) const
inlineprotectedinherited

Definition at line 95 of file TrigTauMonitorBaseAlgorithm.h.

96 {
97 return dR(tau_1->eta(), tau_1->phi(), tau_2->eta(), tau_2->phi()) < threshold;
98 }
double dR(const double eta1, const double phi1, const double eta2, const double phi2) const

◆ matchObjects() [3/3]

bool TrigTauMonitorBaseAlgorithm::matchObjects ( const TLorentzVector & tau,
const std::vector< TLorentzVector > & tau_vec,
float threshold ) const
inlineprotectedinherited

Definition at line 86 of file TrigTauMonitorBaseAlgorithm.h.

87 {
88 for(auto& tau_2 : tau_vec) {
89 if(tau.DeltaR(tau_2) < threshold) return true;
90 }
91 return false;
92 }

◆ matchTruthObjects()

template<typename T1 = xAOD::IParticle, typename T2 = xAOD::IParticle>
bool TrigTauMonitorBaseAlgorithm::matchTruthObjects ( const T1 * true_tau,
const std::vector< const T2 * > & tau_vec,
float threshold ) const
inlineprotectedinherited

Definition at line 101 of file TrigTauMonitorBaseAlgorithm.h.

102 {
103 static const SG::ConstAccessor<double> acc_ptvis("pt_vis");
104 static const SG::ConstAccessor<double> acc_etavis("eta_vis");
105 static const SG::ConstAccessor<double> acc_phivis("phi_vis");
106 static const SG::ConstAccessor<double> acc_mvis("mvis");
107 TLorentzVector true_tau_p4;
108 true_tau_p4.SetPtEtaPhiM(acc_ptvis(*true_tau), acc_etavis(*true_tau), acc_phivis(*true_tau), acc_mvis(*true_tau));
109
110 for(auto tau : tau_vec) {
111 if(true_tau_p4.DeltaR(tau->p4()) < threshold) return true;
112 }
113 return false;
114 }

◆ 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

◆ processEvent()

StatusCode TrigTauMonitorSingleAlgorithm::processEvent ( const EventContext & ctx) const
overrideprivatevirtual

Implements TrigTauMonitorBaseAlgorithm.

Definition at line 82 of file TrigTauMonitorSingleAlgorithm.cxx.

83{
84 constexpr float threshold_offset = 10.0;
85
86 // Offline taus
87 auto offline_taus_all = getOfflineTausAll(ctx, 0.0);
88 if(m_requireOfflineTaus && offline_taus_all.empty()) return StatusCode::SUCCESS;
89
90 for(const std::string& trigger : m_triggers) {
91 const TrigTauInfo& info = getTrigInfo(trigger);
92
93 if(!info.isHLTSingleTau()) {
94 ATH_MSG_WARNING("Chain \"" << trigger << "\" is not a single tau trigger. Skipping...");
95 continue;
96 }
97
98 const auto passBits = m_trigDecTool->isPassedBits(trigger);
99 const bool l1_accept_flag = passBits & TrigDefs::L1_isPassedAfterVeto;
100 const bool hlt_not_prescaled_flag = (passBits & TrigDefs::EF_prescaled) == 0;
101
102 // Offline tau requirement check
103 const std::vector<const xAOD::TauJet*> offline_taus_with_id = classifyTausAll(ctx, offline_taus_all, 0, static_cast<TauID>(m_offline_tau_id.value()));
104 if(m_requireOfflineTaus && offline_taus_with_id.empty()) continue;
105
106 // Filter offline taus
107 auto offline_taus = classifyOfflineTaus(ctx, offline_taus_with_id, info.getHLTTauThreshold() - threshold_offset);
108 std::vector<const xAOD::TauJet*> offline_taus_1p = offline_taus.first;
109 std::vector<const xAOD::TauJet*> offline_taus_3p = offline_taus.second;
110
111 // Online taus
112 std::vector<const xAOD::TauJet*> hlt_taus_all = getOnlineTausAll(trigger, true, info.isBootstrappedTauTrigger());
113 auto hlt_taus = classifyOnlineTaus(ctx, hlt_taus_all);
114 std::vector<const xAOD::TauJet*> hlt_taus_0p = std::get<0>(hlt_taus);
115 std::vector<const xAOD::TauJet*> hlt_taus_1p = std::get<1>(hlt_taus);
116 std::vector<const xAOD::TauJet*> hlt_taus_mp = std::get<2>(hlt_taus);
117
119 // Offline variables:
120 if(m_doOfflineTausDistributions && !offline_taus_1p.empty()) {
121 fillBasicVars(ctx, trigger, offline_taus_1p, "1P", false);
122 fillIDScores(ctx, trigger, offline_taus_1p, "1P", false);
123 fillIDInputVars(trigger, offline_taus_1p, "1P", false);
124 fillIDTrack(trigger, offline_taus_1p, false);
125 fillIDCluster(trigger, offline_taus_1p, false);
126 }
127 if(m_doOfflineTausDistributions && !offline_taus_3p.empty()) {
128 fillBasicVars(ctx, trigger, offline_taus_3p, "3P", false);
129 fillIDScores(ctx, trigger, offline_taus_3p, "3P", false);
130 fillIDInputVars(trigger, offline_taus_3p, "3P", false);
131 fillIDTrack(trigger, offline_taus_3p, false);
132 fillIDCluster(trigger, offline_taus_3p, false);
133 }
134
135 // Fill information for online 0 prong taus
136 if(!hlt_taus_0p.empty()) {
137 fillBasicVars(ctx, trigger, hlt_taus_0p, "0P", true);
138 fillIDScores(ctx, trigger, hlt_taus_0p, "0P", true);
139 fillIDInputVars(trigger, hlt_taus_0p, "0P", true);
140 fillIDTrack(trigger, hlt_taus_0p, true);
141 fillIDCluster(trigger, hlt_taus_0p, true);
142 fillHitZVars(ctx, trigger, hlt_taus_0p, "0P");
143 }
144
145 // Fill information for online 1 prong taus
146 if(!hlt_taus_1p.empty()) {
147 fillBasicVars(ctx, trigger, hlt_taus_1p, "1P", true);
148 fillIDScores(ctx, trigger, hlt_taus_1p, "1P", true);
149 fillIDInputVars(trigger, hlt_taus_1p, "1P", true);
150 fillIDTrack(trigger, hlt_taus_1p, true);
151 fillIDCluster(trigger, hlt_taus_1p, true);
152 fillHitZVars(ctx, trigger, hlt_taus_1p, "1P");
153 }
154
155 // Fill information for online multiprong prong taus
156 if(!hlt_taus_mp.empty()) {
157 fillBasicVars(ctx, trigger, hlt_taus_mp, "MP", true);
158 fillIDScores(ctx, trigger, hlt_taus_mp, "MP", true);
159 fillIDInputVars(trigger, hlt_taus_mp, "MP", true);
160 fillIDTrack(trigger, hlt_taus_mp, true);
161 fillIDCluster(trigger, hlt_taus_mp, true);
162 fillHitZVars(ctx, trigger, hlt_taus_mp, "MP");
163 }
164 }
165
166 if(m_do_efficiency_plots && hlt_not_prescaled_flag) {
167 fillHLTEfficiencies(ctx, trigger, l1_accept_flag, offline_taus_1p, hlt_taus_all, "1P");
168 fillHLTEfficiencies(ctx, trigger, l1_accept_flag, offline_taus_3p, hlt_taus_all, "3P");
169 }
170 }
171
172 return StatusCode::SUCCESS;
173}
Gaudi::Property< bool > m_do_efficiency_plots
Gaudi::Property< std::vector< std::string > > m_triggers
Gaudi::Property< bool > m_do_variable_plots
void fillIDScores(const EventContext &ctx, const std::string &trigger, const std::vector< const xAOD::TauJet * > &tau_vec, const std::string &nProng, bool online) const
void fillHitZVars(const EventContext &ctx, const std::string &trigger, const std::vector< const xAOD::TauJet * > &tau_vec, const std::string &nProng) const
void fillIDInputVars(const std::string &trigger, const std::vector< const xAOD::TauJet * > &tau_vec, const std::string &nProng, bool online) const
void fillHLTEfficiencies(const EventContext &ctx, const std::string &trigger, const bool l1_accept_flag, const std::vector< const xAOD::TauJet * > &offline_tau_vec, const std::vector< const xAOD::TauJet * > &online_tau_vec, const std::string &nProng) const
Gaudi::Property< unsigned int > m_offline_tau_id
void fillIDCluster(const std::string &trigger, const std::vector< const xAOD::TauJet * > &tau_vec, bool online) const
Gaudi::Property< bool > m_doOfflineTausDistributions
void fillBasicVars(const EventContext &ctx, const std::string &trigger, const std::vector< const xAOD::TauJet * > &tau_vec, const std::string &nProng, bool online) const
void fillIDTrack(const std::string &trigger, const std::vector< const xAOD::TauJet * > &tau_vec, bool online) const

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void 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 365 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 367 of file AthMonitorAlgorithm.h.

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

◆ m_defaultLBDuration

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

Default duration of one lumi block.

Definition at line 374 of file AthMonitorAlgorithm.h.

374{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 375 of file AthMonitorAlgorithm.h.

375{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_do_efficiency_plots

Gaudi::Property<bool> TrigTauMonitorBaseAlgorithm::m_do_efficiency_plots {this, "DoEfficiencyPlots", true}
protectedinherited

Definition at line 47 of file TrigTauMonitorBaseAlgorithm.h.

47{this, "DoEfficiencyPlots", true};

◆ m_do_variable_plots

Gaudi::Property<bool> TrigTauMonitorBaseAlgorithm::m_do_variable_plots {this, "DoVariablePlots", true}
protectedinherited

Definition at line 48 of file TrigTauMonitorBaseAlgorithm.h.

48{this, "DoVariablePlots", true};

◆ m_doOfflineTausDistributions

Gaudi::Property<bool> TrigTauMonitorSingleAlgorithm::m_doOfflineTausDistributions {this, "DoOfflineTausDistributions", true}
private

Definition at line 31 of file TrigTauMonitorSingleAlgorithm.h.

31{this, "DoOfflineTausDistributions", true};

◆ m_doTotalEfficiency

Gaudi::Property<bool> TrigTauMonitorSingleAlgorithm::m_doTotalEfficiency {this, "DoTotalEfficiency", false, "Do total efficiency histograms"}
private

Definition at line 24 of file TrigTauMonitorSingleAlgorithm.h.

24{this, "DoTotalEfficiency", false, "Do total efficiency histograms"};

◆ m_DQFilterTools

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

Array of Data Quality filter tools.

Definition at line 355 of file AthMonitorAlgorithm.h.

355{this,"FilterTools",{}};

◆ m_dummy

const ToolHandle<GenericMonitoringTool> AthMonitorAlgorithm::m_dummy
privateinherited

Definition at line 383 of file AthMonitorAlgorithm.h.

◆ m_enforceExpressTriggers

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

Definition at line 386 of file AthMonitorAlgorithm.h.

386 {this,
387 "EnforceExpressTriggers", false,
388 "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 364 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 366 of file AthMonitorAlgorithm.h.

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

◆ m_eventInfoDecorKey

SG::ReadDecorHandleKey<xAOD::EventInfo> TrigTauMonitorBaseAlgorithm::m_eventInfoDecorKey {this, "LArStatusFlag", "EventInfo.larFlags", "Key for EventInfo object"}
privateinherited

Definition at line 131 of file TrigTauMonitorBaseAlgorithm.h.

131{this, "LArStatusFlag", "EventInfo.larFlags", "Key for EventInfo object"}; // To get data-dependencies right

◆ m_EventInfoKey

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

Key for retrieving EventInfo from StoreGate.

Definition at line 376 of file AthMonitorAlgorithm.h.

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

372{this,"FileKey",""};

◆ m_hltTauJetKeysMap

std::unordered_map<std::string, SG::ReadHandleKey<xAOD::TauJetContainer>, CxxUtils::TransparentStringHash, std::equal_to<> > TrigTauMonitorBaseAlgorithm::m_hltTauJetKeysMap
protectedinherited

Definition at line 122 of file TrigTauMonitorBaseAlgorithm.h.

◆ m_L1_Phase1_threshold_patterns

Gaudi::Property<std::map<std::string, uint64_t> > TrigTauMonitorBaseAlgorithm::m_L1_Phase1_threshold_patterns {this, "L1Phase1ThresholdPatterns", {}}
protectedinherited

Definition at line 43 of file TrigTauMonitorBaseAlgorithm.h.

43{this, "L1Phase1ThresholdPatterns", {}};

◆ m_L1_Phase1_thresholds

Gaudi::Property<std::map<std::string, float> > TrigTauMonitorBaseAlgorithm::m_L1_Phase1_thresholds {this, "L1Phase1Thresholds", {}}
protectedinherited

Definition at line 42 of file TrigTauMonitorBaseAlgorithm.h.

42{this, "L1Phase1Thresholds", {}};

◆ m_L1_select_by_et_only

Gaudi::Property<bool> TrigTauMonitorBaseAlgorithm::m_L1_select_by_et_only {this, "SelectL1ByETOnly", false}
protectedinherited

Definition at line 44 of file TrigTauMonitorBaseAlgorithm.h.

44{this, "SelectL1ByETOnly", false};

◆ m_lbDurationDataKey

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

Definition at line 359 of file AthMonitorAlgorithm.h.

360{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 357 of file AthMonitorAlgorithm.h.

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

◆ m_monitoredHLTCaloHitsPreselIdScores

Gaudi::Property<VarPropertyMap> TrigTauMonitorSingleAlgorithm::m_monitoredHLTCaloHitsPreselIdScores {this, "HLTTauCaloHitsPreselIDScores", {}, "Pairs of the Calo+Hits preselection TauID score and signal-transformed scores for each HLT TauID algorithm to be monitored, for each Tau container suffix (type, e.g. MVA_CaloHitsBase, MVA_HitZ, etc...)"}
private

Definition at line 35 of file TrigTauMonitorSingleAlgorithm.h.

35{this, "HLTTauCaloHitsPreselIDScores", {}, "Pairs of the Calo+Hits preselection TauID score and signal-transformed scores for each HLT TauID algorithm to be monitored, for each Tau container suffix (type, e.g. MVA_CaloHitsBase, MVA_HitZ, etc...)"};

◆ m_monitoredHLTHitZVars

Gaudi::Property<VarPropertyMap> TrigTauMonitorSingleAlgorithm::m_monitoredHLTHitZVars {this, "HLTTauHitZVars", {}, "Pairs of the HitZ z0 and z0 sigma for each HLT HitZ algorithm to be monitored, for each Tau container suffix (type, e.g. MVA_HitZ, etc...)"}
private

Definition at line 36 of file TrigTauMonitorSingleAlgorithm.h.

36{this, "HLTTauHitZVars", {}, "Pairs of the HitZ z0 and z0 sigma for each HLT HitZ algorithm to be monitored, for each Tau container suffix (type, e.g. MVA_HitZ, etc...)"};

◆ m_monitoredHLTIdScores

Gaudi::Property<VarPropertyMap> TrigTauMonitorSingleAlgorithm::m_monitoredHLTIdScores {this, "HLTTauIDScores", {}, "Pairs of the TauID score and signal-transformed scores for each HLT TauID algorithm to be monitored, for each Tau container suffix (type, e.g. MVA, LLP, etc...)"}
private

Definition at line 34 of file TrigTauMonitorSingleAlgorithm.h.

34{this, "HLTTauIDScores", {}, "Pairs of the TauID score and signal-transformed scores for each HLT TauID algorithm to be monitored, for each Tau container suffix (type, e.g. MVA, LLP, etc...)"};

◆ m_monitoredOfflineIdScores

Gaudi::Property<std::map<std::string, std::pair<std::string, std::string> > > TrigTauMonitorSingleAlgorithm::m_monitoredOfflineIdScores {this, "OfflineTauIDScores", {}, "Pairs of the TauID score and signal-transformed scores for each Offline TauID algorithm to be monitored"}
private

Definition at line 43 of file TrigTauMonitorSingleAlgorithm.h.

43{this, "OfflineTauIDScores", {}, "Pairs of the TauID score and signal-transformed scores for each Offline TauID algorithm to be monitored"};

◆ m_monitoredVarPairsDecorHandleKeys

VarKeysMap TrigTauMonitorSingleAlgorithm::m_monitoredVarPairsDecorHandleKeys
private

Definition at line 38 of file TrigTauMonitorSingleAlgorithm.h.

◆ m_name

std::string AthMonitorAlgorithm::m_name
privateinherited

Definition at line 380 of file AthMonitorAlgorithm.h.

◆ m_offline_tau_id

Gaudi::Property<unsigned int> TrigTauMonitorSingleAlgorithm::m_offline_tau_id {this, "OfflineTauID", TauID::RNN, "Offline TauID (1: RNN, 2: GNTau)"}
private

Definition at line 28 of file TrigTauMonitorSingleAlgorithm.h.

28{this, "OfflineTauID", TauID::RNN, "Offline TauID (1: RNN, 2: GNTau)"};

◆ m_offlineGNTauDecorKey

SG::ReadDecorHandleKey<xAOD::TauJetContainer> TrigTauMonitorBaseAlgorithm::m_offlineGNTauDecorKey {this, "OfflineGNTauDecorKey", "", "Offline GNTau decoration key"}
privateinherited

Definition at line 133 of file TrigTauMonitorBaseAlgorithm.h.

133{this, "OfflineGNTauDecorKey", "", "Offline GNTau decoration key"};

◆ m_offlineTauJetKey

SG::ReadHandleKey<xAOD::TauJetContainer> TrigTauMonitorBaseAlgorithm::m_offlineTauJetKey {this, "OfflineTauJetKey", "TauJets", "Offline taujet container key"}
protectedinherited

Definition at line 121 of file TrigTauMonitorBaseAlgorithm.h.

121{this, "OfflineTauJetKey", "TauJets", "Offline taujet container key"};

◆ m_phase1l1cTauRoIDecorKey

SG::ReadDecorHandleKey<xAOD::eFexTauRoIContainer> TrigTauMonitorBaseAlgorithm::m_phase1l1cTauRoIDecorKey {this, "Phase1L1cTauRoIjTauRoILinkKey", "L1_cTauRoI.jTauLink", "Decoration for the link from eTau to the matching jTau"}
privateinherited

Definition at line 140 of file TrigTauMonitorBaseAlgorithm.h.

140{this, "Phase1L1cTauRoIjTauRoILinkKey", "L1_cTauRoI.jTauLink", "Decoration for the link from eTau to the matching jTau"};

◆ m_phase1l1cTauRoIKey

SG::ReadHandleKey<xAOD::eFexTauRoIContainer> TrigTauMonitorBaseAlgorithm::m_phase1l1cTauRoIKey {this, "Phase1L1cTauRoIKey", "L1_cTauRoI", "cTau Phase1 L1 RoI key"}
privateinherited

Definition at line 139 of file TrigTauMonitorBaseAlgorithm.h.

139{this, "Phase1L1cTauRoIKey", "L1_cTauRoI", "cTau Phase1 L1 RoI key"};

◆ m_phase1l1cTauRoIThresholdPatternsKey

SG::ReadDecorHandleKey<xAOD::eFexTauRoIContainer> TrigTauMonitorBaseAlgorithm::m_phase1l1cTauRoIThresholdPatternsKey {this, "Phase1L1cTauRoIThresholdPatternsKey", "L1_cTauRoI.thresholdPatterns", "Decoration for the threshold patterns for the cTau RoIs"}
privateinherited

Definition at line 141 of file TrigTauMonitorBaseAlgorithm.h.

141{this, "Phase1L1cTauRoIThresholdPatternsKey", "L1_cTauRoI.thresholdPatterns", "Decoration for the threshold patterns for the cTau RoIs"};

◆ m_phase1l1eTauRoIKey

SG::ReadHandleKey<xAOD::eFexTauRoIContainer> TrigTauMonitorBaseAlgorithm::m_phase1l1eTauRoIKey {this, "Phase1L1eTauRoIKey", "L1_eTauRoI", "eTau Phase1 L1 RoI key"}
privateinherited

Definition at line 135 of file TrigTauMonitorBaseAlgorithm.h.

135{this, "Phase1L1eTauRoIKey", "L1_eTauRoI", "eTau Phase1 L1 RoI key"};

◆ m_phase1l1eTauRoIThresholdPatternsKey

SG::ReadDecorHandleKey<xAOD::eFexTauRoIContainer> TrigTauMonitorBaseAlgorithm::m_phase1l1eTauRoIThresholdPatternsKey {this, "Phase1L1eTauRoIThresholdPatternsKey", "L1_eTauRoI.thresholdPatterns", "Decoration for the threshold patterns for the eTau RoIs"}
privateinherited

Definition at line 136 of file TrigTauMonitorBaseAlgorithm.h.

136{this, "Phase1L1eTauRoIThresholdPatternsKey", "L1_eTauRoI.thresholdPatterns", "Decoration for the threshold patterns for the eTau RoIs"};

◆ m_phase1l1jTauRoIKey

SG::ReadHandleKey<xAOD::jFexTauRoIContainer> TrigTauMonitorBaseAlgorithm::m_phase1l1jTauRoIKey {this, "Phase1L1jTauRoIKey", "L1_jFexTauRoI", "jTau Phase1 L1 RoI key"}
privateinherited

Definition at line 137 of file TrigTauMonitorBaseAlgorithm.h.

137{this, "Phase1L1jTauRoIKey", "L1_jFexTauRoI", "jTau Phase1 L1 RoI key"};

◆ m_phase1l1jTauRoIThresholdPatternsKey

SG::ReadDecorHandleKey<xAOD::jFexTauRoIContainer> TrigTauMonitorBaseAlgorithm::m_phase1l1jTauRoIThresholdPatternsKey {this, "Phase1L1jTauRoIThresholdPatternsKey", "L1_jFexTauRoI.thresholdPatterns", "Decoration for the threshold patterns for the jTau RoIs"}
privateinherited

Definition at line 138 of file TrigTauMonitorBaseAlgorithm.h.

138{this, "Phase1L1jTauRoIThresholdPatternsKey", "L1_jFexTauRoI.thresholdPatterns", "Decoration for the threshold patterns for the jTau RoIs"};

◆ m_requireOfflineTaus

Gaudi::Property<bool> TrigTauMonitorSingleAlgorithm::m_requireOfflineTaus {this, "RequireOfflineTaus", true, "Require at leat 1 offline tau per event"}
private

Definition at line 27 of file TrigTauMonitorSingleAlgorithm.h.

27{this, "RequireOfflineTaus", true, "Require at leat 1 offline tau per event"};

◆ m_toolLookupMap

std::unordered_map<std::string, size_t, CxxUtils::TransparentStringHash, std::equal_to<> > AthMonitorAlgorithm::m_toolLookupMap
privateinherited

Definition at line 381 of file AthMonitorAlgorithm.h.

◆ m_tools

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

Array of Generic Monitoring Tools.

Definition at line 350 of file AthMonitorAlgorithm.h.

350{this,"GMTools",{}};

◆ m_trigDecTool

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

Tool to tell whether a specific trigger is passed.

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

369{this,"TriggerChain",""};

◆ m_triggers

Gaudi::Property<std::vector<std::string> > TrigTauMonitorBaseAlgorithm::m_triggers {this, "TriggerList", {}}
protectedinherited

Definition at line 39 of file TrigTauMonitorBaseAlgorithm.h.

39{this, "TriggerList", {}};

◆ m_trigInfo

std::map<std::string, TrigTauInfo> TrigTauMonitorBaseAlgorithm::m_trigInfo
privateinherited

Definition at line 127 of file TrigTauMonitorBaseAlgorithm.h.

◆ m_trigLiveFractionDataKey

SG::ReadCondHandleKey<TrigLiveFractionCondData> AthMonitorAlgorithm::m_trigLiveFractionDataKey {this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData", "SG Key of TrigLiveFractionCondData object"}
protectedinherited

Definition at line 361 of file AthMonitorAlgorithm.h.

362{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 373 of file AthMonitorAlgorithm.h.

373{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 370 of file AthMonitorAlgorithm.h.


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