CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CTPPSTimingRecHit.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * This is a part of CTPPS offline software.
4  * Authors:
5  * Laurent Forthomme (laurent.forthomme@cern.ch)
6  * Nicola Minafra (nicola.minafra@cern.ch)
7  *
8  ****************************************************************************/
9 
10 #ifndef DataFormats_CTPPSReco_CTPPSTimingRecHit
11 #define DataFormats_CTPPSReco_CTPPSTimingRecHit
12 
15 public:
16  CTPPSTimingRecHit() : x_(0.), xWidth_(0.), y_(0.), yWidth_(0.), z_(0.), zWidth_(0.), t_(0.) {}
17  CTPPSTimingRecHit(float x, float xWidth, float y, float yWidth, float z, float zWidth, float t)
18  : x_(x), xWidth_(xWidth), y_(y), yWidth_(yWidth), z_(z), zWidth_(zWidth), t_(t) {}
19 
20  inline void setX(float x) { x_ = x; }
21  inline float x() const { return x_; }
22 
23  inline void setY(float y) { y_ = y; }
24  inline float y() const { return y_; }
25 
26  inline void setZ(float z) { z_ = z; }
27  inline float z() const { return z_; }
28 
29  inline void setXWidth(float xWidth) { xWidth_ = xWidth; }
30  inline float xWidth() const { return xWidth_; }
31 
32  inline void setYWidth(float yWidth) { yWidth_ = yWidth; }
33  inline float yWidth() const { return yWidth_; }
34 
35  inline void setZWidth(float zWidth) { zWidth_ = zWidth; }
36  inline float zWidth() const { return zWidth_; }
37 
38  inline void setTime(float t) { t_ = t; }
39  inline float time() const { return t_; }
40 
41 protected:
42  float x_, xWidth_;
43  float y_, yWidth_;
44  float z_, zWidth_;
45  float t_;
46 };
47 
48 //----------------------------------------------------------------------------------------------------
49 
50 inline bool operator<(const CTPPSTimingRecHit &l, const CTPPSTimingRecHit &r) {
51  // only sort by leading edge time
52  return (l.time() < r.time());
53 }
54 
55 #endif
Reconstructed hit in timing detectors.
float zWidth() const
void setXWidth(float xWidth)
float time() const
CTPPSTimingRecHit(float x, float xWidth, float y, float yWidth, float z, float zWidth, float t)
void setTime(float t)
void setZ(float z)
void setZWidth(float zWidth)
float y() const
float z() const
void setY(float y)
bool operator<(DTCELinkId const &lhs, DTCELinkId const &rhs)
Definition: DTCELinkId.h:70
float x() const
float xWidth() const
void setYWidth(float yWidth)
float yWidth() const
void setX(float x)