21 ISvcLocator* pSvcLocator)
39 return StatusCode::FAILURE;
52std::vector<std::size_t>
54 std::size_t seedIndex,
56 std::vector<bool>& isUsed)
const
59 std::vector<std::size_t> secondaryIndices;
61 const auto*
const seedEgammaRec = (*egammaRecs)[seedIndex];
65 int nWindowClusters = 0;
67 for (std::size_t i = 0; i < egammaRecs->
size(); ++i) {
72 const auto*
const secEgammaRec = (*egammaRecs)[i];
76 "The potentially secondary egammaRec does not have a cluster");
79 bool addCluster =
false;
82 <<
" matched in window");
88 secondaryIndices.push_back(i);
92 ATH_MSG_DEBUG(
"Found: " << secondaryIndices.size() <<
" secondaries");
94 return secondaryIndices;
#define ATH_MSG_WARNING(x)
Definition of CaloDetDescrManager.
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
size_type size() const noexcept
Returns the number of elements in the collection.
Represent an egamma object for internal egamma usage during reconstruction.
egammaSuperClusterBuilderBase(const std::string &name, ISvcLocator *pSvcLocator)
Protected constructor since this class should not be instantiated by itself.
bool matchesInWindow(const xAOD::CaloCluster *ref, const xAOD::CaloCluster *clus) const
Is clus in window center around ref?
virtual StatusCode initialize() override
should be called by the derived class in the initialize phase
egammaSuperClusterBuilder(const std::string &name, ISvcLocator *pSvcLocator)
virtual xAOD::EgammaParameters::EgammaType getEgammaRecType(const egammaRec *egRec) const override final
Gaudi::Property< std::string > m_calibrationType
type to be assumed for calibration
xAOD::EgammaParameters::EgammaType m_egTypeForCalibration
virtual StatusCode initialize() override final
should be called by the derived class in the initialize phase
virtual std::vector< std::size_t > searchForSecondaryClusters(std::size_t egammaInd, const EgammaRecContainer *egammaRecs, std::vector< bool > &isUsed) const override final
Return extra clusters that can be added to make supercluster.
DataVector< egammaRec > EgammaRecContainer
The container is a simple typedef for now.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.