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

#include <GEMCSCPadDigi.h>

Public Member Functions

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

Private Attributes

int32_t bx_
 
uint16_t pad_
 

Detailed Description

Digi for GEM-CSC trigger pads

Author
Vadim Khotilovich

Definition at line 16 of file GEMCSCPadDigi.h.

Constructor & Destructor Documentation

GEMCSCPadDigi::GEMCSCPadDigi ( int  pad,
int  bx 
)
explicit

Definition at line 11 of file GEMCSCPadDigi.cc.

11  :
12  pad_(pad),
13  bx_(bx)
14 {}
int bx() const
Definition: GEMCSCPadDigi.h:26
uint16_t pad_
Definition: GEMCSCPadDigi.h:31
int pad() const
Definition: GEMCSCPadDigi.h:25
GEMCSCPadDigi::GEMCSCPadDigi ( )

Definition at line 16 of file GEMCSCPadDigi.cc.

16  :
17  pad_(0),
18  bx_(0)
19 {}
uint16_t pad_
Definition: GEMCSCPadDigi.h:31

Member Function Documentation

int GEMCSCPadDigi::bx ( ) const
inline

Definition at line 26 of file GEMCSCPadDigi.h.

References bx_.

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

26 { return bx_; }
bool GEMCSCPadDigi::operator< ( const GEMCSCPadDigi digi) const

Precedence operator.

Definition at line 32 of file GEMCSCPadDigi.cc.

References bx(), bx_, pad(), and pad_.

33 {
34  if(digi.bx() == bx_)
35  return digi.pad() < pad_;
36  else
37  return digi.bx() < bx_;
38 }
int bx() const
Definition: GEMCSCPadDigi.h:26
uint16_t pad_
Definition: GEMCSCPadDigi.h:31
int pad() const
Definition: GEMCSCPadDigi.h:25
bool GEMCSCPadDigi::operator== ( const GEMCSCPadDigi digi) const

Definition at line 23 of file GEMCSCPadDigi.cc.

References bx(), bx_, pad(), and pad_.

24 {
25  if ( pad_ != digi.pad() ||
26  bx_ != digi.bx() ) return false;
27  return true;
28 }
int bx() const
Definition: GEMCSCPadDigi.h:26
uint16_t pad_
Definition: GEMCSCPadDigi.h:31
int pad() const
Definition: GEMCSCPadDigi.h:25
int GEMCSCPadDigi::pad ( ) const
inline

Definition at line 25 of file GEMCSCPadDigi.h.

References pad_.

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

25 { return pad_; }
uint16_t pad_
Definition: GEMCSCPadDigi.h:31
void GEMCSCPadDigi::print ( void  ) const

Definition at line 47 of file GEMCSCPadDigi.cc.

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

48 {
49  std::cout << "Pad " << pad() << " bx " << bx() <<std::endl;
50 }
int bx() const
Definition: GEMCSCPadDigi.h:26
tuple cout
Definition: gather_cfg.py:121
int pad() const
Definition: GEMCSCPadDigi.h:25

Member Data Documentation

int32_t GEMCSCPadDigi::bx_
private

Definition at line 32 of file GEMCSCPadDigi.h.

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

uint16_t GEMCSCPadDigi::pad_
private

Definition at line 31 of file GEMCSCPadDigi.h.

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