#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 30 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 54 of file CSCAnodeData2007.h.
|
explicit |
a blank one, for Monte Carlo
To get BX from ALCT digis
Definition at line 8 of file CSCAnodeData2007.cc.
References alctBX_, RecoTauValidation_cfi::header, 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 16 of file CSCAnodeData2007.cc.
References alctBX_, visDQMUpload::buf, RecoTauValidation_cfi::header, init(), sizeInWords(), and theDataFrames.
|
overridevirtual |
Implements CSCAnodeDataFormat.
Definition at line 84 of file CSCAnodeData2007.cc.
References findFrame(), CSCWireDigi::getTimeBinsOn(), CSCWireDigi::getWireGroup(), index(), phase1PixelTopology::layer, layerParts_, LogTrace, nTimeBins_, and theDataFrames.
Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), SequenceTypes._TaskBase::replace(), and selfTest().
|
inlineoverridevirtual |
Implements CSCAnodeDataFormat.
Definition at line 37 of file CSCAnodeData2007.h.
References theDataFrames.
|
private |
Definition at line 71 of file CSCAnodeData2007.cc.
References index(), phase1PixelTopology::layer, and theDataFrames.
Referenced by add(), and wireDigis().
|
private |
Definition at line 75 of file CSCAnodeData2007.cc.
References cms::cuda::assert(), phase1PixelTopology::layer, layerParts_, MAXFRAMES, CSCDetId::maxLayerId(), nTimeBins_, and mps_fire::result.
Referenced by 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 24 of file CSCAnodeData2007.cc.
References RecoTauValidation_cfi::header, layerParts_, maxWireGroups_, and sizeInWords2007_.
Referenced by CSCAnodeData2007().
|
static |
Definition at line 112 of file CSCAnodeData2007.cc.
References add(), cms::cuda::assert(), RecoTauValidation_cfi::header, and wireDigis().
|
inlineoverridevirtual |
the amount of the input binary buffer read, in 16-bit words
Implements CSCAnodeDataFormat.
Definition at line 39 of file CSCAnodeData2007.h.
References sizeInWords2007_.
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 37 of file CSCAnodeData2007.cc.
References alctBX_, findFrame(), dqmiolumiharvest::j, phase1PixelTopology::layer, layerParts_, LogTrace, maxWireGroups_, and nTimeBins_.
Referenced by selfTest().
|
private |
number of wiregroups in the ALCT
Definition at line 62 of file CSCAnodeData2007.h.
Referenced by CSCAnodeData2007(), and wireDigis().
|
private |
Definition at line 60 of file CSCAnodeData2007.h.
Referenced by add(), index(), init(), and wireDigis().
|
private |
number of layer parts in the ALCT
Definition at line 61 of file CSCAnodeData2007.h.
Referenced by init(), and wireDigis().
|
private |
Definition at line 57 of file CSCAnodeData2007.h.
|
private |
Definition at line 58 of file CSCAnodeData2007.h.
Referenced by add(), index(), and wireDigis().
|
private |
Definition at line 56 of file CSCAnodeData2007.h.
Referenced by init(), and sizeInWords().
|
private |
Definition at line 55 of file CSCAnodeData2007.h.
Referenced by add(), CSCAnodeData2007(), data(), and findFrame().