#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 | setBXNCount (unsigned int bxn) |
void | setDAVForChannel (int wireGroup) |
void | setEventInformation (const CSCDMBHeader &) |
void | setL1Acc (unsigned int l1a) |
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 std::atomic< bool > | debug {false} |
static std::atomic< unsigned short int > | firmwareVersion {2007} |
documented in flags http://www.phys.ufl.edu/~madorsky/alctv/alct2000_spec.PDF
Definition at line 21 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 40 of file CSCALCTHeader.h.
|
explicit |
Definition at line 22 of file CSCALCTHeader.cc.
|
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 45 of file CSCALCTHeader.cc.
CSCALCTHeader::CSCALCTHeader | ( | const CSCALCTStatusDigi & | digi | ) |
Definition at line 130 of file CSCALCTHeader.cc.
|
inline |
Definition at line 135 of file CSCALCTHeader.h.
void CSCALCTHeader::add | ( | const std::vector< CSCALCTDigi > & | digis | ) |
Definition at line 207 of file CSCALCTHeader.cc.
Referenced by counter.Counter::register().
std::vector< CSCALCTDigi > CSCALCTHeader::ALCTDigis | ( | ) | const |
loop over all alct words
Definition at line 172 of file CSCALCTHeader.cc.
|
inline |
Definition at line 139 of file CSCALCTHeader.h.
|
inline |
Definition at line 146 of file CSCALCTHeader.h.
|
inline |
Definition at line 145 of file CSCALCTHeader.h.
Referenced by CSCAnodeData2007::init().
|
inline |
Definition at line 58 of file CSCALCTHeader.h.
|
inline |
Definition at line 61 of file CSCALCTHeader.h.
Referenced by CSCAnodeData2006::CSCAnodeData2006(), and CSCAnodeData2007::CSCAnodeData2007().
|
inline |
Definition at line 168 of file CSCALCTHeader.h.
Referenced by CSCAnodeData2006::CSCAnodeData2006().
|
inline |
Definition at line 60 of file CSCALCTHeader.h.
|
inline |
Definition at line 148 of file CSCALCTHeader.h.
|
inline |
Definition at line 59 of file CSCALCTHeader.h.
|
inline |
Definition at line 41 of file CSCALCTHeader.h.
|
inline |
Definition at line 98 of file CSCALCTHeader.h.
|
inline |
Definition at line 134 of file CSCALCTHeader.h.
|
inline |
Definition at line 138 of file CSCALCTHeader.h.
unsigned short CSCALCTHeader::nLCTChipRead | ( | ) | const |
|
inline |
Definition at line 42 of file CSCALCTHeader.h.
boost::dynamic_bitset CSCALCTHeader::pack | ( | ) |
Definition at line 249 of file CSCALCTHeader.cc.
Referenced by pyrootRender.interactiveRender::draw().
|
inline |
Definition at line 136 of file CSCALCTHeader.h.
|
inline |
Definition at line 137 of file CSCALCTHeader.h.
|
static |
tests that we unpack what we packed
Definition at line 286 of file CSCALCTHeader.cc.
|
inline |
Definition at line 78 of file CSCALCTHeader.h.
|
inline |
Definition at line 140 of file CSCALCTHeader.h.
|
inlinestatic |
to access data by via status digis
turns on the debug flag for this class
Definition at line 30 of file CSCALCTHeader.h.
void CSCALCTHeader::setEventInformation | ( | const CSCDMBHeader & | dmb | ) |
Definition at line 134 of file CSCALCTHeader.cc.
|
inline |
Definition at line 115 of file CSCALCTHeader.h.
|
inline |
in 16-bit words
Definition at line 151 of file CSCALCTHeader.h.
|
private |
Definition at line 196 of file CSCALCTHeader.h.
|
private |
Definition at line 215 of file CSCALCTHeader.h.
|
private |
Definition at line 215 of file CSCALCTHeader.h.
|
private |
Definition at line 199 of file CSCALCTHeader.h.
|
private |
Definition at line 198 of file CSCALCTHeader.h.
|
staticprivate |
Definition at line 210 of file CSCALCTHeader.h.
|
staticprivate |
Definition at line 211 of file CSCALCTHeader.h.
|
private |
Definition at line 193 of file CSCALCTHeader.h.
|
private |
Definition at line 194 of file CSCALCTHeader.h.
|
private |
Definition at line 200 of file CSCALCTHeader.h.
|
private |
size of the 2007 header in words
Definition at line 215 of file CSCALCTHeader.h.
|
private |
Definition at line 195 of file CSCALCTHeader.h.
|
private |
Definition at line 204 of file CSCALCTHeader.h.
|
private |
Definition at line 197 of file CSCALCTHeader.h.