11 const std::vector<bool>&,
12 const std::vector<bool>&,
19 const std::vector<bool>& rechitMask,
20 const std::vector<bool>& seedable,
27 if (!rechitMask[
hit] || !seedable[
hit])
39 const auto rh_energy = refhit->energy();
42 cluster.
setSeed(refhit->detId());
44 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.
void buildClusters(const edm::Handle< reco::PFRecHitCollection > &, const std::vector< bool > &, const std::vector< bool > &, reco::PFClusterCollection &) override
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 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)