|
ATLAS Offline Software
|
Go to the documentation of this file.
39 const std::string&
name,
40 ISvcLocator* pSvcLocator)
89 const EventContext &ctx,
96 return StatusCode::SUCCESS;
99 std::vector<std::size_t>
101 const std::size_t seedIndex,
103 std::vector<bool>& isUsed)
const
107 std::vector<std::size_t> secondaryIndices;
109 const auto*
const seedEgammaRec = (*egammaRecs)[seedIndex];
115 for (std::size_t
i = 0;
i < egammaRecs->
size(); ++
i) {
121 const auto*
const secEgammaRec = (*egammaRecs)[
i];
125 const auto seedSecdEta = std::abs(seedCaloClus->
eta() - secClus->
eta());
126 const auto seedSecdPhi =
129 const bool addCluster =
132 (matchSameTrack(*seedTrackParticle, *secEgammaRec))));
135 secondaryIndices.push_back(
i);
139 ATH_MSG_DEBUG(
"Found: " << secondaryIndices.size() <<
" secondaries");
140 return secondaryIndices;
virtual double phi() const
The azimuthal angle ( ) of the particle.
Gaudi::Property< bool > m_doTrackMatching
private member flag to do the track matching
virtual StatusCode initialize() override
should be called by the derived class in the initialize phase
virtual std::vector< std::size_t > searchForSecondaryClusters(const size_t i, const EgammaRecContainer *, std::vector< bool > &isUsed) const override final
Search for secondary clusters.
static constexpr float s_cellPhiSize
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
float nPixelHits(const U &p)
Definition of CaloDetDescrManager.
Handle class for recording to StoreGate.
bool matchesInWindow(const xAOD::CaloCluster *ref, const xAOD::CaloCluster *clus) const
Is clus in window center around ref?
Description of a calorimeter cluster.
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
electronSuperClusterBuilder(const std::string &name, ISvcLocator *pSvcLocator)
virtual double eta() const
The pseudorapidity ( ) of the particle.
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
size_t getNumberOfTrackParticles() const
Return the number xAOD::TrackParticles that match the electron candidate.
const xAOD::TrackParticle * trackParticle(size_t index=0) const
Pointer to the xAOD::TrackParticle/s that match the electron candidate.
size_t index() const
Return the index of this element within its container.
ToolHandle< IEMTrackMatchBuilder > m_trackMatchBuilder
Tool to perform track matching.
int summaryValueInt(const xAOD::TrackParticle &tp, const xAOD::SummaryType &info, int deflt=-999)
return the summary value for a TrackParticle or default value (-999) (to be used mostly in python whe...
virtual StatusCode initialize() override final
should be called by the derived class in the initialize phase
Gaudi::Property< std::size_t > m_numberOfPixelHits
Gaudi::Property< int > m_maxDelPhiCells
Size of maximum search window in phi.
static constexpr float s_cellEtaSize
virtual xAOD::EgammaParameters::EgammaType getEgammaRecType(const egammaRec *egRec) const override final
Gaudi::Property< std::size_t > m_numberOfSiHits
Base class for electronSuperClusterBuilder photonSuperClusterBuilder egammaSuperClusterBuilder This c...
@ numberOfSCTHits
number of hits in SCT [unit8_t].
@ numberOfPixelDeadSensors
number of dead pixel sensors crossed [unit8_t].
Class describing a TrackParticle.
Handle class for reading from StoreGate.
virtual StatusCode redoMatching(const EventContext &ctx, SG::WriteHandle< EgammaRecContainer > &newEgammaRecs) const override final
virtual bool egammaRecPassesSelection(const egammaRec *egRec) const override final
Gaudi::Property< int > m_maxDelEtaCells
Size of maximum search window in eta.
size_type size() const noexcept
Returns the number of elements in the collection.
float nSiHits(const U &p)