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

Date:
2013/01/18 04:18:31
Revision:
1.2
Author
Vadim Khotilovich

Definition at line 18 of file GEMDigi.h.

Constructor & Destructor Documentation

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

Definition at line 13 of file GEMDigi.cc.

13  :
14  strip_(strip),
15  bx_(bx)
16 {}
int bx() const
Definition: GEMDigi.h:28
uint16_t strip_
Definition: GEMDigi.h:33
int strip() const
Definition: GEMDigi.h:27
int32_t bx_
Definition: GEMDigi.h:34
GEMDigi::GEMDigi ( )

Definition at line 18 of file GEMDigi.cc.

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

Member Function Documentation

int GEMDigi::bx ( ) const
inline

Definition at line 28 of file GEMDigi.h.

References bx_.

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

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

Precedence operator.

Definition at line 34 of file GEMDigi.cc.

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

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

Definition at line 25 of file GEMDigi.cc.

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

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

Definition at line 49 of file GEMDigi.cc.

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

50 {
51  std::cout << "Strip " << strip() << " bx " << bx() <<std::endl;
52 }
int bx() const
Definition: GEMDigi.h:28
tuple cout
Definition: gather_cfg.py:121
int strip() const
Definition: GEMDigi.h:27
int GEMDigi::strip ( ) const
inline

Definition at line 27 of file GEMDigi.h.

References strip_.

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

27 { return strip_; }
uint16_t strip_
Definition: GEMDigi.h:33

Member Data Documentation

int32_t GEMDigi::bx_
private

Definition at line 34 of file GEMDigi.h.

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

uint16_t GEMDigi::strip_
private

Definition at line 33 of file GEMDigi.h.

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