File indexing completed on 2024-04-06 12:05:10
0001 #ifndef DataFormats_Run3ScoutingVertex_h
0002 #define DataFormats_Run3ScoutingVertex_h
0003
0004 #include <vector>
0005
0006
0007
0008 class Run3ScoutingVertex {
0009 public:
0010
0011 Run3ScoutingVertex(float x,
0012 float y,
0013 float z,
0014 float zError,
0015 float xError,
0016 float yError,
0017 int tracksSize,
0018 float chi2,
0019 int ndof,
0020 bool isValidVtx,
0021 float xyCov,
0022 float xzCov,
0023 float yzCov)
0024 : x_(x),
0025 y_(y),
0026 z_(z),
0027 zError_(zError),
0028 xError_(xError),
0029 yError_(yError),
0030 tracksSize_(tracksSize),
0031 chi2_(chi2),
0032 ndof_(ndof),
0033 isValidVtx_(isValidVtx),
0034 xyCov_(xyCov),
0035 xzCov_(xzCov),
0036 yzCov_(yzCov) {}
0037
0038 Run3ScoutingVertex()
0039 : x_(0),
0040 y_(0),
0041 z_(0),
0042 zError_(0),
0043 xError_(0),
0044 yError_(0),
0045 tracksSize_(0),
0046 chi2_(0),
0047 ndof_(0),
0048 isValidVtx_(false),
0049 xyCov_(0),
0050 xzCov_(0),
0051 yzCov_(0) {}
0052
0053
0054 float x() const { return x_; }
0055 float y() const { return y_; }
0056 float z() const { return z_; }
0057 float xError() const { return xError_; }
0058 float yError() const { return yError_; }
0059 float zError() const { return zError_; }
0060 int tracksSize() const { return tracksSize_; }
0061 float chi2() const { return chi2_; }
0062 int ndof() const { return ndof_; }
0063 bool isValidVtx() const { return isValidVtx_; }
0064 float xyCov() const { return xyCov_; }
0065 float xzCov() const { return xzCov_; }
0066 float yzCov() const { return yzCov_; }
0067
0068 private:
0069 float x_;
0070 float y_;
0071 float z_;
0072 float zError_;
0073 float xError_;
0074 float yError_;
0075 int tracksSize_;
0076 float chi2_;
0077 int ndof_;
0078 bool isValidVtx_;
0079 float xyCov_;
0080 float xzCov_;
0081 float yzCov_;
0082 };
0083
0084 typedef std::vector<Run3ScoutingVertex> Run3ScoutingVertexCollection;
0085
0086 #endif