ATLAS Offline Software
Loading...
Searching...
No Matches
MonGroupBuilder.cxx
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4
5/******************************************************************************
6 * @package Trigger/TrigAlgorithms/TrigEFMissingET
7 * @file MonGroupBuilder.cxx
8 *
9 * Implementation of monitoring group builder
10 * @author Jon Burr
11 *****************************************************************************/
12
13#include "MonGroupBuilder.h"
14
15namespace HLT { namespace MET {
17 {
18 m_references.push_back(variable);
19 }
20
22 const ToolHandle<GenericMonitoringTool>& tool) const
23 {
24 return Monitored::Group(tool, m_references);
25 }
26
27 void MonGroupBuilder::increaseCapacity(std::size_t value, bool owned)
28 {
29 m_references.reserve(value+m_references.capacity() );
30 if (owned)
31 m_ptrs.reserve(value+m_ptrs.capacity() );
32 }
33} } //> end namespace HLT::MET
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.
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 ...