#include <IntersectingIOVRecordIntervalFinder.h>
IntersectingIOVRecordIntervalFinder::IntersectingIOVRecordIntervalFinder |
( |
const EventSetupRecordKey & |
iKey | ) |
|
|
explicit |
IntersectingIOVRecordIntervalFinder::~IntersectingIOVRecordIntervalFinder |
( |
| ) |
|
|
virtual |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 68 of file IntersectingIOVRecordIntervalFinder.cc.
References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), finders_, edm::ValidityInterval::first(), edm::ValidityInterval::invalidInterval(), edm::IOVSyncValue::invalidIOVSyncValue(), edm::ValidityInterval::last(), edm::ValidityInterval::setFirst(), edm::ValidityInterval::setLast(), and run_regression::test.
77 bool haveAValidRecord =
false;
78 bool haveUnknownEnding =
false;
81 for(std::vector<boost::shared_ptr<EventSetupRecordIntervalFinder> >::iterator it =
finders_.begin(),
82 itEnd =
finders_.end(); it != itEnd; ++it) {
85 haveAValidRecord =
true;
86 if(newInterval.first() < test.first()) {
87 newInterval.setFirst(test.first());
89 if(newInterval.last() > test.last()) {
90 newInterval.setLast(test.last());
93 haveUnknownEnding=
true;
98 haveUnknownEnding=
true;
102 if(!haveAValidRecord) {
105 }
else if(haveUnknownEnding) {
108 oInterval = newInterval;
static const IOVSyncValue & endOfTime()
static const IOVSyncValue & beginOfTime()
std::vector< boost::shared_ptr< EventSetupRecordIntervalFinder > > finders_
static const ValidityInterval & invalidInterval()
static const IOVSyncValue & invalidIOVSyncValue()