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

Date:
2008/10/29 18:41:18
Revision:
1.9
Author
I. Segoni – CERN & M. Maggi – INFN Bari

Definition at line 18 of file RPCDigi.h.

Constructor & Destructor Documentation

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

Definition at line 13 of file RPCDigi.cc.

13  :
14  strip_(strip),
15  bx_(bx)
16 {}
uint16_t strip_
Definition: RPCDigi.h:32
int bx() const
Definition: RPCDigi.cc:49
int strip() const
Definition: RPCDigi.cc:47
int32_t bx_
Definition: RPCDigi.h:33
RPCDigi::RPCDigi ( )

Definition at line 18 of file RPCDigi.cc.

18  :
19  strip_(0),
20  bx_(0)
21 {}
uint16_t strip_
Definition: RPCDigi.h:32
int32_t bx_
Definition: RPCDigi.h:33

Member Function Documentation

int RPCDigi::bx ( ) const

Definition at line 49 of file RPCDigi.cc.

References bx_.

Referenced by rpcrawtodigi::DebugDigisPrintout::operator()(), operator<(), operator<<(), operator==(), print(), and RPCRecordFormatter::recordPack().

49 { return bx_; }
int32_t bx_
Definition: RPCDigi.h:33
bool RPCDigi::operator< ( const RPCDigi digi) const

Precedence operator.

Definition at line 34 of file RPCDigi.cc.

References bx(), and strip().

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

Definition at line 26 of file RPCDigi.cc.

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

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

Definition at line 52 of file RPCDigi.cc.

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

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

Definition at line 47 of file RPCDigi.cc.

References strip_.

Referenced by rpcrawtodigi::DebugDigisPrintout::operator()(), operator<(), operator<<(), operator==(), print(), and RPCRecordFormatter::recordPack().

47 { return strip_; }
uint16_t strip_
Definition: RPCDigi.h:32

Member Data Documentation

int32_t RPCDigi::bx_
private

Definition at line 33 of file RPCDigi.h.

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

uint16_t RPCDigi::strip_
private

Definition at line 32 of file RPCDigi.h.

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