23 produces<GEMPadDigiClusterCollection>();
24 consumes<GEMPadDigiCollection>(
pads_);
59 unsigned int nClusters = 0;
60 for (
auto part: ch->etaPartitions()) {
61 auto pads = det_pads.get(
part->id());
62 std::vector<uint16_t>
cl;
64 for (
auto d = pads.first;
d != pads.second; ++
d) {
66 cl.push_back((*d).pad());
69 if ((*d).bx() == startBX and (*d).pad() == cl.back() + 1) {
70 cl.push_back((*d).pad());
74 out_clusters.insertDigi(
part->id(), pad_cluster);
76 cl.push_back((*d).pad());
82 if (pads.first != pads.second){
84 out_clusters.insertDigi(
part->id(), pad_cluster);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual ~GEMPadDigiClusterProducer()
virtual void produce(edm::Event &, const edm::EventSetup &) override
GEMPadDigiClusterProducer(const edm::ParameterSet &ps)
MuonDigiCollection< GEMDetId, GEMPadDigiCluster > GEMPadDigiClusterCollection
const GEMGeometry * geometry_
void buildClusters(const GEMPadDigiCollection &pads, GEMPadDigiClusterCollection &out_clusters)
unsigned int maxClusterSize_
T const * product() const
const std::vector< const GEMChamber * > & chambers() const
Return a vector of all GEM chambers.
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
edm::EDGetTokenT< GEMPadDigiCollection > pad_token_
Name of input digi Collection.
unsigned int maxClusters_