File indexing completed on 2024-04-06 12:30:59
0001 #ifndef Tracker_SignalPoint_H
0002 #define Tracker_SignalPoint_H
0003
0004 #include "DataFormats/GeometryVector/interface/LocalPoint.h"
0005 #include "DataFormats/GeometryVector/interface/LocalVector.h"
0006
0007
0008
0009
0010
0011 class SignalPoint {
0012 public:
0013 SignalPoint() : _pos(0, 0), _sigma(0), _amplitude(0) {}
0014
0015 SignalPoint(float x, float y, float s, float a = 1.0) : _pos(x, y), _sigma(s), _amplitude(a) {}
0016
0017 const LocalPoint& position() const { return _pos; }
0018 float x() const { return _pos.x(); }
0019 float y() const { return _pos.y(); }
0020 float sigma() const { return _sigma; }
0021 float amplitude() const { return _amplitude; }
0022 SignalPoint& set_amplitude(float amp) {
0023 _amplitude = amp;
0024 return *this;
0025 }
0026
0027 private:
0028 LocalPoint _pos;
0029 float _sigma;
0030 float _amplitude;
0031 };
0032 #endif