CMS 3D CMS Logo

CSCTFTBDTData Class Reference

#include <EventFilter/CSCTFRawToDigi/old/CSCTFTBDTData.h>

List of all members.

Public Member Functions

unsigned bc0Packed () const
unsigned bxPacked () const
bool check () const
 check to see if data format is ok (1 = good, 0 = bad)
 CSCTFTBDTData (const CSCTFTBDTData &)
 CSCTFTBDTData (unsigned quality, unsigned bend, unsigned flag, unsigned calib, unsigned phi, unsigned bx, unsigned bc0)
 CSCTFTBDTData ()
unsigned phiBendPacked () const
unsigned phiPacked () const
unsigned qualityPacked () const
 ~CSCTFTBDTData ()

Static Public Member Functions

static unsigned size ()
 make a bitvector

Private Attributes

unsigned bc0_:1
unsigned bend_:5
unsigned bx_:2
unsigned calib_:1
unsigned flag_:1
unsigned phi_:12
unsigned quality_:3
unsigned zero1_:1
unsigned zero2_:3
unsigned zero3_:2
unsigned zero4_:1

Static Private Attributes

static const unsigned size_ = 2

Friends

std::ostream & operator<< (std::ostream &stream, const CSCTFTBDTData &)
 pretty-print


Detailed Description

Definition at line 65 of file CSCTFTBDTData.h.


Constructor & Destructor Documentation

CSCTFTBDTData::CSCTFTBDTData (  ) 

Definition at line 50 of file CSCTFTBDTData.cc.

00051 {}

CSCTFTBDTData::CSCTFTBDTData ( unsigned  quality,
unsigned  bend,
unsigned  flag,
unsigned  calib,
unsigned  phi,
unsigned  bx,
unsigned  bc0 
)

Definition at line 53 of file CSCTFTBDTData.cc.

References zero1_, zero2_, zero3_, and zero4_.

00055                                           :
00056   quality_(quality),bend_(bend),flag_(flag),calib_(calib),
00057   phi_(phi),bx_(bx),bc0_(bc0)
00058 {
00059   zero1_ = zero2_ = zero3_ = zero4_ = 0;
00060 }

CSCTFTBDTData::CSCTFTBDTData ( const CSCTFTBDTData parent  ) 

Definition at line 62 of file CSCTFTBDTData.cc.

References size().

00063 {
00064   memcpy(this,&parent,size()*sizeof(unsigned short));
00065 }

CSCTFTBDTData::~CSCTFTBDTData (  ) 

Definition at line 67 of file CSCTFTBDTData.cc.

00068 {}


Member Function Documentation

unsigned CSCTFTBDTData::bc0Packed (  )  const [inline]

Definition at line 92 of file CSCTFTBDTData.h.

References bc0_.

00092 {return bc0_;}     

unsigned CSCTFTBDTData::bxPacked (  )  const [inline]

Definition at line 91 of file CSCTFTBDTData.h.

References bx_.

00091 {return bx_;}     

bool CSCTFTBDTData::check (  )  const [inline]

check to see if data format is ok (1 = good, 0 = bad)

Definition at line 86 of file CSCTFTBDTData.h.

References zero1_, zero2_, zero3_, and zero4_.

00086 {return !(zero1_||zero2_||zero3_||zero4_);} 

unsigned CSCTFTBDTData::phiBendPacked (  )  const [inline]

Definition at line 89 of file CSCTFTBDTData.h.

References bend_.

00089 {return bend_;}   

unsigned CSCTFTBDTData::phiPacked (  )  const [inline]

Definition at line 90 of file CSCTFTBDTData.h.

References phi_.

00090 {return phi_;}    

unsigned CSCTFTBDTData::qualityPacked (  )  const [inline]

Definition at line 88 of file CSCTFTBDTData.h.

References quality_.

00088 {return quality_;}

static unsigned CSCTFTBDTData::size ( void   )  [inline, static]

make a bitvector

Definition at line 101 of file CSCTFTBDTData.h.

References size_.

Referenced by CSCTFTBDTData(), and CSCTFTBSPBlock::unpackData().

00101 {return size_;}


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const CSCTFTBDTData dtData 
) [friend]

pretty-print

Definition at line 77 of file CSCTFTBDTData.cc.

00078 {
00079   stream << " DT Track Stub:\n\t  " <<"Quality: " << dtData.quality_ << " Phi: " << dtData.phi_
00080          << " Phi Bend: " << dtData.bend_ << " BX: " << dtData.bx_ << " BC0: " << dtData.bc0_ << std::endl;
00081   return stream;
00082 }


Member Data Documentation

unsigned CSCTFTBDTData::bc0_ [private]

Definition at line 117 of file CSCTFTBDTData.h.

Referenced by bc0Packed(), and operator<<().

unsigned CSCTFTBDTData::bend_ [private]

Definition at line 109 of file CSCTFTBDTData.h.

Referenced by operator<<(), and phiBendPacked().

unsigned CSCTFTBDTData::bx_ [private]

Definition at line 116 of file CSCTFTBDTData.h.

Referenced by bxPacked(), and operator<<().

unsigned CSCTFTBDTData::calib_ [private]

Definition at line 112 of file CSCTFTBDTData.h.

unsigned CSCTFTBDTData::flag_ [private]

Definition at line 111 of file CSCTFTBDTData.h.

unsigned CSCTFTBDTData::phi_ [private]

Definition at line 115 of file CSCTFTBDTData.h.

Referenced by operator<<(), and phiPacked().

unsigned CSCTFTBDTData::quality_ [private]

Definition at line 107 of file CSCTFTBDTData.h.

Referenced by operator<<(), and qualityPacked().

const unsigned CSCTFTBDTData::size_ = 2 [static, private]

Definition at line 131 of file CSCTFTBDTData.h.

Referenced by size().

unsigned CSCTFTBDTData::zero1_ [private]

Definition at line 108 of file CSCTFTBDTData.h.

Referenced by check(), and CSCTFTBDTData().

unsigned CSCTFTBDTData::zero2_ [private]

Definition at line 110 of file CSCTFTBDTData.h.

Referenced by check(), and CSCTFTBDTData().

unsigned CSCTFTBDTData::zero3_ [private]

Definition at line 113 of file CSCTFTBDTData.h.

Referenced by check(), and CSCTFTBDTData().

unsigned CSCTFTBDTData::zero4_ [private]

Definition at line 118 of file CSCTFTBDTData.h.

Referenced by check(), and CSCTFTBDTData().


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