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 369 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 379 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::AnotherLumi::AnotherLumi ( my_context  ctx)

Definition at line 487 of file EPStates.cc.

References checkInvariant().

487  :
488  my_base(ctx) {
489  context<HandleLumis>().finalizeLumi(false);
490  context<HandleLumis>().setupCurrentLumi();
491  checkInvariant();
492  }
statemachine::AnotherLumi::~AnotherLumi ( )

Definition at line 494 of file EPStates.cc.

References checkInvariant().

494  {
495  checkInvariant();
496  }

Member Function Documentation

bool statemachine::AnotherLumi::checkInvariant ( )

Definition at line 498 of file EPStates.cc.

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

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

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

Definition at line 507 of file EPStates.cc.

References statemachine::Lumi::id().

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

Definition at line 514 of file EPStates.cc.

References checkInvariant().

514  {
515  checkInvariant();
516  if(!context<HandleFiles>().shouldWeCloseOutput()) {
517  return transit<HandleNewInputFile3>();
518  }
519  return forward_event();
520  }