CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

statemachine::HandleFiles Class Reference

#include <EPStates.h>

Inheritance diagram for statemachine::HandleFiles:
state

List of all members.

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::IEventProcessorep_
bool exitCalled_

Detailed Description

Definition at line 134 of file EPStates.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

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);
      }
    }
  }

Member Function Documentation

void statemachine::HandleFiles::closeFiles ( )
void statemachine::HandleFiles::exit ( )
void statemachine::HandleFiles::goToNewInputFile ( )
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();
  }

Member Data Documentation

Definition at line 153 of file EPStates.h.

Referenced by closeFiles(), exit(), goToNewInputFile(), shouldWeCloseOutput(), and ~HandleFiles().

Definition at line 154 of file EPStates.h.

Referenced by exit(), and ~HandleFiles().