CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

statemachine::ContinueRun1 Class Reference

#include <EPStates.h>

Inheritance diagram for statemachine::ContinueRun1:
state

List of all members.

Public Types

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

Public Member Functions

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

Private Attributes

edm::IEventProcessorep_

Detailed Description

Definition at line 293 of file EPStates.h.


Member Typedef Documentation

typedef mpl::list< sc::custom_reaction<Run>, sc::custom_reaction<File>, sc::transition<Lumi, HandleLumis> > statemachine::ContinueRun1::reactions

Definition at line 303 of file EPStates.h.


Constructor & Destructor Documentation

statemachine::ContinueRun1::ContinueRun1 ( my_context  ctx)

Definition at line 330 of file EPStates.cc.

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

                                           :
      my_base(ctx),
      ep_(context<Machine>().ep()) {
    ep_.readAndCacheRun();
    checkInvariant();
  }
statemachine::ContinueRun1::~ContinueRun1 ( )

Definition at line 337 of file EPStates.cc.

References checkInvariant().


Member Function Documentation

bool statemachine::ContinueRun1::checkInvariant ( )

Definition at line 341 of file EPStates.cc.

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

                                    {
    assert(context<HandleRuns>().currentRun() != INVALID_RUN);
    return true;
  }
sc::result statemachine::ContinueRun1::react ( File const &  file)

Definition at line 355 of file EPStates.cc.

References checkInvariant().

                                          {
    checkInvariant();
    if(!context<HandleFiles>().shouldWeCloseOutput()) {
      return transit<HandleNewInputFile2>();
    }
    return forward_event();
  }
sc::result statemachine::ContinueRun1::react ( Run const &  run)

Definition at line 346 of file EPStates.cc.

References checkInvariant(), statemachine::HandleRuns::finalizeRun(), and DTTTrigCorrFirst::run.

                                             {
    checkInvariant();
    if(context<HandleRuns>().currentRun() != run) {
      return transit<NewRun, HandleRuns, Run>(&HandleRuns::finalizeRun, run);
    } else {
      return transit<ContinueRun1>();
    }
  }

Member Data Documentation

Definition at line 308 of file EPStates.h.

Referenced by ContinueRun1().