CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
RPCDigi Class Reference

#include <RPCDigi.h>

Public Member Functions

int bx () const
 
double coordinateX () const
 
double coordinateY () const
 
double deltaTime () const
 
double deltaX () const
 
double deltaY () const
 
bool hasTime () const
 
void hasTime (bool has)
 
bool hasX () const
 
void hasX (bool has)
 
bool hasY () const
 
void hasY (bool has)
 
bool isPseudoDigi () const
 
bool operator< (const RPCDigi &digi) const
 Precedence operator. More...
 
bool operator== (const RPCDigi &digi) const
 
void print () const
 
 RPCDigi (int strip, int bx)
 
 RPCDigi ()
 
void setDeltaTime (double dt)
 
void setDeltaX (double dx)
 
void setDeltaY (double dy)
 
void setTime (double time)
 
void setX (double x)
 
void setY (double y)
 
int strip () const
 
double time () const
 

Private Attributes

int32_t bx_
 
double coordinateX_
 
double coordinateY_
 
double deltaTime_
 
double deltaX_
 
double deltaY_
 
bool hasTime_
 
bool hasX_
 
bool hasY_
 
uint16_t strip_
 
double time_
 

Detailed Description

Digi for Rsisitive Plate Chamber

Author
I. Segoni – CERN & M. Maggi – INFN Bari

modified by Borislav Pavlov - University of Sofia modification to be used for upgrade and for "pseudodigi"

Definition at line 19 of file RPCDigi.h.

Constructor & Destructor Documentation

◆ RPCDigi() [1/2]

RPCDigi::RPCDigi ( int  strip,
int  bx 
)
explicit

Definition at line 15 of file RPCDigi.cc.

16  : strip_(strip),
17  bx_(bx),
18  time_(0),
19  coordinateX_(0),
20  coordinateY_(0),
21  deltaTime_(0),
22  deltaX_(0),
23  deltaY_(0),
24  hasTime_(false),
25  hasX_(false),
26  hasY_(false) {}
int bx() const
Definition: RPCDigi.h:28
bool hasY_
Definition: RPCDigi.h:60
double deltaY_
Definition: RPCDigi.h:57
uint16_t strip_
Definition: RPCDigi.h:50
bool hasX_
Definition: RPCDigi.h:59
double time_
Definition: RPCDigi.h:52
double coordinateY_
Definition: RPCDigi.h:54
double coordinateX_
Definition: RPCDigi.h:53
int32_t bx_
Definition: RPCDigi.h:51
int strip() const
Definition: RPCDigi.h:27
double deltaX_
Definition: RPCDigi.h:56
bool hasTime_
Definition: RPCDigi.h:58
double deltaTime_
Definition: RPCDigi.h:55

◆ RPCDigi() [2/2]

RPCDigi::RPCDigi ( )

Definition at line 28 of file RPCDigi.cc.

29  : strip_(0),
30  bx_(0),
31  time_(0),
32  coordinateX_(0),
33  coordinateY_(0),
34  deltaTime_(0),
35  deltaX_(0),
36  deltaY_(0),
37  hasTime_(false),
38  hasX_(false),
39  hasY_(false) {}
bool hasY_
Definition: RPCDigi.h:60
double deltaY_
Definition: RPCDigi.h:57
uint16_t strip_
Definition: RPCDigi.h:50
bool hasX_
Definition: RPCDigi.h:59
double time_
Definition: RPCDigi.h:52
double coordinateY_
Definition: RPCDigi.h:54
double coordinateX_
Definition: RPCDigi.h:53
int32_t bx_
Definition: RPCDigi.h:51
double deltaX_
Definition: RPCDigi.h:56
bool hasTime_
Definition: RPCDigi.h:58
double deltaTime_
Definition: RPCDigi.h:55

Member Function Documentation

◆ bx()

int RPCDigi::bx ( ) const
inline

◆ coordinateX()

double RPCDigi::coordinateX ( ) const
inline

Definition at line 30 of file RPCDigi.h.

References coordinateX_.

Referenced by L1TMuon::TriggerPrimitive::TriggerPrimitive().

30 { return coordinateX_; }
double coordinateX_
Definition: RPCDigi.h:53

◆ coordinateY()

double RPCDigi::coordinateY ( ) const
inline

Definition at line 31 of file RPCDigi.h.

References coordinateY_.

Referenced by L1TMuon::TriggerPrimitive::TriggerPrimitive().

31 { return coordinateY_; }
double coordinateY_
Definition: RPCDigi.h:54

◆ deltaTime()

double RPCDigi::deltaTime ( ) const
inline

Definition at line 38 of file RPCDigi.h.

References deltaTime_.

38 { return deltaTime_; }
double deltaTime_
Definition: RPCDigi.h:55

◆ deltaX()

double RPCDigi::deltaX ( ) const
inline

Definition at line 39 of file RPCDigi.h.

References deltaX_.

39 { return deltaX_; }
double deltaX_
Definition: RPCDigi.h:56

◆ deltaY()

double RPCDigi::deltaY ( ) const
inline

Definition at line 40 of file RPCDigi.h.

References deltaY_.

40 { return deltaY_; }
double deltaY_
Definition: RPCDigi.h:57

◆ hasTime() [1/2]

bool RPCDigi::hasTime ( ) const
inline

Definition at line 32 of file RPCDigi.h.

References hasTime_.

Referenced by RPCSimModelTiming::simulate(), RPCSimModelTiming::simulateNoise(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().

32 { return hasTime_; }
bool hasTime_
Definition: RPCDigi.h:58

◆ hasTime() [2/2]

void RPCDigi::hasTime ( bool  has)
inline

Definition at line 35 of file RPCDigi.h.

References hasTime_.

35 { hasTime_ = has; }
bool hasTime_
Definition: RPCDigi.h:58

◆ hasX() [1/2]

bool RPCDigi::hasX ( ) const
inline

Definition at line 33 of file RPCDigi.h.

References hasX_.

Referenced by L1TMuon::TriggerPrimitive::TriggerPrimitive().

33 { return hasX_; }
bool hasX_
Definition: RPCDigi.h:59

◆ hasX() [2/2]

void RPCDigi::hasX ( bool  has)
inline

Definition at line 36 of file RPCDigi.h.

References hasX_.

36 { hasX_ = has; }
bool hasX_
Definition: RPCDigi.h:59

◆ hasY() [1/2]

bool RPCDigi::hasY ( ) const
inline

Definition at line 34 of file RPCDigi.h.

References hasY_.

Referenced by RPCSimModelTiming::simulate(), RPCSimModelTiming::simulateNoise(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().

34 { return hasY_; }
bool hasY_
Definition: RPCDigi.h:60

◆ hasY() [2/2]

void RPCDigi::hasY ( bool  has)
inline

Definition at line 37 of file RPCDigi.h.

References hasY_.

37 { hasY_ = has; }
bool hasY_
Definition: RPCDigi.h:60

◆ isPseudoDigi()

bool RPCDigi::isPseudoDigi ( ) const
inline

Definition at line 47 of file RPCDigi.h.

References hasX_, and hasY_.

47 { return hasX_ || hasY_; }
bool hasY_
Definition: RPCDigi.h:60
bool hasX_
Definition: RPCDigi.h:59

◆ operator<()

bool RPCDigi::operator< ( const RPCDigi digi) const

Precedence operator.

Definition at line 49 of file RPCDigi.cc.

References bx(), and strip().

49  {
50  if (digi.bx() == this->bx())
51  return digi.strip() < this->strip();
52  else
53  return digi.bx() < this->bx();
54 }
int bx() const
Definition: RPCDigi.h:28
int strip() const
Definition: RPCDigi.h:27

◆ operator==()

bool RPCDigi::operator== ( const RPCDigi digi) const

Definition at line 42 of file RPCDigi.cc.

References bx(), bx_, strip(), and strip_.

42  {
43  if (strip_ != digi.strip() || bx_ != digi.bx())
44  return false;
45  return true;
46 }
int bx() const
Definition: RPCDigi.h:28
uint16_t strip_
Definition: RPCDigi.h:50
int32_t bx_
Definition: RPCDigi.h:51
int strip() const
Definition: RPCDigi.h:27

◆ print()

void RPCDigi::print ( void  ) const

Definition at line 58 of file RPCDigi.cc.

References bx(), gather_cfg::cout, and strip().

58 { std::cout << "Strip " << strip() << " bx " << bx() << std::endl; }
int bx() const
Definition: RPCDigi.h:28
int strip() const
Definition: RPCDigi.h:27

◆ setDeltaTime()

void RPCDigi::setDeltaTime ( double  dt)
inline

Definition at line 42 of file RPCDigi.h.

References deltaTime_, and dt.

42 { deltaTime_ = dt; }
float dt
Definition: AMPTWrapper.h:136
double deltaTime_
Definition: RPCDigi.h:55

◆ setDeltaX()

void RPCDigi::setDeltaX ( double  dx)
inline

Definition at line 45 of file RPCDigi.h.

References deltaX_, and PVValHelper::dx.

45 { deltaX_ = dx; }
double deltaX_
Definition: RPCDigi.h:56

◆ setDeltaY()

void RPCDigi::setDeltaY ( double  dy)
inline

Definition at line 46 of file RPCDigi.h.

References deltaY_, and PVValHelper::dy.

Referenced by RPCSimModelTiming::simulate(), and RPCSimModelTiming::simulateNoise().

46 { deltaY_ = dy; }
double deltaY_
Definition: RPCDigi.h:57

◆ setTime()

void RPCDigi::setTime ( double  time)
inline

Definition at line 41 of file RPCDigi.h.

References time(), and time_.

Referenced by RPCSimModelTiming::simulate(), and RPCSimModelTiming::simulateNoise().

41 { time_ = time; }
double time_
Definition: RPCDigi.h:52
double time() const
Definition: RPCDigi.h:29

◆ setX()

void RPCDigi::setX ( double  x)
inline

Definition at line 43 of file RPCDigi.h.

References coordinateX_, and x.

43 { coordinateX_ = x; }
double coordinateX_
Definition: RPCDigi.h:53

◆ setY()

void RPCDigi::setY ( double  y)
inline

Definition at line 44 of file RPCDigi.h.

References coordinateY_, and y.

Referenced by RPCSimModelTiming::simulate(), and RPCSimModelTiming::simulateNoise().

44 { coordinateY_ = y; }
double coordinateY_
Definition: RPCDigi.h:54

◆ strip()

int RPCDigi::strip ( ) const
inline

◆ time()

double RPCDigi::time ( ) const
inline

Definition at line 29 of file RPCDigi.h.

References time_.

Referenced by setTime(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().

29 { return time_; }
double time_
Definition: RPCDigi.h:52

Member Data Documentation

◆ bx_

int32_t RPCDigi::bx_
private

Definition at line 51 of file RPCDigi.h.

Referenced by bx(), and operator==().

◆ coordinateX_

double RPCDigi::coordinateX_
private

Definition at line 53 of file RPCDigi.h.

Referenced by coordinateX(), and setX().

◆ coordinateY_

double RPCDigi::coordinateY_
private

Definition at line 54 of file RPCDigi.h.

Referenced by coordinateY(), and setY().

◆ deltaTime_

double RPCDigi::deltaTime_
private

Definition at line 55 of file RPCDigi.h.

Referenced by deltaTime(), and setDeltaTime().

◆ deltaX_

double RPCDigi::deltaX_
private

Definition at line 56 of file RPCDigi.h.

Referenced by deltaX(), and setDeltaX().

◆ deltaY_

double RPCDigi::deltaY_
private

Definition at line 57 of file RPCDigi.h.

Referenced by deltaY(), and setDeltaY().

◆ hasTime_

bool RPCDigi::hasTime_
private

Definition at line 58 of file RPCDigi.h.

Referenced by hasTime().

◆ hasX_

bool RPCDigi::hasX_
private

Definition at line 59 of file RPCDigi.h.

Referenced by hasX(), and isPseudoDigi().

◆ hasY_

bool RPCDigi::hasY_
private

Definition at line 60 of file RPCDigi.h.

Referenced by hasY(), and isPseudoDigi().

◆ strip_

uint16_t RPCDigi::strip_
private

Definition at line 50 of file RPCDigi.h.

Referenced by operator==(), and strip().

◆ time_

double RPCDigi::time_
private

Definition at line 52 of file RPCDigi.h.

Referenced by setTime(), and time().