StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFixedVertexFinder.h
1 
23 #ifndef STAR_StFixedVertexFinder
24 #define STAR_StFixedVertexFinder
25 
26 
27 #include "StGenericVertexMaker/StGenericVertexFinder.h"
28 
29 class StEvent;
30 
32 {
33 public:
35  // should we have destructor too?
36 
37  // mandatory implementations
38  int fit(StEvent*);
39  void printInfo(ostream& = cout)const;
40 
41 
42  // member not from base class
43  void SetVertexPosition(double x, double y, double z);
44  void SetVertexError( double ex, double ey, double ez );
45  int IsFixed() const {return 1;}
46 
47 private:
48  Double_t mFixedX;
49  Double_t mFixedY;
50  Double_t mFixedZ;
51 
52  double mFixedEx;
53  double mFixedEy;
54  double mFixedEz;
55 
60  virtual void UseVertexConstraint();
61 
62 };
63 
64 /***************************************************************************
65 *
66 * $Log: StFixedVertexFinder.h,v $
67 * Revision 1.7 2018/03/24 20:10:41 jwebb
68 * Added option for user to specify the uncertainties on the vertex. Useful
69 * in embedding jobs in order to get the track association with primary
70 * vertex correct (especially when tracks are from precision tracking, eg
71 * HFT).
72 *
73 * Revision 1.6 2017/05/12 18:37:23 smirnovd
74 * Cosmetic changes
75 *
76 * Removed log messages from source files
77 * Prefixed included headers with paths to respective modules
78 *
79 * Revision 1.5 2016/08/18 17:46:14 smirnovd
80 * Squashed commit of the following refactoring changes:
81 *
82 * Date: Wed Jul 27 18:31:18 2016 -0400
83 *
84 * Removed unused arguments in UseVertexConstraint()
85 *
86 * In StiPPVertexFinder and StvPPVertexFinder this method does nothing
87 *
88 * Date: Wed Jul 27 16:47:58 2016 -0400
89 *
90 * Make old UseVertexConstraint private virtual and call it from its public replacement in the base class
91 *
92 * also mark methods as private explicitly
93 *
94 * Date: Wed Jul 27 16:52:02 2016 -0400
95 *
96 * Removed unused private data member mWeight
97 *
98 * Date: Wed Jul 27 16:50:42 2016 -0400
99 *
100 * Prefer base class static beamline parameters rather than this class private members
101 *
102 * Date: Wed Jul 27 16:21:49 2016 -0400
103 *
104 * StPPVertexFinder: Got rid of unused private beamline parameters
105 *
106 * The equivalent measurements are available from the base class
107 * StGenericVertexFinder
108 *
109 * Date: Wed Jul 27 16:19:19 2016 -0400
110 *
111 * StPPVertexFinder: For beamline position use equivalent static methods from parent class
112 *
113 * Date: Wed Jul 27 16:05:50 2016 -0400
114 *
115 * StGenericVertexMaker: Assigning once is enough
116 *
117 * Date: Mon Aug 15 10:43:49 2016 -0400
118 *
119 * StGenericVertexFinder: Print out beamline parameters
120 *
121 * Print beamline values as extracted from the database before any modification.
122 *
123 * Date: Wed Jul 6 15:33:02 2016 -0400
124 *
125 * Stylistic changes and minor refactoring
126 *
127 * Whitespace and comments for improved readability
128 * s/track/stiKalmanTrack/
129 *
130 * Date: Wed Jul 6 15:28:16 2016 -0400
131 *
132 * StPPVertexFinder: Switched to cleaner c++11 range loop syntax
133 *
134 * Date: Wed Jul 6 15:22:14 2016 -0400
135 *
136 * StPPVertexFinder: Minor c++ refactoring
137 *
138 * - Removed unused counter
139 * - c-style array to std::array
140 *
141 * Date: Wed Jul 6 15:20:11 2016 -0400
142 *
143 * Deleted commented out code
144 *
145 * Removed unused #include's StMinuitVertexFinder
146 *
147 * Revision 1.4 2015/11/13 04:11:40 perev
148 * Added metod IsFixed
149 *
150 * Revision 1.3 2006/05/18 19:14:24 lbarnby
151 * Added SetVertexPosition function. Tidied up comments/docs
152 *
153 * Revision 1.2 2006/05/10 14:35:00 jeromel
154 * Changed VertexId to new enum, added doxygen doc
155 *
156 * Revision 1.1 2006/05/03 22:11:10 lbarnby
157 * Initial version of fixed position vertex finder and option in maker to switch it on
158 *
159 *
160 **************************************************************************/
161 #endif
StGenericVertexFinder implementation for fixing vertex.