ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAlgorithms
TrigEFMissingET
src
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
15
namespace
HLT
{
namespace
MET
{
16
void
MonGroupBuilder::add
(
Monitored::IMonitoredVariable
& variable)
17
{
18
m_references
.push_back(variable);
19
}
20
21
Monitored::Group
MonGroupBuilder::build
(
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
MonGroupBuilder.h
HLT::MET::MonGroupBuilder::add
void add(Monitored::IMonitoredVariable &variable)
Add a new monitored variable.
Definition
MonGroupBuilder.cxx:16
HLT::MET::MonGroupBuilder::increaseCapacity
void increaseCapacity(std::size_t value, bool owned=false)
Increase the internal capacity.
Definition
MonGroupBuilder.cxx:27
HLT::MET::MonGroupBuilder::build
Monitored::Group build(const ToolHandle< GenericMonitoringTool > &tool) const
Build the monitored group.
Definition
MonGroupBuilder.cxx:21
HLT::MET::MonGroupBuilder::m_references
std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > m_references
References to monitored variables.
Definition
MonGroupBuilder.h:84
HLT::MET::MonGroupBuilder::m_ptrs
std::vector< std::unique_ptr< Monitored::IMonitoredVariable > > m_ptrs
Any monitored variables that we own directly.
Definition
MonGroupBuilder.h:86
Monitored::Group
Group of local monitoring quantities and retain correlation when filling histograms
Definition
MonitoredGroup.h:53
Monitored::IMonitoredVariable
Definition
IMonitoredVariable.h:14
HLT::MET
Definition
METComponent.cxx:8
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition
HLTResultReader.h:26
Generated on
for ATLAS Offline Software by
1.17.0