|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGMUONMONITORING_TRIGMUONMONITORALGORITHM_H
6 #define TRIGMUONMONITORING_TRIGMUONMONITORALGORITHM_H
105 template <
class T,
class FUNCT>
107 std::string &&trigstep,
108 xAOD::Muon::TrackParticleType
type,
109 FUNCT matchFunc)
const;
122 std::string &&trigstep,
123 std::tuple<bool,double,double> (*PosFunc)(
const T*) = &TrigMuonMonitorAlgorithm::defaultPosFunc<T>)
const;
125 template<
class T>
static inline std::tuple<bool, double, double>
defaultPosFunc(
const T* trig);
129 ToolHandle<MuonMatchingTool>
m_matchTool {
this,
"MuonMatchingTool",
"MuonMatchingTool",
"Tool for matching offline and online objects"};
130 ToolHandle<CP::IMuonSelectionTool>
m_muonSelectionTool{
this,
"MuonSelectionTool",
"CP::MuonSelectionTool/MuonSelectionTool",
"MuonSelectionTool"};
137 Gaudi::Property<std::vector<std::string> >
m_monitored_chains {
this,
"MonitoredChains", {},
"Trigger chains that are monitored"};
141 Gaudi::Property<std::string>
m_group {
this,
"Group",
"",
"Histogram group"};
150 #endif //TRIGMUONMONITORING_TRIGMUONMONITORALGORITHM_H
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual bool selectEvents() const
Function that defines the event selection for anlayses User should reimlement in a subclass if needed...
SG::ReadHandleKey< xAOD::MuonContainer > m_MuonContainerKey
Gaudi::Property< std::string > m_group
Name of monitored group.
StatusCode fillVariablesRatioPlots(const EventContext &ctx, const xAOD::Muon *mu, std::string &&trigstep, xAOD::Muon::TrackParticleType type, FUNCT matchFunc) const
Function that fills variables of ratio plots.
ToolHandle< MuonMatchingTool > m_matchTool
Property holding a SG store/key/clid from which a ReadHandle is made.
Base class for Athena Monitoring Algorithms.
static std::tuple< bool, double, double > defaultPosFunc(const T *trig)
TrigMuonMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode fillHistograms(const EventContext &ctx) const override
Function that steers anlayses.
Base class from which analyzers can define a derived class to do specific analysis.
virtual StatusCode fillVariables(const EventContext &ctx) const
Function that fills variables by just retrieving containers of trigger objects.
Gaudi::Property< std::vector< std::string > > m_monitored_chains
List of trigger chains that are monitored in fillVariablesPerChain and fillVariablesPerOfflineMuonPer...
virtual StatusCode selectMuons(SG::ReadHandle< xAOD::MuonContainer > &muons, std::vector< const xAOD::Muon * > &probes) const
Function that defines the event selection for anlayses Users should reimlement in a subclass if neede...
Gaudi::Property< int > m_muontype
Requirement for the offline muon type considered in analyses.
virtual StatusCode initialize() override
initialize
virtual StatusCode fillVariablesPerOfflineMuonPerChain(const EventContext &ctx, const xAOD::Muon *mu, const std::string &chain) const
Function that fills variables of trigger objects associated to specified trigger chains comparing off...
virtual StatusCode fillVariablesPerOfflineMuon(const EventContext &ctx, const xAOD::Muon *mu) const
Function that fills variables that are compared to offline muons but the trigger chains are not speci...
StatusCode fillVariableEtaPhi(const EventContext &ctx, SG::ReadHandleKey< DataVector< T > > ReadHandleKey, std::string &&trigstep, std::tuple< bool, double, double >(*PosFunc)(const T *)=&TrigMuonMonitorAlgorithm::defaultPosFunc< T >) const
Function that fills variables of etaphi2D plots.
ToolHandle< CP::IMuonSelectionTool > m_muonSelectionTool
virtual StatusCode fillVariablesPerChain(const EventContext &ctx, const std::string &chain) const
Function that fills variables of trigger objects associated to specified trigger chains.
const float m_ratio_measurement_threshold
Threshold for ratio measurement.