#include <CSCALCTHeader.h>
Public Types | |
enum | FIFO_MODE { NO_DUMP, FULL_DUMP, LOCAL_DUMP } |
Public Member Functions | |
unsigned short int | ActiveFEBs () const |
void | add (const std::vector< CSCALCTDigi > &digis) |
std::vector< CSCALCTDigi > | ALCTDigis () const |
unsigned short int | alctFirmwareVersion () const |
CSCALCTHeader2006 | alctHeader2006 () const |
CSCALCTHeader2007 | alctHeader2007 () const |
unsigned short int | BoardID () const |
unsigned short int | BXNCount () const |
bool | check () const |
CSCALCTHeader (int chamberType) | |
CSCALCTHeader (const unsigned short *buf) | |
for packing More... | |
CSCALCTHeader (const CSCALCTStatusDigi &digi) | |
unsigned short int | CSCID () const |
unsigned short int * | data () |
unsigned short int | ExtTrig () const |
unsigned short int | FIFOMode () const |
unsigned short int | L1Acc () const |
unsigned short int | L1AMatch () const |
unsigned short int | LCTChipRead () const |
unsigned short int | nLCTChipRead () const |
for packing More... | |
unsigned short int | NTBins () const |
boost::dynamic_bitset | pack () |
unsigned short int | Promote1 () const |
unsigned short int | Promote2 () const |
void | setDAVForChannel (int wireGroup) |
void | setEventInformation (const CSCDMBHeader &) |
int | sizeInWords () |
in 16-bit words More... | |
Static Public Member Functions | |
static void | selfTest (int firmware) |
tests that we unpack what we packed More... | |
static void | setDebug (bool value) |
to access data by via status digis More... | |
Private Attributes | |
CSCALCTs2006 | alcts2006 |
unsigned short int | bxn0 |
unsigned short int | bxn1 |
std::vector< CSCCollisionMask > | collisionMasks |
CSCConfigurationRegister | configRegister |
CSCALCTHeader2006 | header2006 |
CSCALCTHeader2007 | header2007 |
std::vector< CSCHotChannelMask > | hotChannelMasks |
unsigned short int | sizeInWords2007_ |
size of the 2007 header in words More... | |
std::vector< CSCALCT > | theALCTs |
unsigned short int | theOriginalBuffer [116] |
CSCVirtexID | virtexID |
Static Private Attributes | |
static bool | debug =false |
static unsigned short int | firmwareVersion =2007 |
documented in flags http://www.phys.ufl.edu/~madorsky/alctv/alct2000_spec.PDF
Definition at line 18 of file CSCALCTHeader.h.
some accessors here are only applicable to 2006 header some to both 2006 and 2007
Enumerator | |
---|---|
NO_DUMP | |
FULL_DUMP | |
LOCAL_DUMP |
Definition at line 37 of file CSCALCTHeader.h.
|
explicit |
Definition at line 11 of file CSCALCTHeader.cc.
References firmwareVersion, header2006, header2007, CSCALCTHeader2007::lctBins, CSCALCT::sizeInWords(), CSCALCTHeader2006::sizeInWords(), CSCALCTHeader2007::sizeInWords(), sizeInWords2007_, theALCTs, and theOriginalBuffer.
Referenced by CSCALCTHeader().
|
explicit |
for packing
collision and hot channel masks are variable sized the sizes vary depending on type of the ALCT board number of words for various alct board types: 1 2 3 5 6
first determine the correct format
Now fill data
the header part
the alct0 and alct1
the fixed sized header part
now come the variable parts
2007 has LCTbins * 2 alct words
also store raw data buffer too; it is later returned by data() method
Definition at line 34 of file CSCALCTHeader.cc.
References ALCTDigis(), alcts2006, CSCALCTHeader2007::boardType, collisionMasks, CSCALCTHeader2007::configPresent, configRegister, constexpr, firmwareVersion, header2006, header2007, hotChannelMasks, i, CSCALCTHeader2007::lctBins, LogTrace, CSCALCTHeader2006::sizeInWords(), CSCALCTHeader2007::sizeInWords(), CSCALCTs2006::sizeInWords(), CSCVirtexID::sizeInWords(), sizeInWords(), CSCConfigurationRegister::sizeInWords(), sizeInWords2007_, theALCTs, theOriginalBuffer, and virtexID.
CSCALCTHeader::CSCALCTHeader | ( | const CSCALCTStatusDigi & | digi | ) |
Definition at line 115 of file CSCALCTHeader.cc.
References CSCALCTHeader(), and CSCALCTStatusDigi::header().
|
inline |
Definition at line 82 of file CSCALCTHeader.h.
References CSCALCTHeader2006::activeFEBs, and header2006.
void CSCALCTHeader::add | ( | const std::vector< CSCALCTDigi > & | digis | ) |
Definition at line 169 of file CSCALCTHeader.cc.
References CSCALCTs2006::add(), alcts2006, firmwareVersion, header2007, i, CSCALCTHeader2007::lctBins, q1, q2, theALCTs, and TrackValidation_HighPurity_cff::valid.
Referenced by CSCEventData::add(), and selfTest().
std::vector< CSCALCTDigi > CSCALCTHeader::ALCTDigis | ( | ) | const |
loop over all alct words
Definition at line 138 of file CSCALCTHeader.cc.
References CSCALCTs2006::ALCTDigis(), alcts2006, BXNCount(), firmwareVersion, i, listBenchmarks::pattern, query::result, theALCTs, and TrackValidation_HighPurity_cff::valid.
Referenced by CSCALCTHeader(), cscdqm::EventProcessor::processCSC(), and CSCEventData::unpack_data().
|
inline |
Definition at line 86 of file CSCALCTHeader.h.
References firmwareVersion.
Referenced by CSCEventData::checkALCTClasses(), and cscdqm::EventProcessor::processCSC().
|
inline |
|
inline |
Definition at line 92 of file CSCALCTHeader.h.
References header2007.
Referenced by CSCAnodeData2007::init().
|
inline |
Definition at line 52 of file CSCALCTHeader.h.
References CSCALCTHeader2006::boardID, and header2006.
|
inline |
Definition at line 55 of file CSCALCTHeader.h.
References CSCALCTHeader2007::bxnCount, CSCALCTHeader2006::bxnCount, firmwareVersion, header2006, and header2007.
Referenced by ALCTDigis(), CSCAnodeData2006::CSCAnodeData2006(), CSCAnodeData2007::CSCAnodeData2007(), and cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 112 of file CSCALCTHeader.h.
References firmwareVersion, CSCALCTHeader2007::flag1, CSCALCTHeader2006::flag_0, header2006, and header2007.
Referenced by CSCAnodeData2006::CSCAnodeData2006(), and CSCEventData::unpack_data().
|
inline |
Definition at line 54 of file CSCALCTHeader.h.
References CSCALCTHeader2006::cscID, and header2006.
Referenced by operator<<().
|
inline |
Definition at line 95 of file CSCALCTHeader.h.
References theOriginalBuffer.
Referenced by cuy.FindIssue::__init__(), and CSCEventData::unpack_data().
|
inline |
Definition at line 53 of file CSCALCTHeader.h.
References CSCALCTHeader2006::extTrig, and header2006.
|
inline |
Definition at line 38 of file CSCALCTHeader.h.
References CSCALCTHeader2006::fifoMode, and header2006.
|
inline |
Definition at line 68 of file CSCALCTHeader.h.
References firmwareVersion, header2006, header2007, CSCALCTHeader2006::l1Acc, and CSCALCTHeader2007::l1aCounter.
Referenced by operator<<(), and cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 81 of file CSCALCTHeader.h.
References header2006, and CSCALCTHeader2006::l1aMatch.
|
inline |
Definition at line 85 of file CSCALCTHeader.h.
References header2006, and CSCALCTHeader2006::lctChipRead.
unsigned short CSCALCTHeader::nLCTChipRead | ( | ) | const |
for packing
header2006 method
Definition at line 124 of file CSCALCTHeader.cc.
References firmwareVersion, header2006, and CSCALCTHeader2006::nLCTChipRead().
|
inline |
Definition at line 39 of file CSCALCTHeader.h.
References firmwareVersion, header2006, header2007, CSCALCTHeader2006::nTBins, and CSCALCTHeader2007::rawBins.
Referenced by operator<<().
boost::dynamic_bitset CSCALCTHeader::pack | ( | ) |
Definition at line 211 of file CSCALCTHeader.cc.
References alcts2006, bitset_utilities::append(), firmwareVersion, header2006, header2007, i, query::result, CSCALCTHeader2006::sizeInWords(), CSCALCTHeader2007::sizeInWords(), CSCALCTs2006::sizeInWords(), sizeInWords(), theALCTs, and bitset_utilities::ushortToBitset().
Referenced by pyrootRender.interactiveRender::draw(), and CSCEventData::pack().
|
inline |
Definition at line 83 of file CSCALCTHeader.h.
References header2006, and CSCALCTHeader2006::promote1.
|
inline |
Definition at line 84 of file CSCALCTHeader.h.
References header2006, and CSCALCTHeader2006::promote2.
|
static |
tests that we unpack what we packed
Definition at line 243 of file CSCALCTHeader.cc.
References add(), firmwareVersion, CSCDetId::iChamberType(), and relativeConstraints::station.
|
inline |
Definition at line 87 of file CSCALCTHeader.h.
References firmwareVersion, header2006, and CSCALCTHeader2006::setDAV().
Referenced by CSCEventData::add().
|
inlinestatic |
to access data by via status digis
turns on the debug flag for this class
Definition at line 27 of file CSCALCTHeader.h.
References debug, and relativeConstraints::value.
Referenced by CSCDCCUnpacker::CSCDCCUnpacker().
void CSCALCTHeader::setEventInformation | ( | const CSCDMBHeader & | dmb | ) |
Definition at line 119 of file CSCALCTHeader.cc.
References header2006, and CSCALCTHeader2006::setEventInformation().
Referenced by CSCEventData::checkALCTClasses(), and CSCEventData::setEventInformation().
|
inline |
in 16-bit words
Definition at line 98 of file CSCALCTHeader.h.
References firmwareVersion, and sizeInWords2007_.
Referenced by CSCEventData::checkALCTClasses(), CSCALCTHeader(), pack(), and CSCEventData::unpack_data().
|
private |
Definition at line 137 of file CSCALCTHeader.h.
Referenced by add(), ALCTDigis(), CSCALCTHeader(), and pack().
|
private |
Definition at line 151 of file CSCALCTHeader.h.
|
private |
Definition at line 151 of file CSCALCTHeader.h.
|
private |
Definition at line 140 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader().
|
private |
Definition at line 139 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader().
|
staticprivate |
Definition at line 147 of file CSCALCTHeader.h.
Referenced by pkg.AbstractPkg::generate(), pkg.AbstractPkg::get_kwds(), setDebug(), and pkg.AbstractPkg::write().
|
staticprivate |
Definition at line 148 of file CSCALCTHeader.h.
Referenced by add(), ALCTDigis(), alctFirmwareVersion(), BXNCount(), check(), CSCALCTHeader(), L1Acc(), nLCTChipRead(), NTBins(), pack(), selfTest(), setDAVForChannel(), and sizeInWords().
|
private |
Definition at line 134 of file CSCALCTHeader.h.
Referenced by ActiveFEBs(), alctHeader2006(), BoardID(), BXNCount(), check(), CSCALCTHeader(), CSCID(), ExtTrig(), FIFOMode(), L1Acc(), L1AMatch(), LCTChipRead(), nLCTChipRead(), NTBins(), pack(), Promote1(), Promote2(), setDAVForChannel(), and setEventInformation().
|
private |
Definition at line 135 of file CSCALCTHeader.h.
Referenced by add(), alctHeader2007(), BXNCount(), check(), CSCALCTHeader(), L1Acc(), NTBins(), and pack().
|
private |
Definition at line 141 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader().
|
private |
size of the 2007 header in words
Definition at line 151 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader(), and sizeInWords().
|
private |
Definition at line 136 of file CSCALCTHeader.h.
Referenced by add(), ALCTDigis(), CSCALCTHeader(), and pack().
|
private |
Definition at line 145 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader(), and data().
|
private |
Definition at line 138 of file CSCALCTHeader.h.
Referenced by CSCALCTHeader().