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::RPCDigi ( int  strip,
int  bx 
)
explicit

Definition at line 16 of file RPCDigi.cc.

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

Definition at line 30 of file RPCDigi.cc.

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

Member Function Documentation

int RPCDigi::bx ( ) const
inline
double RPCDigi::coordinateX ( ) const
inline

Definition at line 31 of file RPCDigi.h.

References coordinateX_.

31 { return coordinateX_; }
double coordinateX_
Definition: RPCDigi.h:56
double RPCDigi::coordinateY ( ) const
inline

Definition at line 32 of file RPCDigi.h.

References coordinateY_.

32 { return coordinateY_; }
double coordinateY_
Definition: RPCDigi.h:57
double RPCDigi::deltaTime ( ) const
inline

Definition at line 39 of file RPCDigi.h.

References deltaTime_.

39 { return deltaTime_; }
double deltaTime_
Definition: RPCDigi.h:58
double RPCDigi::deltaX ( ) const
inline

Definition at line 40 of file RPCDigi.h.

References deltaX_.

40 { return deltaX_; }
double deltaX_
Definition: RPCDigi.h:59
double RPCDigi::deltaY ( ) const
inline

Definition at line 41 of file RPCDigi.h.

References deltaY_.

41 { return deltaY_; }
double deltaY_
Definition: RPCDigi.h:60
bool RPCDigi::hasTime ( ) const
inline

Definition at line 33 of file RPCDigi.h.

References hasTime_.

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

33 { return hasTime_; }
bool hasTime_
Definition: RPCDigi.h:61
void RPCDigi::hasTime ( bool  has)
inline

Definition at line 36 of file RPCDigi.h.

References hasTime_.

36 { hasTime_ = has; }
bool hasTime_
Definition: RPCDigi.h:61
bool RPCDigi::hasX ( ) const
inline

Definition at line 34 of file RPCDigi.h.

References hasX_.

34 { return hasX_; }
bool hasX_
Definition: RPCDigi.h:62
void RPCDigi::hasX ( bool  has)
inline

Definition at line 37 of file RPCDigi.h.

References hasX_.

37 { hasX_ = has; }
bool hasX_
Definition: RPCDigi.h:62
bool RPCDigi::hasY ( ) const
inline

Definition at line 35 of file RPCDigi.h.

References hasY_.

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

35 { return hasY_; }
bool hasY_
Definition: RPCDigi.h:63
void RPCDigi::hasY ( bool  has)
inline

Definition at line 38 of file RPCDigi.h.

References hasY_.

38 { hasY_ = has; }
bool hasY_
Definition: RPCDigi.h:63
bool RPCDigi::isPseudoDigi ( ) const
inline

Definition at line 48 of file RPCDigi.h.

References hasX_, and hasY_.

48 { return hasX_ || hasY_ ; }
bool hasY_
Definition: RPCDigi.h:63
bool hasX_
Definition: RPCDigi.h:62
bool RPCDigi::operator< ( const RPCDigi digi) const

Precedence operator.

Definition at line 53 of file RPCDigi.cc.

References bx(), and strip().

53  {
54  if(digi.bx() == this->bx())
55  return digi.strip()<this->strip();
56  else
57  return digi.bx()<this->bx();
58 }
int bx() const
Definition: RPCDigi.h:29
int strip() const
Definition: RPCDigi.h:28
bool RPCDigi::operator== ( const RPCDigi digi) const

Definition at line 46 of file RPCDigi.cc.

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

46  {
47  if ( strip_ != digi.strip() ||
48  bx_ != digi.bx() ) return false;
49  return true;
50 }
uint16_t strip_
Definition: RPCDigi.h:53
int bx() const
Definition: RPCDigi.h:29
int strip() const
Definition: RPCDigi.h:28
int32_t bx_
Definition: RPCDigi.h:54
void RPCDigi::print ( void  ) const

Definition at line 65 of file RPCDigi.cc.

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

65  {
66  std::cout << "Strip " << strip()
67  << " bx " << bx() <<std::endl;
68 }
int bx() const
Definition: RPCDigi.h:29
int strip() const
Definition: RPCDigi.h:28
void RPCDigi::setDeltaTime ( double  dt)
inline

Definition at line 43 of file RPCDigi.h.

References deltaTime_, and dt.

43 { deltaTime_ = dt; }
float dt
Definition: AMPTWrapper.h:126
double deltaTime_
Definition: RPCDigi.h:58
void RPCDigi::setDeltaX ( double  dx)
inline

Definition at line 46 of file RPCDigi.h.

References deltaX_.

46 { deltaX_ = dx; }
double deltaX_
Definition: RPCDigi.h:59
void RPCDigi::setDeltaY ( double  dy)
inline

Definition at line 47 of file RPCDigi.h.

References deltaY_.

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

47 { deltaY_ = dy; }
double deltaY_
Definition: RPCDigi.h:60
void RPCDigi::setTime ( double  time)
inline

Definition at line 42 of file RPCDigi.h.

References time(), and time_.

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

42 { time_ = time;}
double time_
Definition: RPCDigi.h:55
double time() const
Definition: RPCDigi.h:30
void RPCDigi::setX ( double  x)
inline

Definition at line 44 of file RPCDigi.h.

References coordinateX_, and x.

44 { coordinateX_ = x; }
double coordinateX_
Definition: RPCDigi.h:56
void RPCDigi::setY ( double  y)
inline

Definition at line 45 of file RPCDigi.h.

References coordinateY_, and y.

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

45 { coordinateY_ = y; }
double coordinateY_
Definition: RPCDigi.h:57
int RPCDigi::strip ( ) const
inline
double RPCDigi::time ( ) const
inline

Definition at line 30 of file RPCDigi.h.

References time_.

Referenced by setTime().

30 { return time_; }
double time_
Definition: RPCDigi.h:55

Member Data Documentation

int32_t RPCDigi::bx_
private

Definition at line 54 of file RPCDigi.h.

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

double RPCDigi::coordinateX_
private

Definition at line 56 of file RPCDigi.h.

Referenced by coordinateX(), and setX().

double RPCDigi::coordinateY_
private

Definition at line 57 of file RPCDigi.h.

Referenced by coordinateY(), and setY().

double RPCDigi::deltaTime_
private

Definition at line 58 of file RPCDigi.h.

Referenced by deltaTime(), and setDeltaTime().

double RPCDigi::deltaX_
private

Definition at line 59 of file RPCDigi.h.

Referenced by deltaX(), and setDeltaX().

double RPCDigi::deltaY_
private

Definition at line 60 of file RPCDigi.h.

Referenced by deltaY(), and setDeltaY().

bool RPCDigi::hasTime_
private

Definition at line 61 of file RPCDigi.h.

Referenced by hasTime().

bool RPCDigi::hasX_
private

Definition at line 62 of file RPCDigi.h.

Referenced by hasX(), and isPseudoDigi().

bool RPCDigi::hasY_
private

Definition at line 63 of file RPCDigi.h.

Referenced by hasY(), and isPseudoDigi().

uint16_t RPCDigi::strip_
private

Definition at line 53 of file RPCDigi.h.

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

double RPCDigi::time_
private

Definition at line 55 of file RPCDigi.h.

Referenced by setTime(), and time().