CMS 3D CMS Logo

Public Types | Public Member Functions

statemachine::HandleNewInputFile3 Class Reference

#include <EPStates.h>

Inheritance diagram for statemachine::HandleNewInputFile3:
state

List of all members.

Public Types

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

Public Member Functions

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

Detailed Description

Definition at line 405 of file EPStates.h.


Member Typedef Documentation

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

Definition at line 414 of file EPStates.h.


Constructor & Destructor Documentation

statemachine::HandleNewInputFile3::HandleNewInputFile3 ( my_context  ctx)

Definition at line 567 of file EPStates.cc.

References checkInvariant().

                                                         :
      my_base(ctx) {
    context<HandleFiles>().goToNewInputFile();
    checkInvariant();
  }
statemachine::HandleNewInputFile3::~HandleNewInputFile3 ( )

Definition at line 573 of file EPStates.cc.

References checkInvariant().


Member Function Documentation

bool statemachine::HandleNewInputFile3::checkInvariant ( )

Definition at line 577 of file EPStates.cc.

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

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

                                           {
    assert(context<HandleRuns>().currentRun() != INVALID_RUN);
    assert(context<HandleLumis>().currentLumi().processHistoryID() == context<HandleRuns>().currentRun().processHistoryID());
    assert(context<HandleLumis>().currentLumi().run() == context<HandleRuns>().currentRun().runNumber());
    assert(context<HandleLumis>().currentLumi().lumi() != INVALID_LUMI);
    return true;
  }
sc::result statemachine::HandleNewInputFile3::react ( File const &  file)

Definition at line 594 of file EPStates.cc.

References checkInvariant().

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

Definition at line 585 of file EPStates.cc.

References checkInvariant().

                                                    {
    checkInvariant();

    if(context<HandleRuns>().currentRun() == run) {
      return transit<ContinueRun2>();
    }
    return forward_event();
  }