#include <CSCAnodeData2007.h>
Public Member Functions | |
void | add (const CSCWireDigi &, int layer) override |
CSCAnodeData2007 (const CSCALCTHeader &) | |
a blank one, for Monte Carlo More... | |
CSCAnodeData2007 (const CSCALCTHeader &, const unsigned short *buf) | |
fill from a real datastream More... | |
unsigned short * | data () override |
unsigned short int | sizeInWords () const override |
the amount of the input binary buffer read, in 16-bit words More... | |
std::vector< CSCWireDigi > | wireDigis (int layer) const override |
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.
|
overridevirtual |
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(), SequenceTypes.Task::remove(), SequenceTypes.Task::replace(), and selfTest().
|
inlineoverridevirtual |
Implements CSCAnodeDataFormat.
Definition at line 42 of file CSCAnodeData2007.h.
|
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 layerParts_, MAXFRAMES, nTimeBins_, and mps_fire::result.
Referenced by add(), findFrame(), and BeautifulSoup.PageElement::insert().
|
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(), RecoTauValidation_cfi::header, and wireDigis().
|
inlineoverridevirtual |
the amount of the input binary buffer read, in 16-bit words
Implements CSCAnodeDataFormat.
Definition at line 44 of file CSCAnodeData2007.h.
References PVValHelper::add(), and init.
Referenced by CSCAnodeData2007().
|
overridevirtual |
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(), 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().
|
private |
Definition at line 60 of file CSCAnodeData2007.h.
Referenced by add(), CSCAnodeData2007(), and findFrame().