CMS 3D CMS Logo

CSCTFTBPTData Class Reference

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

List of all members.

Public Member Functions

 CSCTFTBPTData (const CSCTFTBPTData &)
 CSCTFTBPTData ()
CSCTFTBPTData operator= (const CSCTFTBPTData &)
unsigned int ptLUT (int fr) const
 Pt LUT output of muon specified in header FR bit must select between 2 bytes.

Static Public Member Functions

static int size ()

Private Attributes

unsigned front_pt_:8
unsigned rear_pt_:8

Static Private Attributes

static const unsigned size_ = 1

Friends

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


Detailed Description

Definition at line 61 of file CSCTFTBPTData.h.


Constructor & Destructor Documentation

CSCTFTBPTData::CSCTFTBPTData (  ) 

Definition at line 85 of file CSCTFTBPTData.cc.

00086 {}

CSCTFTBPTData::CSCTFTBPTData ( const CSCTFTBPTData parent  ) 

Definition at line 91 of file CSCTFTBPTData.cc.

References size().

00092 {
00093   //rear_pt_ = parent.rear_pt_;
00094   //front_pt_ = parent.front_pt_;
00095   memcpy(this,&parent,size()*sizeof(short));
00096 
00097 }


Member Function Documentation

CSCTFTBPTData CSCTFTBPTData::operator= ( const CSCTFTBPTData parent  ) 

Definition at line 99 of file CSCTFTBPTData.cc.

References size().

00100 {
00101   memcpy(this,&parent,size()*sizeof(short));
00102   //rear_pt_ = parent.rear_pt_;
00103   //front_pt_ = parent.front_pt_;
00104   return *this;
00105 }

unsigned int CSCTFTBPTData::ptLUT ( int  fr  )  const

Pt LUT output of muon specified in header FR bit must select between 2 bytes.

Definition at line 107 of file CSCTFTBPTData.cc.

References front_pt_, and rear_pt_.

Referenced by operator<<().

00108 {
00109   fr = (fr == 0 || fr ==1) ? fr : 0;
00110   // Rear
00111   if (fr == 0) return rear_pt_;
00112   // Front
00113   else         return front_pt_;
00114 
00115 }

static int CSCTFTBPTData::size ( void   )  [inline, static]

Definition at line 77 of file CSCTFTBPTData.h.

References size_.

Referenced by CSCTFTBPTData(), CSCTFTBSPData::CSCTFTBSPData(), CSCTFTBSPData::operator=(), operator=(), CSCTFTBSPBlock::unpackData(), and CSCTFTBSPData::unpackData().

00077 {return size_;};


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const CSCTFTBPTData ptData 
) [friend]

pretty-print

Definition at line 117 of file CSCTFTBPTData.cc.

00118 {
00119   stream << "\t\tFront PT data : " << std::hex << ptData.ptLUT(1) << std::dec << std::endl;
00120   stream << "\t\tRear PT data  : " << std::hex << ptData.ptLUT(0) << std::dec << std::endl;
00121   return stream;
00122 }


Member Data Documentation

unsigned CSCTFTBPTData::front_pt_ [private]

Definition at line 102 of file CSCTFTBPTData.h.

Referenced by ptLUT().

unsigned CSCTFTBPTData::rear_pt_ [private]

Definition at line 103 of file CSCTFTBPTData.h.

Referenced by ptLUT().

const unsigned CSCTFTBPTData::size_ = 1 [static, private]

Definition at line 116 of file CSCTFTBPTData.h.

Referenced by size().


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