CMS 3D CMS Logo

statemachine::HandleNewInputFile3 Class Reference

#include <FWCore/Framework/src/EPStates.h>

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 (File const &file)
sc::result react (Run const &run)
 ~HandleNewInputFile3 ()


Detailed Description

Definition at line 380 of file EPStates.h.


Member Typedef Documentation

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

Definition at line 389 of file EPStates.h.


Constructor & Destructor Documentation

statemachine::HandleNewInputFile3::HandleNewInputFile3 ( my_context  ctx  ) 

Definition at line 760 of file EPStates.cc.

References checkInvariant().

00760                                                          :
00761     my_base(ctx)
00762   { 
00763     context<HandleFiles>().goToNewInputFile();
00764     checkInvariant();
00765   }

statemachine::HandleNewInputFile3::~HandleNewInputFile3 (  ) 

Definition at line 767 of file EPStates.cc.

References checkInvariant().

00767                                             {
00768     checkInvariant();
00769   }


Member Function Documentation

bool statemachine::HandleNewInputFile3::checkInvariant (  ) 

Definition at line 771 of file EPStates.cc.

References first, statemachine::INVALID_LUMI, statemachine::INVALID_RUN, and edm::second().

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

00771                                            {
00772     assert(context<HandleRuns>().currentRun() != INVALID_RUN);
00773     assert(context<HandleLumis>().currentLumi().first == context<HandleRuns>().currentRun());
00774     assert(context<HandleLumis>().currentLumi().second != INVALID_LUMI);
00775     return true;
00776   }

sc::result statemachine::HandleNewInputFile3::react ( File const &  file  ) 

Definition at line 788 of file EPStates.cc.

References checkInvariant().

00789   {
00790     checkInvariant();
00791     if (!context<HandleFiles>().shouldWeCloseOutput()) {
00792       return transit<HandleNewInputFile3>();
00793     }
00794     return forward_event();
00795   }

sc::result statemachine::HandleNewInputFile3::react ( Run const &  run  ) 

Definition at line 778 of file EPStates.cc.

References checkInvariant(), and statemachine::Run::id().

00779   {
00780     checkInvariant();
00781 
00782     if (context<HandleRuns>().currentRun() == run.id()) {
00783       return transit<ContinueRun2>();
00784     }
00785     return forward_event();
00786   }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:52:38 2009 for CMSSW by  doxygen 1.5.4