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 | Private Attributes
statemachine::ContinueRun2 Class Reference

#include <EPStates.h>

Inheritance diagram for statemachine::ContinueRun2:

Public Types

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

Public Member Functions

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

Private Attributes

edm::IEventProcessorep_
 

Detailed Description

Definition at line 421 of file EPStates.h.

Member Typedef Documentation

typedef mpl::list< sc::custom_reaction<Run>, sc::custom_reaction<Lumi>, sc::custom_reaction<File> > statemachine::ContinueRun2::reactions

Definition at line 431 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::ContinueRun2::ContinueRun2 ( my_context  ctx)

Definition at line 599 of file EPStates.cc.

References checkInvariant(), ep_, and edm::IEventProcessor::readAndMergeRun().

599  :
600  my_base(ctx),
601  ep_(context<Machine>().ep()) {
603  checkInvariant();
604  }
edm::IEventProcessor & ep_
Definition: EPStates.h:437
virtual statemachine::Run readAndMergeRun()=0
statemachine::ContinueRun2::~ContinueRun2 ( )

Definition at line 606 of file EPStates.cc.

References checkInvariant().

606  {
607  checkInvariant();
608  }

Member Function Documentation

bool statemachine::ContinueRun2::checkInvariant ( )

Definition at line 610 of file EPStates.cc.

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

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

610  {
611  assert(context<HandleRuns>().currentRun() != INVALID_RUN);
612  assert(context<HandleLumis>().currentLumi().processHistoryID() == context<HandleRuns>().currentRun().processHistoryID());
613  assert(context<HandleLumis>().currentLumi().run() == context<HandleRuns>().currentRun().runNumber());
614  assert(context<HandleLumis>().currentLumi().lumi() != INVALID_LUMI);
615  return true;
616  }
tuple lumi
Definition: fjr2json.py:35
assert(m_qm.get())
sc::result statemachine::ContinueRun2::react ( Run const &  run)

Definition at line 618 of file EPStates.cc.

References checkInvariant().

618  {
619  checkInvariant();
620  if(context<HandleRuns>().currentRun() != run) {
621  return forward_event();
622  } else {
623  return transit<ContinueRun2>();
624  }
625  }
sc::result statemachine::ContinueRun2::react ( Lumi const &  lumi)

Definition at line 627 of file EPStates.cc.

References checkInvariant(), statemachine::Lumi::id(), and fjr2json::lumi.

627  {
628  checkInvariant();
629 
630  if(context<HandleLumis>().currentLumi().lumi() != lumi.id()) {
631  return transit<AnotherLumi>();
632  } else {
633  return transit<ContinueLumi>();
634  }
635  }
tuple lumi
Definition: fjr2json.py:35
sc::result statemachine::ContinueRun2::react ( File const &  file)

Definition at line 637 of file EPStates.cc.

References checkInvariant().

637  {
638  checkInvariant();
639  if(!context<HandleFiles>().shouldWeCloseOutput()) {
640  return transit<HandleNewInputFile3>();
641  }
642  return forward_event();
643  }

Member Data Documentation

edm::IEventProcessor& statemachine::ContinueRun2::ep_
private

Definition at line 437 of file EPStates.h.

Referenced by ContinueRun2().