#include <EPStates.h>
Public Types | |
typedef mpl::list < sc::transition< Event, Error > , sc::transition< Lumi, Error > , sc::transition< Run, Error > , sc::transition< File, Error > , sc::transition< Stop, EndingLoop >, sc::transition < Restart, Error > > | reactions |
Public Member Functions | |
void | closeFiles () |
void | exit () |
void | goToNewInputFile () |
HandleFiles (my_context ctx) | |
bool | shouldWeCloseOutput () |
~HandleFiles () | |
Private Attributes | |
edm::IEventProcessor & | ep_ |
bool | exitCalled_ |
Definition at line 134 of file EPStates.h.
typedef mpl::list< sc::transition<Event, Error>, sc::transition<Lumi, Error>, sc::transition<Run, Error>, sc::transition<File, Error>, sc::transition<Stop, EndingLoop>, sc::transition<Restart, Error> > statemachine::HandleFiles::reactions |
Definition at line 147 of file EPStates.h.
statemachine::HandleFiles::HandleFiles | ( | my_context | ctx | ) |
Definition at line 55 of file EPStates.cc.
: my_base(ctx), ep_(context<Machine>().ep()), exitCalled_(false) { }
statemachine::HandleFiles::~HandleFiles | ( | ) |
Definition at line 66 of file EPStates.cc.
References closeFiles(), ep_, exitCalled_, python::rootplot::argparse::message, and edm::IEventProcessor::setExceptionMessageFiles().
{ if(!exitCalled_) { try { closeFiles(); } catch(...) { std::string message("Another exception was caught while trying to clean up files after the primary fatal exception."); ep_.setExceptionMessageFiles(message); } } }
void statemachine::HandleFiles::closeFiles | ( | ) |
Definition at line 78 of file EPStates.cc.
References edm::IEventProcessor::closeInputFile(), edm::IEventProcessor::closeOutputFiles(), ep_, edm::IEventProcessor::respondToCloseInputFile(), and edm::IEventProcessor::respondToCloseOutputFiles().
Referenced by exit(), and ~HandleFiles().
{ ep_.respondToCloseInputFile(); ep_.closeInputFile(); ep_.respondToCloseOutputFiles(); ep_.closeOutputFiles(); }
void statemachine::HandleFiles::exit | ( | ) |
Definition at line 60 of file EPStates.cc.
References edm::IEventProcessor::alreadyHandlingException(), closeFiles(), ep_, and exitCalled_.
{ if(ep_.alreadyHandlingException()) return; exitCalled_ = true; closeFiles(); }
void statemachine::HandleFiles::goToNewInputFile | ( | ) |
Definition at line 85 of file EPStates.cc.
References edm::IEventProcessor::closeInputFile(), ep_, edm::IEventProcessor::readFile(), edm::IEventProcessor::respondToCloseInputFile(), and edm::IEventProcessor::respondToOpenInputFile().
{ ep_.respondToCloseInputFile(); ep_.closeInputFile(); ep_.readFile(); ep_.respondToOpenInputFile(); }
bool statemachine::HandleFiles::shouldWeCloseOutput | ( | ) |
Definition at line 93 of file EPStates.cc.
References ep_, dtDQMClient_cfg::fileMode, statemachine::NOMERGE, and edm::IEventProcessor::shouldWeCloseOutput().
{ if(context<Machine>().fileMode() == NOMERGE) return true; return ep_.shouldWeCloseOutput(); }
Definition at line 153 of file EPStates.h.
Referenced by closeFiles(), exit(), goToNewInputFile(), shouldWeCloseOutput(), and ~HandleFiles().
bool statemachine::HandleFiles::exitCalled_ [private] |
Definition at line 154 of file EPStates.h.
Referenced by exit(), and ~HandleFiles().