Helper to temporarily change the signal state of a cluster. More...
#include <CaloClusterChangeSignalState.h>
Public Member Functions | |
void | init (const xAOD::CaloCluster *pClus, xAOD::CaloCluster::State s) |
CaloClusterChangeSignalState (const xAOD::CaloCluster *pClus, xAOD::CaloCluster::State s) | |
Change the signal state of a cluster, remembering the old state. | |
~CaloClusterChangeSignalState () | |
Destructor. Restore the cluster to its previous state. | |
const xAOD::CaloCluster * | cluster () |
Return a ptr to the cluster we are managing. |
Helper to temporarily change the signal state of a cluster.
Constructing one of these objects will change the signal state of a cluster. When this object is desctructed, the cluster's previous signal state will be restored.
CaloClusterChangeSignalState::CaloClusterChangeSignalState | ( | const xAOD::CaloCluster * | pClus, | |
xAOD::CaloCluster::State | s | |||
) |
Change the signal state of a cluster, remembering the old state.
pClus | The cluster to change. | |
s | The new signal state for the cluster. |