18 mItr->second->setBatchMode();
23 std::vector<Collections>& _sequence,
24 std::vector<Collections>::iterator _maxPos)
const {
26 std::vector<Collections>::iterator
pos(
std::find(_sequence.begin(), _sequence.end(),
col));
27 if (
pos == _sequence.end())
28 _sequence.insert(_maxPos,
col);
29 else if (
pos < _maxPos)
32 throw cms::Exception(
"InvalidConfiguration") <<
"Circular dependency of collections";
34 for (std::set<Collections>::const_iterator rItr(_d.
requisite.begin()); rItr != _d.
requisite.end(); ++rItr) {
35 for (std::vector<Dependency>::const_iterator dItr(
set_.begin()); dItr !=
set_.end(); ++dItr) {
36 if (dItr->dependant != *rItr)
static void fillDescriptions(edm::ParameterSetDescription &)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void formSequenceFragment_(Dependency const &, std::vector< Collections > &, std::vector< Collections >::iterator) const
MESetColletionType::iterator iterator
virtual void setME(edm::ParameterSet const &)
void setME(edm::ParameterSet const &) final
static void fillDescriptions(edm::ParameterSetDescription &_desc)
std::vector< Dependency > set_
std::set< Collections > requisite