CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
statemachine::ContinueRun1 Class Reference

#include <EPStates.h>

Inheritance diagram for statemachine::ContinueRun1:

Public Types

typedef mpl::list
< sc::custom_reaction< Run >
, sc::custom_reaction< File >
, sc::transition< Lumi,
HandleLumis > > 
reactions
 

Public Member Functions

bool checkInvariant ()
 
 ContinueRun1 (my_context ctx)
 
sc::result react (Run const &run)
 
sc::result react (File const &file)
 
 ~ContinueRun1 ()
 

Private Attributes

edm::IEventProcessorep_
 

Detailed Description

Definition at line 296 of file EPStates.h.

Member Typedef Documentation

typedef mpl::list< sc::custom_reaction<Run>, sc::custom_reaction<File>, sc::transition<Lumi, HandleLumis> > statemachine::ContinueRun1::reactions

Definition at line 306 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::ContinueRun1::ContinueRun1 ( my_context  ctx)

Definition at line 327 of file EPStates.cc.

References checkInvariant(), ep_, and edm::IEventProcessor::readAndMergeRun().

327  :
328  my_base(ctx),
329  ep_(context<Machine>().ep()) {
331  checkInvariant();
332  }
edm::IEventProcessor & ep_
Definition: EPStates.h:311
virtual statemachine::Run readAndMergeRun()=0
statemachine::ContinueRun1::~ContinueRun1 ( )

Definition at line 334 of file EPStates.cc.

References checkInvariant().

334  {
335  checkInvariant();
336  }

Member Function Documentation

bool statemachine::ContinueRun1::checkInvariant ( )

Definition at line 338 of file EPStates.cc.

References assert().

Referenced by ContinueRun1(), react(), and ~ContinueRun1().

338  {
339  assert(context<HandleRuns>().currentRun() != INVALID_RUN);
340  return true;
341  }
assert(m_qm.get())
sc::result statemachine::ContinueRun1::react ( Run const &  run)

Definition at line 343 of file EPStates.cc.

References checkInvariant(), statemachine::HandleRuns::finalizeRun(), and DTTTrigCorrFirst::run.

343  {
344  checkInvariant();
345  if(context<HandleRuns>().currentRun() != run) {
346  return transit<NewRun, HandleRuns, Run>(&HandleRuns::finalizeRun, run);
347  } else {
348  return transit<ContinueRun1>();
349  }
350  }
void finalizeRun(Run const &)
Definition: EPStates.cc:246
sc::result statemachine::ContinueRun1::react ( File const &  file)

Definition at line 352 of file EPStates.cc.

References checkInvariant().

352  {
353  checkInvariant();
354  if(!context<HandleFiles>().shouldWeCloseOutput()) {
355  return transit<HandleNewInputFile2>();
356  }
357  return forward_event();
358  }

Member Data Documentation

edm::IEventProcessor& statemachine::ContinueRun1::ep_
private

Definition at line 311 of file EPStates.h.

Referenced by ContinueRun1().