#include <CSCAnodeData2007.h>
Public Member Functions | |
virtual void | add (const CSCWireDigi &, int layer) |
CSCAnodeData2007 (const CSCALCTHeader &) | |
a blank one, for Monte Carlo More... | |
CSCAnodeData2007 (const CSCALCTHeader &, const unsigned short *buf) | |
fill from a real datastream More... | |
virtual unsigned short * | data () |
virtual unsigned short int | sizeInWords () const |
the amount of the input binary buffer read, in 16-bit words More... | |
virtual std::vector< CSCWireDigi > | wireDigis (int layer) const |
input layer is from 1 to 6 More... | |
Public Member Functions inherited from CSCAnodeDataFormat | |
virtual | ~CSCAnodeDataFormat () |
Static Public Member Functions | |
static void | selfTest () |
Private Types | |
enum | { MAXFRAMES =2700 } |
we don't know the size at first. Max should be 7 boards * 32 bins * 6 layers * 2 More... | |
Private Member Functions | |
CSCAnodeDataFrame2007 | findFrame (int tbin, int layer, int layerPart) const |
int | index (int tbin, int layer, int layerPart) const |
void | init (const CSCALCTHeader &) |
Private Attributes | |
unsigned int | alctBX_ |
number of wiregroups in the ALCT More... | |
unsigned short int | layerParts_ |
unsigned short int | maxWireGroups_ |
number of layer parts in the ALCT More... | |
unsigned short int | nAFEBs_ |
unsigned short int | nTimeBins_ |
unsigned short int | sizeInWords2007_ |
unsigned short | theDataFrames [MAXFRAMES] |
Definition at line 34 of file CSCAnodeData2007.h.
|
private |
we don't know the size at first. Max should be 7 boards * 32 bins * 6 layers * 2
Enumerator | |
---|---|
MAXFRAMES |
Definition at line 59 of file CSCAnodeData2007.h.
|
explicit |
a blank one, for Monte Carlo
To get BX from ALCT digis
Definition at line 7 of file CSCAnodeData2007.cc.
References alctBX_, CSCALCTHeader::BXNCount(), init(), sizeInWords(), and theDataFrames.
CSCAnodeData2007::CSCAnodeData2007 | ( | const CSCALCTHeader & | header, |
const unsigned short * | buf | ||
) |
fill from a real datastream
dont memcpy if not 2006 or 2007
To get BX from ALCT digis
Definition at line 17 of file CSCAnodeData2007.cc.
References alctBX_, CSCALCTHeader::BXNCount(), init(), sizeInWords(), and theDataFrames.
|
virtual |
Implements CSCAnodeDataFormat.
Definition at line 93 of file CSCAnodeData2007.cc.
References CSCAnodeDataFrame2007::addHit(), CSCAnodeDataFrame2007::data(), findFrame(), CSCWireDigi::getTimeBinsOn(), CSCWireDigi::getWireGroup(), index(), layerParts_, LogTrace, nTimeBins_, and theDataFrames.
Referenced by counter.Counter::register(), and selfTest().
|
inlinevirtual |
Implements CSCAnodeDataFormat.
Definition at line 42 of file CSCAnodeData2007.h.
References theDataFrames.
Referenced by cuy.FindIssue::__init__().
|
private |
Definition at line 77 of file CSCAnodeData2007.cc.
References index(), and theDataFrames.
Referenced by add(), and wireDigis().
|
private |
Definition at line 82 of file CSCAnodeData2007.cc.
References assert(), layerParts_, MAXFRAMES, nTimeBins_, and query::result.
Referenced by BeautifulSoup.PageElement::_invert(), add(), and findFrame().
|
private |
the sizes of raw words vary depending on type of the ALCT board number of layer parts for various alct board types: 1 2 3 5 6
Definition at line 28 of file CSCAnodeData2007.cc.
References CSCALCTHeader::alctHeader2007(), CSCALCTHeader2007::boardType, layerParts_, maxWireGroups_, CSCALCTHeader2007::rawBins, CSCALCTHeader2007::rawOverflow, and sizeInWords2007_.
Referenced by CSCAnodeData2007().
|
static |
Definition at line 128 of file CSCAnodeData2007.cc.
References add(), assert(), and wireDigis().
|
inlinevirtual |
the amount of the input binary buffer read, in 16-bit words
Implements CSCAnodeDataFormat.
Definition at line 44 of file CSCAnodeData2007.h.
References sizeInWords2007_.
Referenced by CSCAnodeData2007().
|
virtual |
input layer is from 1 to 6
BX from ACT (first component)
we know how many layer parts are there from ALCT header
loop over 12 bits in each word (each bit is one wiregroup) we want to stop if we reached the maxWireGroups
loop over tbins
BX from ALCT encoded in wireGroup
end of the loop over bits in the data frame
end of the loop over layer parts
Implements CSCAnodeDataFormat.
Definition at line 42 of file CSCAnodeData2007.cc.
References alctBX_, CSCAnodeDataFrame2007::data(), findFrame(), CSCAnodeDataFrame2007::isHit(), j, layerParts_, LogTrace, maxWireGroups_, and nTimeBins_.
Referenced by selfTest().
|
private |
number of wiregroups in the ALCT
Definition at line 67 of file CSCAnodeData2007.h.
Referenced by CSCAnodeData2007(), and wireDigis().
|
private |
Definition at line 65 of file CSCAnodeData2007.h.
Referenced by add(), index(), init(), and wireDigis().
|
private |
number of layer parts in the ALCT
Definition at line 66 of file CSCAnodeData2007.h.
Referenced by init(), and wireDigis().
|
private |
Definition at line 62 of file CSCAnodeData2007.h.
|
private |
Definition at line 63 of file CSCAnodeData2007.h.
Referenced by add(), index(), and wireDigis().
|
private |
Definition at line 61 of file CSCAnodeData2007.h.
Referenced by init(), and sizeInWords().
|
private |
Definition at line 60 of file CSCAnodeData2007.h.
Referenced by add(), CSCAnodeData2007(), data(), and findFrame().