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

McCoordsAlg Class Reference

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

Collaboration diagram for McCoordsAlg:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Private Attributes

McCworkerm_worker
 this guy does the work!

int m_count

Detailed Description

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

Definition at line 32 of file McCoordsAlg.cxx.


Constructor & Destructor Documentation

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

Definition at line 75 of file McCoordsAlg.cxx.

00075                                                                         :
00076 Algorithm(name, pSvcLocator)
00077 {
00078     declareProperty("TreeName",  treename="MeritTuple");
00079 }


Member Function Documentation

StatusCode McCoordsAlg::execute  ) 
 

Definition at line 105 of file McCoordsAlg.cxx.

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

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

StatusCode McCoordsAlg::finalize  ) 
 

Definition at line 119 of file McCoordsAlg.cxx.

00120 {
00121     return StatusCode::SUCCESS;
00122 }

StatusCode McCoordsAlg::initialize  ) 
 

Definition at line 81 of file McCoordsAlg.cxx.

References m_count, m_worker, and rootTupleSvc.

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


Member Data Documentation

int McCoordsAlg::m_count [private]
 

Definition at line 44 of file McCoordsAlg.cxx.

Referenced by execute(), and initialize().

McCworker* McCoordsAlg::m_worker [private]
 

this guy does the work!

Definition at line 42 of file McCoordsAlg.cxx.

Referenced by execute(), and initialize().


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