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

Member Typedef Documentation

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

Definition at line 415 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::HandleNewInputFile3::HandleNewInputFile3 ( my_context  ctx)

Definition at line 564 of file EPStates.cc.

References checkInvariant().

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

Definition at line 570 of file EPStates.cc.

References checkInvariant().

570  {
571  checkInvariant();
572  }

Member Function Documentation

bool statemachine::HandleNewInputFile3::checkInvariant ( )

Definition at line 574 of file EPStates.cc.

References assert(), fjr2json::lumi, DTTTrigCorrFirst::run, and convertSQLiteXML::runNumber.

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

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

Definition at line 582 of file EPStates.cc.

References checkInvariant().

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

Definition at line 591 of file EPStates.cc.

References checkInvariant().

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