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

#include <EPStates.h>

Inheritance diagram for statemachine::FirstLumi:

Public Types

typedef mpl::list
< sc::transition< Event,
HandleEvent >
, sc::custom_reaction< Lumi >
, sc::custom_reaction< File > > 
reactions
 

Public Member Functions

bool checkInvariant ()
 
 FirstLumi (my_context ctx)
 
sc::result react (Lumi const &lumi)
 
sc::result react (File const &file)
 
 ~FirstLumi ()
 

Detailed Description

Definition at line 353 of file EPStates.h.

Member Typedef Documentation

typedef mpl::list< sc::transition<Event, HandleEvent>, sc::custom_reaction<Lumi>, sc::custom_reaction<File> > statemachine::FirstLumi::reactions

Definition at line 363 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::FirstLumi::FirstLumi ( my_context  ctx)

Definition at line 453 of file EPStates.cc.

References checkInvariant().

453  :
454  my_base(ctx) {
455  context<HandleLumis>().setupCurrentLumi();
456  checkInvariant();
457  }
statemachine::FirstLumi::~FirstLumi ( )

Definition at line 459 of file EPStates.cc.

References checkInvariant().

459  {
460  checkInvariant();
461  }

Member Function Documentation

bool statemachine::FirstLumi::checkInvariant ( )

Definition at line 463 of file EPStates.cc.

References assert(), fjr2json::lumi, DTTTrigCorrFirst::run, and convertSQLiteXML::runNumber.

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

463  {
464  assert(context<HandleRuns>().currentRun() != INVALID_RUN);
465  assert(context<HandleLumis>().currentLumi().processHistoryID() == context<HandleRuns>().currentRun().processHistoryID());
466  assert(context<HandleLumis>().currentLumi().run() == context<HandleRuns>().currentRun().runNumber());
467  assert(context<HandleLumis>().currentLumi().lumi() != INVALID_LUMI);
468  assert(context<HandleLumis>().currentLumiEmpty() == true);
469  return true;
470  }
tuple lumi
Definition: fjr2json.py:35
assert(m_qm.get())
sc::result statemachine::FirstLumi::react ( Lumi const &  lumi)

Definition at line 472 of file EPStates.cc.

References statemachine::Lumi::id().

472  {
473  if(lumi.id() == context<HandleLumis>().currentLumi().lumi()) {
474  return transit<ContinueLumi>();
475  }
476  return transit<AnotherLumi>();
477  }
tuple lumi
Definition: fjr2json.py:35
sc::result statemachine::FirstLumi::react ( File const &  file)

Definition at line 479 of file EPStates.cc.

References checkInvariant().

479  {
480  checkInvariant();
481  if(!context<HandleFiles>().shouldWeCloseOutput()) {
482  return transit<HandleNewInputFile3>();
483  }
484  return forward_event();
485  }