test
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
GEMPadDigi Class Reference

#include <GEMPadDigi.h>

Public Member Functions

int bx () const
 
 GEMPadDigi (int pad, int bx)
 
 GEMPadDigi ()
 
bool operator!= (const GEMPadDigi &digi) const
 
bool operator< (const GEMPadDigi &digi) const
 Precedence operator. More...
 
bool operator== (const GEMPadDigi &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 15 of file GEMPadDigi.h.

Constructor & Destructor Documentation

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

Definition at line 13 of file GEMPadDigi.cc.

13  :
14  pad_(pad),
15  bx_(bx)
16 {}
uint16_t pad_
Definition: GEMPadDigi.h:31
int pad() const
Definition: GEMPadDigi.h:25
int bx() const
Definition: GEMPadDigi.h:26
int32_t bx_
Definition: GEMPadDigi.h:32
GEMPadDigi::GEMPadDigi ( )

Definition at line 18 of file GEMPadDigi.cc.

18  :
19  pad_(0),
20  bx_(0)
21 {}
uint16_t pad_
Definition: GEMPadDigi.h:31
int32_t bx_
Definition: GEMPadDigi.h:32

Member Function Documentation

int GEMPadDigi::bx ( ) const
inline

Definition at line 26 of file GEMPadDigi.h.

References bx_.

Referenced by GEMCoPadDigi::bx(), operator!=(), operator<(), operator<<(), operator==(), print(), and GEMCoPadDigi::print().

26 { return bx_; }
int32_t bx_
Definition: GEMPadDigi.h:32
bool GEMPadDigi::operator!= ( const GEMPadDigi digi) const

Definition at line 32 of file GEMPadDigi.cc.

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

33 {
34  return pad_ != digi.pad() or bx_ != digi.bx();
35 }
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
uint16_t pad_
Definition: GEMPadDigi.h:31
int pad() const
Definition: GEMPadDigi.h:25
int bx() const
Definition: GEMPadDigi.h:26
int32_t bx_
Definition: GEMPadDigi.h:32
bool GEMPadDigi::operator< ( const GEMPadDigi digi) const

Precedence operator.

Definition at line 39 of file GEMPadDigi.cc.

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

40 {
41  if(digi.bx() == bx_)
42  return digi.pad() < pad_;
43  else
44  return digi.bx() < bx_;
45 }
uint16_t pad_
Definition: GEMPadDigi.h:31
int pad() const
Definition: GEMPadDigi.h:25
int bx() const
Definition: GEMPadDigi.h:26
int32_t bx_
Definition: GEMPadDigi.h:32
bool GEMPadDigi::operator== ( const GEMPadDigi digi) const

Definition at line 25 of file GEMPadDigi.cc.

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

26 {
27  return pad_ == digi.pad() and bx_ == digi.bx();
28 }
uint16_t pad_
Definition: GEMPadDigi.h:31
int pad() const
Definition: GEMPadDigi.h:25
int bx() const
Definition: GEMPadDigi.h:26
int32_t bx_
Definition: GEMPadDigi.h:32
int GEMPadDigi::pad ( ) const
inline

Definition at line 25 of file GEMPadDigi.h.

References pad_.

Referenced by operator!=(), operator<(), operator<<(), operator==(), GEMCoPadDigi::pad(), print(), and GEMCoPadDigi::print().

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

Definition at line 54 of file GEMPadDigi.cc.

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

55 {
56  std::cout << "Pad " << pad() << " bx " << bx() <<std::endl;
57 }
int pad() const
Definition: GEMPadDigi.h:25
int bx() const
Definition: GEMPadDigi.h:26
tuple cout
Definition: gather_cfg.py:121

Member Data Documentation

int32_t GEMPadDigi::bx_
private

Definition at line 32 of file GEMPadDigi.h.

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

uint16_t GEMPadDigi::pad_
private

Definition at line 31 of file GEMPadDigi.h.

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