00001 #include "PerSimEvent/PerSimHitCollection.h" 00002 00003 PerSimHitCollection::PerSimHitCollection() 00004 : detId(), 00005 hits() 00006 { 00007 } 00008 00009 PerSimHitCollection::PerSimHitCollection(short int detId, 00010 const phit_container& in_hits) 00011 : detId(detId), 00012 hits(in_hits) 00013 { 00014 } 00015 PerSimHitCollection::~PerSimHitCollection() 00016 { 00017 detId = 0; 00018 for (size_t ind=0; ind<hits.size(); ++ind) { 00019 delete hits[ind]; 00020 } 00021 hits.clear(); 00022 }