67 : m_collectionToken(consumes<
ClusterSummary>(iConfig.getParameter<edm::
InputTag>(
"clusterSummaryCollection"))),
71 produces<std::map<unsigned int, int> >();
75 std::vector<edm::ParameterSet> wantedsubds(iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"wantedSubDets"));
79 for (std::vector<edm::ParameterSet>::iterator ps = wantedsubds.begin(); ps != wantedsubds.end(); ++ps) {
81 m_subdetsel.push_back(ps->getParameter<
int>(
"subDetEnum"));
94 LogDebug(
"Multiplicity") <<
" Ready to go";
98 std::unique_ptr<std::map<unsigned int, int> > mults(
new std::map<unsigned int, int>);
125 for (std::map<unsigned int, int>::const_iterator it = mults->begin(); it != mults->end(); ++it) {
126 LogDebug(
"Multiplicity") <<
" Found " << it->second <<
" digis/clusters in " << it->first;
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
ClusterSummary::VariablePlacement m_subdetvar
edm::EDGetTokenT< ClusterSummary > m_collectionToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< int > m_subdetsel
std::vector< ClusterSummary::CMSTracker > m_subdetenums
T getParameter(std::string const &) const
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
FromClusterSummaryMultiplicityProducer(const edm::ParameterSet &)