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 439 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 449 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::ContinueLumi::ContinueLumi ( my_context  ctx)

Definition at line 648 of file EPStates.cc.

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

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

Definition at line 655 of file EPStates.cc.

References checkInvariant().

655  {
656  checkInvariant();
657  }

Member Function Documentation

bool statemachine::ContinueLumi::checkInvariant ( )

Definition at line 659 of file EPStates.cc.

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

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

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

Definition at line 667 of file EPStates.cc.

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

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

Definition at line 676 of file EPStates.cc.

References checkInvariant().

676  {
677  checkInvariant();
678  if(!context<HandleFiles>().shouldWeCloseOutput()) {
679  return transit<HandleNewInputFile3>();
680  }
681  return forward_event();
682  }

Member Data Documentation

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

Definition at line 454 of file EPStates.h.

Referenced by ContinueLumi().