15#define CL_RHMSG( NAME ) MsgStream& operator<<(MsgStream& mstr,const SG::ReadHandleKey< NAME >& ckey ) { mstr << ckey.key(); return mstr; }
16#define CL_WHMSG( NAME ) MsgStream& operator<<(MsgStream& mstr,const SG::WriteHandleKey< NAME >& ckey ) { mstr << ckey.key(); return mstr; }
117 return StatusCode::FAILURE;
128 return StatusCode::SUCCESS;
136 if ( !clusterHandle.
isValid() ) {
138 return StatusCode::SUCCESS;
141 if ( !towerHandle.
isValid() ) {
143 return StatusCode::SUCCESS;
159 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
An algorithm that can be simultaneously executed in multiple threads.
static StatusCode AddContainerWriteHandle(SG::WriteHandle< xAOD::CaloClusterContainer > &clusColl)
Creates a new xAOD::CaloClusterContainer in the given WriteHandle + CaloClusterAuxContainer and recor...
static StatusCode finalizeClusters(SG::WriteHandle< CaloClusterCellLinkContainer > &h, xAOD::CaloClusterContainer *pClusterColl)
Finalize clusters (move CaloClusterCellLink to a separate container).
bool clusterFilter(const xAOD::CaloCluster &rClus) const
Filter topo-cluster.
virtual ~CaloTopoClusterTowerMerger()
Baseclass destructor.
lhandlekey_t m_cellLinkContainerKey
Output cell links for merged container.
static bool makeDeepCopy(const xAOD::CaloCluster &rClus, xAOD::CaloClusterContainer *pClusCont)
Attaches a deep copy to container, returns true if successful.
SG::ReadHandle< xAOD::CaloClusterContainer > rhandle_t
Input data handle type.
double m_clusterRange
Rapidity range for topo-clusters.
virtual StatusCode initialize() override
Initialization sets up read and write handle keys.
CaloTopoClusterTowerMerger(const std::string &name, ISvcLocator *pSvcLocator)
Algorithm constructor.
virtual StatusCode execute(const EventContext &ctx) const override
Execution merges the container contents.
whandlekey_t m_topoSignalContainerKey
Output merged container.
rhandlekey_t m_clusterContainerKey
Input topo-cluster container.
SG::WriteHandle< CaloClusterCellLinkContainer > lhandle_t
Cell link container output data handle.
static StatusCode addContainerWriteHandle(whandle_t &signalHandle)
Add a write handle for a container (in CaloClusterStoreHelper from r21.9)
rhandlekey_t m_towerContainerKey
Input topo-tower container.
SG::WriteHandle< xAOD::CaloClusterContainer > whandle_t
Output data handle type.
bool towerFilter(const xAOD::CaloCluster &rTowr) const
Filter topo-tower.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
pointer_type ptr()
Dereference the pointer.
std::string fmtMsg(const char *fmt,...)
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.