CMS 3D CMS Logo

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:32
int pad() const
Definition: GEMPadDigi.h:26
int bx() const
Definition: GEMPadDigi.h:27
int32_t bx_
Definition: GEMPadDigi.h:33
GEMPadDigi::GEMPadDigi ( )

Definition at line 18 of file GEMPadDigi.cc.

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

Member Function Documentation

int GEMPadDigi::bx ( ) const
inline
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 }
uint16_t pad_
Definition: GEMPadDigi.h:32
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::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
int pad() const
Definition: GEMPadDigi.h:26
int bx() const
Definition: GEMPadDigi.h:27
int32_t bx_
Definition: GEMPadDigi.h:33
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:32
int pad() const
Definition: GEMPadDigi.h:26
int bx() const
Definition: GEMPadDigi.h:27
int32_t bx_
Definition: GEMPadDigi.h:33
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:32
int pad() const
Definition: GEMPadDigi.h:26
int bx() const
Definition: GEMPadDigi.h:27
int32_t bx_
Definition: GEMPadDigi.h:33
int GEMPadDigi::pad ( ) const
inline
void GEMPadDigi::print ( void  ) const

Definition at line 54 of file GEMPadDigi.cc.

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

Referenced by bx().

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

Member Data Documentation

int32_t GEMPadDigi::bx_
private

Definition at line 33 of file GEMPadDigi.h.

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

uint16_t GEMPadDigi::pad_
private

Definition at line 32 of file GEMPadDigi.h.

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