ATLAS Offline Software
CaloClusterChangeSignalState.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //Dear emacs this is -*-c++-*-
6 #ifndef XAODCALOCLUSTERCHANGESIGNALSTATE
7 #define XAODCALOCLUSTERCHANGESIGNALSTATE
8 
10 
19 {
20 public:
21 
22  //Delete default and copy constructor
26 
34 
35 
40 
42  const xAOD::CaloCluster* cluster() {return m_clus;}
43 
44 
45 private:
50 };
51 
52 
53 #include <forward_list>
54 
62 
63  public:
70  m_stateHelpers.emplace_front(clu,s);
71  }
72 
79  void reset() {
80  m_stateHelpers.clear();
81  }
82 
83  private:
84  //As far as I can see this is the only stl container that doesn't require the payload to be
85  //copy-constructable.
86  std::forward_list<CaloClusterChangeSignalState> m_stateHelpers;
87 
88 };
89 
90 #endif
CaloClusterChangeSignalState
Helper to temporarily change the signal state of a cluster.
Definition: CaloClusterChangeSignalState.h:19
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
xAOD::CaloCluster_v1::State
State
enum of possible signal states.
Definition: CaloCluster_v1.h:304
CaloClusterChangeSignalState::CaloClusterChangeSignalState
CaloClusterChangeSignalState()=delete
CaloClusterChangeSignalStateList
Helper to temporarily change the signal state of many clusters.
Definition: CaloClusterChangeSignalState.h:61
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
CaloClusterChangeSignalState::m_clus
xAOD::CaloCluster * m_clus
The cluster that we're managing.
Definition: CaloClusterChangeSignalState.h:47
CaloCluster.h
CaloClusterChangeSignalState::cluster
const xAOD::CaloCluster * cluster()
Return a ptr to the cluster we are managing.
Definition: CaloClusterChangeSignalState.h:42
CaloClusterChangeSignalStateList::add
void add(xAOD::CaloCluster *clu, xAOD::CaloCluster::State s)
Add one cluster to the list of clusters to be managed.
Definition: CaloClusterChangeSignalState.h:69
CaloClusterChangeSignalState::operator=
CaloClusterChangeSignalState & operator=(const CaloClusterChangeSignalState &)=delete
CaloClusterChangeSignalStateList::m_stateHelpers
std::forward_list< CaloClusterChangeSignalState > m_stateHelpers
Definition: CaloClusterChangeSignalState.h:86
CaloClusterChangeSignalState::~CaloClusterChangeSignalState
~CaloClusterChangeSignalState()
Destructor.
Definition: CaloClusterChangeSignalState.cxx:17
CaloClusterChangeSignalState::CaloClusterChangeSignalState
CaloClusterChangeSignalState(const CaloClusterChangeSignalState &)=delete
CaloClusterChangeSignalStateList::reset
void reset()
Revert the signal state of all managed clusters.
Definition: CaloClusterChangeSignalState.h:79
CaloClusterChangeSignalState::m_oldstate
xAOD::CaloCluster::State m_oldstate
The previous signal state for the cluster.
Definition: CaloClusterChangeSignalState.h:49