ATLAS Offline Software
Functions
Filling Functions

A group of functions which fill monitored variables in groups. More...

Functions

void AthMonitorAlgorithm::fill (const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
 Fills a vector of variables to a group by reference. More...
 
void AthMonitorAlgorithm::fill (const ToolHandle< GenericMonitoringTool > &groupHandle, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &variables) const
 Fills a vector of variables to a group by reference. More...
 
template<typename... T>
void AthMonitorAlgorithm::fill (const ToolHandle< GenericMonitoringTool > &groupHandle, T &&... variables) const
 Fills a variadic list of variables to a group by reference. More...
 
void AthMonitorAlgorithm::fill (const std::string &groupName, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&variables) const
 Fills a vector of variables to a group by name. More...
 
void AthMonitorAlgorithm::fill (const std::string &groupName, const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &variables) const
 Fills a vector of variables to a group by name. More...
 
template<typename... T>
void AthMonitorAlgorithm::fill (const std::string &groupName, T &&... variables) const
 Fills a variadic list of variables to a group by name. More...
 

Detailed Description

A group of functions which fill monitored variables in groups.

Function Documentation

◆ fill() [1/6]

void AthMonitorAlgorithm::fill ( const std::string &  groupName,
const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &  variables 
) const
inline

Fills a vector of variables to a group by name.

Calls BASE FILL.

Parameters
groupHandleReference to the GenericMonitoringTool
variablesVector of monitored variables to be saved

Definition at line 146 of file AthMonitorAlgorithm.h.

147  {
148  fill( getGroup(groupName), std::vector<std::reference_wrapper<Monitored::IMonitoredVariable>>{variables});
149  }

◆ fill() [2/6]

void AthMonitorAlgorithm::fill ( const std::string &  groupName,
std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&  variables 
) const

Fills a vector of variables to a group by name.

Calls BASE FILL.

Parameters
groupHandleReference to the GenericMonitoringTool
variablesRvalue reference to vector of monitored variables to be saved. Note, the vector will not be valid after calling this function! Use const lvalue variant if you want to keep your vectors.

◆ fill() [3/6]

template<typename... T>
void AthMonitorAlgorithm::fill ( const std::string &  groupName,
T &&...  variables 
) const
inline

Fills a variadic list of variables to a group by name.

Calls BASE FILL.

Parameters
groupNameThe string name of the GenericMonitoringTool
variables...Variadic list of monitored variables to be saved

Definition at line 158 of file AthMonitorAlgorithm.h.

158  {
159  fill(getGroup(groupName), std::vector<std::reference_wrapper<Monitored::IMonitoredVariable>>{std::forward<T>(variables)...});
160  }

◆ fill() [4/6]

void AthMonitorAlgorithm::fill ( const ToolHandle< GenericMonitoringTool > &  groupHandle,
const std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &  variables 
) const
inline

Fills a vector of variables to a group by reference.

Calls BASE FILL.

At the end of the fillHistograms routine, one should save the monitored variables to the group. This function wraps the process of getting the desired group by a call to AthMonitorAlgorithm::getGroup() and a call to Monitored::Group::fill(), which also disables the auto-fill feature to avoid double-filling. Note, users should avoid using this specific function name 'fill' in daughter classes.

Parameters
groupHandleA reference of the GenericMonitoringTool to which add variables
variablesVector of monitored variables to be saved

Definition at line 113 of file AthMonitorAlgorithm.h.

114  {
115  fill(groupHandle, std::vector<std::reference_wrapper<Monitored::IMonitoredVariable>>{variables});
116  };

◆ fill() [5/6]

void AthMonitorAlgorithm::fill ( const ToolHandle< GenericMonitoringTool > &  groupHandle,
std::vector< std::reference_wrapper< Monitored::IMonitoredVariable >> &&  variables 
) const

Fills a vector of variables to a group by reference.

(BASE FILL)

At the end of the fillHistograms routine, one should save the monitored variables to the group. This function wraps the process of getting the desired group by a call to AthMonitorAlgorithm::getGroup() and a call to Monitored::Group::fill(), which also disables the auto-fill feature to avoid double-filling. Note, users should avoid using this specific function name 'fill' in daughter classes.

Parameters
groupHandleA reference of the GenericMonitoringTool to which add variables
variablesRvalue reference to vector of monitored variables to be saved. Note, the vector will not be valid after calling this function! Use const lvalue variant if you want to keep your vectors.

◆ fill() [6/6]

template<typename... T>
void AthMonitorAlgorithm::fill ( const ToolHandle< GenericMonitoringTool > &  groupHandle,
T &&...  variables 
) const
inline

Fills a variadic list of variables to a group by reference.

Calls BASE FILL.

Parameters
groupHandleReference to the GenericMonitoringTool
variables...Variadic list of monitored variables to be saved

Definition at line 125 of file AthMonitorAlgorithm.h.

125  {
126  fill(groupHandle, std::vector<std::reference_wrapper<Monitored::IMonitoredVariable>>{std::forward<T>(variables)...});
127  }
checkCoolLatestUpdate.variables
variables
Definition: checkCoolLatestUpdate.py:13
RunTileMonitoring.groupName
groupName
Definition: RunTileMonitoring.py:158
AthMonitorAlgorithm::fill
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.
AthMonitorAlgorithm::getGroup
const ToolHandle< GenericMonitoringTool > & getGroup(const std::string &name) const
Get a specific monitoring tool from the tool handle array.
Definition: AthMonitorAlgorithm.cxx:164