|
ATLAS Offline Software
|
Go to the documentation of this file.
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; }
97 , m_clusterContainerKey(
"CaloCalTopoCluster")
98 , m_towerContainerKey(
"CaloCalFwdTopoTower")
99 , m_topoSignalContainerKey(
"CaloCalTopoSignal")
100 , m_cellLinkContainerKey(
"")
101 , m_clusterRange(3.2)
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;
rhandlekey_t m_clusterContainerKey
Input topo-cluster container.
static StatusCode finalizeClusters(SG::WriteHandle< CaloClusterCellLinkContainer > &h, xAOD::CaloClusterContainer *pClusterColl)
Finalize clusters (move CaloClusterCellLink to a separate container).
virtual StatusCode initialize() override
Initialization sets up read and write handle keys.
static StatusCode AddContainerWriteHandle(SG::WriteHandle< xAOD::CaloClusterContainer > &clusColl)
Creates a new xAOD::CaloClusterContainer in the given WriteHandle + CaloClusterAuxContainer and recor...
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
static StatusCode addContainerWriteHandle(whandle_t &signalHandle)
Add a write handle for a container (in CaloClusterStoreHelper from r21.9)
std::string fmtMsg(const char *fmt,...)
const std::string & key() const
Return the StoreGate ID for the referenced object.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
An algorithm that can be simultaneously executed in multiple threads.
bool towerFilter(const xAOD::CaloCluster &rTowr) const
Filter topo-tower.
Handle class for recording to StoreGate.
Description of a calorimeter cluster.
lhandlekey_t m_cellLinkContainerKey
Output cell links for merged container.
double m_clusterRange
Rapidity range for topo-clusters.
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
bool clusterFilter(const xAOD::CaloCluster &rClus) const
Filter topo-cluster.
CaloTopoClusterTowerMerger(const std::string &name, ISvcLocator *pSvcLocator)
Algorithm constructor.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual StatusCode execute(const EventContext &ctx) const override
Execution merges the container contents.
static bool makeDeepCopy(const xAOD::CaloCluster &rClus, xAOD::CaloClusterContainer *pClusCont)
Attaches a deep copy to container, returns true if successful.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
#define ATH_MSG_WARNING(x)
virtual ~CaloTopoClusterTowerMerger()
Baseclass destructor.
whandlekey_t m_topoSignalContainerKey
Output merged container.
Handle class for reading from StoreGate.
rhandlekey_t m_towerContainerKey
Input topo-tower container.