CMS 3D CMS Logo

statemachine::NewRun Class Reference

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

List of all members.

Public Types

typedef mpl::list
< sc::transition< Lumi,
HandleLumis >, sc::transition
< Run, NewRun, HandleRuns,
&HandleRuns::finalizeRun >,
sc::custom_reaction< File > > 
reactions

Public Member Functions

 NewRun (my_context ctx)
sc::result react (File const &file)
 ~NewRun ()


Detailed Description

Definition at line 248 of file EPStates.h.


Member Typedef Documentation

typedef mpl::list< sc::transition<Lumi, HandleLumis>, sc::transition<Run, NewRun, HandleRuns, &HandleRuns::finalizeRun>, sc::custom_reaction<File> > statemachine::NewRun::reactions

Definition at line 257 of file EPStates.h.


Constructor & Destructor Documentation

statemachine::NewRun::NewRun ( my_context  ctx  ) 

Definition at line 381 of file EPStates.cc.

References statemachine::INVALID_RUN.

00381                                :
00382     my_base(ctx)
00383   { 
00384     assert(context<HandleRuns>().currentRun() == INVALID_RUN);
00385     context<HandleRuns>().setupCurrentRun();
00386 
00387     // Here we assume that the input source or event processor
00388     // will throw if we fail to get a valid run.  Therefore
00389     // we should not ever fail this assert.
00390     assert(context<HandleRuns>().currentRun() != INVALID_RUN);
00391   }

statemachine::NewRun::~NewRun (  ) 

Definition at line 393 of file EPStates.cc.

00393 { }


Member Function Documentation

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

Definition at line 395 of file EPStates.cc.

00396   {
00397     if (!context<HandleFiles>().shouldWeCloseOutput()) {
00398       return transit<HandleNewInputFile2>();
00399     }
00400     return forward_event();
00401   }


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