|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
   15                    const std::string& 
name,
 
   20   declareInterface<CaloClusterCollectionProcessor> (
this);
 
   40   return StatusCode::SUCCESS;
 
   58     const size_t nClusters=clusColl->
size();
 
   59     if (nClusters!=outputColl->
size()) {
 
   60       ATH_MSG_ERROR(
"After copy of container: Unequal number of entries! Original " << nClusters << 
", copy " << outputColl->
size());
 
   61       return StatusCode::FAILURE;
 
   67     for (
size_t i=0;
i<nClusters;++
i) {
 
   75      for (
size_t i=0;
i<nClusters;++
i) {
 
   81      ATH_MSG_DEBUG(
"Can't set element link from snapshot to final cluster, likely mismatch in the FinalClusterContainerName");   
 
   91   return StatusCode::SUCCESS;
 
  
static StatusCode finalizeClusters(SG::WriteHandle< CaloClusterCellLinkContainer > &h, xAOD::CaloClusterContainer *pClusterColl)
Finalize clusters (move CaloClusterCellLink to a separate container).
CaloClusterSnapshot(const std::string &type, const std::string &name, const IInterface *parent)
static StatusCode AddContainerWriteHandle(SG::WriteHandle< xAOD::CaloClusterContainer > &clusColl)
Creates a new xAOD::CaloClusterContainer in the given WriteHandle + CaloClusterAuxContainer and recor...
const std::string & name() const
Return the StoreGate ID for the referenced object.
std::string m_finalContName
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool isValid() const
Test to see if the link can be dereferenced.
virtual StatusCode initialize() override
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ElementLink< xAOD::CaloClusterContainer > ClusterLink_t
static void copyContainer(const xAOD::CaloClusterContainer *oldColl, xAOD::CaloClusterContainer *newColl)
Deep copy of a cluster container.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
ElementLink implementation for ROOT usage.
Helpers for checking error return status codes and reporting errors.
SG::WriteHandleKey< CaloClusterCellLinkContainer > m_cellLinkOutputKey
virtual ~CaloClusterSnapshot() override
size_type size() const noexcept
Returns the number of elements in the collection.
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_outputKey
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *) const override
Execute on an entire collection of clusters.