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 ()
 
 GEMPadDigi (int pad, int bx)
 
bool isValid () const
 
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

int16_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() [1/2]

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

Definition at line 4 of file GEMPadDigi.cc.

4 : pad_(pad), bx_(bx) {}

◆ GEMPadDigi() [2/2]

GEMPadDigi::GEMPadDigi ( )

Definition at line 6 of file GEMPadDigi.cc.

6 : pad_(65535), bx_(-99) {}

Member Function Documentation

◆ bx()

int GEMPadDigi::bx ( ) const
inline

Definition at line 27 of file GEMPadDigi.h.

27 { return bx_; }

References bx_.

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

◆ isValid()

bool GEMPadDigi::isValid ( void  ) const

◆ operator!=()

bool GEMPadDigi::operator!= ( const GEMPadDigi digi) const

Definition at line 12 of file GEMPadDigi.cc.

12 { return pad_ != digi.pad() or bx_ != digi.bx(); }

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

◆ operator<()

bool GEMPadDigi::operator< ( const GEMPadDigi digi) const

Precedence operator.

Definition at line 15 of file GEMPadDigi.cc.

15  {
16  if (digi.bx() == bx_)
17  return digi.pad() < pad_;
18  else
19  return digi.bx() < bx_;
20 }

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

◆ operator==()

bool GEMPadDigi::operator== ( const GEMPadDigi digi) const

Definition at line 9 of file GEMPadDigi.cc.

9 { return pad_ == digi.pad() and bx_ == digi.bx(); }

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

◆ pad()

int GEMPadDigi::pad ( ) const
inline

Definition at line 26 of file GEMPadDigi.h.

26 { return pad_; }

References pad_.

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

◆ print()

void GEMPadDigi::print ( void  ) const

Definition at line 28 of file GEMPadDigi.cc.

28 { std::cout << "Pad " << pad() << " bx " << bx() << std::endl; }

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

Member Data Documentation

◆ bx_

int16_t GEMPadDigi::bx_
private

Definition at line 33 of file GEMPadDigi.h.

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

◆ pad_

uint16_t GEMPadDigi::pad_
private

Definition at line 32 of file GEMPadDigi.h.

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

gather_cfg.cout
cout
Definition: gather_cfg.py:144
GEMPadDigi::bx_
int16_t bx_
Definition: GEMPadDigi.h:33
GEMPadDigi::pad
int pad() const
Definition: GEMPadDigi.h:26
GEMPadDigi::bx
int bx() const
Definition: GEMPadDigi.h:27
or
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
GEMPadDigi::pad_
uint16_t pad_
Definition: GEMPadDigi.h:32