BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
PurgeUnstableParticles Class Reference

#include <PurgeUnstableParticles.h>

+ Inheritance diagram for PurgeUnstableParticles:

Public Member Functions

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

Detailed Description

Definition at line 9 of file PurgeUnstableParticles.h.

Constructor & Destructor Documentation

◆ PurgeUnstableParticles()

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

Definition at line 15 of file PurgeUnstableParticles.cxx.

16 :
17 Algorithm(name, pSvcLocator) {}

Member Function Documentation

◆ execute()

StatusCode PurgeUnstableParticles::execute ( )

Definition at line 35 of file PurgeUnstableParticles.cxx.

35 {
36
37 SmartDataPtr<McEventCollection> mcCollptr(eventDataService(),
38 m_mcEventColl);
39 if(mcCollptr) {
40 McEventCollection::iterator it;
41 for(it=mcCollptr->begin(); it!=mcCollptr->end(); it++) {
42 (*it)->purgeUnstableParticles();
43
44 }
45 }
46
47 return StatusCode::SUCCESS;
48
49}

◆ finalize()

StatusCode PurgeUnstableParticles::finalize ( )

Definition at line 51 of file PurgeUnstableParticles.cxx.

51 {
52
53 return StatusCode::SUCCESS;
54
55}

◆ initialize()

StatusCode PurgeUnstableParticles::initialize ( )

Definition at line 20 of file PurgeUnstableParticles.cxx.

20 {
21
22 IDataManagerSvc* m_DMS;
23 StatusCode sc = serviceLocator()->getService("EventDataSvc",
24 IID_IDataManagerSvc,
25 (IInterface*&)m_DMS);
26 if (sc.isFailure()) { return sc; }
27
28 std::string rootEventName = m_DMS->rootEventName();
29 m_mcEventColl = rootEventName + "/McEventCollection";
30
31 return StatusCode::SUCCESS;
32
33}

The documentation for this class was generated from the following files: