CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions
stor::FinishingDQM Class Reference

#include <StateMachine.h>

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

Public Member Functions

 FinishingDQM (my_context)
 
virtual ~FinishingDQM ()
 
- Public Member Functions inherited from stor::Operations
void moveToFailedState (xcept::Exception &exception) const
 
void noFragmentToProcess () const
 
 Operations ()
 
void processI2OFragment (I2OChain &frag) const
 
std::string stateName () const
 
virtual ~Operations ()=0
 

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
 

Additional Inherited Members

- Protected Member Functions inherited from stor::Operations
virtual void do_processI2OFragment (I2OChain &frag) const
 
void safeEntryAction ()
 
void safeExitAction ()
 

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 17 of file FinishingDQM.cc.

References stor::Operations::safeEntryAction().

17  : my_base(c)
18 {
20 }
void safeEntryAction()
Definition: Operations.cc:77
FinishingDQM::~FinishingDQM ( )
virtual

Definition at line 36 of file FinishingDQM.cc.

References stor::Operations::safeExitAction().

37 {
39 }
void safeExitAction()
Definition: Operations.cc:108

Member Function Documentation

void FinishingDQM::do_entryActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 22 of file FinishingDQM.cc.

References stor::Operations::stateName().

23 {
24 
25  TransitionRecord tr( stateName(), true );
26  outermost_context().updateHistory( tr );
27 
28  SharedResourcesPtr sharedResources =
29  outermost_context().getSharedResources();
30 
31  // request end-of-run processing in DQMEventProcessor
32  sharedResources->dqmEventProcessorResources_->requestEndOfRun();
33 
34 }
std::string stateName() const
Definition: Operations.cc:39
boost::shared_ptr< SharedResources > SharedResourcesPtr
void FinishingDQM::do_exitActionWork ( )
privatevirtual

Implements stor::Operations.

Definition at line 41 of file FinishingDQM.cc.

References stor::Operations::stateName().

42 {
43  TransitionRecord tr( stateName(), false );
44  outermost_context().updateHistory( tr );
45 }
std::string stateName() const
Definition: Operations.cc:39
void FinishingDQM::do_moveToFailedState ( xcept::Exception &  exception) const
privatevirtual

Implements stor::Operations.

Definition at line 52 of file FinishingDQM.cc.

53 {
54  outermost_context().getSharedResources()->alarmHandler_->moveToFailedState( exception );
55 }
void FinishingDQM::do_noFragmentToProcess ( ) const
privatevirtual

Reimplemented from stor::Operations.

Definition at line 58 of file FinishingDQM.cc.

References endOfRunProcessingIsDone().

59 {
61  {
62  SharedResourcesPtr sharedResources =
63  outermost_context().getSharedResources();
64  EventPtr_t stMachEvent( new EndRun() );
65  sharedResources->commandQueue_->enqWait( stMachEvent );
66  }
67 }
boost::shared_ptr< SharedResources > SharedResourcesPtr
boost::shared_ptr< boost::statechart::event_base > EventPtr_t
Definition: CommandQueue.h:21
bool endOfRunProcessingIsDone() const
Definition: FinishingDQM.cc:70
string FinishingDQM::do_stateName ( ) const
privatevirtual

Implements stor::Operations.

Definition at line 47 of file FinishingDQM.cc.

48 {
49  return std::string( "FinishingDQM" );
50 }
bool FinishingDQM::endOfRunProcessingIsDone ( ) const
private

Definition at line 70 of file FinishingDQM.cc.

Referenced by do_noFragmentToProcess().

71 {
72  SharedResourcesPtr sharedResources =
73  outermost_context().getSharedResources();
74 
75  if ( sharedResources->dqmEventProcessorResources_->requestsOngoing() ) return false;
76 
77  return true;
78 }
boost::shared_ptr< SharedResources > SharedResourcesPtr