33 clusterToken_ = consumes<edmNew::DetSetVector<SiStripApproximateCluster>>(
36 produces<edmNew::DetSetVector<SiStripCluster>>();
40 auto result = std::make_unique<edmNew::DetSetVector<SiStripCluster>>();
44 const auto& tkDets = tkGeom->dets();
48 unsigned int detId = detClusters.id();
51 auto det = std::find_if(tkDets.begin(), tkDets.end(), [
detId](
auto& elem) ->
bool {
52 return (elem->geographicalId().rawId() ==
detId);
57 for (
const auto& cluster : detClusters) {
68 descriptions.
add(
"SiStripApprox2Clusters",
desc);
T getParameter(std::string const &) const
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
SiStripApprox2Clusters(const edm::ParameterSet &conf)
nStrips
1.2 is to make the matching window safely the two nearest strips 0.35 is the size of an ME0 chamber i...
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_
virtual const StripTopology & specificTopology() const
Returns a reference to the strip proxy topology.
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< edmNew::DetSetVector< SiStripApproximateCluster > > clusterToken_