CMS 3D CMS Logo

statemachine::NewInputAndOutputFiles 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

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

Private Member Functions

void goToNewInputAndOutputFiles ()

Private Attributes

edm::IEventProcessorep_


Detailed Description

Definition at line 198 of file EPStates.h.


Member Typedef Documentation

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

Definition at line 206 of file EPStates.h.


Constructor & Destructor Documentation

statemachine::NewInputAndOutputFiles::NewInputAndOutputFiles ( my_context  ctx  ) 

Definition at line 213 of file EPStates.cc.

References goToNewInputAndOutputFiles().

00213                                                                : 
00214     my_base(ctx),
00215     ep_(context<Machine>().ep())
00216   { 
00217     goToNewInputAndOutputFiles();
00218   }

statemachine::NewInputAndOutputFiles::~NewInputAndOutputFiles (  ) 

Definition at line 220 of file EPStates.cc.

00220 { }


Member Function Documentation

void statemachine::NewInputAndOutputFiles::goToNewInputAndOutputFiles (  )  [private]

Definition at line 232 of file EPStates.cc.

References edm::IEventProcessor::closeInputFile(), edm::IEventProcessor::closeOutputFiles(), ep_, edm::IEventProcessor::openOutputFiles(), edm::IEventProcessor::readFile(), edm::IEventProcessor::respondToCloseInputFile(), edm::IEventProcessor::respondToCloseOutputFiles(), edm::IEventProcessor::respondToOpenInputFile(), edm::IEventProcessor::respondToOpenOutputFiles(), edm::IEventProcessor::writeLumiCache(), and edm::IEventProcessor::writeRunCache().

Referenced by NewInputAndOutputFiles().

00232                                                           {
00233     ep_.respondToCloseInputFile();
00234     ep_.closeInputFile();
00235 
00236     ep_.writeLumiCache();
00237     ep_.writeRunCache();
00238     ep_.respondToCloseOutputFiles();
00239     ep_.closeOutputFiles();
00240 
00241     ep_.readFile();
00242     ep_.respondToOpenInputFile();
00243 
00244     ep_.openOutputFiles();
00245     ep_.respondToOpenOutputFiles();
00246   }

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

Definition at line 222 of file EPStates.cc.

00223   {
00224     if (context<HandleFiles>().shouldWeCloseOutput()) {
00225       return transit<NewInputAndOutputFiles>();
00226     }
00227     else {
00228       return transit<HandleNewInputFile1>();
00229     }
00230   }


Member Data Documentation

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

Definition at line 214 of file EPStates.h.

Referenced by goToNewInputAndOutputFiles().


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