ATLAS Offline Software
Event
xAOD
xAODCaloEvent
Root
CaloClusterShallowCopy.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
#include "
xAODCaloEvent/CaloCluster.h
"
6
7
std::unique_ptr<xAOD::CaloCluster>
xAOD::prepareElementForShallowCopy
(
const
xAOD::CaloCluster
* orgCluster) {
8
//std::cout << "Executing overloaded version of prepareElementForShallowCopy" << std::endl;
9
std::unique_ptr<xAOD::CaloCluster> newCluster(
new
CaloCluster
());
10
newCluster->
setSamplingPattern
(orgCluster->
samplingPattern
(),
false
);
11
return
newCluster;
12
}
13
xAOD::CaloCluster_v1::setSamplingPattern
void setSamplingPattern(const unsigned sp, const bool clearSamplingVars=false)
Set sampling pattern (one bit per sampling.
Definition:
CaloCluster_v1.cxx:81
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition:
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition:
CaloCluster_v1.h:59
CaloCluster.h
xAOD::CaloCluster_v1::samplingPattern
unsigned samplingPattern() const
Access to sampling pattern (one bit per sampling) (Method may be removed later)
Definition:
CaloCluster_v1.h:864
xAOD::prepareElementForShallowCopy
std::unique_ptr< CaloCluster > prepareElementForShallowCopy(const CaloCluster *orgCluster)
Definition:
CaloClusterShallowCopy.cxx:7
Generated on Sun Dec 22 2024 21:07:52 for ATLAS Offline Software by
1.8.18