StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPrimaryTrack.h
1 
5 /***************************************************************************
6  *
7  * $Id: StPrimaryTrack.h,v 2.13 2013/07/23 11:21:49 jeromel Exp $
8  *
9  * Author: Thomas Ullrich, Sep 1999
10  ***************************************************************************
11  *
12  * Description:
13  *
14  ***************************************************************************
15  *
16  * $Log: StPrimaryTrack.h,v $
17  * Revision 2.13 2013/07/23 11:21:49 jeromel
18  * Undo past week changes
19  *
20  * Revision 2.11 2013/04/10 19:15:53 jeromel
21  * Step back from StEvent changes - previous change recoverable [Thomas OK-ed]
22  *
23  * Revision 2.9 2012/05/07 14:42:57 fisyak
24  * Add handilings for Track to Fast Detectors Matching
25  *
26  * Revision 2.8 2009/11/23 22:20:51 ullrich
27  * Minor cleanup performed, fixed compiler warnings.
28  *
29  * Revision 2.7 2009/11/23 16:34:06 fisyak
30  * Cleanup, remove dependence on dst tables, clean up software monitors
31  *
32  * Revision 2.6 2004/07/15 16:36:24 ullrich
33  * Removed all clone() declerations and definitions. Use StObject::clone() only.
34  *
35  * Revision 2.5 2002/02/22 22:56:49 jeromel
36  * Doxygen basic documentation in all header files. None of this is required
37  * for QM production.
38  *
39  * Revision 2.4 2001/05/30 17:45:54 perev
40  * StEvent branching
41  *
42  * Revision 2.3 2001/03/24 03:34:53 perev
43  * clone() -> clone() const
44  *
45  * Revision 2.2 1999/10/28 22:26:13 ullrich
46  * Adapted new StArray version. First version to compile on Linux and Sun.
47  *
48  * Revision 2.1 1999/10/13 19:43:31 ullrich
49  * Initial Revision
50  *
51  **************************************************************************/
52 #ifndef StPrimaryTrack_hh
53 #define StPrimaryTrack_hh
54 
55 #include "StTrack.h"
56 class StPrimaryVertex;
57 class StPrimaryTrack;
58 ostream& operator<<(ostream& os, const StPrimaryTrack& t);
59 
60 class StPrimaryTrack : public StTrack {
61  public:
63  ~StPrimaryTrack() {/* noop */}
64 
65  StTrackType type() const { return primary; }
66  const StVertex* vertex() const;
67 
68  void setVertex(StVertex*);
69  void Print(Option_t *option="") const {cout << option << *this << endl; }
70  private:
71  // StPrimaryVertex* mVertex; //$LINK
72 #ifdef __CINT__
73  StObjLink mVertex;
74 #else
75  StLink<StPrimaryVertex> mVertex;
76 #endif //__CINT__
77  ClassDef(StPrimaryTrack,2)
78 };
79 #endif