CMS 3D CMS Logo

RPCDigi.h
Go to the documentation of this file.
1 #ifndef RPCDigi_RPCDigi_h
2 #define RPCDigi_RPCDigi_h
3 
16 #include <cstdint>
17 #include <iosfwd>
18 
19 class RPCDigi {
20 public:
21  explicit RPCDigi(int strip, int bx);
22  RPCDigi();
23 
24  bool operator==(const RPCDigi& digi) const;
25  bool operator<(const RPCDigi& digi) const;
26  void print() const;
27  int strip() const { return strip_; }
28  int bx() const { return bx_; }
29  double time() const { return time_; }
30  double coordinateX() const { return coordinateX_; }
31  double coordinateY() const { return coordinateY_; }
32  bool hasTime() const { return hasTime_; }
33  bool hasX() const { return hasX_; }
34  bool hasY() const { return hasY_; }
35  void hasTime(bool has) { hasTime_ = has; }
36  void hasX(bool has) { hasX_ = has; }
37  void hasY(bool has) { hasY_ = has; }
38  double deltaTime() const { return deltaTime_; }
39  double deltaX() const { return deltaX_; }
40  double deltaY() const { return deltaY_; }
41  void setTime(double time) { time_ = time; }
42  void setDeltaTime(double dt) { deltaTime_ = dt; }
43  void setX(double x) { coordinateX_ = x; }
44  void setY(double y) { coordinateY_ = y; }
45  void setDeltaX(double dx) { deltaX_ = dx; }
46  void setDeltaY(double dy) { deltaY_ = dy; }
47  bool isPseudoDigi() const { return hasX_ || hasY_; }
48 
49 private:
50  uint16_t strip_;
51  int32_t bx_;
52  double time_;
53  double coordinateX_;
54  double coordinateY_;
55  double deltaTime_;
56  double deltaX_;
57  double deltaY_;
58  bool hasTime_;
59  bool hasX_;
60  bool hasY_;
61 };
62 
63 std::ostream& operator<<(std::ostream& o, const RPCDigi& digi);
64 
65 #endif
RPCDigi::setDeltaTime
void setDeltaTime(double dt)
Definition: RPCDigi.h:42
DDAxes::y
RPCDigi::setX
void setX(double x)
Definition: RPCDigi.h:43
RPCDigi::setTime
void setTime(double time)
Definition: RPCDigi.h:41
operator<<
std::ostream & operator<<(std::ostream &o, const RPCDigi &digi)
Definition: RPCDigi.cc:56
RPCDigi::time
double time() const
Definition: RPCDigi.h:29
RPCDigi::coordinateX
double coordinateX() const
Definition: RPCDigi.h:30
RPCDigi::setDeltaY
void setDeltaY(double dy)
Definition: RPCDigi.h:46
DDAxes::x
RPCDigi::coordinateX_
double coordinateX_
Definition: RPCDigi.h:53
RPCDigi::print
void print() const
Definition: RPCDigi.cc:58
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
RPCDigi::hasX_
bool hasX_
Definition: RPCDigi.h:59
RPCDigi::hasTime
void hasTime(bool has)
Definition: RPCDigi.h:35
RPCDigi::bx
int bx() const
Definition: RPCDigi.h:28
RPCDigi::hasX
bool hasX() const
Definition: RPCDigi.h:33
RPCDigi::hasY
void hasY(bool has)
Definition: RPCDigi.h:37
dt
float dt
Definition: AMPTWrapper.h:136
RPCDigi::setY
void setY(double y)
Definition: RPCDigi.h:44
RPCDigi::hasX
void hasX(bool has)
Definition: RPCDigi.h:36
RPCDigi::hasTime
bool hasTime() const
Definition: RPCDigi.h:32
RPCDigi::operator==
bool operator==(const RPCDigi &digi) const
Definition: RPCDigi.cc:42
RPCDigi::strip_
uint16_t strip_
Definition: RPCDigi.h:50
RPCDigi::deltaTime_
double deltaTime_
Definition: RPCDigi.h:55
RPCDigi::deltaX_
double deltaX_
Definition: RPCDigi.h:56
RPCDigi::RPCDigi
RPCDigi()
Definition: RPCDigi.cc:28
RPCDigi::coordinateY_
double coordinateY_
Definition: RPCDigi.h:54
RPCDigi::deltaY_
double deltaY_
Definition: RPCDigi.h:57
RPCDigi::operator<
bool operator<(const RPCDigi &digi) const
Precedence operator.
Definition: RPCDigi.cc:49
RPCDigi::hasY
bool hasY() const
Definition: RPCDigi.h:34
PVValHelper::dy
Definition: PVValidationHelpers.h:50
RPCDigi::deltaX
double deltaX() const
Definition: RPCDigi.h:39
RPCDigi::strip
int strip() const
Definition: RPCDigi.h:27
RPCDigi::setDeltaX
void setDeltaX(double dx)
Definition: RPCDigi.h:45
RPCDigi::time_
double time_
Definition: RPCDigi.h:52
RPCDigi
Definition: RPCDigi.h:19
RPCDigi::deltaTime
double deltaTime() const
Definition: RPCDigi.h:38
RPCDigi::hasTime_
bool hasTime_
Definition: RPCDigi.h:58
RPCDigi::coordinateY
double coordinateY() const
Definition: RPCDigi.h:31
RPCDigi::bx_
int32_t bx_
Definition: RPCDigi.h:51
RPCDigi::hasY_
bool hasY_
Definition: RPCDigi.h:60
PVValHelper::dx
Definition: PVValidationHelpers.h:49
RPCDigi::isPseudoDigi
bool isPseudoDigi() const
Definition: RPCDigi.h:47
RPCDigi::deltaY
double deltaY() const
Definition: RPCDigi.h:40