78 : _defpartnames(iConfig.getParameter<
std::
vector<
std::
string> >(
"defaultPartitionNames")),
79 _defphases(iConfig.getParameter<
std::
vector<
int> >(
"defaultPhases")),
81 produces<APVCyclePhaseCollection, edm::InEvent>();
88 <<
" Inconsistent default phases/partitions vector sizes: " <<
_defphases.size() <<
" " <<
_defpartnames.size();
91 std::vector<edm::ParameterSet> vps(iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"runPhases"));
93 for (std::vector<edm::ParameterSet>::const_iterator ps = vps.begin(); ps != vps.end(); ps++) {
94 _runphases[ps->getParameter<
int>(
"runNumber")] = ps->getUntrackedParameter<std::vector<int> >(
"phases",
_defphases);
96 ps->getUntrackedParameter<std::vector<std::string> >(
"partitions",
_defpartnames);
98 if (
_runphases[ps->getParameter<
int>(
"runNumber")].size() <
102 <<
" Inconsistent run " << ps->getParameter<
int>(
"runNumber")
103 <<
" phases/partitions vector sizes: " <<
_runphases[ps->getParameter<
int>(
"runNumber")].size() <<
" "
126 const std::map<int, std::vector<std::string> >& _crunpartnames =
_runpartnames;
127 const std::map<int, std::vector<int> >& _crunphases =
_runphases;
129 std::map<int, std::vector<int> >::const_iterator trphases = _crunphases.find(iRun.
run());
130 std::map<int, std::vector<std::string> >::const_iterator trpartnames = _crunpartnames.find(iRun.
run());
135 if (trphases != _crunphases.end()) {
136 phases = trphases->second;
138 if (trpartnames != _crunpartnames.end()) {
139 partnames = trpartnames->second;
142 if (
phases.size() < partnames.size()) {
145 <<
" Inconsistent phases/partitions vector sizes: " <<
phases.size() <<
" " << partnames.size();
148 for (
unsigned int ipart = 0; ipart < partnames.size(); ++ipart) {
156 edm::LogInfo(
"APVCyclePhaseProducerDebug") <<
"partition " << it->first <<
" phase " << it->second;