#include <FWCore/Framework/src/EPStates.h>
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::IEventProcessor & | ep_ |
Definition at line 198 of file EPStates.h.
typedef mpl::list< sc::transition<Run, HandleRuns>, sc::custom_reaction<File> > statemachine::NewInputAndOutputFiles::reactions |
Definition at line 206 of file EPStates.h.
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 | ( | ) |
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 }