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::NewRun Class Reference

#include <EPStates.h>

Inheritance diagram for statemachine::NewRun:

Public Types

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

Public Member Functions

 NewRun (my_context ctx)
 
sc::result react (Run const &run)
 
sc::result react (File const &file)
 
 ~NewRun ()
 

Detailed Description

Definition at line 261 of file EPStates.h.

Member Typedef Documentation

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

Definition at line 270 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::NewRun::NewRun ( my_context  ctx)

Definition at line 326 of file EPStates.cc.

326  :
327  my_base(ctx)
328  {
329  assert(context<HandleRuns>().currentRun() == INVALID_RUN);
330  context<HandleRuns>().setupCurrentRun();
331 
332  // Here we assume that the input source or event processor
333  // will throw if we fail to get a valid run. Therefore
334  // we should not ever fail this assert.
335  assert(context<HandleRuns>().currentRun() != INVALID_RUN);
336  }
statemachine::NewRun::~NewRun ( )

Definition at line 338 of file EPStates.cc.

338 { }

Member Function Documentation

sc::result statemachine::NewRun::react ( Run const &  run)

Definition at line 340 of file EPStates.cc.

341  {
342  if (run == context<HandleRuns>().currentRun()) {
343  return transit<ContinueRun1>();
344  }
345  context<HandleRuns>().finalizeRun();
346  return transit<NewRun>();
347  }
sc::result statemachine::NewRun::react ( File const &  file)

Definition at line 349 of file EPStates.cc.

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