|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #include "GaudiKernel/MsgStream.h"
19 #define LARBSDBG(text) logstr<<MSG::DEBUG<<text<<endmsg
21 #define LARBSDBG(text)
71 LARBSDBG(
"Maximum number of channels reached");
77 LARBSDBG(
"No Raw Data Block in this FEB");
92 if(ngains==0 ||
nsamples==0)
return 0;
94 unsigned int this_gain=0;
98 offset=block + 8 + ((channelNumber&0x3F)>>3) + ((channelNumber & 0x7)<<3);
99 for(this_gain=0;this_gain<ngains;this_gain++) {
102 if(channelNumber>=64)
103 x = (
x & 0x3000) >> 12;
105 x = (
x & 0x30000000) >> 28;
110 if (this_gain<ngains) {
111 int s_size = 8 + 64 * ngains;
112 offset = block + 8 + ((channelNumber&0x3F)>>3) + ((channelNumber & 0x7)<<3) + 64*this_gain;
115 if(channelNumber>=64) {
117 febgain = (
x & 0x3000) >> 12;
123 samples.push_back((
short) (
x & 0x0fff));
127 febgain = (
x & 0x30000000) >> 28;
132 samples.push_back((
short) (
x & 0x0fff));
138 unsigned rearrangeFirstSample=0;
143 if (rearrangeFirstSample && rearrangeFirstSample<samples.size())
145 short movedSample=samples[0];
146 for (
unsigned i=1;
i<=rearrangeFirstSample;
i++)
147 samples[
i-1]=samples[
i];
148 samples[rearrangeFirstSample]=movedSample;
158 #ifdef LARBSDBGOUTPUT
166 LARBSDBG(
"Maximum number of channels reached");
171 LARBSDBG(
"No Accumulated Calib Digit Block in this FEB");
197 if(ngains==0 ||
nsamples==0)
return 0;
313 if(
index<=0)
return 0;
389 #ifdef LARBSDBGOUTPUT
390 #undef LARBSDBGOUTPUT
uint16_t getNStep() const
virtual void resetPointers()
virtual uint16_t getResults2Size() const
virtual uint16_t getRawDataSize() const
singleton-like access to IMessageSvc via open function and helper
virtual uint32_t getNumberOfSamples() const
uint32_t getNumberOfWords() const
uint16_t getNTrigger() const
const uint32_t * m_FebBlock
virtual uint16_t getCtrl2(uint32_t adc) const
virtual int getNextAccumulatedCalibDigit(int &channelNumber, std::vector< uint64_t > &samplesSum, std::vector< uint64_t > &samples2Sum, uint32_t &iStepTrigger, uint32_t &gain)
IMessageSvc * getMessageSvc(bool quiet=false)
uint16_t getFebConfig() const
uint16_t getStepIndex() const
virtual uint32_t getStatus() const
unsigned short m_iHeadBlockSize
unsigned int m_rearrangeFirstSample
uint32_t getHeader32(const unsigned n) const
virtual uint32_t getRadd(uint32_t adc, uint32_t sample) const
uint32_t RawToOfflineGain(const uint32_t gain) const
virtual uint16_t getCtrl1(uint32_t adc) const
std::vector< uint32_t > m_RawDataBlock
virtual uint8_t getTDCPhase() const
virtual uint16_t getCtrl3(uint32_t adc) const
virtual uint32_t getNumberOfGains() const
LArRodBlockCalibrationV3()
uint16_t getFirstSampleIndex() const
virtual uint16_t getResults1Size() const
virtual int getNextRawData(int &channelNumber, std::vector< short > &samples, uint32_t &gain)
uint16_t getDelay() const
uint16_t getHeader16(const unsigned n) const