CMS 3D CMS Logo

Public Member Functions | Private Attributes

GEMDigi Class Reference

#include <GEMDigi.h>

List of all members.

Public Member Functions

int bx () const
 GEMDigi ()
 GEMDigi (int strip, int bx)
bool operator< (const GEMDigi &digi) const
 Precedence operator.
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

Date:
2013/01/18 04:18:31
Revision:
1.2
Author:
Vadim Khotilovich

Definition at line 18 of file GEMDigi.h.


Constructor & Destructor Documentation

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

Definition at line 13 of file GEMDigi.cc.

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

Definition at line 18 of file GEMDigi.cc.

                 :
  strip_(0),
  bx_(0) 
{}

Member Function Documentation

int GEMDigi::bx ( ) const [inline]

Definition at line 28 of file GEMDigi.h.

References bx_.

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

{return bx_; }
bool GEMDigi::operator< ( const GEMDigi digi) const

Precedence operator.

Definition at line 34 of file GEMDigi.cc.

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

{
  if(digi.bx() == bx_)
    return digi.strip() < strip_;
  else 
    return digi.bx() < bx_;
}
bool GEMDigi::operator== ( const GEMDigi digi) const

Definition at line 25 of file GEMDigi.cc.

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

{
  if ( strip_ != digi.strip() ||
       bx_    != digi.bx() ) return false;
  return true;
}
void GEMDigi::print ( void  ) const

Definition at line 49 of file GEMDigi.cc.

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

{
  std::cout << "Strip " << strip() << " bx " << bx() <<std::endl;
}
int GEMDigi::strip ( ) const [inline]

Definition at line 27 of file GEMDigi.h.

References strip_.

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

{ return strip_; }

Member Data Documentation

int32_t GEMDigi::bx_ [private]

Definition at line 34 of file GEMDigi.h.

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

uint16_t GEMDigi::strip_ [private]

Definition at line 33 of file GEMDigi.h.

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