19 #include "StDaqLib/GENERIC/EventReader.hh"
20 #include "StDaqLib/GENERIC/RecHeaderFormats.hh"
21 #include "StDaqLib/GENERIC/swaps.hh"
22 #include "StDaqLib/TRG/TRG_Reader.hh"
26 struct Pointer EMCSecPointer[6] ;
31 struct Pointer FiberPointer[12] ;
141 bool isTowerPresent();
unsigned short TDCData[30][160]
data from each TDC channel
int getSMD_TIMEBIN(int, unsigned int &)
Get SMD time bin (capacitor number) for a given fiber (RDO)
unsigned int TDCErrorFlag
Error from TDC.
int NTowerHits()
Return number of valid hits on towers.
Bank_BTOWERADCR & getBTOWERADCR()
EMC_Reader destructor.
unsigned int EventNumber
Token number.
int NSmdHits()
Return number of valid hits on SMD.
unsigned int PedFlag
Pedestal subtracted or not (??)
const char * BankType
Will be filled with a 9 char array (8 letters + NULL)
int dummy
4 bytes of junk - should read as 0x00c0ffee
int getSMD_ADC(int, int, unsigned short &)
Get SMD ADC for a given index and fiber (RDO) number.
unsigned short TDCCrateId[30]
vector with crate Id for each TDC channel
unsigned short TDCCount[30]
vector with byte count for each TDC channel
int getSMDP_ADC(int, int, int, unsigned short &)
Get ADC for SMDP with given module, eta and sub.
const char * BankType
Will be filled with a 9 char array (8 letters + NULL)
unsigned short TowerADCArray[4800]
Matrix of ADC's as obtained from daq.
short TDCHeader[120]
TDC header - error flag etc.
int getTowerADC(int, int, int, unsigned short &)
Get ADC value for one tower with given module, eta and sub.
unsigned short SmdHeader[12][128]
SMDHeader for each fiber.
unsigned int NSmdHits
Total number of channels.
short fiberHeader[128]
256 bytes (64 words of 32 bits) of standard FEE header the same for event pool
unsigned int DetFlag
Daq detector flag.
unsigned int SMDErrorFlag
Error from TDC.
unsigned short TDCHeader[120]
This is the TDC event header.
unsigned short HasData[12]
1 if there is data for that fiber
short fiberHeader[64]
128 bytes of standard FEE header
unsigned short SMDADCArray[12][4800]
Matrix of ADC's as obtained from daq.
unsigned int ReceivedByteCount
Total number of channels.
unsigned int NTowerHits
Total number of valid channels.
unsigned int EventNumber
Token number.
short fiberData[4800]
stuff on the fiber - (Raw data)
unsigned int PedFlag
Pedestal subtracted or not (??)
unsigned short TowerMatrix[120][20][2]
Matrix of ADC's in Physical Positions.
unsigned int ReceivedByteCount
Total number of Bytes.
EMC_Reader(EventReader *er, Bank_EMCP *pEMCP, Bank_TRGP *pTRGP)
EMC_Reader constructor.
short fiberData[4800]
stuff on the fiber - (Raw data)
int getSMDE_ADC(int, int, unsigned short &)
Get ADC for SMDE with given module and stip number.
unsigned short TDCToken[30]
vector with crate token for each TDC channel
unsigned int NTDCChannels
Total number of valid TDC channels.
unsigned short TDCTrigger[30]
vector with trigger number for each TDC channel
unsigned int TimeBin[12]
Time bin for each SMD fiber. Now it has 12 fibers for the PSD detector.
unsigned short SmdE_ADCMatrix[120][150]
Matrix of ADC's in Physical Positions for SMD_Eta.
unsigned int DetFlag
DAQ Detector flag for BEMC, PRS, SMDE or SMDP.
unsigned short TDCError[30]
vector with TDC error for each TDC channel
unsigned short SmdP_ADCMatrix[120][10][15]
Matrix of ADC's in Physical Positions for SMD_Phi.
int dummy
4 bytes of junk - should read as 0x00c0ffee