21 class ConvertHitTraitsPhase2 {
23 static constexpr bool applyCCC() {
return false; }
25 static bool passCCC(std::nullptr_t) {
return true; }
53 : siPhase2RecHitToken_{consumes<Phase2TrackerRecHit1DCollectionNew>(
55 ttrhBuilderToken_{esConsumes<TransientTrackingRecHitBuilder, TransientRecHitRecord>(
57 ttopoToken_{esConsumes<TrackerTopology, TrackerTopologyRcd>()},
58 mkFitGeomToken_{esConsumes<MkFitGeometry, TrackerRecoGeometryRecord>()},
59 wrapperPutToken_{produces<MkFitHitWrapper>()},
60 clusterIndexPutToken_{produces<MkFitClusterIndexToHit>()},
61 clusterChargePutToken_{produces<std::vector<float>>()},
70 descriptions.
add(
"mkFitPhase2HitConverterDefault",
desc);
80 std::vector<float> clusterCharge;
84 std::vector<float>
dummy;
85 if (not phase2Hits.empty()) {
89 clusterIndexToHit.
hits(),
const edm::EDPutTokenT< std::vector< float > > clusterChargePutToken_
const edm::ESGetToken< TransientTrackingRecHitBuilder, TransientRecHitRecord > ttrhBuilderToken_
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
T getParameter(std::string const &) const
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
void setupAsStrip(unsigned int id, int cpcm, int rows)
const ConvertHitTraitsPhase2 convertTraits_
const edm::EDGetTokenT< Phase2TrackerRecHit1DCollectionNew > siPhase2RecHitToken_
~MkFitPhase2HitConverter() override=default
const edm::EDPutTokenT< MkFitHitWrapper > wrapperPutToken_
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)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::ESGetToken< MkFitGeometry, TrackerRecoGeometryRecord > mkFitGeomToken_
const edm::EDPutTokenT< MkFitClusterIndexToHit > clusterIndexPutToken_
#define DEFINE_FWK_MODULE(type)
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > ttopoToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void setClustersID(edm::ProductID id)
MkFitPhase2HitConverter(edm::ParameterSet const &iConfig)
std::vector< TrackingRecHit const * > & hits()