CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
edm::IterateNTimesLooper Class Reference
Inheritance diagram for edm::IterateNTimesLooper:
edm::EDLooper edm::EDLooperBase

Public Member Functions

virtual Status duringLoop (Event const &, EventSetup const &)
 
virtual Status endOfLoop (EventSetup const &, unsigned int)
 
 IterateNTimesLooper (ParameterSet const &)
 
virtual void startingNewLoop (unsigned int)
 
virtual ~IterateNTimesLooper ()
 
- Public Member Functions inherited from edm::EDLooper
 EDLooper ()
 
virtual ~EDLooper ()
 
- Public Member Functions inherited from edm::EDLooperBase
virtual void attachTo (ActivityRegistry &)
 Override this method if you need to monitor the state of the processing. More...
 
virtual void beginOfJob (EventSetup const &)
 
virtual void beginOfJob ()
 
void copyInfo (ScheduleInfo const &)
 
void doBeginLuminosityBlock (LuminosityBlockPrincipal &, EventSetup const &)
 
void doBeginRun (RunPrincipal &, EventSetup const &)
 
Status doDuringLoop (EventPrincipal &eventPrincipal, EventSetup const &es, ProcessingController &)
 
void doEndLuminosityBlock (LuminosityBlockPrincipal &, EventSetup const &)
 
Status doEndOfLoop (EventSetup const &es)
 
void doEndRun (RunPrincipal &, EventSetup const &)
 
void doStartingNewLoop ()
 
 EDLooperBase ()
 
virtual void endOfJob ()
 
virtual std::set
< eventsetup::EventSetupRecordKey
modifyingRecords () const
 
void prepareForNextLoop (eventsetup::EventSetupProvider *esp)
 
void setActionTable (ActionTable const *actionTable)
 
void setModuleChanger (ModuleChanger const *)
 
virtual ~EDLooperBase ()
 

Private Member Functions

 IterateNTimesLooper (IterateNTimesLooper const &)
 
IterateNTimesLooper const & operator= (IterateNTimesLooper const &)
 

Private Attributes

unsigned int max_
 
bool shouldStop_
 
unsigned int times_
 

Additional Inherited Members

- Public Types inherited from edm::EDLooperBase
enum  Status { kContinue, kStop }
 
- Protected Member Functions inherited from edm::EDLooperBase
ModuleChanger const * moduleChanger () const
 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...
 

Detailed Description

Definition at line 22 of file IterateNTimesLooper.cc.

Constructor & Destructor Documentation

edm::IterateNTimesLooper::IterateNTimesLooper ( ParameterSet const &  iConfig)

Definition at line 52 of file IterateNTimesLooper.cc.

52  :
53  max_(iConfig.getParameter<unsigned int>("nTimes")),
54  times_(0),
55  shouldStop_(false) {
56  }
edm::IterateNTimesLooper::~IterateNTimesLooper ( )
virtual

Definition at line 63 of file IterateNTimesLooper.cc.

63  {
64  }
edm::IterateNTimesLooper::IterateNTimesLooper ( IterateNTimesLooper const &  )
private

Member Function Documentation

EDLooper::Status edm::IterateNTimesLooper::duringLoop ( Event const &  ,
EventSetup const &   
)
virtual

Called after all event modules have had a chance to process the edm::Event.

Implements edm::EDLooper.

Definition at line 89 of file IterateNTimesLooper.cc.

References edm::EDLooperBase::kContinue, edm::EDLooperBase::kStop, and shouldStop_.

EDLooper::Status edm::IterateNTimesLooper::endOfLoop ( EventSetup const &  ,
unsigned  iCounter 
)
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.

Implements edm::EDLooperBase.

Definition at line 94 of file IterateNTimesLooper.cc.

References edm::EDLooperBase::kContinue, edm::EDLooperBase::kStop, max_, and times_.

IterateNTimesLooper const& edm::IterateNTimesLooper::operator= ( IterateNTimesLooper const &  )
private
void edm::IterateNTimesLooper::startingNewLoop ( unsigned  int)
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.

Implements edm::EDLooperBase.

Definition at line 81 of file IterateNTimesLooper.cc.

References max_, shouldStop_, and times_.

81  {
82  times_ = iIteration;
83  if (iIteration >= max_) {
84  shouldStop_ = true;
85  }
86  }

Member Data Documentation

unsigned int edm::IterateNTimesLooper::max_
private

Definition at line 43 of file IterateNTimesLooper.cc.

Referenced by endOfLoop(), and startingNewLoop().

bool edm::IterateNTimesLooper::shouldStop_
private

Definition at line 45 of file IterateNTimesLooper.cc.

Referenced by duringLoop(), and startingNewLoop().

unsigned int edm::IterateNTimesLooper::times_
private

Definition at line 44 of file IterateNTimesLooper.cc.

Referenced by endOfLoop(), and startingNewLoop().