CMS 3D CMS Logo

statemachine::FirstFile Class Reference

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

List of all members.

Public Types

typedef mpl::list
< sc::transition< Run,
HandleRuns >,
sc::custom_reaction< File > > 
reactions

Public Member Functions

 FirstFile (my_context ctx)
void openFiles ()
sc::result react (File const &file)
 ~FirstFile ()

Private Attributes

edm::IEventProcessorep_


Detailed Description

Definition at line 169 of file EPStates.h.


Member Typedef Documentation

typedef mpl::list< sc::transition<Run, HandleRuns>, sc::custom_reaction<File> > statemachine::FirstFile::reactions

Definition at line 177 of file EPStates.h.


Constructor & Destructor Documentation

statemachine::FirstFile::FirstFile ( my_context  ctx  ) 

Definition at line 168 of file EPStates.cc.

References openFiles().

00168                                      :
00169     my_base(ctx),
00170     ep_(context<Machine>().ep())
00171   { 
00172     openFiles();
00173   }

statemachine::FirstFile::~FirstFile (  ) 

Definition at line 175 of file EPStates.cc.

00175 { }


Member Function Documentation

void statemachine::FirstFile::openFiles (  ) 

Definition at line 187 of file EPStates.cc.

References ep_, edm::IEventProcessor::openOutputFiles(), edm::IEventProcessor::readFile(), edm::IEventProcessor::respondToOpenInputFile(), and edm::IEventProcessor::respondToOpenOutputFiles().

Referenced by FirstFile().

00187                             {
00188     ep_.readFile();
00189     ep_.respondToOpenInputFile();
00190 
00191     ep_.openOutputFiles();
00192     ep_.respondToOpenOutputFiles();
00193   }

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

Definition at line 177 of file EPStates.cc.

00178   {
00179     if (context<HandleFiles>().shouldWeCloseOutput()) {
00180       return transit<NewInputAndOutputFiles>();
00181     }
00182     else {
00183       return transit<HandleNewInputFile1>();
00184     }
00185   }


Member Data Documentation

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

Definition at line 182 of file EPStates.h.

Referenced by openFiles().


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