Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PurgeUnstableParticles Class Reference

#include <PurgeUnstableParticles.h>

List of all members.

Public Member Functions

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

Private Attributes

std::string m_mcEventColl
StoreGateSvc * m_sgSvc
StoreGateSvc * m_sgSvc


Constructor & Destructor Documentation

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

00016                                                     :
00017     Algorithm(name, pSvcLocator) {}

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


Member Function Documentation

StatusCode PurgeUnstableParticles::execute  ) 
 

StatusCode PurgeUnstableParticles::execute  ) 
 

00035                                           {
00036 
00037   SmartDataPtr<McEventCollection> mcCollptr(eventDataService(),
00038                                             m_mcEventColl);
00039   if(mcCollptr) {
00040     McEventCollection::iterator it;
00041     for(it=mcCollptr->begin(); it!=mcCollptr->end(); it++) {
00042       (*it)->purgeUnstableParticles();
00043       
00044     }
00045   }
00046 
00047   return StatusCode::SUCCESS;
00048 
00049 }

StatusCode PurgeUnstableParticles::finalize  ) 
 

StatusCode PurgeUnstableParticles::finalize  ) 
 

00051                                            {
00052 
00053   return StatusCode::SUCCESS;
00054 
00055 }

StatusCode PurgeUnstableParticles::initialize  ) 
 

StatusCode PurgeUnstableParticles::initialize  ) 
 

00020                                              {
00021 
00022   IDataManagerSvc* m_DMS;
00023   StatusCode sc = serviceLocator()->getService("EventDataSvc", 
00024                                                IID_IDataManagerSvc, 
00025                                                (IInterface*&)m_DMS);
00026   if (sc.isFailure()) { return sc; }
00027 
00028   std::string rootEventName = m_DMS->rootEventName();
00029   m_mcEventColl = rootEventName + "/McEventCollection";
00030 
00031   return StatusCode::SUCCESS;
00032 
00033 }


Member Data Documentation

std::string PurgeUnstableParticles::m_mcEventColl [private]
 

StoreGateSvc* PurgeUnstableParticles::m_sgSvc [private]
 

StoreGateSvc* PurgeUnstableParticles::m_sgSvc [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:41:47 2011 for BOSS6.5.5 by  doxygen 1.3.9.1