StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcPxlSensorHitCollection.cc
1 /***************************************************************************
2  *
3  * $Id: StMcPxlSensorHitCollection.cc,v 2.1 2013/03/25 23:50:36 perev Exp $
4  * $Log: StMcPxlSensorHitCollection.cc,v $
5  * Revision 2.1 2013/03/25 23:50:36 perev
6  * Mustafa.Pxl add
7  *
8  *
9  **************************************************************************/
10 #include "StMcPxlSensorHitCollection.hh"
11 #include "StMcPxlHit.hh"
12 
14 
16 {
17  /* noop */
18 }
19 
20 StMcPxlSensorHitCollection::~StMcPxlSensorHitCollection()
21 {
22  for (unsigned int i = 0; i < mHits.size(); i++)
23  {
24  delete mHits[i];
25  mHits[i] = 0;
26  }
27 }
28 
29 const StSPtrVecMcPxlHit&
30 StMcPxlSensorHitCollection::hits() const
31 {
32  return mHits;
33 }
34 
35 StSPtrVecMcPxlHit&
36 StMcPxlSensorHitCollection::hits()
37 {
38  return mHits;
39 }