#include <EventFilter/CSCTFRawToDigi/old/CSCTFTBPTData.h>
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 |
Definition at line 61 of file CSCTFTBPTData.h.
CSCTFTBPTData::CSCTFTBPTData | ( | ) |
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 }
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 }
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 }
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_;};
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 }
unsigned CSCTFTBPTData::front_pt_ [private] |
unsigned CSCTFTBPTData::rear_pt_ [private] |
const unsigned CSCTFTBPTData::size_ = 1 [static, private] |