CMS 3D CMS Logo

Run3ScoutingVertex.h
Go to the documentation of this file.
1 #ifndef DataFormats_Run3ScoutingVertex_h
2 #define DataFormats_Run3ScoutingVertex_h
3 
4 #include <vector>
5 
6 //class for holding vertex information, for use in data scouting
7 //IMPORTANT: the content of this class should be changed only in backwards compatible ways!
9 public:
10  //constructor with values for all data fields
12  float y,
13  float z,
14  float zError,
15  float xError,
16  float yError,
17  int tracksSize,
18  float chi2,
19  int ndof,
20  bool isValidVtx,
21  float xyCov,
22  float xzCov,
23  float yzCov)
24  : x_(x),
25  y_(y),
26  z_(z),
27  zError_(zError),
28  xError_(xError),
29  yError_(yError),
31  chi2_(chi2),
32  ndof_(ndof),
34  xyCov_(xyCov),
35  xzCov_(xzCov),
36  yzCov_(yzCov) {}
37  //default constructor
39  : x_(0),
40  y_(0),
41  z_(0),
42  zError_(0),
43  xError_(0),
44  yError_(0),
45  tracksSize_(0),
46  chi2_(0),
47  ndof_(0),
49  xyCov_(0),
50  xzCov_(0),
51  yzCov_(0) {}
52 
53  //accessor functions
54  float x() const { return x_; }
55  float y() const { return y_; }
56  float z() const { return z_; }
57  float xError() const { return xError_; }
58  float yError() const { return yError_; }
59  float zError() const { return zError_; }
60  int tracksSize() const { return tracksSize_; }
61  float chi2() const { return chi2_; }
62  int ndof() const { return ndof_; }
63  bool isValidVtx() const { return isValidVtx_; }
64  float xyCov() const { return xyCov_; }
65  float xzCov() const { return xzCov_; }
66  float yzCov() const { return yzCov_; }
67 
68 private:
69  float x_;
70  float y_;
71  float z_;
72  float zError_;
73  float xError_;
74  float yError_;
76  float chi2_;
77  int ndof_;
79  float xyCov_;
80  float xzCov_;
81  float yzCov_;
82 };
83 
84 typedef std::vector<Run3ScoutingVertex> Run3ScoutingVertexCollection;
85 
86 #endif
std::vector< Run3ScoutingVertex > Run3ScoutingVertexCollection
Run3ScoutingVertex(float x, float y, float z, float zError, float xError, float yError, int tracksSize, float chi2, int ndof, bool isValidVtx, float xyCov, float xzCov, float yzCov)