CMS 3D CMS Logo

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

#include <GEMDigi.h>

Public Member Functions

int16_t bx () const
 
 GEMDigi (uint16_t strip, int16_t bx)
 
 GEMDigi ()
 
bool isValid () const
 
bool operator!= (const GEMDigi &digi) const
 
bool operator< (const GEMDigi &digi) const
 Precedence operator. More...
 
bool operator== (const GEMDigi &digi) const
 
void print () const
 
uint16_t 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() [1/2]

GEMDigi::GEMDigi ( uint16_t  strip,
int16_t  bx 
)
explicit

Definition at line 4 of file GEMDigi.cc.

4 : strip_(strip), bx_(bx) {}
uint16_t strip() const
Definition: GEMDigi.h:26
uint16_t strip_
Definition: GEMDigi.h:32
int16_t bx() const
Definition: GEMDigi.h:27
int16_t bx_
Definition: GEMDigi.h:33

◆ GEMDigi() [2/2]

GEMDigi::GEMDigi ( )

Definition at line 6 of file GEMDigi.cc.

6 : strip_(65535), bx_(-99) {}
uint16_t strip_
Definition: GEMDigi.h:32
int16_t bx_
Definition: GEMDigi.h:33

Member Function Documentation

◆ bx()

int16_t GEMDigi::bx ( ) const
inline

Definition at line 27 of file GEMDigi.h.

References bx_.

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

27 { return bx_; }
int16_t bx_
Definition: GEMDigi.h:33

◆ isValid()

bool GEMDigi::isValid ( void  ) const

Definition at line 22 of file GEMDigi.cc.

References bx_, and strip_.

Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().

22 { return bx_ != -99 and strip_ != 65535; }
uint16_t strip_
Definition: GEMDigi.h:32
int16_t bx_
Definition: GEMDigi.h:33

◆ operator!=()

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

Definition at line 12 of file GEMDigi.cc.

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

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

◆ operator<()

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

Precedence operator.

Definition at line 15 of file GEMDigi.cc.

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

15  {
16  if (digi.bx() == bx_)
17  return digi.strip() < strip_;
18  else
19  return digi.bx() < bx_;
20 }
uint16_t strip() const
Definition: GEMDigi.h:26
uint16_t strip_
Definition: GEMDigi.h:32
int16_t bx() const
Definition: GEMDigi.h:27
int16_t bx_
Definition: GEMDigi.h:33

◆ operator==()

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

Definition at line 9 of file GEMDigi.cc.

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

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

◆ print()

void GEMDigi::print ( void  ) const

Definition at line 28 of file GEMDigi.cc.

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

28 { std::cout << "Strip " << strip() << " bx " << bx() << std::endl; }
uint16_t strip() const
Definition: GEMDigi.h:26
int16_t bx() const
Definition: GEMDigi.h:27

◆ strip()

uint16_t GEMDigi::strip ( ) const
inline

Definition at line 26 of file GEMDigi.h.

References strip_.

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

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

Member Data Documentation

◆ bx_

int16_t GEMDigi::bx_
private

Definition at line 33 of file GEMDigi.h.

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

◆ strip_

uint16_t GEMDigi::strip_
private

Definition at line 32 of file GEMDigi.h.

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