13#ifndef TRIGEFMISSINGET_MONGROUPBUILDER_H
14#define TRIGEFMISSINGET_MONGROUPBUILDER_H 1
21namespace HLT {
namespace MET {
51 typename = std::enable_if_t<
52 !std::is_lvalue_reference_v<T> &&
53 std::is_base_of_v<Monitored::IMonitoredVariable, T>>>
54 void add(T&& variable)
56 m_ptrs.push_back(std::make_unique<T>(std::move(variable) ) );
70 const ToolHandle<GenericMonitoringTool>& tool)
const;
84 std::vector<std::reference_wrapper<Monitored::IMonitoredVariable>>
m_references;
86 std::vector<std::unique_ptr<Monitored::IMonitoredVariable>>
m_ptrs;
void add(Monitored::IMonitoredVariable &variable)
Add a new monitored variable.
void increaseCapacity(std::size_t value, bool owned=false)
Increase the internal capacity.
Monitored::Group build(const ToolHandle< GenericMonitoringTool > &tool) const
Build the monitored group.
std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > m_references
References to monitored variables.
std::vector< std::unique_ptr< Monitored::IMonitoredVariable > > m_ptrs
Any monitored variables that we own directly.
void add(T &&variable)
Add a new monitored variable.
Group of local monitoring quantities and retain correlation when filling histograms
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...