CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
RPCDigi Class Reference

#include <RPCDigi.h>

Public Member Functions

int bx () 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 ()
 
int strip () const
 

Private Attributes

int32_t bx_
 
uint16_t strip_
 

Detailed Description

Digi for Rsisitive Plate Chamber

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

Definition at line 16 of file RPCDigi.h.

Constructor & Destructor Documentation

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

Definition at line 11 of file RPCDigi.cc.

11  :
12  strip_(strip),
13  bx_(bx)
14 {}
uint16_t strip_
Definition: RPCDigi.h:30
int bx() const
Definition: RPCDigi.cc:47
int strip() const
Definition: RPCDigi.cc:45
int32_t bx_
Definition: RPCDigi.h:31
RPCDigi::RPCDigi ( )

Definition at line 16 of file RPCDigi.cc.

16  :
17  strip_(0),
18  bx_(0)
19 {}
uint16_t strip_
Definition: RPCDigi.h:30
int32_t bx_
Definition: RPCDigi.h:31

Member Function Documentation

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

Precedence operator.

Definition at line 32 of file RPCDigi.cc.

References bx(), and strip().

32  {
33 
34  if(digi.bx() == this->bx())
35  return digi.strip()<this->strip();
36  else
37  return digi.bx()<this->bx();
38 }
int bx() const
Definition: RPCDigi.cc:47
int strip() const
Definition: RPCDigi.cc:45
bool RPCDigi::operator== ( const RPCDigi digi) const

Definition at line 24 of file RPCDigi.cc.

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

24  {
25  if ( strip_ != digi.strip() ||
26  bx_ != digi.bx() ) return false;
27  return true;
28 }
uint16_t strip_
Definition: RPCDigi.h:30
int bx() const
Definition: RPCDigi.cc:47
int strip() const
Definition: RPCDigi.cc:45
int32_t bx_
Definition: RPCDigi.h:31
void RPCDigi::print ( void  ) const

Definition at line 50 of file RPCDigi.cc.

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

50  {
51  std::cout << "Strip " << strip()
52  << " bx " << bx() <<std::endl;
53 }
int bx() const
Definition: RPCDigi.cc:47
int strip() const
Definition: RPCDigi.cc:45
tuple cout
Definition: gather_cfg.py:121
int RPCDigi::strip ( ) const

Member Data Documentation

int32_t RPCDigi::bx_
private

Definition at line 31 of file RPCDigi.h.

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

uint16_t RPCDigi::strip_
private

Definition at line 30 of file RPCDigi.h.

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