CMS 3D CMS Logo

DQWorkerTask.cc
Go to the documentation of this file.
2 
6 
7 namespace ecaldqm {
9 
10  /*static*/
12 
14  DQWorker::setME(_ps);
15 
16  for (MESetCollection::iterator mItr(MEs_.begin()); mItr != MEs_.end(); ++mItr) {
18  mItr->second->setBatchMode();
19  }
20  }
21 
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)
30  return;
31  else
32  throw cms::Exception("InvalidConfiguration") << "Circular dependency of collections";
33 
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)
37  continue;
38  pos = std::find(_sequence.begin(), _sequence.end(), col);
39  formSequenceFragment_(*dItr, _sequence, pos);
40  break;
41  }
42  }
43  }
44 
45 } // namespace ecaldqm
Collections dependant
Definition: DQWorkerTask.h:20
auto end() const
Definition: MESet.h:393
static void fillDescriptions(edm::ParameterSetDescription &)
Definition: DQWorkerTask.cc:11
bool willConvertToEDM_
Definition: DQWorker.h:139
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
void formSequenceFragment_(Dependency const &, std::vector< Collections > &, std::vector< Collections >::iterator) const
Definition: DQWorkerTask.cc:22
MESetColletionType::iterator iterator
Definition: MESet.h:384
virtual void setME(edm::ParameterSet const &)
Definition: DQWorker.cc:71
void setME(edm::ParameterSet const &) final
Definition: DQWorkerTask.cc:13
static void fillDescriptions(edm::ParameterSetDescription &_desc)
Definition: DQWorker.cc:37
std::vector< Dependency > set_
Definition: DQWorkerTask.h:66
MESetCollection MEs_
Definition: DQWorker.h:131
std::set< Collections > requisite
Definition: DQWorkerTask.h:21
col
Definition: cuy.py:1009