CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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:24
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:28
ecaldqm::MESetCollection::end
auto end() const
Definition: MESet.h:356
ecaldqm::DQWorkerTask::DQWorkerTask
DQWorkerTask()
Definition: DQWorkerTask.cc:8
ecaldqm::DQWorker::fillDescriptions
static void fillDescriptions(edm::ParameterSetDescription &_desc)
Definition: DQWorker.cc:19
ParameterSetDescription.h
ecaldqm::DQWorker::MEs_
MESetCollection MEs_
Definition: DQWorker.h:78
edm::ParameterSet
Definition: ParameterSet.h:47
ecaldqm::Collections
Collections
Definition: Collections.h:8
ecaldqm::MESetCollection::begin
auto begin()
Definition: MESet.h:355
ecaldqm::DQWorker::willConvertToEDM_
bool willConvertToEDM_
Definition: DQWorker.h:86
ecaldqm::DQWorker::setME
virtual void setME(edm::ParameterSet const &)
Definition: DQWorker.cc:41
ecaldqm::Dependency::dependant
Collections dependant
Definition: DQWorkerTask.h:20
DQWorkerTask.h
Exception
Definition: hltDiff.cc:246
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:347
ParameterSet.h