#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 56 of file EPStates.cc.
: my_base(ctx), ep_(context<Machine>().ep()), exitCalled_(false) { }
statemachine::HandleFiles::~HandleFiles | ( | ) |
Definition at line 67 of file EPStates.cc.
References closeFiles(), ep_, exitCalled_, argparse::message, runTheMatrix::msg, and edm::IEventProcessor::setExceptionMessageFiles().
{ if (!exitCalled_) { try { closeFiles(); } catch (...) { std::ostringstream message; message << "------------------------------------------------------------\n" << "Another exception was caught while trying to clean up after the primary fatal exception.\n" << " We give up trying to clean up at this point.\n"; std::string msg(message.str()); ep_.setExceptionMessageFiles(msg); } } }
void statemachine::HandleFiles::closeFiles | ( | ) |
Definition at line 83 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 61 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 90 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 98 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().