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
statemachine::HandleNewInputFile3 Class Reference

#include <EPStates.h>

Inheritance diagram for statemachine::HandleNewInputFile3:

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

Member Typedef Documentation

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

Definition at line 413 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::HandleNewInputFile3::HandleNewInputFile3 ( my_context  ctx)

Definition at line 563 of file EPStates.cc.

References checkInvariant().

563  :
564  my_base(ctx) {
565  context<HandleFiles>().goToNewInputFile();
566  checkInvariant();
567  }
statemachine::HandleNewInputFile3::~HandleNewInputFile3 ( )

Definition at line 569 of file EPStates.cc.

References checkInvariant().

569  {
570  checkInvariant();
571  }

Member Function Documentation

bool statemachine::HandleNewInputFile3::checkInvariant ( )

Definition at line 573 of file EPStates.cc.

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

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

573  {
574  assert(context<HandleRuns>().currentRun() != INVALID_RUN);
575  assert(context<HandleLumis>().currentLumi().processHistoryID() == context<HandleRuns>().currentRun().processHistoryID());
576  assert(context<HandleLumis>().currentLumi().run() == context<HandleRuns>().currentRun().runNumber());
577  assert(context<HandleLumis>().currentLumi().lumi() != INVALID_LUMI);
578  return true;
579  }
tuple lumi
Definition: fjr2json.py:35
sc::result statemachine::HandleNewInputFile3::react ( Run const &  run)

Definition at line 581 of file EPStates.cc.

References checkInvariant().

581  {
582  checkInvariant();
583 
584  if(context<HandleRuns>().currentRun() == run) {
585  return transit<ContinueRun2>();
586  }
587  return forward_event();
588  }
sc::result statemachine::HandleNewInputFile3::react ( File const &  file)

Definition at line 590 of file EPStates.cc.

References checkInvariant().

590  {
591  checkInvariant();
592  if(!context<HandleFiles>().shouldWeCloseOutput()) {
593  return transit<HandleNewInputFile3>();
594  }
595  return forward_event();
596  }