59 std::vector<MultiplicityCorrelatorHistogramMaker*>
m_mchms;
89 std::vector<edm::ParameterSet> correlationConfigs =
90 iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"correlationConfigurations");
92 for(std::vector<edm::ParameterSet>::const_iterator ps=correlationConfigs.begin();ps!=correlationConfigs.end();++ps) {
98 m_xSelections.push_back(ps->getParameter<
unsigned int>(
"xDetSelection"));
99 m_ySelections.push_back(ps->getParameter<
unsigned int>(
"yDetSelection"));
136 std::map<unsigned int, int>::const_iterator xmult = xMults->find(
m_xSelections[i]);
137 std::map<unsigned int, int>::const_iterator ymult = yMults->find(
m_ySelections[i]);
139 if(xmult!=xMults->end() && ymult!=yMults->end()) {
142 m_mchms[
i]->fill(iEvent,xmult->second,ymult->second);
T getParameter(std::string const &) const
std::vector< edm::EDGetTokenT< std::map< unsigned int, int > > > m_yMultiplicityMapTokens
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< unsigned int > m_ySelections
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
#define DEFINE_FWK_MODULE(type)
std::vector< std::string > m_yLabels
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
~MultiplicityCorrelator() override
MultiplicityCorrelator(const edm::ParameterSet &)
std::vector< MultiplicityCorrelatorHistogramMaker * > m_mchms
std::vector< std::string > m_xLabels
std::vector< edm::EDGetTokenT< std::map< unsigned int, int > > > m_xMultiplicityMapTokens
std::vector< unsigned int > m_xSelections
void beginRun(const edm::Run &, const edm::EventSetup &) override