StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StGlobalTrack.h
1 
5 /***************************************************************************
6  *
7  * $Id: StGlobalTrack.h,v 2.7 2012/05/07 14:42:57 fisyak Exp $
8  *
9  * Author: Thomas Ullrich, Sep 1999
10  ***************************************************************************
11  *
12  * Description:
13  *
14  ***************************************************************************
15  *
16  * $Log: StGlobalTrack.h,v $
17  * Revision 2.7 2012/05/07 14:42:57 fisyak
18  * Add handilings for Track to Fast Detectors Matching
19  *
20  * Revision 2.6 2009/11/23 16:34:06 fisyak
21  * Cleanup, remove dependence on dst tables, clean up software monitors
22  *
23  * Revision 2.5 2006/05/24 17:28:19 ullrich
24  * Added track-at-DCA geometry.
25  *
26  * Revision 2.4 2004/07/15 16:36:24 ullrich
27  * Removed all clone() declerations and definitions. Use StObject::clone() only.
28  *
29  * Revision 2.3 2002/02/22 22:56:48 jeromel
30  * Doxygen basic documentation in all header files. None of this is required
31  * for QM production.
32  *
33  * Revision 2.2 2001/03/24 03:34:48 perev
34  * clone() -> clone() const
35  *
36  * Revision 2.1 1999/10/28 22:25:39 ullrich
37  * Adapted new StArray version. First version to compile on Linux and Sun.
38  *
39  * Revision 2.0 1999/10/12 18:42:15 ullrich
40  * Completely Revised for New Version
41  *
42  **************************************************************************/
43 #ifndef StGlobalTrack_hh
44 #define StGlobalTrack_hh
45 
46 #include "StTrack.h"
47 #include "StDcaGeometry.h"
48 class StGlobalTrack;
49 ostream& operator<<(ostream& os, const StGlobalTrack& t);
50 
51 class StGlobalTrack : public StTrack {
52  public:
53  StGlobalTrack() : mDcaGeometry(0) {}
55  StGlobalTrack& operator=(const StGlobalTrack&);
56  ~StGlobalTrack() {SafeDelete(mDcaGeometry);}
57 
58  StTrackType type() const { return global; }
59  const StVertex* vertex() const { return 0; }
60 
61  const StDcaGeometry* dcaGeometry() const {return mDcaGeometry;}
62  StDcaGeometry* dcaGeometry() {return mDcaGeometry;}
63  void setDcaGeometry(StDcaGeometry* dca) {mDcaGeometry=dca;}
64 
65  void Print(Option_t *option="") const {cout << option << *this << endl; }
66  protected:
67  StDcaGeometry *mDcaGeometry;
68 
69  ClassDef(StGlobalTrack,2)
70 };
71 
72 #endif