|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef LARBYTESTREAM_LARRODBLOCKPYSICSV2_H
8 #define LARBYTESTREAM_LARRODBLOCKPYSICSV2_H
42 #define LARBSDBG(text) m_logstr<<MSG::DEBUG<<text<<endmsg
44 #define LARBSDBG(text)
74 std::string
BlockType() {
return std::string(
"RodBlockPhysicsV2");}
95 template<
class RAWDATA>
96 bool operator () (
const RAWDATA* ch1,
const RAWDATA* ch2)
const;
102 virtual inline int setGain(
const int ) {
return 1; };
158 {
return (
ch>>3) + ((
ch&0x7)<<4);}
162 LARBSDBG(
"in LArRodBlockPhysicsV2::getEnergy.");
171 channelNumber=rodChannelNumber;
179 quality = gtQ & 0xffff;
185 gain=3-((
m_GainPtr[channelNumber/16] >> (channelNumber%16)*2) & 0x3);
187 LARBSDBG(
"Reading Raw data form High E block. E=" <<
energy <<
" Q=" << quality);
198 gain=3-((
m_GainPtr[channelNumber/16] >> (channelNumber%16)*2) & 0x3);
219 #ifdef LARBSDBGOUTPUT
220 #undef LARBSDBGOUTPUT
virtual uint32_t getStatus() const
const LArOnlineID * m_onlineHelper
int FebToRodChannel(int ch) const
virtual void setNumberOfSamples(const uint8_t n)
singleton-like access to IMessageSvc via open function and helper
std::vector< uint32_t > m_RawDataBlock
virtual void setRawData(const int channel, const std::vector< short > &samples, const uint32_t gain)
virtual void initializeFEB(const uint32_t id)
virtual int getNextRawData(int &channelNumber, std::vector< short > &samples, uint32_t &gain)
virtual void setNextEnergy(const int channel, const int32_t energy, const int32_t time, const int32_t quality, const uint32_t gain)
virtual bool canSetRawData()
unsigned short m_NFlaggingWords
virtual uint32_t hasRawDataBlock() const
virtual void sortDataVector(std::vector< const LArRawChannel * > &)
setScaleOne setStatusOne setSaturated int16_t
virtual uint32_t getRadd(uint32_t adc, uint32_t sample) const
virtual void finalizeFEB()
virtual void sortDataVector(std::vector< const LArDigit * > &)
const uint32_t * m_GainPtr
virtual uint16_t getCtrl2(uint32_t adc) const
std::vector< uint32_t > m_LowEnergyBlock
virtual int getNextEnergy(int &channelNumber, int32_t &energy, int32_t &time, int32_t &quality, uint32_t &gain)
virtual uint16_t getCtrl1(uint32_t adc) const
virtual uint32_t getNumberOfSamples() const
int getBit(const uint32_t *const p, const unsigned chan) const
virtual int setGain(const int)
const uint16_t * m_RawDataPtr
static const uint32_t m_DummyBitMap[4]
virtual bool setPointers()
virtual uint32_t getNumberOfGains() const
virtual void setNumberOfGains(const uint8_t n)
const int16_t * m_LowEPtr
virtual void sortDataVector(std::vector< const LArRawChannel * > &)
uint16_t LE_getHeader16(const unsigned n) const
virtual void concatinateFEBs()
virtual bool canSetEnergy()
virtual void resetPointers()
virtual uint32_t hasPhysicsBlock() const
def time(flags, cells_name, *args, **kw)
virtual void initializeFragment(std::vector< uint32_t > &fragment)
const uint32_t * m_FlagPtr
std::vector< uint32_t > m_HighEnergyBlock
#define LARBSDBG(text)
This class provides decoding/encoding from/to ROD format.
bool operator()()(const RAWDATA *ch1
virtual uint16_t getCtrl3(uint32_t adc) const
const uint32_t * m_RawDataFlagsPtr
const int32_t * m_HighEPtr