ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
CaloClusterChangeSignalStateList Class Reference

Helper to temporarily change the signal state of many clusters. More...

#include <CaloClusterChangeSignalState.h>

Collaboration diagram for CaloClusterChangeSignalStateList:

Public Member Functions

void add (xAOD::CaloCluster *clu, xAOD::CaloCluster::State s)
 Add one cluster to the list of clusters to be managed. More...
 
void reset ()
 Revert the signal state of all managed clusters. More...
 

Private Attributes

std::forward_list< CaloClusterChangeSignalStatem_stateHelpers
 

Detailed Description

Helper to temporarily change the signal state of many clusters.

When this object is desctructed, all clusters will be reverted to their previous signal state

Definition at line 61 of file CaloClusterChangeSignalState.h.

Member Function Documentation

◆ add()

void CaloClusterChangeSignalStateList::add ( xAOD::CaloCluster clu,
xAOD::CaloCluster::State  s 
)
inline

Add one cluster to the list of clusters to be managed.

Parameters
clusThe cluster
sThe new signal state for the cluster.

Definition at line 69 of file CaloClusterChangeSignalState.h.

69  {
70  m_stateHelpers.emplace_front(clu,s);
71  }

◆ reset()

void CaloClusterChangeSignalStateList::reset ( )
inline

Revert the signal state of all managed clusters.

Note that the implicit destructor does the same - no need to call this method

Definition at line 79 of file CaloClusterChangeSignalState.h.

79  {
80  m_stateHelpers.clear();
81  }

Member Data Documentation

◆ m_stateHelpers

std::forward_list<CaloClusterChangeSignalState> CaloClusterChangeSignalStateList::m_stateHelpers
private

Definition at line 86 of file CaloClusterChangeSignalState.h.


The documentation for this class was generated from the following file:
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
CaloClusterChangeSignalStateList::m_stateHelpers
std::forward_list< CaloClusterChangeSignalState > m_stateHelpers
Definition: CaloClusterChangeSignalState.h:86