ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODCaloEvent
xAODCaloEvent
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
9
#include "
xAODCaloEvent/CaloCluster.h
"
10
18
class
CaloClusterChangeSignalState
19
{
20
public
:
21
22
//Delete default and copy constructor
23
CaloClusterChangeSignalState
() =
delete
;
24
CaloClusterChangeSignalState
(
const
CaloClusterChangeSignalState
&)=
delete
;
25
CaloClusterChangeSignalState
&
operator=
(
const
CaloClusterChangeSignalState
&) =
delete
;
26
32
CaloClusterChangeSignalState
(
xAOD::CaloCluster
* pClus,
33
xAOD::CaloCluster::State
s);
34
35
39
~CaloClusterChangeSignalState
();
40
42
const
xAOD::CaloCluster
*
cluster
() {
return
m_clus
;}
43
44
45
private
:
47
xAOD::CaloCluster
*
m_clus
;
49
xAOD::CaloCluster::State
m_oldstate
;
50
};
51
52
53
#include <forward_list>
54
61
class
CaloClusterChangeSignalStateList
{
62
63
public
:
69
void
add
(
xAOD::CaloCluster
* clu,
xAOD::CaloCluster::State
s) {
70
m_stateHelpers
.emplace_front(clu,s);
71
}
72
78
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
CaloCluster.h
CaloClusterChangeSignalStateList
Helper to temporarily change the signal state of many clusters.
Definition
CaloClusterChangeSignalState.h:61
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
CaloClusterChangeSignalStateList::m_stateHelpers
std::forward_list< CaloClusterChangeSignalState > m_stateHelpers
Definition
CaloClusterChangeSignalState.h:86
CaloClusterChangeSignalStateList::reset
void reset()
Revert the signal state of all managed clusters.
Definition
CaloClusterChangeSignalState.h:79
CaloClusterChangeSignalState::m_clus
xAOD::CaloCluster * m_clus
The cluster that we're managing.
Definition
CaloClusterChangeSignalState.h:47
CaloClusterChangeSignalState::CaloClusterChangeSignalState
CaloClusterChangeSignalState()=delete
CaloClusterChangeSignalState::CaloClusterChangeSignalState
CaloClusterChangeSignalState(const CaloClusterChangeSignalState &)=delete
CaloClusterChangeSignalState::cluster
const xAOD::CaloCluster * cluster()
Return a ptr to the cluster we are managing.
Definition
CaloClusterChangeSignalState.h:42
CaloClusterChangeSignalState::operator=
CaloClusterChangeSignalState & operator=(const CaloClusterChangeSignalState &)=delete
CaloClusterChangeSignalState::m_oldstate
xAOD::CaloCluster::State m_oldstate
The previous signal state for the cluster.
Definition
CaloClusterChangeSignalState.h:49
CaloClusterChangeSignalState::~CaloClusterChangeSignalState
~CaloClusterChangeSignalState()
Destructor.
Definition
CaloClusterChangeSignalState.cxx:17
xAOD::CaloCluster_v1::State
State
enum of possible signal states.
Definition
CaloCluster_v1.h:307
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
Generated on
for ATLAS Offline Software by
1.17.0