#include <CSCRPCData.h>
|
static std::atomic< bool > | debug {false} |
|
Definition at line 12 of file CSCRPCData.h.
CSCRPCData::CSCRPCData |
( |
int |
ntbins = 7 | ) |
|
default constructor
Definition at line 25 of file CSCRPCData.cc.
References i, and theData.
29 for(
int i = 1;
i < 257; ++
i) {
35 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 73 of file CSCRPCData.cc.
References mps_fire::result, size_, and theData.
75 for(
int linePair = 0; linePair < ((
size_-2)/2); ++linePair) {
77 int pos = linePair*2 + 1;
81 int bxnnew = ((
theData[pos+1] >> 8) & 0x7 ) ;
84 int rpc = (
theData[pos] >> 12) & 0x7;
87 result.push_back(bxnnew);
88 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 95 of file CSCRPCData.cc.
References debug, i, LogTrace, mps_fire::result, size_, and theData.
96 std::vector<CSCRPCDigi>
result;
100 for(
int linePair = 0; linePair < ((
size_-2)/2); ++linePair) {
102 int pos = linePair*2 + 1;
106 LogTrace(
"CSCRPCData|CSCRawToDigi") <<
"+++ CSCRPCData " << std::hex <<
theData[pos]
109 int pad = (theData[pos] & 0xff) + ((theData[pos+1] & 0xff) << 8);
112 bxnnew = ((theData[pos+1] >> 8) & 0x7 ) ;
115 if ( linePair == 0 ) bxnold = bxnnew;
116 if ( bxnnew - bxnold > 1 )
117 LogTrace(
"CSCRPCData|CSCRawToDigi") <<
"+++ CSCRPCData warning: RPC BXN is incrementing by more than 1 clock cycle";
121 if (
debug)
LogTrace(
"CSCRPCData|CSCRawToDigi") <<
"+++ CSCRPCData Found a PAD ="
122 << std::hex << pad <<
" " << theData[pos]
123 <<
" + " << theData[pos+1];
124 int rpc = (theData[pos] >> 12) & 0x7;
125 int tbin = (theData[pos] >> 8) & 0xf;
128 for(
int i = 0;
i < 16; ++
i) {
static std::atomic< bool > debug
unsigned short theData[2 *4 *32+2]
int CSCRPCData::nTbins |
( |
| ) |
|
|
inline |
void CSCRPCData::Print |
( |
void |
| ) |
const |
Definition at line 50 of file CSCRPCData.cc.
References geometryCSVtoXML::line, LogTrace, size_, and theData.
51 LogTrace (
"CSCRPCData|CSCRawToDigi") <<
"CSCRPCData.Print";
56 for(
int linePair = 0; linePair < ((
size_-2)/2); ++linePair) {
58 int pos = linePair*2 + 1;
62 int bxnnew = ((
theData[pos+1] >> 8) & 0x7 );
64 int rpc = (
theData[pos] >> 12) & 0x7;
65 int tbin = (
theData[pos] >> 8) & 0xf;
68 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 |
std::atomic< bool > CSCRPCData::debug {false} |
|
staticprivate |
unsigned short CSCRPCData::theData[2 *4 *32+2] |
|
private |