14 class ConsumesCollector;
24 Dependency(
Collections _d,
int _r1 = -1,
int _r2 = -1,
int _r3 = -1,
int _r4 = -1) : dependant(_d), requisite() {
35 if (_r !=
int(dependant))
38 void append(std::set<Collections>
const& _s) {
39 for (std::set<Collections>::const_iterator sItr(_s.begin()); sItr != _s.end(); ++sItr)
47 std::vector<Dependency>::iterator dItr(set_.begin());
48 std::vector<Dependency>::iterator dEnd(set_.end());
49 for (; dItr != dEnd; ++dItr)
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())
60 formSequenceFragment_(set_[iD], sequence, sequence.end());
66 std::vector<Dependency>
set_;
68 void formSequenceFragment_(
Dependency const&, std::vector<Collections>&, std::vector<Collections>::iterator)
const;
void append(Collections _r)
virtual bool analyze(void const *, Collections)
Dependency(Collections _d, int _r1=-1, int _r2=-1, int _r3=-1, int _r4=-1)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
virtual void beginEvent(edm::Event const &, edm::EventSetup const &)
virtual void addDependencies(DependencySet &)
virtual bool filterRunType(short const *)
virtual void endEvent(edm::Event const &, edm::EventSetup const &)
EcalDCCHeaderBlock::EcalDCCEventSettings EventSettings
std::vector< Collections > formSequence() const
virtual bool filterTrigger(edm::TriggerResultsByName const &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< Dependency > set_
std::set< Collections > requisite
void append(std::set< Collections > const &_s)
virtual void setTokens(edm::ConsumesCollector &)
void push_back(Dependency const &_d)