#include <PurgeUnstableParticles.h>
Public Member Functions | |
PurgeUnstableParticles (const std::string &name, ISvcLocator *pSvcLocator) | |
StatusCode | initialize () |
StatusCode | execute () |
StatusCode | finalize () |
Private Attributes | |
std::string | m_mcEventColl |
StoreGateSvc * | m_sgSvc |
Definition at line 9 of file PurgeUnstableParticles.h.
PurgeUnstableParticles::PurgeUnstableParticles | ( | const std::string & | name, | |
ISvcLocator * | pSvcLocator | |||
) |
Definition at line 16 of file PurgeUnstableParticles.cxx.
00016 : 00017 Algorithm(name, pSvcLocator) {}
StatusCode PurgeUnstableParticles::execute | ( | ) |
Definition at line 35 of file PurgeUnstableParticles.cxx.
References m_mcEventColl.
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::initialize | ( | ) |
Definition at line 20 of file PurgeUnstableParticles.cxx.
References m_mcEventColl, and deljobs::string.
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 }
StoreGateSvc* PurgeUnstableParticles::m_sgSvc [private] |
Definition at line 18 of file PurgeUnstableParticles.h.