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

Member Typedef Documentation

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

Definition at line 412 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::HandleNewInputFile3::HandleNewInputFile3 ( my_context  ctx)

Definition at line 567 of file EPStates.cc.

References checkInvariant().

567  :
568  my_base(ctx) {
569  context<HandleFiles>().goToNewInputFile();
570  checkInvariant();
571  }
statemachine::HandleNewInputFile3::~HandleNewInputFile3 ( )

Definition at line 573 of file EPStates.cc.

References checkInvariant().

573  {
574  checkInvariant();
575  }

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().

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

Definition at line 585 of file EPStates.cc.

References checkInvariant().

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

Definition at line 594 of file EPStates.cc.

References checkInvariant().

594  {
595  checkInvariant();
596  if(!context<HandleFiles>().shouldWeCloseOutput()) {
597  return transit<HandleNewInputFile3>();
598  }
599  return forward_event();
600  }