StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTrackNode.h
1 
5 /***************************************************************************
6  *
7  * $Id: StTrackNode.h,v 2.6 2002/02/22 22:56:53 jeromel Exp $
8  *
9  * Author: Thomas Ullrich, Sep 1999
10  ***************************************************************************
11  *
12  * Description:
13  *
14  ***************************************************************************
15  *
16  * $Log: StTrackNode.h,v $
17  * Revision 2.6 2002/02/22 22:56:53 jeromel
18  * Doxygen basic documentation in all header files. None of this is required
19  * for QM production.
20  *
21  * Revision 2.5 2001/04/05 04:00:45 ullrich
22  * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs.
23  *
24  * Revision 2.4 1999/11/09 15:44:19 ullrich
25  * Removed method unlink() and all calls to it.
26  *
27  * Revision 2.3 1999/11/05 15:27:12 ullrich
28  * Added non-const versions of several methods
29  *
30  * Revision 2.2 1999/10/28 22:27:47 ullrich
31  * Adapted new StArray version. First version to compile on Linux and Sun.
32  *
33  * Revision 2.1 1999/10/13 19:44:15 ullrich
34  * Initial Revision
35  *
36  **************************************************************************/
37 #ifndef StTrackNode_hh
38 #define StTrackNode_hh
39 
40 #include "StObject.h"
41 #include "StContainers.h"
42 #include "StEnumerations.h"
43 class StTrack;
44 
45 class StTrackNode : public StObject {
46 public:
47  StTrackNode();
48  virtual ~StTrackNode();
49 
50  void addTrack(StTrack*);
51  void removeTrack(StTrack*);
52 
53  unsigned int entries() const;
54  StTrack* track(unsigned int);
55  const StTrack* track(unsigned int) const;
56 
57  unsigned int entries(StTrackType) const;
58  StTrack* track(StTrackType, unsigned int = 0);
59  const StTrack* track(StTrackType, unsigned int = 0) const;
60 
61 private:
62  StTrackNode(const StTrackNode&);
63  StTrackNode& operator=(const StTrackNode&);
64 
65  StSPtrVecTrack mOwnedTracks;
66  StPtrVecTrack mReferencedTracks;
67 
68  ClassDef(StTrackNode,1)
69 };
70 #endif