CMS 3D CMS Logo

CSCAnodeDataFrame2006 Class Reference

#include <EventFilter/CSCRawToDigi/interface/CSCAnodeData2006.h>

List of all members.

Public Member Functions

void addHit (unsigned wireGroup)
 sets a bit, from 0 to 7
unsigned chip () const
 kind of the chip ID.
 CSCAnodeDataFrame2006 (unsigned chip, unsigned tbin, unsigned data)
 CSCAnodeDataFrame2006 ()
unsigned short data () const
bool isHit (unsigned wireGroup) const
 given a wiregroup between 0 and 7, it tells whether this bit was on
unsigned tbin () const
 time bin

Private Attributes

unsigned short chip_: 2
unsigned short data_: 8
unsigned short ddu_code_: 1
unsigned short tbin_: 5


Detailed Description

Definition at line 7 of file CSCAnodeData2006.h.


Constructor & Destructor Documentation

CSCAnodeDataFrame2006::CSCAnodeDataFrame2006 (  )  [inline]

Definition at line 9 of file CSCAnodeData2006.h.

00009 {}

CSCAnodeDataFrame2006::CSCAnodeDataFrame2006 ( unsigned  chip,
unsigned  tbin,
unsigned  data 
) [inline]

Definition at line 10 of file CSCAnodeData2006.h.

00011   :  data_(data&0x3), tbin_(tbin),
00012   // do we have 2 bits for this, or 3? 
00013   // chip_( chip&1 + 2*(chip&2 | chip&4) ) 
00014   chip_(chip) {}


Member Function Documentation

void CSCAnodeDataFrame2006::addHit ( unsigned  wireGroup  )  [inline]

sets a bit, from 0 to 7

Definition at line 23 of file CSCAnodeData2006.h.

References data_.

Referenced by CSCAnodeData2006::add().

00023                                   {
00024     data_ |= (1 << wireGroup);
00025   }

unsigned CSCAnodeDataFrame2006::chip (  )  const [inline]

kind of the chip ID.

But it's only 2-bit, and we really need three, so it's the lowest bit, plus the OR of the next two.

Definition at line 31 of file CSCAnodeData2006.h.

References chip_.

00031 {return chip_;}

unsigned short CSCAnodeDataFrame2006::data (  )  const [inline]

Definition at line 32 of file CSCAnodeData2006.h.

References data_.

Referenced by CSCAnodeData2006::wireDigis().

00032 {return data_;}

bool CSCAnodeDataFrame2006::isHit ( unsigned  wireGroup  )  const [inline]

given a wiregroup between 0 and 7, it tells whether this bit was on

Definition at line 17 of file CSCAnodeData2006.h.

References data_.

Referenced by CSCAnodeData2006::wireDigis().

00017                                        {
00018     assert(wireGroup < 8);
00019     return ( (data_>>wireGroup) & 0x1 );
00020   }

unsigned CSCAnodeDataFrame2006::tbin (  )  const [inline]

time bin

Definition at line 28 of file CSCAnodeData2006.h.

References tbin_.

00028 {return tbin_;}


Member Data Documentation

unsigned short CSCAnodeDataFrame2006::chip_ [private]

Definition at line 37 of file CSCAnodeData2006.h.

Referenced by chip().

unsigned short CSCAnodeDataFrame2006::data_ [private]

Definition at line 35 of file CSCAnodeData2006.h.

Referenced by addHit(), data(), and isHit().

unsigned short CSCAnodeDataFrame2006::ddu_code_ [private]

Definition at line 38 of file CSCAnodeData2006.h.

unsigned short CSCAnodeDataFrame2006::tbin_ [private]

Definition at line 36 of file CSCAnodeData2006.h.

Referenced by tbin().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:17:04 2009 for CMSSW by  doxygen 1.5.4