![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
29 const std::string&
name,
33 m_copyCells(true),m_useClusterPosition(false),m_etCut(-1.), m_clusterSize(
xAOD::CaloCluster_v1::CSize_Unknown)
35 declareInterface<CaloClusterCollectionProcessor> (
this);
50 ATH_MSG_INFO(
" Careful: CaloClusterCopier only copy eta0 phi0" );
61 return StatusCode::SUCCESS;
74 for(;
it!=it_e;++
it) {
98 for(; it_cell!=it_cell_e; ++it_cell) {
109 ATH_MSG_DEBUG(
"Done with copying clusters, number of clusters= " << clusColl->
size());
110 return StatusCode::SUCCESS;
116 if(
name()==
"LArgamClusterMaker.larClusterCopier"){
118 }
else if(
name()==
"LAr35ClusterMaker.larClusterCopier35"){
120 }
else if(
name()==
"LAr37ClusterMaker.larClusterCopier37"){
122 }
else if(
name()==
"LArgamClusterMaker.larClusterCopiergam"){
124 }
else if(
name()==
"LArgam35ClusterMaker.larClusterCopiergam35"){
126 }
else if(
name()==
"LArgam37ClusterMaker.larClusterCopiergam37"){
128 }
else if (
name()==
"EMTopo35ClusterMaker.TopoEMCopier35") {
static std::unique_ptr< xAOD::CaloCluster > makeCluster(const CaloCellContainer *cellCont)
Creates a valid CaloCluster with a private Aux-Store and CellLink container.
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *) const override
Execute on an entire collection of clusters.
Const iterator class for DataVector/DataList.
virtual ~CaloClusterCopier() override
CaloClusterCopier(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clustersKey
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
unsigned index() const
Accessor for the index of the cell in the CaloCellContainer.
Description of a calorimeter cluster.
void setPhi0(flt_t)
Set raw of cluster seed.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode initialize() override
xAOD::CaloCluster::ClusterSize m_clusterSize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
bool m_useClusterPosition
Helpers for checking error return status codes and reporting errors.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
void setClusterSize(const ClusterSize)
Get cluster size.
#define ATH_MSG_WARNING(x)
bool addCell(const unsigned index, const double weight)
Method to add a cell to the cluster (Beware: Kinematics not updated!)
static void calculateKine(xAOD::CaloCluster *clu, const bool useweight=true, const bool updateLayers=true, const bool useGPUCriteria=false)
Helper class to calculate cluster kinematics based on cells.
const_iterator to loop over cells belonging to a cluster
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.