StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSsdWaferHitCollection.cxx
1 /***************************************************************************
2  *
3  * $Id: StSsdWaferHitCollection.cxx,v 2.2 2001/04/05 04:00:55 ullrich Exp $
4  *
5  * Author: Lilian Martin, Thomas Ullrich, Dec 1999
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StSsdWaferHitCollection.cxx,v $
13  * Revision 2.2 2001/04/05 04:00:55 ullrich
14  * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs.
15  *
16  * Revision 2.1 2000/01/05 16:00:11 ullrich
17  * Initial Revision.
18  *
19  **************************************************************************/
20 #include "StSsdWaferHitCollection.h"
21 #include "StSsdHit.h"
22 
23 static const char rcsid[] = "$Id: StSsdWaferHitCollection.cxx,v 2.2 2001/04/05 04:00:55 ullrich Exp $";
24 
26 
28 
29 StSsdWaferHitCollection::~StSsdWaferHitCollection()
30 {
31  //
32  // Usually this wouldn't be necessary but mHits
33  // is a polymorphic container and StSsdHit
34  // provides its own new/delete operator.
35  //
36  for (unsigned int i=0; i<mHits.size(); i++) {
37  delete mHits[i];
38  mHits[i] = 0;
39  }
40 }
41 
42 const StSPtrVecSsdHit&
43 StSsdWaferHitCollection::hits() const { return mHits; }
44 
45 StSPtrVecSsdHit&
46 StSsdWaferHitCollection::hits() { return mHits; }