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

#include <EPStates.h>

Inheritance diagram for statemachine::AnotherLumi:

Public Types

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

Public Member Functions

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

Detailed Description

Definition at line 370 of file EPStates.h.

Member Typedef Documentation

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

Definition at line 380 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::AnotherLumi::AnotherLumi ( my_context  ctx)

Definition at line 491 of file EPStates.cc.

References checkInvariant().

491  :
492  my_base(ctx) {
493  context<HandleLumis>().finalizeLumi(false);
494  context<HandleLumis>().setupCurrentLumi();
495  checkInvariant();
496  }
statemachine::AnotherLumi::~AnotherLumi ( )

Definition at line 498 of file EPStates.cc.

References checkInvariant().

498  {
499  checkInvariant();
500  }

Member Function Documentation

bool statemachine::AnotherLumi::checkInvariant ( )

Definition at line 502 of file EPStates.cc.

References fjr2json::lumi, DTTTrigCorrFirst::run, and convertSQLiteXML::runNumber.

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

502  {
503  assert(context<HandleRuns>().currentRun() != INVALID_RUN);
504  assert(context<HandleLumis>().currentLumi().processHistoryID() == context<HandleRuns>().currentRun().processHistoryID());
505  assert(context<HandleLumis>().currentLumi().run() == context<HandleRuns>().currentRun().runNumber());
506  assert(context<HandleLumis>().currentLumi().lumi() != INVALID_LUMI);
507  assert(context<HandleLumis>().currentLumiEmpty() == true);
508  return true;
509  }
tuple lumi
Definition: fjr2json.py:35
sc::result statemachine::AnotherLumi::react ( Lumi const &  lumi)

Definition at line 511 of file EPStates.cc.

References statemachine::Lumi::id().

511  {
512  if(lumi.id() == context<HandleLumis>().currentLumi().lumi()) {
513  return transit<ContinueLumi>();
514  }
515  return transit<AnotherLumi>();
516  }
tuple lumi
Definition: fjr2json.py:35
sc::result statemachine::AnotherLumi::react ( File const &  file)

Definition at line 518 of file EPStates.cc.

References checkInvariant().

518  {
519  checkInvariant();
520  if(!context<HandleFiles>().shouldWeCloseOutput()) {
521  return transit<HandleNewInputFile3>();
522  }
523  return forward_event();
524  }