StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFgtPointCollection.h
1 /***************************************************************************
2  *
3  * $Id: StFgtPointCollection.h,v 2.1 2012/04/16 20:20:49 ullrich Exp $
4  * Author: S. Gliske, Oct 2011
5  *
6  ***************************************************************************
7  *
8  * Description: A collection of StFgtPoint classes for StEvent.
9  * Basically a wrapper for an StSPtrVecFgtPoint
10  *
11  ***************************************************************************
12  *
13  * $Log: StFgtPointCollection.h,v $
14  * Revision 2.1 2012/04/16 20:20:49 ullrich
15  * Initial Revision
16  *
17  *
18  **************************************************************************/
19 
20 #ifndef _ST_FGT_POINT_COLLECTION_H_
21 #define _ST_FGT_POINT_COLLECTION_H_
22 
23 #include "StObject.h"
24 #include "StContainers.h"
25 
26 class StFgtPoint;
27 
29 public:
30  // constructors
32  // StFgtPointCollection( const StFgtPointCollection& other ); ---> use default
33  // StFgtPointCollection& operator=( const StFgtPointCollection& other ); ---> use default
34 
35  // deconstructor
37 
38  // accessors/modifiers for the underlying vector
39  StSPtrVecFgtPoint& getPointVec();
40  const StSPtrVecFgtPoint& getPointVec() const;
41 
42  size_t getNumPoints() const;
43 
44  // Clear
45  void Clear( Option_t *opt = "" );
46 
47 protected:
48  // the data member
49  StSPtrVecFgtPoint mPointVec;
50 
51 private:
52  ClassDef(StFgtPointCollection,1);
53 };
54 
55 
56 // inline functions
57 
58 inline StFgtPointCollection::StFgtPointCollection() : StObject() {
59  // nothing else to do
60 };
61 
62 inline StSPtrVecFgtPoint& StFgtPointCollection::getPointVec() {
63  return mPointVec;
64 };
65 
66 inline const StSPtrVecFgtPoint& StFgtPointCollection::getPointVec() const{
67  return mPointVec;
68 };
69 
70 inline size_t StFgtPointCollection::getNumPoints() const {
71  return mPointVec.size();
72 };
73 
74 #endif
75 
Represents a point in the FGT.
Definition: StFgtPoint.h:49