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 294 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 304 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::ContinueRun1::ContinueRun1 ( my_context  ctx)

Definition at line 326 of file EPStates.cc.

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

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

Definition at line 333 of file EPStates.cc.

References checkInvariant().

333  {
334  checkInvariant();
335  }

Member Function Documentation

bool statemachine::ContinueRun1::checkInvariant ( )

Definition at line 337 of file EPStates.cc.

References assert().

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

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

Definition at line 342 of file EPStates.cc.

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

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

Definition at line 351 of file EPStates.cc.

References checkInvariant().

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

Member Data Documentation

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

Definition at line 309 of file EPStates.h.

Referenced by ContinueRun1().