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 {
10  public:
11  //constructor with values for all data fields
12  ScoutingVertex(float x, float y, float z, float zError, float xError, float yError, int tracksSize, float chi2, int ndof, bool isValidVtx):
13  x_(x), y_(y), z_(z), zError_(zError), xError_(xError), yError_(yError), tracksSize_(tracksSize), chi2_(chi2), ndof_(ndof), isValidVtx_(isValidVtx){}
14  //default constructor
15  ScoutingVertex(): x_(0), y_(0), z_(0), zError_(0), xError_(0), yError_(0), tracksSize_(0), chi2_(0), ndof_(0), isValidVtx_(0) {}
16 
17  //accessor functions
18  float x() const { return x_; }
19  float y() const { return y_; }
20  float z() const { return z_; }
21  float zError() const { return zError_; }
22  float xError() const { return xError_; }
23  float yError() const { return yError_; }
24  int tracksSize() const { return tracksSize_; }
25  float chi2() const { return chi2_; }
26  int ndof() const { return ndof_;}
27  bool isValidVtx() const {return isValidVtx_;}
28 
29  private:
30  float x_;
31  float y_;
32  float z_;
33  float zError_;
34  float xError_;
35  float yError_;
37  float chi2_;
38  int ndof_;
40 };
41 
42 typedef std::vector<ScoutingVertex> ScoutingVertexCollection;
43 
44 #endif
float x() const
bool isValidVtx() const
float zError() const
std::vector< ScoutingVertex > ScoutingVertexCollection
float y() const
int ndof() const
float z() const
float xError() const
float yError() const
ScoutingVertex(float x, float y, float z, float zError, float xError, float yError, int tracksSize, float chi2, int ndof, bool isValidVtx)
int tracksSize() const
float chi2() const