36 #ifndef STAR_StPxlRawHitMaker
37 #define STAR_StPxlRawHitMaker
40 #include "StRTSBaseMaker.h"
49 Int_t InitRun(Int_t runumber);
50 void Clear(
const Option_t * =
"");
54 virtual const char *GetCVS()
const {
55 static const char cvs[] =
"Tag $Name: $ $Id: StPxlRawHitMaker.h,v 1.8 2016/03/03 07:36:10 qiuh Exp $ built " __DATE__
" " __TIME__ ;
64 UInt_t
mid(Int_t start, Int_t end, UInt_t input);
71 Int_t mSectorDataLength;
74 Int_t mHitsDataLength;
76 Int_t mTrailerDataLength;
97 UInt_t mSeparatorToken;
112 Short_t mSensorGoodStatusMax;
Int_t decodeStateN(Int_t val)
decoding mainly to get fired column numbers in the current row
Int_t elementGetBit(UInt_t data, Int_t position)
get the bit at "position" of "data" word
Short_t mOverflowBit
bit for row overflow (more fired columns than can be read)
Short_t mDummyState
dummy state when the last state from a sensor ends on the lower 16 bits of a 32-bit word ...
Class StRTSBaseMaker - is an abstract StMaker to define the interface to access the DAQ data from the...
Int_t mColumn
column 0-959
void decodeSectorData()
decode data of a sector
Short_t mDataEndBit
end bit for "data", which can be row or column number, depending on rowOrColumnFlag ...
Short_t mChipIdStartBit
start bit for chip id
Short_t mRowColumnGoodStatus
row and column good status
Int_t mRow[40]
row 0-927, data from 40 sensors on a sector is mixed, need to keep 40 current row numbers ...
Short_t mCodingEndBit
end bit for "coding", which means how many sequential fired columns
UInt_t mid(Int_t start, Int_t end, UInt_t input)
decode the bits between "start" and "end" in the "input" word
UInt_t * mSectorData
pointers and lengths for data blocks
Int_t mJtagFileVersion
Jtag configure file version.
Short_t mHardwareIdPosition
position for hardware id, including sector number
Short_t mChipIdEndBit
end bit for chip id
Short_t mChipIdPow
chipId = mChipIdPow*chipIdFromHigher16Bits+chipIdFromLower16Bits
Short_t mCodingStartBit
start bit for "coding", which means how many sequential fired columns
Int_t mSector
current sector, ladder, sensor, row, column that is being worked on
Short_t mHeaderLength
decoding control paramters according to firmware
Short_t mDataStartBit
start bit for "data", which can be row or column number, depending on rowOrColumnFlag ...
Int_t getHitsDataLength()
get length of the hits data block
Int_t mOverFlowCount
count for overflow rows
Int_t decodeState0(Int_t val)
decoding mainly to get the row number for the following fired columns
Short_t mRowOrColumnFlagBit
bit for rowOrColumnFlag, which determine whether "data" is row or column number
void decodeHitsData()
decode the hits data block of a sector
Short_t mSensorGoodStatusMin
sensor good status range
StPxlDb * mPxlDb
pxl db structure containing geometry, db information and so on
StPxlRawHitCollection * mPxlRawHitCollection
generated raw hit collection
void decodeWord(UInt_t val)
decode a word (32 bits)