#include <CSCALCTTrailer.h>
|
static std::atomic< bool > | debug {false} |
|
static std::atomic< unsigned short int > | firmwareVersion {2006} |
|
Definition at line 53 of file CSCALCTTrailer.h.
CSCALCTTrailer::CSCALCTTrailer |
( |
int |
size, |
|
|
int |
firmVersion |
|
) |
| |
needed for packing
needed for packing
Definition at line 43 of file CSCALCTTrailer.cc.
45 if(firmVersion == 2006)
50 else if (firmVersion == 2007)
56 edm::LogError(
"CSCALCTTrailer|CSCRawToDigi") <<
"failed to construct: undetermined ALCT firmware version!!" << firmVersion;
static std::atomic< unsigned short int > firmwareVersion
CSCALCTTrailer2007 trailer2007
CSCALCTTrailer2006 trailer2006
CSCALCTTrailer::CSCALCTTrailer |
( |
const unsigned short * |
buf | ) |
|
determine the version first
Now fill data
Definition at line 61 of file CSCALCTTrailer.cc.
63 if ((buf[0]==0xDE0D)&&((buf[1]&0xF000)==0xD000)) {
66 else if ( (buf[2]&0xFFF)==0xE0D ) {
87 <<
"couldn't construct: ALCT firmware version is bad/not defined!";
void setFromBuffer(unsigned short const *buf)
void setFromBuffer(unsigned short const *buf)
static std::atomic< unsigned short int > firmwareVersion
CSCALCTTrailer2007 trailer2007
CSCALCTTrailer2006 trailer2006
unsigned CSCALCTTrailer::alctCRCCheck |
( |
| ) |
const |
|
inline |
Definition at line 159 of file CSCALCTTrailer.h.
171 <<
"couldn't CRCcheck: ALCT firmware version is bad/not defined!";
static std::atomic< unsigned short int > firmwareVersion
CSCALCTTrailer2007 trailer2007
CSCALCTTrailer2006 trailer2006
bool CSCALCTTrailer::check |
( |
| ) |
const |
|
inline |
Definition at line 125 of file CSCALCTTrailer.h.
137 <<
"couldn't check: ALCT firmware version is bad/not defined!";
static std::atomic< unsigned short int > firmwareVersion
CSCALCTTrailer2007 trailer2007
CSCALCTTrailer2006 trailer2006
unsigned short* CSCALCTTrailer::data |
( |
| ) |
|
|
inline |
Definition at line 65 of file CSCALCTTrailer.h.
Referenced by CSCEventData::pack().
79 <<
"couldn't access data: ALCT firmware version is bad/not defined!";
short unsigned int sizeInWords() const
static std::atomic< unsigned short int > firmwareVersion
CSCALCTTrailer2007 trailer2007
CSCALCTTrailer2006 trailer2006
short unsigned int sizeInWords() const
unsigned short int theOriginalBuffer[4]
unsigned CSCALCTTrailer::FrameCount |
( |
| ) |
const |
|
inline |
int CSCALCTTrailer::getCRC |
( |
| ) |
|
|
inline |
Definition at line 108 of file CSCALCTTrailer.h.
120 <<
"couldn't getCRC: ALCT firmware version is bad/not defined!";
static std::atomic< unsigned short int > firmwareVersion
CSCALCTTrailer2007 trailer2007
CSCALCTTrailer2006 trailer2006
void CSCALCTTrailer::setCRC |
( |
unsigned int |
crc | ) |
|
|
inline |
Definition at line 88 of file CSCALCTTrailer.h.
Referenced by CSCEventData::pack().
102 <<
"couldn't setCRC: ALCT firmware version is bad/not defined!";
void setCRC(unsigned int crc)
static std::atomic< unsigned short int > firmwareVersion
CSCALCTTrailer2007 trailer2007
CSCALCTTrailer2006 trailer2006
void setCRC(unsigned int crc)
static void CSCALCTTrailer::setDebug |
( |
bool |
debugValue | ) |
|
|
inlinestatic |
static int CSCALCTTrailer::sizeInWords |
( |
| ) |
|
|
inlinestatic |
int CSCALCTTrailer::wordCount |
( |
| ) |
const |
|
inline |
Definition at line 142 of file CSCALCTTrailer.h.
Referenced by cscdqm::EventProcessor::processCSC().
154 <<
"couldn't wordCount: ALCT firmware version is bad/not defined!";
static std::atomic< unsigned short int > firmwareVersion
CSCALCTTrailer2007 trailer2007
CSCALCTTrailer2006 trailer2006
std::atomic< bool > CSCALCTTrailer::debug {false} |
|
staticprivate |
std::atomic< short unsigned int > CSCALCTTrailer::firmwareVersion {2006} |
|
staticprivate |
unsigned short int CSCALCTTrailer::theOriginalBuffer[4] |
|
private |