Go to the documentation of this file.
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());
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
void setSeed(const DetId &id)
void setTime(float time, float timeError=0)
static const std::string input
Fraction of a PFRecHit (rechits can be shared between several PFCluster's)
void setLayer(PFLayer::Layer layer)
set layer
reco::PFRecHitRef makeRefhit(const edm::Handle< reco::PFRecHitCollection > &h, const unsigned i) const
#define DEFINE_EDM_PLUGIN(factory, type, name)
void setPosition(const math::XYZPoint &p)
void reset()
resets clusters parameters
XYZPointD XYZPoint
point in space with cartesian internal representation
void calculatePositionREP()
computes posrep_ once and for all
void addRecHitFraction(const reco::PFRecHitFraction &frac)
add a given fraction of the rechit
void setEnergy(double energy)
Basic2DClusterForEachSeed(const edm::ParameterSet &conf, edm::ConsumesCollector &cc)
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
void setDepth(double depth)
~Basic2DClusterForEachSeed() override=default
void buildClusters(const edm::Handle< reco::PFRecHitCollection > &, const std::vector< bool > &, const std::vector< bool > &, reco::PFClusterCollection &) override