CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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):
13  x_(x), y_(y), z_(z), zError_(zError) {}
14  //default constructor
15  ScoutingVertex(): x_(0), y_(0), z_(0), zError_(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 
23  private:
24  float x_;
25  float y_;
26  float z_;
27  float zError_;
28 };
29 
30 typedef std::vector<ScoutingVertex> ScoutingVertexCollection;
31 
32 #endif
float x() const
ScoutingVertex(float x, float y, float z, float zError)
float zError() const
std::vector< ScoutingVertex > ScoutingVertexCollection
float y() const
float z() const