CMS 3D CMS Logo

ScoutingVertex.h
Go to the documentation of this file.
1 #ifndef DataFormats_ScoutingVertex_h
2 #define DataFormats_ScoutingVertex_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),
28  chi2_(chi2),
29  ndof_(ndof),
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<ScoutingVertex> ScoutingVertexCollection;
70 
71 #endif
ScoutingVertex::ScoutingVertex
ScoutingVertex()
Definition: ScoutingVertex.h:32
ScoutingVertex::chi2
float chi2() const
Definition: ScoutingVertex.h:52
funct::false
false
Definition: Factorize.h:34
ScoutingVertex
Definition: ScoutingVertex.h:8
ScoutingVertex::xError_
float xError_
Definition: ScoutingVertex.h:61
ScoutingVertex::tracksSize_
int tracksSize_
Definition: ScoutingVertex.h:63
ScoutingVertex::y
float y() const
Definition: ScoutingVertex.h:46
ScoutingVertex::x
float x() const
Definition: ScoutingVertex.h:45
ScoutingVertex::chi2_
float chi2_
Definition: ScoutingVertex.h:64
ScoutingVertex::ndof
int ndof() const
Definition: ScoutingVertex.h:53
ScoutingVertex::yError
float yError() const
Definition: ScoutingVertex.h:50
ScoutingVertex::ScoutingVertex
ScoutingVertex(float x, float y, float z, float zError, float xError, float yError, int tracksSize, float chi2, int ndof, bool isValidVtx)
Definition: ScoutingVertex.h:11
ScoutingVertex::xError
float xError() const
Definition: ScoutingVertex.h:49
ScoutingVertex::zError_
float zError_
Definition: ScoutingVertex.h:60
ScoutingVertex::z_
float z_
Definition: ScoutingVertex.h:59
ScoutingVertexCollection
std::vector< ScoutingVertex > ScoutingVertexCollection
Definition: ScoutingVertex.h:69
ScoutingVertex::isValidVtx_
bool isValidVtx_
Definition: ScoutingVertex.h:66
ScoutingVertex::ndof_
int ndof_
Definition: ScoutingVertex.h:65
ScoutingVertex::yError_
float yError_
Definition: ScoutingVertex.h:62
ScoutingVertex::isValidVtx
bool isValidVtx() const
Definition: ScoutingVertex.h:54
ScoutingVertex::x_
float x_
Definition: ScoutingVertex.h:57
ScoutingVertex::z
float z() const
Definition: ScoutingVertex.h:47
ScoutingVertex::y_
float y_
Definition: ScoutingVertex.h:58
ScoutingVertex::tracksSize
int tracksSize() const
Definition: ScoutingVertex.h:51
ScoutingVertex::zError
float zError() const
Definition: ScoutingVertex.h:48