#include <EDLooperBase.h>
Public Types | |
enum | Status { kContinue, kStop } |
Protected Member Functions | |
ModuleChanger * | moduleChanger () |
This only returns a non-zero value during the call to endOfLoop. More... | |
ScheduleInfo const * | scheduleInfo () const |
This returns a non-zero value after the constructor has been called. More... | |
Private Member Functions | |
virtual void | beginLuminosityBlock (LuminosityBlock const &, EventSetup const &) |
Called after all event modules have processed the begin of a LuminosityBlock. More... | |
virtual void | beginRun (Run const &, EventSetup const &) |
Called after all event modules have processed the begin of a Run. More... | |
virtual Status | duringLoop (Event const &, EventSetup const &, ProcessingController &)=0 |
virtual void | endLuminosityBlock (LuminosityBlock const &, EventSetup const &) |
Called after all event modules have processed the end of a LuminosityBlock. More... | |
virtual Status | endOfLoop (EventSetup const &, unsigned int iCounter)=0 |
virtual void | endRun (Run const &, EventSetup const &) |
Called after all event modules have processed the end of a Run. More... | |
virtual void | startingNewLoop (unsigned int)=0 |
Private Attributes | |
ExceptionToActionTable const * | act_table_ |
unsigned int | iCounter_ |
ModuleCallingContext | moduleCallingContext_ |
edm::propagate_const< ModuleChanger * > | moduleChanger_ |
ModuleDescription | moduleDescription_ |
edm::propagate_const< std::unique_ptr< ScheduleInfo > > | scheduleInfo_ |
Definition at line 77 of file EDLooperBase.h.
Enumerator | |
---|---|
kContinue | |
kStop |
Definition at line 79 of file EDLooperBase.h.
EDLooperBase::EDLooperBase | ( | ) |
Definition at line 31 of file EDLooperBase.cc.
|
virtualnoexcept |
Definition at line 35 of file EDLooperBase.cc.
|
delete |
|
virtual |
Override this method if you need to monitor the state of the processing.
Reimplemented in FWFFLooper.
Definition at line 147 of file EDLooperBase.cc.
|
privatevirtual |
Called after all event modules have processed the begin of a LuminosityBlock.
Definition at line 144 of file EDLooperBase.cc.
Referenced by doBeginLuminosityBlock().
|
virtual |
|
virtual |
Reimplemented in ZeeCalibration, Pi0FixedMassWindowCalibration, __class__< T >, EcalEleCalibLooper, and InvRingCalib.
Definition at line 88 of file EDLooperBase.cc.
Referenced by prepareForNextLoop().
|
privatevirtual |
Called after all event modules have processed the begin of a Run.
Definition at line 142 of file EDLooperBase.cc.
Referenced by doBeginRun().
void EDLooperBase::copyInfo | ( | ScheduleInfo const & | ) |
Definition at line 157 of file EDLooperBase.cc.
References scheduleInfo_.
void EDLooperBase::doBeginLuminosityBlock | ( | LuminosityBlockPrincipal & | iLB, |
EventSetup const & | iES, | ||
ProcessContext * | processContext | ||
) |
Definition at line 117 of file EDLooperBase.cc.
References beginLuminosityBlock(), edm::LuminosityBlockPrincipal::beginTime(), edm::LuminosityBlockPrincipal::id(), edm::RunPrincipal::index(), edm::LuminosityBlockPrincipal::index(), edm::GlobalContext::kBeginLuminosityBlock, moduleCallingContext_, moduleDescription_, and edm::LuminosityBlockPrincipal::runPrincipal().
void EDLooperBase::doBeginRun | ( | RunPrincipal & | iRP, |
EventSetup const & | iES, | ||
ProcessContext * | processContext | ||
) |
Definition at line 92 of file EDLooperBase.cc.
References beginRun(), edm::RunPrincipal::beginTime(), edm::RunPrincipal::index(), edm::LuminosityBlockIndex::invalidLuminosityBlockIndex(), edm::GlobalContext::kBeginRun, moduleCallingContext_, moduleDescription_, edm::RunPrincipal::run(), and findQualityFiles::run.
EDLooperBase::Status EDLooperBase::doDuringLoop | ( | EventPrincipal & | eventPrincipal, |
EventSetup const & | es, | ||
ProcessingController & | , | ||
StreamContext * | |||
) |
Definition at line 43 of file EDLooperBase.cc.
References act_table_, mps_alisetup::action, cms::Exception::addContext(), cms::Exception::category(), duringLoop(), MillePedeFileConverter_cfg::e, event(), edm::ExceptionToActionTable::find(), edm::EventPrincipal::id(), edm::RunPrincipal::index(), edm::LuminosityBlockPrincipal::index(), kContinue, edm::StreamContext::kEvent, edm::EventPrincipal::luminosityBlockPrincipal(), moduleCallingContext_, moduleDescription_, edm::printCmsExceptionWarning(), edm::exception_actions::Rethrow, edm::LuminosityBlockPrincipal::runPrincipal(), edm::StreamContext::setEventID(), edm::StreamContext::setLuminosityBlockIndex(), edm::StreamContext::setRunIndex(), edm::StreamContext::setTimestamp(), edm::StreamContext::setTransition(), mps_update::status, and edm::EventPrincipal::time().
void EDLooperBase::doEndLuminosityBlock | ( | LuminosityBlockPrincipal & | iLB, |
EventSetup const & | iES, | ||
ProcessContext * | processContext | ||
) |
Definition at line 129 of file EDLooperBase.cc.
References edm::LuminosityBlockPrincipal::beginTime(), endLuminosityBlock(), edm::LuminosityBlockPrincipal::id(), edm::RunPrincipal::index(), edm::LuminosityBlockPrincipal::index(), edm::GlobalContext::kEndLuminosityBlock, moduleCallingContext_, moduleDescription_, and edm::LuminosityBlockPrincipal::runPrincipal().
EDLooperBase::Status EDLooperBase::doEndOfLoop | ( | EventSetup const & | es | ) |
Definition at line 73 of file EDLooperBase.cc.
References endOfLoop(), and iCounter_.
void EDLooperBase::doEndRun | ( | RunPrincipal & | iRP, |
EventSetup const & | iES, | ||
ProcessContext * | processContext | ||
) |
Definition at line 105 of file EDLooperBase.cc.
References endRun(), edm::RunPrincipal::endTime(), edm::RunPrincipal::index(), edm::LuminosityBlockIndex::invalidLuminosityBlockIndex(), edm::GlobalContext::kEndRun, moduleCallingContext_, moduleDescription_, edm::RunPrincipal::run(), and findQualityFiles::run.
void EDLooperBase::doStartingNewLoop | ( | ) |
Definition at line 38 of file EDLooperBase.cc.
References iCounter_, and startingNewLoop().
|
privatepure virtual |
Called after all event modules have had a chance to process the Event.
Implemented in edm::NavigateEventsLooper.
Referenced by doDuringLoop().
|
privatevirtual |
Called after all event modules have processed the end of a LuminosityBlock.
Definition at line 145 of file EDLooperBase.cc.
Referenced by doEndLuminosityBlock().
|
virtual |
Reimplemented in MuScleFit, ZeeCalibration, AlignmentProducer, Pi0FixedMassWindowCalibration, __class__< T >, EcalEleCalibLooper, and InvRingCalib.
Definition at line 90 of file EDLooperBase.cc.
Referenced by edm::EventProcessor::endJob().
|
privatepure virtual |
Called after the system has finished one loop over the events. Thar argument is a count of how many loops have been processed before this loo. For the first time through the events the argument will be 0.
Implemented in edm::NavigateEventsLooper, and edm::IterateNTimesLooper.
Referenced by doEndOfLoop().
|
privatevirtual |
Called after all event modules have processed the end of a Run.
Definition at line 143 of file EDLooperBase.cc.
Referenced by doEndRun().
|
virtual |
Reimplemented in edm::ESProducerLooper.
Definition at line 151 of file EDLooperBase.cc.
Referenced by prepareForNextLoop().
|
protected |
This only returns a non-zero value during the call to endOfLoop.
Definition at line 165 of file EDLooperBase.cc.
References moduleChanger_.
|
delete |
void EDLooperBase::prepareForNextLoop | ( | eventsetup::EventSetupProvider * | esp | ) |
Definition at line 78 of file EDLooperBase.cc.
References beginOfJob(), edm::for_all(), iCounter_, relativeConstraints::keys, modifyingRecords(), and edm::eventsetup::EventSetupProvider::resetRecordPlusDependentRecords().
|
protected |
This returns a non-zero value after the constructor has been called.
Definition at line 168 of file EDLooperBase.cc.
References scheduleInfo_.
|
inline |
Definition at line 105 of file EDLooperBase.h.
References Ecal2004TBTDCRanges_v1_cff::endRun.
void EDLooperBase::setModuleChanger | ( | ModuleChanger * | iChanger | ) |
Definition at line 161 of file EDLooperBase.cc.
References moduleChanger_.
|
privatepure virtual |
Called before system starts to loop over the events. The argument is a count of how many loops have been processed. For the first time through the events the argument will be 0.
Implemented in MuScleFit, ZeeCalibration, AlignmentProducer, Pi0FixedMassWindowCalibration, FWFFLooper, __class__< T >, EcalEleCalibLooper, InvRingCalib, edm::NavigateEventsLooper, edm::IterateNTimesLooper, and PhysicsTools::MVATrainerLooper.
Referenced by doStartingNewLoop().
|
private |
Definition at line 149 of file EDLooperBase.h.
Referenced by doDuringLoop().
|
private |
Definition at line 148 of file EDLooperBase.h.
Referenced by doEndOfLoop(), doStartingNewLoop(), and prepareForNextLoop().
|
private |
Definition at line 155 of file EDLooperBase.h.
Referenced by doBeginLuminosityBlock(), doBeginRun(), doDuringLoop(), doEndLuminosityBlock(), and doEndRun().
|
private |
Definition at line 152 of file EDLooperBase.h.
Referenced by moduleChanger(), and setModuleChanger().
|
private |
Definition at line 154 of file EDLooperBase.h.
Referenced by doBeginLuminosityBlock(), doBeginRun(), doDuringLoop(), doEndLuminosityBlock(), and doEndRun().
|
private |
Definition at line 151 of file EDLooperBase.h.
Referenced by copyInfo(), and scheduleInfo().