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
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

int32_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:26
uint16_t strip_
Definition: GEMDigi.h:31
int strip() const
Definition: GEMDigi.h:25
int32_t bx_
Definition: GEMDigi.h:32
GEMDigi::GEMDigi ( )

Definition at line 16 of file GEMDigi.cc.

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

Member Function Documentation

int GEMDigi::bx ( ) const
inline

Definition at line 26 of file GEMDigi.h.

References bx_.

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

26 {return bx_; }
int32_t bx_
Definition: GEMDigi.h:32
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::EventIDconst &, edm::Timestampconst & > 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:26
uint16_t strip_
Definition: GEMDigi.h:31
int strip() const
Definition: GEMDigi.h:25
int32_t bx_
Definition: GEMDigi.h:32
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:26
uint16_t strip_
Definition: GEMDigi.h:31
int strip() const
Definition: GEMDigi.h:25
int32_t bx_
Definition: GEMDigi.h:32
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:26
uint16_t strip_
Definition: GEMDigi.h:31
int strip() const
Definition: GEMDigi.h:25
int32_t bx_
Definition: GEMDigi.h:32
void GEMDigi::print ( void  ) const

Definition at line 52 of file GEMDigi.cc.

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

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

Definition at line 25 of file GEMDigi.h.

References strip_.

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

25 { return strip_; }
uint16_t strip_
Definition: GEMDigi.h:31

Member Data Documentation

int32_t GEMDigi::bx_
private

Definition at line 32 of file GEMDigi.h.

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

uint16_t GEMDigi::strip_
private

Definition at line 31 of file GEMDigi.h.

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