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)
const TrackerGeomDet * idToDetUnit(DetId) const
Return the pointer to the GeomDetUnit corresponding to a given DetId.
virtual ~Phase2TrackerRecHits()
#define DEFINE_FWK_MODULE(type)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void produce(edm::StreamID sid, edm::Event &event, const edm::EventSetup &eventSetup) const override final
Phase2TrackerRecHits(const edm::ParameterSet &conf)
edm::EDGetTokenT< Phase2TrackerCluster1DCollectionNew > token_