|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGTLAMONITORING_TRIGTLAMONITORALGORITHM_H
6 #define TRIGTLAMONITORING_TRIGTLAMONITORALGORITHM_H
27 Gaudi::Property<std::vector<std::string>>
m_allChains{
this,
"AllChains",{}};
36 PublicToolHandle<Trig::TrigDecisionTool>
m_trigDecisionTool{
this,
"TriggerDecisionTool",
"Trigger decision tool"};
80 template<
class C,
typename T>
103 template <
typename U,
typename T>
133 template <
typename T>
139 return StatusCode::FAILURE;
142 return StatusCode::SUCCESS;
146 template <
typename T>
151 for(
auto tcEI : *tcEventInfo) {
160 return StatusCode::SUCCESS;
179 fill(
"TrigTLAMonitor",
n);
185 fill(
"TrigTLAMonitor",
pt );
195 fill(
"TrigTLAMonitor",pt0 );
196 fill(
"TrigTLAMonitor",eta0);
200 return StatusCode::SUCCESS;
205 template<
class C,
typename T>
216 for(
const auto element : *container) {
218 fill(
"TrigTLAMonitor", mon_var);
222 return StatusCode::SUCCESS;
226 template <
typename T>
229 std::vector<T> variable_vec;
244 return StatusCode::SUCCESS;
248 template <
typename U,
typename T>
253 ATH_MSG_DEBUG(
"Filling 2D histogram. "<<varname1<<
" = "<<var1<<
" ; "<<varname2<<
" = "<<var2);
254 fill(
"TrigTLAMonitor", mon_var1, mon_var2);
256 return StatusCode::SUCCESS;
std::string replace(std::string s, const std::string &s2, const std::string &s3)
virtual ~TrigTLAMonitorAlgorithm()
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
StatusCode readContainer(SG::ReadHandle< T > &container, SG::ReadHandleKey< T > key, const EventContext &ctx) const
Retrieve a container of type T.
SG::ReadHandleKey< xAOD::JetContainer > m_jetContainerKey
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
StatusCode fill2DHistogram(const std::string &varname1, U var1, const std::string &varname2, T var2, const std::string &prefix) const
A generic function to fill 2D histogram.
Helper class to provide constant type-safe access to aux data.
Property holding a SG store/key/clid from which a ReadHandle is made.
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecisionTool
Class providing the definition of the 4-vector interface.
StatusCode fillJetTrackVariableHistogram(SG::ReadHandle< xAOD::JetContainer > jets, const std::string &varname, const std::string &prefix, const std::string &trigName, T default_val=-1) const
Fill jet track variable to 1D histograms. Jet track variables are vectors where each element correspo...
StatusCode fillJetPtCalibStatesHistograms(SG::ReadHandle< xAOD::JetContainer > jets, const std::string &calibState, const std::string &prefix, const std::string &trigName) const
Fill jet pT to 1D histograms at different calibration scales.
Base class for Athena Monitoring Algorithms.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
StatusCode fillParticleHistograms(SG::ReadHandle< DataVector< T >> particles, const std::string &prefix, const std::string &trigName) const
Fill kinematic histograms for a given particle of type T
SG::ReadHandleKey< xAOD::PhotonContainer > m_photonContainerKey
StatusCode fillObjectVariableHistogram(SG::ReadHandle< DataVector< C >> container, const std::string &varname, const std::string &prefix, const std::string &trigName, T default_val=-1) const
Fill Analysis Object feature histogram`.
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadHandleKey< xAOD::JetContainer > m_pfjetContainerKey
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.
Header file to be included by clients of the Monitored infrastructure.
SG::ReadHandleKey< xAOD::TrigCompositeContainer > m_tcEventInfoContainerKey
virtual bool isValid() override final
Can the handle be successfully dereferenced?
TrigTLAMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::vector< std::string > > m_allChains
const AccessorWrapper< T > * accessor(xAOD::JetAttribute::AttributeID id)
Returns an attribute accessor corresponding to an AttributeID.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackParticleContainerKey
#define ATH_MSG_WARNING(x)
virtual StatusCode initialize() override
initialize
Declare a monitored scalar variable.
SG::ReadHandleKey< xAOD::MuonContainer > m_muonContainerKey
StatusCode fillEventInfoHistogram(SG::ReadHandle< DataVector< xAOD::TrigComposite_v1 > > tcEventInfo, const std::string &varname, const std::string &prefix) const
Fill an event info variable to a 1D histogram.
StatusCode fillDeltaRHistograms(const xAOD::IParticle *p0, const xAOD::IParticle *p1, const std::string &prefix, const std::string &trigName) const
Fill kinematic histograms for a given particle of type T