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 419 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 429 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::ContinueRun2::ContinueRun2 ( my_context  ctx)

Definition at line 598 of file EPStates.cc.

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

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

Definition at line 605 of file EPStates.cc.

References checkInvariant().

605  {
606  checkInvariant();
607  }

Member Function Documentation

bool statemachine::ContinueRun2::checkInvariant ( )

Definition at line 609 of file EPStates.cc.

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

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

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

Definition at line 617 of file EPStates.cc.

References checkInvariant().

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

Definition at line 626 of file EPStates.cc.

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

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

Definition at line 636 of file EPStates.cc.

References checkInvariant().

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

Member Data Documentation

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

Definition at line 435 of file EPStates.h.

Referenced by ContinueRun2().