20 #include "StDAQReader.h"
21 #include "StEMCReader.h"
22 #include "StDaqLib/EMC/EMC_Reader.hh"
30 fEMCImpReader = ::getEMCReader(daqr->getEventReader());
47 StEMCReader::~StEMCReader() {
50 int StEMCReader::close() {
55 int StEMCReader::Update() {
57 fEMCImpReader = ::getEMCReader(fDAQReader->getEventReader());
59 cout<<
" EMC Updated**"<<endl;
63 int StEMCReader::getTowerADC(
int mod,
int e,
int s,
unsigned short& ADC )
66 if(!fEMCImpReader->
getTowerADC(mod,e,s,ADC))
return 0;
69 int StEMCReader::getTowerADC(
int index,
unsigned short& ADC )
76 int StEMCReader::getSMDE_ADC(
int mod,
int e,
unsigned short& ADC )
83 int StEMCReader::getSMDP_ADC(
int mod,
int bin,
int s,
unsigned short& ADC )
86 if(!fEMCImpReader->
getSMDP_ADC(mod,bin,s,ADC))
return 0;
90 int StEMCReader::getSMD_TIMEBIN(
int fiber,
unsigned int& TimeBin )
96 int StEMCReader::getSMD_ADC(
int index,
int fiber,
unsigned short& ADC )
99 if(!fEMCImpReader->
getSMD_ADC(index,fiber,ADC))
return 0;
114 int StEMCReader::NTowerHits()
118 int StEMCReader::NSmdHits()
125 return fEMCImpReader;
int getSMD_TIMEBIN(int, unsigned int &)
Get SMD time bin (capacitor number) for a given fiber (RDO)
int NTowerHits()
Return number of valid hits on towers.
int NSmdHits()
Return number of valid hits on SMD.
int getSMD_ADC(int, int, unsigned short &)
Get SMD ADC for a given index and fiber (RDO) number.
int getSMDP_ADC(int, int, int, unsigned short &)
Get ADC for SMDP with given module, eta and sub.
int getTowerADC(int, int, int, unsigned short &)
Get ADC value for one tower with given module, eta and sub.
int getSMDE_ADC(int, int, unsigned short &)
Get ADC for SMDE with given module and stip number.