#include <DQWorkerTask.h>
Definition at line 44 of file DQWorkerTask.h.
◆ DependencySet()
ecaldqm::DependencySet::DependencySet |
( |
| ) |
|
|
inline |
◆ formSequence()
std::vector<Collections> ecaldqm::DependencySet::formSequence |
( |
| ) |
const |
|
inline |
Definition at line 55 of file DQWorkerTask.h.
References spr::find(), formSequenceFragment_(), and set_.
56 std::vector<Collections> sequence;
57 for (
unsigned iD(0); iD <
set_.size(); iD++) {
58 if (
std::find(sequence.begin(), sequence.end(),
set_[iD].dependant) != sequence.end())
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
std::vector< Dependency > set_
◆ formSequenceFragment_()
void ecaldqm::DependencySet::formSequenceFragment_ |
( |
Dependency const & |
_d, |
|
|
std::vector< Collections > & |
_sequence, |
|
|
std::vector< Collections >::iterator |
_maxPos |
|
) |
| const |
|
private |
Definition at line 22 of file DQWorkerTask.cc.
References cuy::col, ecaldqm::Dependency::dependant, Exception, spr::find(), ecaldqm::Dependency::requisite, and set_.
Referenced by formSequence().
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)
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
std::vector< Dependency > set_
◆ push_back()
void ecaldqm::DependencySet::push_back |
( |
Dependency const & |
_d | ) |
|
|
inline |
◆ set_
std::vector<Dependency> ecaldqm::DependencySet::set_ |
|
private |