ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODCaloEvent
Root
CaloClusterChangeSignalState.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#include "
xAODCaloEvent/CaloClusterChangeSignalState.h
"
7
8
CaloClusterChangeSignalState::CaloClusterChangeSignalState
(
xAOD::CaloCluster
* pClus,
xAOD::CaloCluster::State
s):
9
m_clus
(pClus),
10
m_oldstate
(pClus->signalState())
11
{
12
pClus->
setSignalState
(s);
13
//std::cout << "SignalStateHelper: Setting state for clu " << pClus << std::endl;
14
}
15
16
17
CaloClusterChangeSignalState::~CaloClusterChangeSignalState
()
18
{
19
//std::cout << "SignalStateHelper: Resetting state for clu " << m_clus << std::endl;
20
if
(
m_clus
)
21
m_clus
->setSignalState(
m_oldstate
);
22
}
23
CaloClusterChangeSignalState.h
CaloClusterChangeSignalState::m_clus
xAOD::CaloCluster * m_clus
The cluster that we're managing.
Definition
CaloClusterChangeSignalState.h:47
CaloClusterChangeSignalState::CaloClusterChangeSignalState
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_v1::setSignalState
bool setSignalState(const State s)
Switch signal state.
Definition
CaloCluster_v1.cxx:440
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