CMS 3D CMS Logo

Public Member Functions | Private Member Functions

stor::FinishingDQM Class Reference

#include <StateMachine.h>

Inheritance diagram for stor::FinishingDQM:
state stor::Operations

List of all members.

Public Member Functions

 FinishingDQM (my_context)
virtual ~FinishingDQM ()

Private Member Functions

virtual void do_entryActionWork ()
virtual void do_exitActionWork ()
virtual void do_moveToFailedState (xcept::Exception &exception) const
virtual void do_noFragmentToProcess () const
virtual std::string do_stateName () const
bool endOfRunProcessingIsDone () const

Detailed Description

FinishingDQM state

Author:
mommsen
Revision:
1.11
Date:
2011/03/07 15:31:32

Definition at line 567 of file StateMachine.h.


Constructor & Destructor Documentation

FinishingDQM::FinishingDQM ( my_context  c)

Definition at line 16 of file FinishingDQM.cc.

References stor::Operations::safeEntryAction().

                                        : my_base(c)
{
  safeEntryAction();
}
FinishingDQM::~FinishingDQM ( ) [virtual]

Definition at line 35 of file FinishingDQM.cc.

References stor::Operations::safeExitAction().


Member Function Documentation

void FinishingDQM::do_entryActionWork ( ) [private, virtual]

Implements stor::Operations.

Definition at line 21 of file FinishingDQM.cc.

References stor::Operations::stateName().

{

  TransitionRecord tr( stateName(), true );
  outermost_context().updateHistory( tr );

  SharedResourcesPtr sharedResources =
    outermost_context().getSharedResources();

  // request end-of-run processing in DQMEventProcessor
  sharedResources->dqmEventProcessorResources_->requestEndOfRun();

}
void FinishingDQM::do_exitActionWork ( ) [private, virtual]

Implements stor::Operations.

Definition at line 40 of file FinishingDQM.cc.

References stor::Operations::stateName().

{
  TransitionRecord tr( stateName(), false );
  outermost_context().updateHistory( tr );
}
void FinishingDQM::do_moveToFailedState ( xcept::Exception exception) const [private, virtual]

Implements stor::Operations.

Definition at line 51 of file FinishingDQM.cc.

{
  outermost_context().getSharedResources()->moveToFailedState( exception );
}
void FinishingDQM::do_noFragmentToProcess ( ) const [private, virtual]

Reimplemented from stor::Operations.

Definition at line 57 of file FinishingDQM.cc.

References endOfRunProcessingIsDone().

{
  if ( endOfRunProcessingIsDone() )
  {
    SharedResourcesPtr sharedResources =
      outermost_context().getSharedResources();
    EventPtr_t stMachEvent( new EndRun() );
    sharedResources->commandQueue_->enqWait( stMachEvent );
  }
}
string FinishingDQM::do_stateName ( ) const [private, virtual]

Implements stor::Operations.

Definition at line 46 of file FinishingDQM.cc.

{
  return std::string( "FinishingDQM" );
}
bool FinishingDQM::endOfRunProcessingIsDone ( ) const [private]

Definition at line 69 of file FinishingDQM.cc.

Referenced by do_noFragmentToProcess().

{
  SharedResourcesPtr sharedResources =
    outermost_context().getSharedResources();

  if ( sharedResources->dqmEventProcessorResources_->requestsOngoing() ) return false; 

  return true;
}