24 return StatusCode::SUCCESS;
30 return StatusCode::SUCCESS;
42 CHECK(h_inCaloClusters.isValid());
43 ATH_MSG_DEBUG(
"Read in " << (h_inCaloClusters->size()) <<
" clusters");
55 for (
const auto cluster : *h_inCaloClusters) {
57 float time = cluster->time();
58 float quality = acc_larq(*cluster)/65535;
59 float lambda_center = acc_clambda(*cluster);
63 if( abs(time) > timeCut )
continue;
67 h_outCaloClusters->push_back(cluster);
71 ATH_MSG_DEBUG(
"Read In " << h_inCaloClusters->size() <<
" Selected " << h_outCaloClusters->size());
73 return StatusCode::SUCCESS;
#define CHECK(...)
Evaluate an expression and check for errors.
An algorithm that can be simultaneously executed in multiple threads.
DataVector adapter that acts like it holds const pointers.
SG::WriteHandleKey< ConstDataVector< xAOD::CaloClusterContainer > > m_outCaloClustersKey
virtual ~GepClusterTimingAlg()
virtual StatusCode execute(const EventContext &) const
virtual StatusCode initialize()
Gaudi::Property< float > m_lambdaCalDivide
Gaudi::Property< float > m_qualityCut
GepClusterTimingAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode finalize()
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_inCaloClustersKey
Gaudi::Property< float > m_timeCutLargeQ
Gaudi::Property< float > m_timeCutSmallQ
Gaudi::Property< float > m_etaCut
SG::ConstAccessor< T, ALLOC > ConstAccessor
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())