29 ATH_MSG_ERROR(
"CVF key does not match input cluster container key!");
30 return StatusCode::FAILURE;
38 ATH_MSG_ERROR(
"Output category key does not match input cluster container key!");
39 return StatusCode::FAILURE;
43 return StatusCode::SUCCESS;
49 if (!clusters.isValid())
52 return StatusCode::FAILURE;
59 float CVF = accCVF(*iclus);
67 return StatusCode::SUCCESS;
#define CHECK(...)
Evaluate an expression and check for errors.
Some common helper functions used by decoration handles.
Handle class for reading a decoration on an object.
Handle class for reading from StoreGate.
Handle class for adding a decoration to an object.
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_inputClusterKey
The input container.
virtual StatusCode execute(const EventContext &ctx) const override
CVFPrepAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
virtual StatusCode initialize() override
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_outputCategoryKey
The output classifcation.
SG::ReadDecorHandleKey< xAOD::CaloClusterContainer > m_inputCVFKey
The input CVF key.
Gaudi::Property< float > m_cvfThreshold
The CVF threshold.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
std::string contKeyFromKey(const std::string &key)
Extract the container part of key.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.