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 ()
 
 RPCDigi (int strip, int bx)
 
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) {}

◆ 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) {}

Member Function Documentation

◆ bx()

int RPCDigi::bx ( ) const
inline

◆ coordinateX()

double RPCDigi::coordinateX ( ) const
inline

Definition at line 30 of file RPCDigi.h.

30 { return coordinateX_; }

References coordinateX_.

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

◆ coordinateY()

double RPCDigi::coordinateY ( ) const
inline

Definition at line 31 of file RPCDigi.h.

31 { return coordinateY_; }

References coordinateY_.

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

◆ deltaTime()

double RPCDigi::deltaTime ( ) const
inline

Definition at line 38 of file RPCDigi.h.

38 { return deltaTime_; }

References deltaTime_.

◆ deltaX()

double RPCDigi::deltaX ( ) const
inline

Definition at line 39 of file RPCDigi.h.

39 { return deltaX_; }

References deltaX_.

◆ deltaY()

double RPCDigi::deltaY ( ) const
inline

Definition at line 40 of file RPCDigi.h.

40 { return deltaY_; }

References deltaY_.

◆ hasTime() [1/2]

bool RPCDigi::hasTime ( ) const
inline

◆ hasTime() [2/2]

void RPCDigi::hasTime ( bool  has)
inline

Definition at line 35 of file RPCDigi.h.

35 { hasTime_ = has; }

References hasTime_.

◆ hasX() [1/2]

bool RPCDigi::hasX ( ) const
inline

Definition at line 33 of file RPCDigi.h.

33 { return hasX_; }

References hasX_.

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

◆ hasX() [2/2]

void RPCDigi::hasX ( bool  has)
inline

Definition at line 36 of file RPCDigi.h.

36 { hasX_ = has; }

References hasX_.

◆ hasY() [1/2]

bool RPCDigi::hasY ( ) const
inline

◆ hasY() [2/2]

void RPCDigi::hasY ( bool  has)
inline

Definition at line 37 of file RPCDigi.h.

37 { hasY_ = has; }

References hasY_.

◆ isPseudoDigi()

bool RPCDigi::isPseudoDigi ( ) const
inline

Definition at line 47 of file RPCDigi.h.

47 { return hasX_ || hasY_; }

References hasX_, and hasY_.

◆ operator<()

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

Precedence operator.

Definition at line 49 of file RPCDigi.cc.

49  {
50  if (digi.bx() == this->bx())
51  return digi.strip() < this->strip();
52  else
53  return digi.bx() < this->bx();
54 }

References bx(), and strip().

◆ operator==()

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

Definition at line 42 of file RPCDigi.cc.

42  {
43  if (strip_ != digi.strip() || bx_ != digi.bx())
44  return false;
45  return true;
46 }

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

◆ print()

void RPCDigi::print ( void  ) const

Definition at line 58 of file RPCDigi.cc.

58 { std::cout << "Strip " << strip() << " bx " << bx() << std::endl; }

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

◆ setDeltaTime()

void RPCDigi::setDeltaTime ( double  dt)
inline

Definition at line 42 of file RPCDigi.h.

42 { deltaTime_ = dt; }

References deltaTime_, and dt.

◆ setDeltaX()

void RPCDigi::setDeltaX ( double  dx)
inline

Definition at line 45 of file RPCDigi.h.

45 { deltaX_ = dx; }

References deltaX_, and PVValHelper::dx.

◆ setDeltaY()

void RPCDigi::setDeltaY ( double  dy)
inline

Definition at line 46 of file RPCDigi.h.

46 { deltaY_ = dy; }

References deltaY_, and PVValHelper::dy.

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

◆ setTime()

void RPCDigi::setTime ( double  time)
inline

Definition at line 41 of file RPCDigi.h.

41 { time_ = time; }

References time(), and time_.

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

◆ setX()

void RPCDigi::setX ( double  x)
inline

Definition at line 43 of file RPCDigi.h.

43 { coordinateX_ = x; }

References coordinateX_, and x.

◆ setY()

void RPCDigi::setY ( double  y)
inline

Definition at line 44 of file RPCDigi.h.

44 { coordinateY_ = y; }

References coordinateY_, and y.

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

◆ strip()

int RPCDigi::strip ( ) const
inline

◆ time()

double RPCDigi::time ( ) const
inline

Definition at line 29 of file RPCDigi.h.

29 { return time_; }

References time_.

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

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().

DDAxes::y
gather_cfg.cout
cout
Definition: gather_cfg.py:144
RPCDigi::time
double time() const
Definition: RPCDigi.h:29
DDAxes::x
RPCDigi::coordinateX_
double coordinateX_
Definition: RPCDigi.h:53
RPCDigi::hasX_
bool hasX_
Definition: RPCDigi.h:59
RPCDigi::bx
int bx() const
Definition: RPCDigi.h:28
dt
float dt
Definition: AMPTWrapper.h:136
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::coordinateY_
double coordinateY_
Definition: RPCDigi.h:54
RPCDigi::deltaY_
double deltaY_
Definition: RPCDigi.h:57
PVValHelper::dy
Definition: PVValidationHelpers.h:49
RPCDigi::strip
int strip() const
Definition: RPCDigi.h:27
RPCDigi::time_
double time_
Definition: RPCDigi.h:52
RPCDigi::hasTime_
bool hasTime_
Definition: RPCDigi.h:58
RPCDigi::bx_
int32_t bx_
Definition: RPCDigi.h:51
RPCDigi::hasY_
bool hasY_
Definition: RPCDigi.h:60
PVValHelper::dx
Definition: PVValidationHelpers.h:48