test
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::ContinueLumi Class Reference

#include <EPStates.h>

Inheritance diagram for statemachine::ContinueLumi:

Public Types

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

Public Member Functions

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

Private Attributes

edm::IEventProcessorep_
 

Detailed Description

Definition at line 440 of file EPStates.h.

Member Typedef Documentation

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

Definition at line 450 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::ContinueLumi::ContinueLumi ( my_context  ctx)

Definition at line 645 of file EPStates.cc.

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

645  :
646  my_base(ctx),
647  ep_(context<Machine>().ep()) {
649  checkInvariant();
650  }
edm::IEventProcessor & ep_
Definition: EPStates.h:455
virtual int readAndMergeLumi()=0
statemachine::ContinueLumi::~ContinueLumi ( )

Definition at line 652 of file EPStates.cc.

References checkInvariant().

652  {
653  checkInvariant();
654  }

Member Function Documentation

bool statemachine::ContinueLumi::checkInvariant ( )

Definition at line 656 of file EPStates.cc.

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

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

656  {
657  assert(context<HandleRuns>().currentRun() != INVALID_RUN);
658  assert(context<HandleLumis>().currentLumi().processHistoryID() == context<HandleRuns>().currentRun().processHistoryID());
659  assert(context<HandleLumis>().currentLumi().run() == context<HandleRuns>().currentRun().runNumber());
660  assert(context<HandleLumis>().currentLumi().lumi() != INVALID_LUMI);
661  return true;
662  }
tuple lumi
Definition: fjr2json.py:35
assert(m_qm.get())
sc::result statemachine::ContinueLumi::react ( Lumi const &  lumi)

Definition at line 664 of file EPStates.cc.

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

664  {
665  checkInvariant();
666  if(context<HandleLumis>().currentLumi().lumi() != lumi.id()) {
667  return transit<AnotherLumi>();
668  } else {
669  return transit<ContinueLumi>();
670  }
671  }
tuple lumi
Definition: fjr2json.py:35
sc::result statemachine::ContinueLumi::react ( File const &  file)

Definition at line 673 of file EPStates.cc.

References checkInvariant().

673  {
674  checkInvariant();
675  if(!context<HandleFiles>().shouldWeCloseOutput()) {
676  return transit<HandleNewInputFile3>();
677  }
678  return forward_event();
679  }

Member Data Documentation

edm::IEventProcessor& statemachine::ContinueLumi::ep_
private

Definition at line 455 of file EPStates.h.

Referenced by ContinueLumi().