CMS 3D CMS Logo

RPCDigi Class Reference

Digi for Rsisitive Plate Chamber. More...

#include <DataFormats/RPCDigi/interface/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
2006/05/16 14:36:29
Revision
1.8

Author:
I. Segoni -- CERN & M. Maggi -- INFN Bari

Definition at line 17 of file RPCDigi.h.


Constructor & Destructor Documentation

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

Definition at line 12 of file RPCDigi.cc.

00012                                    :
00013   strip_(strip),
00014   bx_(bx)
00015 {}

RPCDigi::RPCDigi (  ) 

Definition at line 17 of file RPCDigi.cc.

00017                  :
00018   strip_(0),
00019   bx_(0) 
00020 {}


Member Function Documentation

int RPCDigi::bx (  )  const

Definition at line 44 of file RPCDigi.cc.

References bx_.

Referenced by operator<(), operator<<(), operator==(), print(), RPCRecordFormatter::recordPack(), and RPCRecordFormatter::recordUnpack().

00044 { return bx_; }

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

Precedence operator.

Definition at line 33 of file RPCDigi.cc.

References bx(), and strip().

00033                                            {
00034 
00035   if(digi.bx() == this->bx())
00036     return digi.strip()<this->strip();
00037   else 
00038     return digi.bx()<this->bx();
00039 }

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

Definition at line 25 of file RPCDigi.cc.

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

00025                                                {
00026   if ( strip_ != digi.strip() ||
00027        bx_    != digi.bx() ) return false;
00028   return true;
00029 }

void RPCDigi::print ( void   )  const

Definition at line 47 of file RPCDigi.cc.

References bx(), GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and strip().

00047                      {
00048   std::cout << "Strip " << strip() 
00049        << " bx " << bx() <<std::endl;
00050 }

int RPCDigi::strip (  )  const

Definition at line 42 of file RPCDigi.cc.

References strip_.

Referenced by rpcrawtodigi::DebugDigisPrintout::operator()(), operator<(), operator<<(), operator==(), print(), RPCRecordFormatter::recordPack(), and RPCRecordFormatter::recordUnpack().

00042 { return strip_; }


Member Data Documentation

int32_t RPCDigi::bx_ [private]

Definition at line 32 of file RPCDigi.h.

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

uint16_t RPCDigi::strip_ [private]

Definition at line 31 of file RPCDigi.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:30:55 2009 for CMSSW by  doxygen 1.5.4