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
GEMDigi Class Reference

#include <GEMDigi.h>

Public Member Functions

int bx () const
 
 GEMDigi (int strip, int bx)
 
 GEMDigi ()
 
bool operator< (const GEMDigi &digi) const
 Precedence operator. More...
 
bool operator== (const GEMDigi &digi) const
 
void print () const
 
int strip () const
 

Private Attributes

int32_t bx_
 
uint16_t strip_
 

Detailed Description

Digi for GEM

Author
Vadim Khotilovich

Definition at line 16 of file GEMDigi.h.

Constructor & Destructor Documentation

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

Definition at line 11 of file GEMDigi.cc.

11  :
12  strip_(strip),
13  bx_(bx)
14 {}
int bx() const
Definition: GEMDigi.h:26
uint16_t strip_
Definition: GEMDigi.h:31
int strip() const
Definition: GEMDigi.h:25
int32_t bx_
Definition: GEMDigi.h:32
GEMDigi::GEMDigi ( )

Definition at line 16 of file GEMDigi.cc.

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

Member Function Documentation

int GEMDigi::bx ( ) const
inline

Definition at line 26 of file GEMDigi.h.

References bx_.

Referenced by operator<(), operator<<(), operator==(), and print().

26 {return bx_; }
int32_t bx_
Definition: GEMDigi.h:32
bool GEMDigi::operator< ( const GEMDigi digi) const

Precedence operator.

Definition at line 32 of file GEMDigi.cc.

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

33 {
34  if(digi.bx() == bx_)
35  return digi.strip() < strip_;
36  else
37  return digi.bx() < bx_;
38 }
int bx() const
Definition: GEMDigi.h:26
uint16_t strip_
Definition: GEMDigi.h:31
int strip() const
Definition: GEMDigi.h:25
int32_t bx_
Definition: GEMDigi.h:32
bool GEMDigi::operator== ( const GEMDigi digi) const

Definition at line 23 of file GEMDigi.cc.

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

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

Definition at line 47 of file GEMDigi.cc.

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

48 {
49  std::cout << "Strip " << strip() << " bx " << bx() <<std::endl;
50 }
int bx() const
Definition: GEMDigi.h:26
tuple cout
Definition: gather_cfg.py:121
int strip() const
Definition: GEMDigi.h:25
int GEMDigi::strip ( ) const
inline

Definition at line 25 of file GEMDigi.h.

References strip_.

Referenced by operator<(), operator<<(), operator==(), and print().

25 { return strip_; }
uint16_t strip_
Definition: GEMDigi.h:31

Member Data Documentation

int32_t GEMDigi::bx_
private

Definition at line 32 of file GEMDigi.h.

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

uint16_t GEMDigi::strip_
private

Definition at line 31 of file GEMDigi.h.

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