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

Date:
2013/01/18 04:21:50
Revision:
1.1
Author
Vadim Khotilovich

Definition at line 18 of file GEMCSCPadDigi.h.

Constructor & Destructor Documentation

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

Definition at line 13 of file GEMCSCPadDigi.cc.

13  :
14  pad_(pad),
15  bx_(bx)
16 {}
int bx() const
Definition: GEMCSCPadDigi.h:28
uint16_t pad_
Definition: GEMCSCPadDigi.h:33
int pad() const
Definition: GEMCSCPadDigi.h:27
GEMCSCPadDigi::GEMCSCPadDigi ( )

Definition at line 18 of file GEMCSCPadDigi.cc.

18  :
19  pad_(0),
20  bx_(0)
21 {}
uint16_t pad_
Definition: GEMCSCPadDigi.h:33

Member Function Documentation

int GEMCSCPadDigi::bx ( ) const
inline

Definition at line 28 of file GEMCSCPadDigi.h.

References bx_.

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

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

Precedence operator.

Definition at line 34 of file GEMCSCPadDigi.cc.

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

35 {
36  if(digi.bx() == bx_)
37  return digi.pad() < pad_;
38  else
39  return digi.bx() < bx_;
40 }
int bx() const
Definition: GEMCSCPadDigi.h:28
uint16_t pad_
Definition: GEMCSCPadDigi.h:33
int pad() const
Definition: GEMCSCPadDigi.h:27
bool GEMCSCPadDigi::operator== ( const GEMCSCPadDigi digi) const

Definition at line 25 of file GEMCSCPadDigi.cc.

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

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

Definition at line 27 of file GEMCSCPadDigi.h.

References pad_.

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

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

Definition at line 49 of file GEMCSCPadDigi.cc.

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

50 {
51  std::cout << "Pad " << pad() << " bx " << bx() <<std::endl;
52 }
int bx() const
Definition: GEMCSCPadDigi.h:28
tuple cout
Definition: gather_cfg.py:121
int pad() const
Definition: GEMCSCPadDigi.h:27

Member Data Documentation

int32_t GEMCSCPadDigi::bx_
private

Definition at line 34 of file GEMCSCPadDigi.h.

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

uint16_t GEMCSCPadDigi::pad_
private

Definition at line 33 of file GEMCSCPadDigi.h.

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