8#include "CaloEvent/CaloClusterContainer.h"
9#include "GaudiKernel/MsgStream.h"
31 const std::string& name,
32 const IInterface* parent)
37 "Energy threshold for cluster removal.");
53 return StatusCode::SUCCESS;
70 clus_iterator iter1 = clusColl->
begin();
73 for( ;iter1!=clusColl->
end(); ) {
76 ATH_MSG_DEBUG(
" Removed cluster with energy below threshold, " << (*iter1)->e() <<
endmsg);
77 iter1 = clusColl->
erase(iter1);
86 return StatusCode::SUCCESS;
An STL vector of pointers that by default owns its pointed-to elements.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
CaloClusterProcessor(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
CaloClusterRemoveBad(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloCluster *cluster) const override
Execute on a single cluster.
DataModel_detail::iterator< DataVector > iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
iterator erase(iterator position)
Remove element at a given position.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.