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
ecaldqm::DependencySet::set_
std::vector< Dependency > set_
Definition: DQWorkerTask.h:66
ecaldqm
Definition: DQWorker.h:29
ecaldqm::Dependency::requisite
std::set< Collections > requisite
Definition: DQWorkerTask.h:21
cuy.col
col
Definition: cuy.py:1010
pos
Definition: PixelAliasList.h:18
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
ecaldqm::Dependency
Definition: DQWorkerTask.h:19
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
ecaldqm::DQWorkerTask::setME
void setME(edm::ParameterSet const &) final
Definition: DQWorkerTask.cc:13
ecaldqm::DQWorker
Definition: DQWorker.h:33
ecaldqm::MESetCollection::end
auto end() const
Definition: MESet.h:393
ecaldqm::DQWorkerTask::DQWorkerTask
DQWorkerTask()
Definition: DQWorkerTask.cc:8
ecaldqm::DQWorker::fillDescriptions
static void fillDescriptions(edm::ParameterSetDescription &_desc)
Definition: DQWorker.cc:31
ParameterSetDescription.h
ecaldqm::DQWorker::MEs_
MESetCollection MEs_
Definition: DQWorker.h:104
edm::ParameterSet
Definition: ParameterSet.h:47
ecaldqm::Collections
Collections
Definition: Collections.h:8
ecaldqm::MESetCollection::begin
auto begin()
Definition: MESet.h:392
ecaldqm::DQWorker::willConvertToEDM_
bool willConvertToEDM_
Definition: DQWorker.h:112
ecaldqm::DQWorker::setME
virtual void setME(edm::ParameterSet const &)
Definition: DQWorker.cc:53
ecaldqm::Dependency::dependant
Collections dependant
Definition: DQWorkerTask.h:20
DQWorkerTask.h
Exception
Definition: hltDiff.cc:245
ecaldqm::DQWorkerTask::fillDescriptions
static void fillDescriptions(edm::ParameterSetDescription &)
Definition: DQWorkerTask.cc:11
Exception.h
ecaldqm::DependencySet::formSequenceFragment_
void formSequenceFragment_(Dependency const &, std::vector< Collections > &, std::vector< Collections >::iterator) const
Definition: DQWorkerTask.cc:22
ecaldqm::MESetCollection::iterator
MESetColletionType::iterator iterator
Definition: MESet.h:384
ParameterSet.h