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 (bool cleaningUpAfterException)
void exit ()
void goToNewInputFile ()
 HandleFiles (my_context ctx)
bool shouldWeCloseOutput ()
 ~HandleFiles ()

Private Attributes

edm::IEventProcessorep_
bool exitCalled_

Detailed Description

Definition at line 136 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 149 of file EPStates.h.


Constructor & Destructor Documentation

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, edm::IEventProcessor::setExceptionMessageFiles(), and AlCaHLTBitMon_QueryRunRegistry::string.

                            {
    if(!exitCalled_) {
      try {
        closeFiles(true);
      }
      catch(...) {
        std::string message("Another exception was caught while trying to clean up files after the primary fatal exception.");
        ep_.setExceptionMessageFiles(message);
      }
    }
  }

Member Function Documentation

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

Member Data Documentation

Definition at line 155 of file EPStates.h.

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

Definition at line 156 of file EPStates.h.

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