21 struct ConvertHitTraits {
22 static constexpr
bool applyCCC() {
return false; }
24 static bool passCCC(std::nullptr_t) {
return true; }
26 mhit.setupAsPixel(shortId, cluster.
sizeX(), cluster.
sizeY());
51 ttrhBuilderToken_{esConsumes<TransientTrackingRecHitBuilder, TransientRecHitRecord>(
53 ttopoToken_{esConsumes<TrackerTopology, TrackerTopologyRcd>()},
54 mkFitGeomToken_{esConsumes<MkFitGeometry, TrackerRecoGeometryRecord>()},
55 wrapperPutToken_{produces<MkFitHitWrapper>()},
56 clusterIndexPutToken_{produces<MkFitClusterIndexToHit>()} {}
75 std::vector<float> dummy;
79 clusterIndexToHit.
hits(),
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
#define DEFINE_FWK_MODULE(type)
~MkFitSiPixelHitConverter() override=default
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDPutTokenT< MkFitClusterIndexToHit > clusterIndexPutToken_
edm::ProductID convertHits(const Traits &traits, const HitCollection &hits, mkfit::HitVec &mkFitHits, std::vector< TrackingRecHit const * > &clusterIndexToHit, std::vector< float > &clusterChargeVec, const TrackerTopology &ttopo, const TransientTrackingRecHitBuilder &ttrhBuilder, const MkFitGeometry &mkFitGeom)
bool getData(T &iHolder) const
const edm::EDPutTokenT< MkFitHitWrapper > wrapperPutToken_
const edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > ttrhBuilderToken_
bool get(ProductID const &oid, Handle< PROD > &result) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
SeedingHitSet::ConstRecHitPointer Hit
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
T getParameter(std::string const &) const
const edm::ESGetToken< MkFitGeometry, TrackerRecoGeometryRecord > mkFitGeomToken_
void setClustersID(edm::ProductID id)
Pixel cluster – collection of neighboring pixels above threshold.
MkFitSiPixelHitConverter(edm::ParameterSet const &iConfig)
const edm::EDGetTokenT< SiPixelRecHitCollection > pixelRecHitToken_
std::vector< TrackingRecHit const * > & hits()
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > ttopoToken_