#include <StageProcessor.h>
Collaboration diagram for StageProcessor< HEADER >:
Public Member Functions | |
StageProcessor (const std::string &name, ISvcLocator *pSvcLocator) | |
virtual | ~StageProcessor () |
StatusCode | initialize () |
Sub class must call me. | |
StatusCode | registerData (IStageData &data) |
IStage * | thisStage () |
IStage * | lowerStage () |
Private Attributes | |
std::string | m_thisStageName |
std::string | m_lowerStageName |
IStage * | m_thisStage |
IStage * | m_lowerStage |
IStageDataManager * | m_sdmgr |
This is a Sim15 version of DybAlgorithm
Brett Viren <bv@bnl.gov> Thu Mar 24 12:19:08 2011
Definition at line 25 of file StageProcessor.h.
StageProcessor< HeaderType >::StageProcessor | ( | const std::string & | name, | |
ISvcLocator * | pSvcLocator | |||
) |
Definition at line 55 of file StageProcessor.h.
00056 : DybAlgorithm<HEADER>(name,pSvcLocator) 00057 { 00058 declareProperty("ThisStageName",m_thisStageName = "", "Name of this stage"); 00059 declareProperty("LowerStageName",m_lowerStageName = "", "Name of the lower stage"); 00060 00061 this->m_pullMode = true; 00062 }
StageProcessor< HeaderType >::~StageProcessor | ( | ) | [virtual] |
StatusCode StageProcessor< HeaderType >::initialize | ( | ) |
Sub class must call me.
Definition at line 71 of file StageProcessor.h.
00072 { 00073 // infinite loop? 00074 StatusCode sc = DybAlgorithm<HEADER>::initialize(); 00075 if (sc.isFailure()) return sc; 00076 00077 // should probably make this configurable one day 00078 sc = this->service("StageDataManager",m_sdmgr); 00079 if (sc.isFailure()) return sc; 00080 00081 00082 this->debug() << "This Stage " <<m_thisStageName <<endreq; 00083 this->debug() << "Lower Stage " <<m_lowerStageName <<endreq; 00084 00085 if ("" == m_thisStageName) { 00086 this->error() << "Not configured with a stage name" << endreq; 00087 return StatusCode::FAILURE; 00088 } 00089 00090 sc = this->toolSvc()->retrieveTool("Stage",m_thisStageName,m_thisStage); 00091 if ( sc.isFailure() ) { 00092 this->error() << "Error retrieving the public tool" << endreq; 00093 return sc; 00094 } 00095 00096 if ("" != m_lowerStageName) { 00097 sc= this->toolSvc()->retrieveTool("Stage",m_lowerStageName,m_lowerStage); 00098 if( sc.isFailure() ) { 00099 this->error() << "Error retrieving the public tool" << endreq; 00100 return StatusCode::FAILURE; 00101 } 00102 } 00103 return StatusCode::SUCCESS; 00104 }
StatusCode StageProcessor< HEADER >::registerData | ( | IStageData & | data | ) |
Definition at line 107 of file StageProcessor.h.
00108 { 00109 return m_sdmgr->registerData(this->Location(), data); 00110 }
IStage* StageProcessor< HEADER >::thisStage | ( | ) | [inline] |
IStage* StageProcessor< HEADER >::lowerStage | ( | ) | [inline] |
std::string StageProcessor< HEADER >::m_thisStageName [private] |
Definition at line 42 of file StageProcessor.h.
std::string StageProcessor< HEADER >::m_lowerStageName [private] |
Definition at line 43 of file StageProcessor.h.
IStage* StageProcessor< HEADER >::m_thisStage [private] |
Definition at line 45 of file StageProcessor.h.
IStage* StageProcessor< HEADER >::m_lowerStage [private] |
Definition at line 46 of file StageProcessor.h.
IStageDataManager* StageProcessor< HEADER >::m_sdmgr [private] |
Definition at line 49 of file StageProcessor.h.