CMS 3D CMS Logo

Public Member Functions | Private Attributes

RPCDigi Class Reference

#include <RPCDigi.h>

List of all members.

Public Member Functions

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

Private Attributes

int32_t bx_
uint16_t strip_

Detailed Description

Digi for Rsisitive Plate Chamber

Date:
2008/10/29 18:41:18
Revision:
1.9
Author:
I. Segoni -- CERN & M. Maggi -- INFN Bari

Definition at line 18 of file RPCDigi.h.


Constructor & Destructor Documentation

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

Definition at line 13 of file RPCDigi.cc.

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

Definition at line 18 of file RPCDigi.cc.

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

Member Function Documentation

int RPCDigi::bx ( ) const
bool RPCDigi::operator< ( const RPCDigi digi) const

Precedence operator.

Definition at line 34 of file RPCDigi.cc.

References bx(), and strip().

                                           {

  if(digi.bx() == this->bx())
    return digi.strip()<this->strip();
  else 
    return digi.bx()<this->bx();
}
bool RPCDigi::operator== ( const RPCDigi digi) const

Definition at line 26 of file RPCDigi.cc.

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

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

Definition at line 52 of file RPCDigi.cc.

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

                     {
  std::cout << "Strip " << strip() 
       << " bx " << bx() <<std::endl;
}
int RPCDigi::strip ( ) const

Member Data Documentation

int32_t RPCDigi::bx_ [private]

Definition at line 33 of file RPCDigi.h.

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

uint16_t RPCDigi::strip_ [private]

Definition at line 32 of file RPCDigi.h.

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