CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
GEMDigi Class Reference

#include <GEMDigi.h>

Public Member Functions

int bx () const
 
 GEMDigi (int strip, int bx)
 
 GEMDigi ()
 
bool operator!= (const GEMDigi &digi) const
 
bool operator< (const GEMDigi &digi) const
 Precedence operator. More...
 
bool operator== (const GEMDigi &digi) const
 
void print () const
 
int strip () const
 

Private Attributes

int16_t bx_
 
uint16_t strip_
 

Detailed Description

Digi for GEM

Author
Vadim Khotilovich

Definition at line 15 of file GEMDigi.h.

Constructor & Destructor Documentation

GEMDigi::GEMDigi ( int  strip,
int  bx 
)
explicit

Definition at line 11 of file GEMDigi.cc.

11  :
12  strip_(strip),
13  bx_(bx)
14 {}
int bx() const
Definition: GEMDigi.h:27
uint16_t strip_
Definition: GEMDigi.h:32
int strip() const
Definition: GEMDigi.h:26
int16_t bx_
Definition: GEMDigi.h:33
GEMDigi::GEMDigi ( )

Definition at line 16 of file GEMDigi.cc.

16  :
17  strip_(0),
18  bx_(0)
19 {}
uint16_t strip_
Definition: GEMDigi.h:32
int16_t bx_
Definition: GEMDigi.h:33

Member Function Documentation

int GEMDigi::bx ( ) const
inline

Definition at line 27 of file GEMDigi.h.

References bx_, and print().

Referenced by operator!=(), operator<(), operator<<(), operator==(), print(), GEMDigiToRawModule::produce(), and GEMRawToDigiModule::produce().

27 {return bx_; }
int16_t bx_
Definition: GEMDigi.h:33
bool GEMDigi::operator!= ( const GEMDigi digi) const

Definition at line 30 of file GEMDigi.cc.

References bx(), bx_, or, strip(), and strip_.

31 {
32  return strip_ != digi.strip() or bx_ != digi.bx();
33 }
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 bx() const
Definition: GEMDigi.h:27
uint16_t strip_
Definition: GEMDigi.h:32
int strip() const
Definition: GEMDigi.h:26
int16_t bx_
Definition: GEMDigi.h:33
bool GEMDigi::operator< ( const GEMDigi digi) const

Precedence operator.

Definition at line 37 of file GEMDigi.cc.

References bx(), bx_, strip(), and strip_.

38 {
39  if(digi.bx() == bx_)
40  return digi.strip() < strip_;
41  else
42  return digi.bx() < bx_;
43 }
int bx() const
Definition: GEMDigi.h:27
uint16_t strip_
Definition: GEMDigi.h:32
int strip() const
Definition: GEMDigi.h:26
int16_t bx_
Definition: GEMDigi.h:33
bool GEMDigi::operator== ( const GEMDigi digi) const

Definition at line 23 of file GEMDigi.cc.

References bx(), bx_, strip(), and strip_.

24 {
25  return strip_ == digi.strip() and bx_ == digi.bx();
26 }
int bx() const
Definition: GEMDigi.h:27
uint16_t strip_
Definition: GEMDigi.h:32
int strip() const
Definition: GEMDigi.h:26
int16_t bx_
Definition: GEMDigi.h:33
void GEMDigi::print ( void  ) const

Definition at line 52 of file GEMDigi.cc.

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

Referenced by bx().

53 {
54  std::cout << "Strip " << strip() << " bx " << bx() <<std::endl;
55 }
int bx() const
Definition: GEMDigi.h:27
int strip() const
Definition: GEMDigi.h:26
int GEMDigi::strip ( ) const
inline

Definition at line 26 of file GEMDigi.h.

References strip_.

Referenced by operator!=(), operator<(), operator<<(), operator==(), print(), GEMDigiToRawModule::produce(), and GEMRawToDigiModule::produce().

26 { return strip_; }
uint16_t strip_
Definition: GEMDigi.h:32

Member Data Documentation

int16_t GEMDigi::bx_
private

Definition at line 33 of file GEMDigi.h.

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

uint16_t GEMDigi::strip_
private

Definition at line 32 of file GEMDigi.h.

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