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 ()
 
 GEMDigi (int strip, int bx)
 
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
 
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() [1/2]

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

Definition at line 4 of file GEMDigi.cc.

4 : strip_(strip), bx_(bx) {}

◆ GEMDigi() [2/2]

GEMDigi::GEMDigi ( )

Definition at line 6 of file GEMDigi.cc.

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

Member Function Documentation

◆ bx()

int GEMDigi::bx ( ) const
inline

Definition at line 27 of file GEMDigi.h.

27 { return bx_; }

References bx_.

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

◆ isValid()

bool GEMDigi::isValid ( void  ) const

Definition at line 22 of file GEMDigi.cc.

22 { return bx_ != -99 and strip_ != 65535; }

References bx_, and strip_.

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

◆ operator!=()

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

Definition at line 12 of file GEMDigi.cc.

12 { return strip_ != digi.strip() or bx_ != digi.bx(); }

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

◆ operator<()

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

Precedence operator.

Definition at line 15 of file GEMDigi.cc.

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

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

◆ operator==()

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

Definition at line 9 of file GEMDigi.cc.

9 { return strip_ == digi.strip() and bx_ == digi.bx(); }

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

◆ print()

void GEMDigi::print ( void  ) const

Definition at line 28 of file GEMDigi.cc.

28 { std::cout << "Strip " << strip() << " bx " << bx() << std::endl; }

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

◆ strip()

int GEMDigi::strip ( ) const
inline

Definition at line 26 of file GEMDigi.h.

26 { return strip_; }

References strip_.

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

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().

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