41 #include "StHbtMaker/Infrastructure/StHbtPicoEvent.hh"
44 StHbtPicoEvent::StHbtPicoEvent(){
45 mFirstParticleCollection =
new StHbtParticleCollection;
46 mSecondParticleCollection =
new StHbtParticleCollection;
47 mThirdParticleCollection =
new StHbtParticleCollection;
50 StHbtPicoEvent::~StHbtPicoEvent(){
51 StHbtParticleIterator iter;
54 if (mFirstParticleCollection){
55 for (iter=mFirstParticleCollection->begin();iter!=mFirstParticleCollection->end();iter++){
58 mFirstParticleCollection->clear();
59 delete mFirstParticleCollection;
60 mFirstParticleCollection = 0;
63 if (mSecondParticleCollection){
64 for (iter=mSecondParticleCollection->begin();iter!=mSecondParticleCollection->end();iter++){
67 mSecondParticleCollection->clear();
68 delete mSecondParticleCollection;
69 mSecondParticleCollection = 0;
72 if (mThirdParticleCollection){
73 if (mThirdParticleCollection->size() != 0 ) {
74 for (iter=mThirdParticleCollection->begin();iter!=mThirdParticleCollection->end();iter++){
78 mThirdParticleCollection->clear();
79 delete mThirdParticleCollection;
80 mThirdParticleCollection = 0;