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 269 of file EPStates.cc.

269  :
270  my_base(ctx) {
271  assert(context<HandleRuns>().currentRun() == INVALID_RUN);
272  context<HandleRuns>().setupCurrentRun();
273 
274  // Here we assume that the input source or event processor
275  // will throw if we fail to get a valid run. Therefore
276  // we should not ever fail this assert.
277  assert(context<HandleRuns>().currentRun() != INVALID_RUN);
278  }
statemachine::NewRun::~NewRun ( )

Definition at line 280 of file EPStates.cc.

280 { }

Member Function Documentation

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

Definition at line 282 of file EPStates.cc.

282  {
283  if(run == context<HandleRuns>().currentRun()) {
284  return transit<ContinueRun1>();
285  }
286  context<HandleRuns>().finalizeRun(false);
287  return transit<NewRun>();
288  }
sc::result statemachine::NewRun::react ( File const &  file)

Definition at line 290 of file EPStates.cc.

290  {
291  if(!context<HandleFiles>().shouldWeCloseOutput()) {
292  return transit<HandleNewInputFile2>();
293  }
294  return forward_event();
295  }