StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSstWaferHitCollection.cxx
1 /***************************************************************************
2  *
3  * $Id: StSstWaferHitCollection.cxx,v 2.1 2015/05/13 16:50:59 ullrich Exp $
4  *
5  * Author: Jonathan Bouchet, Thomas Ullrich, May 2015
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StSstWaferHitCollection.cxx,v $
13  * Revision 2.1 2015/05/13 16:50:59 ullrich
14  * Initial Revision.
15  *
16  **************************************************************************/
17 #include "StSstWaferHitCollection.h"
18 #include "StSstHit.h"
19 
20 static const char rcsid[] = "$Id: StSstWaferHitCollection.cxx,v 2.1 2015/05/13 16:50:59 ullrich Exp $";
21 
23 
25 
26 StSstWaferHitCollection::~StSstWaferHitCollection()
27 {
28  //
29  // Usually this wouldn't be necessary but mHits
30  // is a polymorphic container and StSstHit
31  // provides its own new/delete operator.
32  //
33  for (unsigned int i=0; i<mHits.size(); i++) {
34  delete mHits[i];
35  mHits[i] = 0;
36  }
37 }
38 
39 const StSPtrVecSstHit&
40 StSstWaferHitCollection::hits() const { return mHits; }
41 
42 StSPtrVecSstHit&
43 StSstWaferHitCollection::hits() { return mHits; }