13 const std::vector<bool>&,
14 const std::vector<bool>&,
22 const std::vector<bool>& rechitMask,
23 const std::vector<bool>& seedable,
31 if (!rechitMask[
hit] || !seedable[
hit])
43 const auto rh_energy = refhit->energy();
46 cluster.
setSeed(refhit->detId());
48 cluster.
setTime(refhit->time());
void setLayer(PFLayer::Layer layer)
set layer
Basic2DClusterForEachSeed(const edm::ParameterSet &conf, edm::ConsumesCollector &cc)
reco::PFRecHitRef makeRefhit(const edm::Handle< reco::PFRecHitCollection > &h, const unsigned i) const
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
uint32_t cc[maxCellsPerHit]
void setPosition(const math::XYZPoint &p)
void setTime(float time, float timeError=0)
Fraction of a PFRecHit (rechits can be shared between several PFCluster's)
void setEnergy(double energy)
~Basic2DClusterForEachSeed() override=default
static std::string const input
void setSeed(const DetId &id)
void calculatePositionREP()
computes posrep_ once and for all
void buildClusters(const edm::Handle< reco::PFRecHitCollection > &, const std::vector< bool > &, const std::vector< bool > &, reco::PFClusterCollection &, const HcalPFCuts *) override
void reset()
resets clusters parameters
XYZPointD XYZPoint
point in space with cartesian internal representation
void addRecHitFraction(const reco::PFRecHitFraction &frac)
add a given fraction of the rechit
void setDepth(double depth)
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
#define DEFINE_EDM_PLUGIN(factory, type, name)