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
statemachine::HandleNewInputFile2 Class Reference

#include <EPStates.h>

Inheritance diagram for statemachine::HandleNewInputFile2:

Public Types

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

Public Member Functions

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

Detailed Description

Definition at line 278 of file EPStates.h.

Member Typedef Documentation

typedef mpl::list< sc::custom_reaction<Run>, sc::custom_reaction<File> > statemachine::HandleNewInputFile2::reactions

Definition at line 287 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::HandleNewInputFile2::HandleNewInputFile2 ( my_context  ctx)

Definition at line 357 of file EPStates.cc.

References checkInvariant().

357  :
358  my_base(ctx)
359  {
360  context<HandleFiles>().goToNewInputFile();
361  checkInvariant();
362  }
statemachine::HandleNewInputFile2::~HandleNewInputFile2 ( )

Definition at line 364 of file EPStates.cc.

References checkInvariant().

364  {
365  checkInvariant();
366  }

Member Function Documentation

bool statemachine::HandleNewInputFile2::checkInvariant ( )

Definition at line 368 of file EPStates.cc.

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

368  {
369  assert(context<HandleRuns>().currentRun() != INVALID_RUN);
370  return true;
371  }
sc::result statemachine::HandleNewInputFile2::react ( Run const &  run)

Definition at line 373 of file EPStates.cc.

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

374  {
375  checkInvariant();
376 
377  if (context<HandleRuns>().currentRun() != run) {
378  return transit<NewRun, HandleRuns, Run>(&HandleRuns::finalizeRun, run);
379  }
380  else {
381  return transit<ContinueRun1>();
382  }
383  }
sc::result statemachine::HandleNewInputFile2::react ( File const &  file)

Definition at line 385 of file EPStates.cc.

References checkInvariant().

386  {
387  checkInvariant();
388  if (!context<HandleFiles>().shouldWeCloseOutput()) {
389  return transit<HandleNewInputFile2>();
390  }
391  return forward_event();
392  }