48 produces<Phase2TrackerRecHit1DCollectionNew>();
55 event.getByToken(
token_, clusters);
67 auto outputRecHits = std::make_unique<Phase2TrackerRecHit1DCollectionNew>();
70 for (
const auto &clusterDetSet : *clusters) {
72 DetId detId(clusterDetSet.detId());
80 for (
const auto &clusterRef : clusterDetSet) {
93 outputRecHits->shrink_to_fit();
edm::Ref< typename HandleT::element_type, typename HandleT::element_type::value_type::value_type > makeRefTo(const HandleT &iHandle, typename HandleT::element_type::value_type::const_iterator itIter)
~Phase2TrackerRecHits() override
#define DEFINE_FWK_MODULE(type)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Phase2TrackerRecHits(const edm::ParameterSet &conf)
edm::EDGetTokenT< Phase2TrackerCluster1DCollectionNew > token_
void produce(edm::StreamID sid, edm::Event &event, const edm::EventSetup &eventSetup) const final