#include <DQWorkerTask.h>
Definition at line 46 of file DQWorkerTask.h.
ecaldqm::DependencySet::DependencySet |
( |
| ) |
|
|
inline |
std::vector<Collections> ecaldqm::DependencySet::formSequence |
( |
| ) |
const |
|
inline |
Definition at line 58 of file DQWorkerTask.h.
References spr::find(), and lumiContext::sequence.
Referenced by EcalDQMonitorTask::EcalDQMonitorTask().
61 for(
unsigned iD(0); iD <
set_.size(); iD++){
62 if(
std::find(sequence.begin(), sequence.end(),
set_[iD].dependant) != sequence.end())
continue;
void formSequenceFragment_(Dependency const &, std::vector< Collections > &, std::vector< Collections >::iterator) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< Dependency > set_
void ecaldqm::DependencySet::formSequenceFragment_ |
( |
Dependency const & |
_d, |
|
|
std::vector< Collections > & |
_sequence, |
|
|
std::vector< Collections >::iterator |
_maxPos |
|
) |
| const |
|
private |
Definition at line 57 of file DQWorkerTask.cc.
References cuy::col, ecaldqm::Dependency::dependant, Exception, spr::find(), and ecaldqm::Dependency::requisite.
60 std::vector<Collections>::iterator
pos(
std::find(_sequence.begin(), _sequence.end(),
col));
61 if(
pos == _sequence.end()) _sequence.insert(_maxPos,
col);
62 else if(
pos < _maxPos)
return;
64 throw cms::Exception(
"InvalidConfiguration") <<
"Circular dependency of collections";
66 for(std::set<Collections>::const_iterator rItr(_d.requisite.begin()); rItr != _d.requisite.end(); ++rItr){
67 for(std::vector<Dependency>::const_iterator dItr(
set_.begin()); dItr !=
set_.end(); ++dItr){
68 if(dItr->dependant != *rItr)
continue;
void formSequenceFragment_(Dependency const &, std::vector< Collections > &, std::vector< Collections >::iterator) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< Dependency > set_
void ecaldqm::DependencySet::push_back |
( |
Dependency const & |
_d | ) |
|
|
inline |
std::vector<Dependency> ecaldqm::DependencySet::set_ |
|
private |