CMS 3D CMS Logo

statemachine::ContinueLumi Class Reference

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

List of all members.

Public Types

typedef mpl::list
< sc::transition< Event,
HandleEvent >, sc::transition
< Lumi, AnotherLumi >,
sc::custom_reaction< File > > 
reactions

Public Member Functions

bool checkInvariant ()
 ContinueLumi (my_context ctx)
sc::result react (File const &file)
 ~ContinueLumi ()

Private Attributes

edm::IEventProcessorep_


Detailed Description

Definition at line 412 of file EPStates.h.


Member Typedef Documentation

typedef mpl::list< sc::transition<Event, HandleEvent>, sc::transition<Lumi, AnotherLumi>, sc::custom_reaction<File> > statemachine::ContinueLumi::reactions

Definition at line 422 of file EPStates.h.


Constructor & Destructor Documentation

statemachine::ContinueLumi::ContinueLumi ( my_context  ctx  ) 

Definition at line 837 of file EPStates.cc.

References checkInvariant(), ep_, and edm::IEventProcessor::readAndCacheLumi().

00837                                            :
00838     my_base(ctx),
00839     ep_(context<Machine>().ep())
00840   { 
00841     ep_.readAndCacheLumi();
00842     checkInvariant();
00843   }

statemachine::ContinueLumi::~ContinueLumi (  ) 

Definition at line 845 of file EPStates.cc.

References checkInvariant().

00845                               {
00846     checkInvariant();
00847   }


Member Function Documentation

bool statemachine::ContinueLumi::checkInvariant (  ) 

Definition at line 849 of file EPStates.cc.

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

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

00849                                     {
00850     assert(context<HandleRuns>().currentRun() != INVALID_RUN);
00851     assert(context<HandleLumis>().currentLumi().first == context<HandleRuns>().currentRun());
00852     assert(context<HandleLumis>().currentLumi().second != INVALID_LUMI);
00853     return true;
00854   }

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

Definition at line 856 of file EPStates.cc.

References checkInvariant().

00857   {
00858     checkInvariant();
00859     if (!context<HandleFiles>().shouldWeCloseOutput()) {
00860       return transit<HandleNewInputFile3>();
00861     }
00862     return forward_event();
00863   }


Member Data Documentation

edm::IEventProcessor& statemachine::ContinueLumi::ep_ [private]

Definition at line 426 of file EPStates.h.

Referenced by ContinueLumi().


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