#include <CSCRPCData.h>
|
static bool | debug = false |
|
Definition at line 9 of file CSCRPCData.h.
CSCRPCData::CSCRPCData |
( |
int |
ntbins = 7 | ) |
|
default constructor
Definition at line 21 of file CSCRPCData.cc.
References i, and theData.
25 for(
int i = 1;
i < 257; ++
i) {
31 int tbin = ((
i-1)%14)/2;
unsigned short theData[2 *4 *32+2]
CSCRPCData::CSCRPCData |
( |
const unsigned short * |
b04buf, |
|
|
int |
length |
|
) |
| |
std::vector< int > CSCRPCData::BXN |
( |
void |
| ) |
const |
make the two pad words into one and see if it's empty
Definition at line 69 of file CSCRPCData.cc.
References query::result, size_, and theData.
71 for(
int linePair = 0; linePair < ((
size_-2)/2); ++linePair) {
73 int pos = linePair*2 + 1;
77 int bxnnew = ((
theData[pos+1] >> 8) & 0x7 ) ;
80 int rpc = (
theData[pos] >> 12) & 0x7;
83 result.push_back(bxnnew);
84 result.push_back(rpc);
unsigned short theData[2 *4 *32+2]
bool CSCRPCData::check |
( |
| ) |
const |
|
inline |
std::vector< CSCRPCDigi > CSCRPCData::digis |
( |
| ) |
const |
Definition at line 91 of file CSCRPCData.cc.
References debug, i, LogTrace, query::result, size_, and theData.
92 std::vector<CSCRPCDigi>
result;
96 for(
int linePair = 0; linePair < ((
size_-2)/2); ++linePair) {
98 int pos = linePair*2 + 1;
102 LogTrace(
"CSCRPCData|CSCRawToDigi") <<
"+++ CSCRPCData " << std::hex <<
theData[pos]
105 int pad = (theData[pos] & 0xff) + ((theData[pos+1] & 0xff) << 8);
108 bxnnew = ((theData[pos+1] >> 8) & 0x7 ) ;
111 if ( linePair == 0 ) bxnold = bxnnew;
112 if ( bxnnew - bxnold > 1 )
113 LogTrace(
"CSCRPCData|CSCRawToDigi") <<
"+++ CSCRPCData warning: RPC BXN is incrementing by more than 1 clock cycle";
117 if (
debug)
LogTrace(
"CSCRPCData|CSCRawToDigi") <<
"+++ CSCRPCData Found a PAD ="
118 << std::hex << pad <<
" " << theData[pos]
119 <<
" + " << theData[pos+1];
120 int rpc = (theData[pos] >> 12) & 0x7;
121 int tbin = (theData[pos] >> 8) & 0xf;
124 for(
int i = 0;
i < 16; ++
i) {
unsigned short theData[2 *4 *32+2]
int CSCRPCData::nTbins |
( |
| ) |
|
|
inline |
void CSCRPCData::Print |
( |
void |
| ) |
const |
Definition at line 46 of file CSCRPCData.cc.
References geometryCSVtoXML::line, LogTrace, size_, and theData.
47 LogTrace (
"CSCRPCData|CSCRawToDigi") <<
"CSCRPCData.Print";
52 for(
int linePair = 0; linePair < ((
size_-2)/2); ++linePair) {
54 int pos = linePair*2 + 1;
58 int bxnnew = ((
theData[pos+1] >> 8) & 0x7 );
60 int rpc = (
theData[pos] >> 12) & 0x7;
61 int tbin = (
theData[pos] >> 8) & 0xf;
64 LogTrace (
"CSCRPCData|CSCRawToDigi") <<
" RPC=" << rpc <<
" Tbin=" <<tbin <<
" BXN=" << bxn;
unsigned short theData[2 *4 *32+2]
static void CSCRPCData::setDebug |
( |
bool |
debugValue | ) |
|
|
inlinestatic |
int CSCRPCData::sizeInWords |
( |
| ) |
|
|
inline |
bool CSCRPCData::debug = false |
|
staticprivate |
unsigned short CSCRPCData::theData[2 *4 *32+2] |
|
private |