CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  : x_(x),
22  y_(y),
23  z_(z),
24  zError_(zError),
25  xError_(xError),
26  yError_(yError),
27  tracksSize_(tracksSize),
28  chi2_(chi2),
29  ndof_(ndof),
30  isValidVtx_(isValidVtx) {}
31  //default constructor
33  : x_(0),
34  y_(0),
35  z_(0),
36  zError_(0),
37  xError_(0),
38  yError_(0),
39  tracksSize_(0),
40  chi2_(0),
41  ndof_(0),
42  isValidVtx_(false) {}
43 
44  //accessor functions
45  float x() const { return x_; }
46  float y() const { return y_; }
47  float z() const { return z_; }
48  float zError() const { return zError_; }
49  float xError() const { return xError_; }
50  float yError() const { return yError_; }
51  int tracksSize() const { return tracksSize_; }
52  float chi2() const { return chi2_; }
53  int ndof() const { return ndof_; }
54  bool isValidVtx() const { return isValidVtx_; }
55 
56 private:
57  float x_;
58  float y_;
59  float z_;
60  float zError_;
61  float xError_;
62  float yError_;
64  float chi2_;
65  int ndof_;
67 };
68 
69 typedef std::vector<Run3ScoutingVertex> Run3ScoutingVertexCollection;
70 
71 #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 xError() const
float yError() const
float zError() const
bool isValidVtx() const