Main Page | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

ObfCoordsAlg Class Reference

Extract info from tuple, etc. to add ObfCoords items to this of another tree. More...

Collaboration diagram for ObfCoordsAlg:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ObfCoordsAlg (const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize ()
StatusCode execute ()
StatusCode finalize ()

Private Attributes

ObfCworkerm_worker
 this guy does the work!

int m_count

Detailed Description

Extract info from tuple, etc. to add ObfCoords items to this of another tree.

Definition at line 34 of file ObfCoordsAlg.cxx.


Constructor & Destructor Documentation

ObfCoordsAlg::ObfCoordsAlg const std::string &  name,
ISvcLocator *  pSvcLocator
 

Definition at line 77 of file ObfCoordsAlg.cxx.

00078 : Algorithm(name, pSvcLocator)
00079 , m_count(0)
00080 {
00081     declareProperty("TreeName",  treename="MeritTuple");
00082 }


Member Function Documentation

StatusCode ObfCoordsAlg::execute  ) 
 

Definition at line 106 of file ObfCoordsAlg.cxx.

References ObfCworker::evaluate(), m_count, and m_worker.

00107 {
00108     StatusCode sc = StatusCode::SUCCESS;
00109 
00110     MsgStream log(msgSvc(), name());
00111 
00112     m_count++;
00113 
00114     // now have the worker do it
00115     m_worker->evaluate();
00116 
00117     return sc;
00118 }

StatusCode ObfCoordsAlg::finalize  ) 
 

Definition at line 120 of file ObfCoordsAlg.cxx.

00121 {
00122     return StatusCode::SUCCESS;
00123 }

StatusCode ObfCoordsAlg::initialize  ) 
 

Definition at line 84 of file ObfCoordsAlg.cxx.

References m_worker, and rootTupleSvc.

00085 {
00086     StatusCode  sc = StatusCode::SUCCESS;
00087 
00088     MsgStream log(msgSvc(), name());
00089 
00090     // Use the Job options service to get the Algorithm's parameters
00091     setProperties();
00092 
00093     // get a pointer to RootTupleSvc 
00094     if( (sc = service("RootTupleSvc", rootTupleSvc, true) ). isFailure() ) {
00095         log << MSG::ERROR << " failed to get the RootTupleSvc" << endreq;
00096         return sc;
00097     }
00098     m_worker = new ObfCworker();
00099 
00100     // get the GPS instance
00101     gps = astro::GPS::instance();
00102 
00103     return sc;
00104 }


Member Data Documentation

int ObfCoordsAlg::m_count [private]
 

Definition at line 46 of file ObfCoordsAlg.cxx.

Referenced by execute().

ObfCworker* ObfCoordsAlg::m_worker [private]
 

this guy does the work!

Definition at line 44 of file ObfCoordsAlg.cxx.

Referenced by execute(), and initialize().


The documentation for this class was generated from the following file:
Generated on Mon Dec 1 20:09:11 2008 by doxygen 1.3.3