BOSS 7.0.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 ()
 
 PurgeUnstableParticles (const std::string &name, ISvcLocator *pSvcLocator)
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 

Detailed Description

Constructor & Destructor Documentation

◆ PurgeUnstableParticles() [1/2]

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

Definition at line 15 of file PurgeUnstableParticles.cxx.

16 :
17 Algorithm(name, pSvcLocator) {}

◆ PurgeUnstableParticles() [2/2]

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

Member Function Documentation

◆ execute() [1/2]

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}

◆ execute() [2/2]

StatusCode PurgeUnstableParticles::execute ( )

◆ finalize() [1/2]

StatusCode PurgeUnstableParticles::finalize ( )

Definition at line 51 of file PurgeUnstableParticles.cxx.

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

◆ finalize() [2/2]

StatusCode PurgeUnstableParticles::finalize ( )

◆ initialize() [1/2]

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}

◆ initialize() [2/2]

StatusCode PurgeUnstableParticles::initialize ( )

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