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 295 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 305 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::ContinueRun1::ContinueRun1 ( my_context  ctx)

Definition at line 330 of file EPStates.cc.

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

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

Definition at line 337 of file EPStates.cc.

References checkInvariant().

337  {
338  checkInvariant();
339  }

Member Function Documentation

bool statemachine::ContinueRun1::checkInvariant ( )

Definition at line 341 of file EPStates.cc.

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

341  {
342  assert(context<HandleRuns>().currentRun() != INVALID_RUN);
343  return true;
344  }
sc::result statemachine::ContinueRun1::react ( Run const &  run)

Definition at line 346 of file EPStates.cc.

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

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

Definition at line 355 of file EPStates.cc.

References checkInvariant().

355  {
356  checkInvariant();
357  if(!context<HandleFiles>().shouldWeCloseOutput()) {
358  return transit<HandleNewInputFile2>();
359  }
360  return forward_event();
361  }

Member Data Documentation

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

Definition at line 310 of file EPStates.h.

Referenced by ContinueRun1().