21 struct ConvertHitTraits {
22 static constexpr
bool applyCCC() {
return false; }
24 static bool passCCC(std::nullptr_t) {
return true; }
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)
T getParameter(std::string const &) const
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
~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)
void setupAsPixel(unsigned int id, int rows, int cols)
const edm::EDPutTokenT< MkFitHitWrapper > wrapperPutToken_
const edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > ttrhBuilderToken_
#define DEFINE_FWK_MODULE(type)
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_