ATLAS Offline Software
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Private Attributes | List of all members
LArRodBlockPhysicsV4 Class Reference

#include <LArRodBlockPhysicsV4.h>

Inheritance diagram for LArRodBlockPhysicsV4:
Collaboration diagram for LArRodBlockPhysicsV4:

Public Types

enum  {
  NWTot, NWTot_h, FEBID, FEBID_h,
  FEB_SN, FEB_SN_h, ResultsOff1, ResultsDim1,
  ResultsOff2, ResultsDim2, RawDataBlkOff, RawDataBlkDim,
  EventStatus, EventStatus_h, NGains, NSamples,
  FirstSampleIndex, FebConfig, InFPGAFormat, InFPGAFormat_h,
  endtag
}
 

Public Member Functions

 LArRodBlockPhysicsV4 ()
 
std::string BlockType ()
 
virtual int getNextEnergy (int &channelNumber, int32_t &energy, int32_t &time, int32_t &quality, uint32_t &gain)
 
virtual int getNextRawData (int &channelNumber, std::vector< short > &samples, uint32_t &gain)
 
virtual uint16_t getResults1Size () const
 
virtual uint16_t getResults2Size () const
 
virtual uint16_t getRawDataSize () const
 
virtual uint32_t getNumberOfSamples () const
 
virtual uint32_t getNumberOfGains () const
 
virtual uint32_t getRadd (uint32_t adc, uint32_t sample) const
 
virtual uint16_t getCtrl1 (uint32_t adc) const
 
virtual uint16_t getCtrl2 (uint32_t adc) const
 
virtual uint16_t getCtrl3 (uint32_t adc) const
 
virtual uint32_t getStatus () const
 
virtual uint32_t onlineCheckSum () const
 
virtual uint32_t offlineCheckSum () const
 
virtual uint32_t hasCalibBlock () const
 
virtual uint32_t hasPhysicsBlock () const
 
virtual uint32_t hasRawDataBlock () const
 
virtual uint32_t hasControlWords () const
 
virtual uint16_t getNumberOfHotCells () const
 
virtual int32_t getEx () const
 
virtual int32_t getEy () const
 
virtual int32_t getEz () const
 
virtual int16_t getHottestCellIndex ()
 
virtual int32_t getHottestCellEnergy () const
 
virtual int setGain (const int)
 
uint16_t getFebConfig () const
 
uint16_t getFirstSampleIndex () const
 
virtual bool canSetCalibration ()
 
virtual void initializeFragment (std::vector< uint32_t > &fragment)
 
virtual void initializeFEB (const uint32_t id)
 
virtual void setNumberOfSamples (const uint8_t n)
 
virtual void setNumberOfGains (const uint8_t n)
 
virtual void setTDCPhase (const uint8_t n)
 
virtual void setNextEnergy (const int channel, const int32_t energy, const int32_t time, const int32_t quality, const uint32_t gain)
 
virtual void setRawData (const int channel, const std::vector< short > &samples, const uint32_t gain)
 
virtual void setRawDataFixed (const int channel, const std::vector< short > &samples, const uint32_t gain)
 
virtual void setEtQ (const int channel, const int32_t energy, const int32_t time, const int32_t quality, const uint32_t gain)
 
virtual void setDAC (const uint16_t DACValue)
 
virtual void setDelay (const uint16_t DelayValue)
 
virtual void setPulsed (const unsigned channelNumber)
 
virtual void setNTrigger (const uint16_t NTrigger)
 
virtual void finalizeFEB ()
 
virtual void setEx (double)
 
virtual void setEy (double)
 
virtual void setEz (double)
 
virtual void setSumE (double)
 
virtual void sortDataVector (std::vector< const LArRawChannel * > &)
 
virtual void sortDataVector (std::vector< const LArDigit * > &)
 
virtual void sortDataVector (std::vector< const LArCalibDigit * > &)
 
virtual void sortDataVector (std::vector< const LArAccumulatedCalibDigit * > &)
 
virtual void sortDataVector (std::vector< const LArAccumulatedDigit * > &)
 
virtual void concatinateFEBs ()
 
virtual bool canSetEnergy ()
 
virtual bool canSetRawData ()
 
virtual bool canSetRawDataFixed ()
 
virtual bool canSetNTrigger ()
 
virtual bool canIncludeRawData ()
 
bool setFragment (const uint32_t *p, uint32_t n)
 
bool nextFEB ()
 
uint32_t getNumberOfWords () const
 
uint32_t getFEBID () const
 
uint32_t getFEBSN () const
 
virtual int32_t getSumE () const
 
virtual uint32_t getVROBFebId ()
 
virtual int32_t getVROBEx () const
 
virtual int32_t getVROBEy () const
 
virtual int32_t getVROBEz () const
 
virtual int32_t getVROBSumE () const
 
virtual uint32_t hasAccumBlock () const
 
virtual int getNextAccumulatedCalibDigit (int &channelNumber, std::vector< uint64_t > &SamplesSum, std::vector< uint64_t > &Samples2Sum, uint32_t &nStepTriggers, uint32_t &gain)
 
virtual int getNextAccumulatedDigit (int &channelNumber, std::vector< uint64_t > &SamplesSum, std::vector< uint64_t > &corr2Sum, uint32_t &gain)
 
virtual bool getPulsed (unsigned channelNumber) const
 
virtual uint16_t getDAC () const
 
virtual uint16_t getDelay () const
 
virtual uint16_t getNTrigger () const
 
virtual uint16_t getStepIndex () const
 
virtual uint16_t getNStep () const
 
virtual uint8_t getTDCPhase () const
 
virtual uint16_t getNbSweetCells1 () const
 
virtual uint16_t getNbSweetCells2 () const
 
virtual uint32_t getDspCodeVersion () const
 
virtual int32_t getDspEventCounter () const
 
virtual int setFragmentVirtualROB (const uint32_t *p, uint32_t n)
 
virtual void dumpFragment ()
 
void setFirstSample (const int rearrangeFirstSample)
 
uint32_t RawToOfflineGain (const uint32_t gain) const
 
uint32_t OfflineToRawGain (const uint32_t gain) const
 
virtual int FebToRodChannel (int ch) const
 
bool report_error (void) const
 

Protected Types

enum  {
  NWTot, NWTot_h, FEBID, FEBID_h,
  FEBSN, FEBSN_h, endtag
}
 
typedef std::map< uint32_t, std::vector< uint32_t > > FEBMAPTYPE
 

Protected Member Functions

void setHeader16 (const unsigned n, const uint16_t w)
 
void setHeader32 (const unsigned n, const uint32_t w)
 
uint16_t getVectorHeader16 (const unsigned n) const
 
uint32_t getVectorHeader32 (const unsigned n) const
 
uint16_t getHeader16 (const unsigned n) const
 
uint32_t getHeader32 (const unsigned n) const
 
uint16_t LE_getHeader16 (const unsigned n) const
 
void LE_setHeader16 (const unsigned n, const uint16_t w)
 
uint16_t LE_getVectorHeader16 (const unsigned n) const
 
void setBit (uint32_t *const p, const unsigned chan)
 
int getBit (const uint32_t *const p, const unsigned chan) const
 

Protected Attributes

int32_t m_Ex
 
int32_t m_Ey
 
int32_t m_Ez
 
int32_t m_SumE
 
uint32_t m_numberOfEx
 
uint32_t m_numberOfEy
 
uint32_t m_numberOfEz
 
uint32_t m_numberOfSumE
 
unsigned short m_iHeadBlockSize
 
int m_channelsPerFEB
 
const uint32_t * m_FebBlock
 
const uint32_t * m_RodBlock
 
int32_t m_FebBlockSize
 
int32_t m_RodBlockSize
 
std::vector< uint32_t > * m_vFragment
 
std::vector< uint32_t > * m_pRODblock
 
FEBMAPTYPE m_mFebBlocks
 
int32_t m_MiddleHeaderSize
 
unsigned int m_rearrangeFirstSample
 
bool m_error_next_feb
 
uint32_t m_virtualROBJump
 
int32_t m_ROB_to_decode
 
const uint32_t * m_virtualROBPointer
 
const uint32_t * m_virtualROBPointerLocal
 

Static Protected Attributes

static const uint32_t m_RawToOfflineGainMap [4] ={0, 2, 1,0}
 
static const uint32_t m_OfflineToRawGainMap [3] ={3,2,1}
 

Private Member Functions

virtual void resetPointers ()
 
virtual bool setPointers ()
 

Private Attributes

int m_EnergyIndex = 0
 
int m_RawDataIndex = 0
 
int m_TimeQualityIndex = 0
 
int m_TowerIndex = 0
 
const uint16_t * m_EnergyPointer = nullptr
 
const uint16_t * m_TimeQualityPointer = nullptr
 
const uint16_t * m_RawDataPointer = nullptr
 
const uint32_t * m_GainPointer = nullptr
 
const uint32_t * m_MaskPointer = nullptr
 
const uint16_t * m_HotCellsPointer = nullptr
 
const uint8_t * m_TowerPointer = nullptr
 
const int32_t * m_SumPointer = nullptr
 
int m_fixedGain
 

Detailed Description

Definition at line 31 of file LArRodBlockPhysicsV4.h.

Member Typedef Documentation

◆ FEBMAPTYPE

typedef std::map<uint32_t, std::vector<uint32_t> > LArRodBlockStructure::FEBMAPTYPE
protectedinherited

Definition at line 233 of file LArRodBlockStructure.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NWTot 
NWTot_h 
FEBID 
FEBID_h 
FEB_SN 
FEB_SN_h 
ResultsOff1 
ResultsDim1 
ResultsOff2 
ResultsDim2 
RawDataBlkOff 
RawDataBlkDim 
EventStatus 
EventStatus_h 
NGains 
NSamples 
FirstSampleIndex 
FebConfig 
InFPGAFormat 
InFPGAFormat_h 
endtag 

Definition at line 35 of file LArRodBlockPhysicsV4.h.

35  {
36  NWTot, // First words: DSP event header
37  NWTot_h,
38  FEBID,
39  FEBID_h,
40  FEB_SN, // FEB serial number
41  FEB_SN_h, // FEB serial number
42  ResultsOff1, // Size of results (Physics averages in DSP)
43  ResultsDim1, // Offset to results
44  ResultsOff2, // Size of times (in physics)
45  ResultsDim2, // Offset to times (in physics)
47  RawDataBlkDim, // Raw FEB event offset
48  EventStatus, // Bits describing the event
50  NGains,
51  NSamples,
53  FebConfig,
54  InFPGAFormat, // added 08.09.2005 - wrong 28.09.2005?
56  endtag //This tag needs to be an odd number, see *) for constructor
57  };

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
NWTot 
NWTot_h 
FEBID 
FEBID_h 
FEBSN 
FEBSN_h 
endtag 

Definition at line 51 of file LArRodBlockStructure.h.

51  {
52  NWTot, // Number of words in DSP block
53  NWTot_h,
54  FEBID, // FEB ID
55  FEBID_h,
56  FEBSN, // FEB Serial Number
57  FEBSN_h,
58  endtag // This tag needs to be an odd number, see *) for constructor
59  };

Constructor & Destructor Documentation

◆ LArRodBlockPhysicsV4()

LArRodBlockPhysicsV4::LArRodBlockPhysicsV4 ( )

Definition at line 25 of file LArRodBlockPhysicsV4.cxx.

26 {
27  m_iHeadBlockSize=endtag/2; // The implicit cast rounds down to the right size
30 }

Member Function Documentation

◆ BlockType()

std::string LArRodBlockPhysicsV4::BlockType ( )
inline

Definition at line 62 of file LArRodBlockPhysicsV4.h.

62 { return std::string("RodBlockPhysicsV4");}

◆ canIncludeRawData()

virtual bool LArRodBlockStructure::canIncludeRawData ( )
inlinevirtualinherited

Reimplemented in LArRodBlockPhysicsV6, and LArRodBlockPhysicsV5.

Definition at line 101 of file LArRodBlockStructure.h.

101 {return false;}

◆ canSetCalibration()

virtual bool LArRodBlockPhysicsV4::canSetCalibration ( )
inlinevirtual

Reimplemented from LArRodBlockStructure.

Definition at line 123 of file LArRodBlockPhysicsV4.h.

123 {return false;}

◆ canSetEnergy()

virtual bool LArRodBlockStructure::canSetEnergy ( )
inlinevirtualinherited

◆ canSetNTrigger()

virtual bool LArRodBlockStructure::canSetNTrigger ( )
inlinevirtualinherited

Definition at line 100 of file LArRodBlockStructure.h.

100 {return false;}

◆ canSetRawData()

virtual bool LArRodBlockStructure::canSetRawData ( )
inlinevirtualinherited

◆ canSetRawDataFixed()

virtual bool LArRodBlockStructure::canSetRawDataFixed ( )
inlinevirtualinherited

Reimplemented in LArRodBlockTransparentV0< DSPHEADER >.

Definition at line 98 of file LArRodBlockStructure.h.

98 {return false;}

◆ concatinateFEBs()

void LArRodBlockStructure::concatinateFEBs ( )
virtualinherited

Reimplemented in LArRodBlockPhysicsV6, LArRodBlockPhysicsV5, LArRodBlockPhysicsV3, LArRodBlockPhysicsV1, LArRodBlockPhysicsV0, LArRodBlockPhysicsV2, and LArRodBlockTransparentV0< DSPHEADER >.

Definition at line 81 of file LArRodBlockStructure.cxx.

82 {
83  std::cout << "ERROR: Function concatinateFEBs not implemented in this instance of LArRodBlockStructure!\n";
84  return;
85 }

◆ dumpFragment()

void LArRodBlockStructure::dumpFragment ( )
virtualinherited

Definition at line 175 of file LArRodBlockStructure.cxx.

176 {
177  std::cout << "ERROR: Function dumpFragment() not implemented in this instance of LArRodBlockStructure!\n";
178  return;
179 }

◆ FebToRodChannel()

virtual int LArRodBlockStructure::FebToRodChannel ( int  ch) const
inlinevirtualinherited

Reimplemented in LArRodBlockPhysicsV3, LArRodBlockPhysicsV2, LArRodBlockPhysicsV1, LArRodBlockPhysicsV0, LArRodBlockPhysicsV5, and LArRodBlockPhysicsV6.

Definition at line 175 of file LArRodBlockStructure.h.

176  { return (ch>>3) + ((ch&0x7)<<4); };

◆ finalizeFEB()

void LArRodBlockStructure::finalizeFEB ( )
virtualinherited

Reimplemented in LArRodBlockPhysicsV6, LArRodBlockPhysicsV5, LArRodBlockPhysicsV3, LArRodBlockPhysicsV1, LArRodBlockPhysicsV0, LArRodBlockPhysicsV2, and LArRodBlockTransparentV0< DSPHEADER >.

Definition at line 194 of file LArRodBlockStructure.cxx.

195 {
196  std::cout << "ERROR: Function finalizeFEB not implemented in this instance of LArRodBlockStructure!\n";
197  return;
198 }

◆ getBit()

int LArRodBlockStructure::getBit ( const uint32_t *const  p,
const unsigned  chan 
) const
inlineprotectedinherited

Definition at line 433 of file LArRodBlockStructure.h.

434 {// chan = (0,127)
435  // int a = chan/32;
436  // int r = chan%32;
437  int a = chan>>5;
438  int r = chan&0x1f;
439  // a = (0,3), r = ( 0, 31 )
440  return (*(p+a)>>r) & 0x1;
441 }

◆ getCtrl1()

uint16_t LArRodBlockPhysicsV4::getCtrl1 ( uint32_t  adc) const
virtual

Reimplemented from LArRodBlockStructure.

Definition at line 240 of file LArRodBlockPhysicsV4.cxx.

241 {
242  if(!m_RawDataPointer) return 0;
243  int index=5;
245  return x;
246 }

◆ getCtrl2()

uint16_t LArRodBlockPhysicsV4::getCtrl2 ( uint32_t  adc) const
virtual

Reimplemented from LArRodBlockStructure.

Definition at line 248 of file LArRodBlockPhysicsV4.cxx.

249 {
250  if(!m_RawDataPointer) return 0;
251  int index=4;
253  return x;
254 }

◆ getCtrl3()

uint16_t LArRodBlockPhysicsV4::getCtrl3 ( uint32_t  adc) const
virtual

Reimplemented from LArRodBlockStructure.

Definition at line 256 of file LArRodBlockPhysicsV4.cxx.

257 {
258  if(!m_RawDataPointer) return 0;
259  int index=7;
261  return x;
262 }

◆ getDAC()

uint16_t LArRodBlockStructure::getDAC ( ) const
inlinevirtualinherited

Reimplemented in LArRodBlockCalibrationV3, LArRodBlockCalibrationV2, LArRodBlockCalibrationV1, and LArRodBlockCalibrationV0< DSPHEADER >.

Definition at line 468 of file LArRodBlockStructure.h.

469 {
470  std::cout << "ERROR: Function getDAC not implemented in this instance of LArRodBlockStructure!\n";
471  return 0;
472 }

◆ getDelay()

uint16_t LArRodBlockStructure::getDelay ( ) const
inlinevirtualinherited

Reimplemented in LArRodBlockCalibrationV3, LArRodBlockCalibrationV2, LArRodBlockCalibrationV1, and LArRodBlockCalibrationV0< DSPHEADER >.

Definition at line 474 of file LArRodBlockStructure.h.

475 {
476  std::cout << "ERROR: Function getDelay not implemented in this instance of LArRodBlockStructure!\n";
477  return 0;
478 }

◆ getDspCodeVersion()

uint32_t LArRodBlockStructure::getDspCodeVersion ( ) const
virtualinherited

Definition at line 258 of file LArRodBlockStructure.cxx.

259 {
260  int i=getNumberOfWords()-2;
261  return m_FebBlock[i];
262 }

◆ getDspEventCounter()

int32_t LArRodBlockStructure::getDspEventCounter ( ) const
virtualinherited

Definition at line 264 of file LArRodBlockStructure.cxx.

265 {
266  int i=getNumberOfWords()-1;
267  return m_FebBlock[i];
268 }

◆ getEx()

int32_t LArRodBlockPhysicsV4::getEx ( ) const
inlinevirtual

Reimplemented from LArRodBlockStructure.

Definition at line 216 of file LArRodBlockPhysicsV4.h.

217 {
218  if(m_SumPointer) return m_SumPointer[0];
219  return 0;
220 }

◆ getEy()

int32_t LArRodBlockPhysicsV4::getEy ( ) const
inlinevirtual

Reimplemented from LArRodBlockStructure.

Definition at line 222 of file LArRodBlockPhysicsV4.h.

223 {
224  if(m_SumPointer) return m_SumPointer[1];
225  return 0;
226 }

◆ getEz()

int32_t LArRodBlockPhysicsV4::getEz ( ) const
inlinevirtual

Reimplemented from LArRodBlockStructure.

Definition at line 228 of file LArRodBlockPhysicsV4.h.

229 {
230  if(m_SumPointer) return m_SumPointer[2];
231  return 0;
232 }

◆ getFebConfig()

uint16_t LArRodBlockPhysicsV4::getFebConfig ( ) const
inline

Definition at line 126 of file LArRodBlockPhysicsV4.h.

127 {
128  return getHeader16(FebConfig);
129 }

◆ getFEBID()

uint32_t LArRodBlockStructure::getFEBID ( ) const
inlineinherited

Definition at line 297 of file LArRodBlockStructure.h.

298 {return getHeader32(FEBID);}

◆ getFEBSN()

uint32_t LArRodBlockStructure::getFEBSN ( ) const
inlineinherited

Definition at line 300 of file LArRodBlockStructure.h.

301 {return getHeader32(FEBSN);}

◆ getFirstSampleIndex()

uint16_t LArRodBlockPhysicsV4::getFirstSampleIndex ( ) const
inline

Definition at line 131 of file LArRodBlockPhysicsV4.h.

132 {
134 }

◆ getHeader16()

uint16_t LArRodBlockStructure::getHeader16 ( const unsigned  n) const
inlineprotectedinherited

Definition at line 355 of file LArRodBlockStructure.h.

356 {
357  // std::cout << "getHeader16: " << m_FebBlock << " " << m_FebBlock[5] << " "
358  // << n << " " << (n>>1) << " " << (m_FebBlock[5]&0xffff) << std::endl;
359  if (n&0x1) //n is a odd number
360  return m_FebBlock[n>>1] & 0xffff; //1,3,5... are fetched from lower bits
361  else //n is a even number
362  return m_FebBlock[n>>1] >> 16; //0,2,4... are fetched from higher bits
363 }

◆ getHeader32()

uint32_t LArRodBlockStructure::getHeader32 ( const unsigned  n) const
inlineprotectedinherited

Definition at line 365 of file LArRodBlockStructure.h.

366 {return m_FebBlock[n>>1];}

◆ getHottestCellEnergy()

int32_t LArRodBlockPhysicsV4::getHottestCellEnergy ( ) const
inlinevirtual

Definition at line 240 of file LArRodBlockPhysicsV4.h.

241 {
242  uint16_t encodedEnergy; // 16 bits Encoded Energy word
243  int32_t aux;
244  uint16_t range; // 2 bits range
245  int32_t sign=1;
246 
247  if(!m_TowerPointer) return 0;
248  encodedEnergy = m_EnergyPointer[m_TowerPointer[m_TowerIndex]];
249 
250  if (encodedEnergy&0x8000) sign=-1;
251  range = ((encodedEnergy)>>13)&0x0003; // range is encoded in bits 14 and 13
252 
253  aux = (int32_t) (encodedEnergy&0x1FFF);
254  if (range==1) aux=(aux<<3)+4; // shift left by 3 bits and add 4 MeV
255  else if (range==2) aux=(aux<<6)+32; // shift left by 6 bits and add 32 MeV
256  else if (range==3) aux=(aux<<9)+256; // shift left by 9 bits and add 256 MeV
257 
258  return sign*aux;
259 }

◆ getHottestCellIndex()

int16_t LArRodBlockPhysicsV4::getHottestCellIndex ( )
inlinevirtual

Definition at line 234 of file LArRodBlockPhysicsV4.h.

235 {
237  return -1;
238 }

◆ getNbSweetCells1()

uint16_t LArRodBlockStructure::getNbSweetCells1 ( ) const
virtualinherited

Reimplemented in LArRodBlockPhysicsV5, and LArRodBlockPhysicsV6.

Definition at line 255 of file LArRodBlockStructure.cxx.

255 { return 0; }

◆ getNbSweetCells2()

uint16_t LArRodBlockStructure::getNbSweetCells2 ( ) const
virtualinherited

Reimplemented in LArRodBlockPhysicsV5, and LArRodBlockPhysicsV6.

Definition at line 256 of file LArRodBlockStructure.cxx.

256 { return 0; }

◆ getNextAccumulatedCalibDigit()

int LArRodBlockStructure::getNextAccumulatedCalibDigit ( int &  channelNumber,
std::vector< uint64_t > &  SamplesSum,
std::vector< uint64_t > &  Samples2Sum,
uint32_t &  nStepTriggers,
uint32_t &  gain 
)
virtualinherited

Reimplemented in LArRodBlockCalibrationV3.

Definition at line 94 of file LArRodBlockStructure.cxx.

95 {
96  std::cout << "ERROR: Function getNextAccumulatedCalibDigit not implemented in this instance of LArRodBlockStructure!\n";
97  return 0;
98 }

◆ getNextAccumulatedDigit()

int LArRodBlockStructure::getNextAccumulatedDigit ( int &  channelNumber,
std::vector< uint64_t > &  SamplesSum,
std::vector< uint64_t > &  corr2Sum,
uint32_t &  gain 
)
virtualinherited

Reimplemented in LArRodBlockAccumulatedV3.

Definition at line 100 of file LArRodBlockStructure.cxx.

101 {
102  std::cout << "ERROR: Function getNextAccumulatedDigit not implemented in this instance of LArRodBlockStructure!\n";
103  return 0;
104 }

◆ getNextEnergy()

int LArRodBlockPhysicsV4::getNextEnergy ( int &  channelNumber,
int32_t &  energy,
int32_t &  time,
int32_t &  quality,
uint32_t &  gain 
)
inlinevirtual

Reimplemented from LArRodBlockStructure.

Definition at line 136 of file LArRodBlockPhysicsV4.h.

137 {
138  #ifdef LARBSDBGOUTPUT
139  MsgStream logstr(Athena::getMessageSvc(), BlockType());
140  #endif
141 
142  LARBSDBG("in LArRodBlockPhysicsV4::getNextEnergy.");
143  LARBSDBG("m_channelsPerFEB=" << m_channelsPerFEB);
144  if (m_EnergyIndex>=m_channelsPerFEB) // Already beyond maximal number of channels
145  return 0;
146  if (!m_EnergyPointer) // No data block present
147  return 0;
148 
149  unsigned rodChannelNumber=m_EnergyIndex; // Index of Channel in ROD-Block
150  channelNumber=((rodChannelNumber&0xe)<<2) + ((rodChannelNumber&0x1)<<6) + (rodChannelNumber>>4); //channel number of the FEB
151  //channelNumber=(rodChannelNumber>>4) + ((rodChannelNumber&0xf)<<3); //channel number of the FEB
152 
153  // get information available for all cells
154  // Energy on a 16 bit word and decode ranges
155  uint16_t encodedEnergy; // 16 bits Encoded Energy word
156  int32_t aux;
157  uint16_t range; // 2 bits range
158  uint16_t sign;
159 
160  LARBSDBG("-------->>>> in LArRodBlockPhysicsV4::getNextEnergy : decode energy.....");
161  // decode energy
162  if(m_EnergyIndex & 0x1) encodedEnergy = m_EnergyPointer[m_EnergyIndex-1]; // Big/Little Endien stuff
163  else encodedEnergy = m_EnergyPointer[m_EnergyIndex+1]; // Big/Little Endien stuff
164 
165  aux = (int32_t) (encodedEnergy&0x1fff);
166  range = (encodedEnergy & 0xc000) >> 14;
167  sign = encodedEnergy & 0x2000;
168  aux <<= 3*range;
169  if(sign) aux = -aux;
170  energy = aux;
171 
172  // gain in 2 bits of a 32 bits word
173  gain = (uint32_t) ((m_GainPointer[m_EnergyIndex>>4] >> (m_EnergyIndex&0xf)*2) & 0x3);
175 
176  // Get Time and Quality if the information is present according to summary block
177  uint32_t hasTQ = (uint32_t) ((m_MaskPointer[m_EnergyIndex>>5] >> (m_EnergyIndex&0x1f)) &0x1);
178  m_EnergyIndex++;
179  if (m_TimeQualityPointer && hasTQ) // Data has Time and Quality information
180  {
184 
185 #ifdef LARBSDBGOUTPUT
186  logstr << MYLEVEL <<"This cell has time and Quality information "<<endmsg;
187 #endif
188  }
189  else // Data has no Time and Quality information
190  {
191  time=0;
192  quality=-1;
193  }
194 
195 
196 #ifdef LARBSDBGOUTPUT
197  logstr << MYLEVEL <<"Range = "<<range<<endmsg;
198  logstr << MYLEVEL <<"Sign = "<<sign<<endmsg;
199  logstr << MYLEVEL <<" Encoded Energy ="<< MSG::hex << encodedEnergy << MSG::dec << " E=" << energy
200  << " t=" << time
201  << " Q=" << quality
202  << " G=" << gain
203  << " channel Number=" << channelNumber
204  << endmsg;
205 #endif
206 
207  return 1;
208 }

◆ getNextRawData()

int LArRodBlockPhysicsV4::getNextRawData ( int &  channelNumber,
std::vector< short > &  samples,
uint32_t &  gain 
)
virtual

Reimplemented from LArRodBlockStructure.

Definition at line 115 of file LArRodBlockPhysicsV4.cxx.

116 {
117  //std::cout << " I am here !!!!!!!!!!!!!!!!!!!!!! " << std::endl;
118 #ifdef LARBSDBGOUTPUT
119  MsgStream logstr(Athena::getMessageSvc(), BlockType());
120  //Debug output
121  logstr << MYLEVEL << "Let s go in getNextRawData..." << endmsg;
122  logstr << MYLEVEL << "GetNextRawData for FEB 0x" << MSG::hex << (uint32_t)getHeader32(FEBID) << MSG::dec << endmsg;
123  logstr << MYLEVEL << "m_RawDataPointer=" << m_RawDataPointer << " m_RawDataIndex="<< m_RawDataIndex
124  << " m_channelsPerFEB=" << m_channelsPerFEB << endmsg;
125 #endif
126 
127  if (m_RawDataIndex>=m_channelsPerFEB) { //Already beyond maximal number of channels
128 #ifdef LARBSDBGOUTPUT
129  logstr << MYLEVEL << "Maximum number of channels reached" << endmsg;
130 #endif
131  return 0;
132  }
133  //const uint16_t block = getHeader16(m_RawDataOff);//Position of the raw FEB data block
134  if (!m_RawDataPointer) { //Block does not exist
135 #ifdef LARBSDBGOUTPUT
136  logstr << MYLEVEL << "No Raw Data Block in this FEB" << endmsg;
137 #endif
138  return 0;
139  }
140 
141  // Get next channel
142  unsigned rodChannelNumber=m_RawDataIndex; // Index of Channel in ROD-Block
143  channelNumber=((rodChannelNumber&0xe)<<2) + ((rodChannelNumber&0x1)<<6) + (rodChannelNumber>>4); //channel number of the FEB
144  //channelNumber=(rodChannelNumber>>4) + ((rodChannelNumber&0xf)<<3); //channel number of the FEB
145  uint32_t febgain;
146  const unsigned int nsamples = getHeader16(NSamples) & 0xff;
147  const unsigned int ngains = getHeader16(NGains);
148 
149 #ifdef LARBSDBGOUTPUT
150  logstr << MYLEVEL << "This FEB has " << nsamples << " samples" << endmsg;
151  logstr << MYLEVEL << "This FEB has " << ngains << " gains" << endmsg;
152 #endif
153 
154  if(ngains==0 || nsamples==0) return 0;
155  int s_size = nsamples+1;
156  int offset = 12;
157  int index;
158  index = s_size*m_RawDataIndex + offset;
159  uint16_t s[2];
160  s[0] = m_RawDataPointer[index++]>>2;
161  febgain = m_RawDataPointer[index++];
162  samples.push_back(s[0]);
163  for(unsigned int i=0;i<nsamples/2;i++) {
164  s[1] = m_RawDataPointer[index++]>>2;
165  s[0] = m_RawDataPointer[index++]>>2;
166  samples.push_back(s[0]);
167  samples.push_back(s[1]);
168  }
169  gain=RawToOfflineGain(febgain);
170 
171 #ifdef LARBSDBGOUTPUT
172  logstr << MYLEVEL << " ===> ROD Channel = " << m_RawDataIndex << endmsg;
173  logstr << MYLEVEL << " ===> FEB Channel = " << channelNumber << endmsg;
174  logstr << MYLEVEL << " ===> Gain = " << gain << endmsg;
175  for(int i=0;i<nsamples;i++)
176  logstr << MYLEVEL << " ===> sample " << i << " = " << samples[i] << endmsg;
177  int n = m_RawDataIndex;
178  int32_t e,t,q;
179  uint32_t g;
181 #endif
182  //std::cout << "Gain= " << gain << " Febgain=" << febgain << std::endl;
183  ++m_RawDataIndex;
184  unsigned rearrangeFirstSample=0;
186  rearrangeFirstSample=m_rearrangeFirstSample; //Overwrite by jobOptions
187  else
188  rearrangeFirstSample=getFirstSampleIndex();
189  //std::cout << "FebConfig: "<< getFebConfig() << " FirstSampleIndex " << getFirstSampleIndex() <<std::endl;
190  if (rearrangeFirstSample && rearrangeFirstSample<samples.size()) //FIXME: Very ugly hack! See explanation in LArRodDecoder.h file
191  {//Change e.g. 3 0 1 2 4 to 0 1 2 3 4
192  short movedSample=samples[0];
193  for (unsigned i=1;i<=rearrangeFirstSample;i++)
194  samples[i-1]=samples[i];
195  samples[rearrangeFirstSample]=movedSample;
196  }
197 #ifdef LARBSDBGOUTPUT
198  logstr << MYLEVEL << "GetNextRawData for FEB finished 0x" << MSG::hex << (uint32_t)getHeader32(FEBID) << MSG::dec << endmsg;
199 #endif
200  return 1;
201 }

◆ getNStep()

uint16_t LArRodBlockStructure::getNStep ( ) const
inlinevirtualinherited

Reimplemented in LArRodBlockCalibrationV3, and LArRodBlockAccumulatedV3.

Definition at line 491 of file LArRodBlockStructure.h.

492 {
493  std::cout << "ERROR: Function getNStep not implemented in this instance of LArRodBlockStructure!\n";
494  return 0;
495 }

◆ getNTrigger()

uint16_t LArRodBlockStructure::getNTrigger ( ) const
inlinevirtualinherited

Reimplemented in LArRodBlockCalibrationV3, LArRodBlockCalibrationV2, LArRodBlockCalibrationV1, and LArRodBlockAccumulatedV3.

Definition at line 480 of file LArRodBlockStructure.h.

481 {
482  std::cout << "ERROR: Function getNTrigger not implemented in this instance of LArRodBlockStructure!\n";
483  return 0;
484 }

◆ getNumberOfGains()

uint32_t LArRodBlockPhysicsV4::getNumberOfGains ( ) const
virtual

Reimplemented from LArRodBlockStructure.

Definition at line 208 of file LArRodBlockPhysicsV4.cxx.

209 {
210  return getHeader16(NGains);
211 }

◆ getNumberOfHotCells()

uint16_t LArRodBlockPhysicsV4::getNumberOfHotCells ( ) const
inlinevirtual

Definition at line 210 of file LArRodBlockPhysicsV4.h.

211 {
213  return 0;
214 }

◆ getNumberOfSamples()

uint32_t LArRodBlockPhysicsV4::getNumberOfSamples ( ) const
virtual

Reimplemented from LArRodBlockStructure.

Definition at line 203 of file LArRodBlockPhysicsV4.cxx.

204 {
205  return getHeader16(NSamples);
206 }

◆ getNumberOfWords()

uint32_t LArRodBlockStructure::getNumberOfWords ( ) const
inlineinherited

Definition at line 428 of file LArRodBlockStructure.h.

429 {
430  return getHeader32(NWTot);
431 }

◆ getPulsed()

bool LArRodBlockStructure::getPulsed ( unsigned  channelNumber) const
inlinevirtualinherited

Reimplemented in LArRodBlockCalibrationV3, LArRodBlockCalibrationV2, LArRodBlockCalibrationV1, and LArRodBlockCalibrationV0< DSPHEADER >.

Definition at line 462 of file LArRodBlockStructure.h.

463 {
464  std::cout << "ERROR: Function getPulsed not implemented in this instance of LArRodBlockStructure!\n";
465  return 0;
466 }

◆ getRadd()

uint32_t LArRodBlockPhysicsV4::getRadd ( uint32_t  adc,
uint32_t  sample 
) const
virtual

Reimplemented from LArRodBlockStructure.

Definition at line 228 of file LArRodBlockPhysicsV4.cxx.

229 {
230  if(!m_RawDataPointer) return 0;
231  int index;
232  if(sample==0) index=6;
233  else if(sample & 0x1) index=7+sample-1;
234  else index=7+sample+1;
236  if(adc>=8) return x>>8;
237  return x&0xff;
238 }

◆ getRawDataSize()

uint16_t LArRodBlockPhysicsV4::getRawDataSize ( ) const
virtual

Reimplemented from LArRodBlockStructure.

Definition at line 223 of file LArRodBlockPhysicsV4.cxx.

224 {
225  return getHeader16(RawDataBlkDim);
226 }

◆ getResults1Size()

uint16_t LArRodBlockPhysicsV4::getResults1Size ( ) const
virtual

Reimplemented from LArRodBlockStructure.

Definition at line 213 of file LArRodBlockPhysicsV4.cxx.

214 {
215  return getHeader16(ResultsDim1);
216 }

◆ getResults2Size()

uint16_t LArRodBlockPhysicsV4::getResults2Size ( ) const
virtual

Reimplemented from LArRodBlockStructure.

Definition at line 218 of file LArRodBlockPhysicsV4.cxx.

219 {
220  return getHeader16(ResultsDim2);
221 }

◆ getStatus()

uint32_t LArRodBlockPhysicsV4::getStatus ( ) const
virtual

Reimplemented from LArRodBlockStructure.

Definition at line 264 of file LArRodBlockPhysicsV4.cxx.

265 {
266  if(getNumberOfWords()<EventStatus/2) return 0;
268  return x;
269 }

◆ getStepIndex()

uint16_t LArRodBlockStructure::getStepIndex ( ) const
inlinevirtualinherited

Reimplemented in LArRodBlockCalibrationV3, and LArRodBlockAccumulatedV3.

Definition at line 486 of file LArRodBlockStructure.h.

487 {
488  std::cout << "ERROR: Function getStepIndex not implemented in this instance of LArRodBlockStructure!\n";
489  return 0;
490 }

◆ getSumE()

int32_t LArRodBlockStructure::getSumE ( ) const
inlinevirtualinherited

Reimplemented in LArRodBlockPhysicsV6.

Definition at line 315 of file LArRodBlockStructure.h.

315  {
316  return 0;
317 }

◆ getTDCPhase()

uint8_t LArRodBlockStructure::getTDCPhase ( ) const
virtualinherited

Reimplemented in LArRodBlockCalibrationV2, LArRodBlockCalibrationV3, LArRodBlockCalibrationV1, LArRodBlockTransparentV0< DSPHEADER >, and LArRodBlockAccumulatedV3.

Definition at line 149 of file LArRodBlockStructure.cxx.

150 {
151  std::cout << "ERROR: Function getTDCPhase not implemented in this instance of LArRodBlockStructure!\n";
152  return 0;
153 }

◆ getVectorHeader16()

uint16_t LArRodBlockStructure::getVectorHeader16 ( const unsigned  n) const
inlineprotectedinherited

Definition at line 368 of file LArRodBlockStructure.h.

369 { if (n&0x1) //n is a odd number
370  return (std::as_const(*m_vFragment).at(n>>1) & 0xffff);
371  else //n is a even number
372  return (std::as_const(*m_vFragment).at(n>>1) >> 16);
373 }

◆ getVectorHeader32()

uint32_t LArRodBlockStructure::getVectorHeader32 ( const unsigned  n) const
inlineprotectedinherited

Definition at line 375 of file LArRodBlockStructure.h.

376 {
377  return (*m_vFragment)[n>>1];
378 }

◆ getVROBEx()

int32_t LArRodBlockStructure::getVROBEx ( ) const
inlinevirtualinherited

Reimplemented in LArRodBlockPhysicsV6, and LArRodBlockPhysicsV5.

Definition at line 323 of file LArRodBlockStructure.h.

323  {
324 return 0;
325 }

◆ getVROBEy()

int32_t LArRodBlockStructure::getVROBEy ( ) const
inlinevirtualinherited

Reimplemented in LArRodBlockPhysicsV6, and LArRodBlockPhysicsV5.

Definition at line 327 of file LArRodBlockStructure.h.

327  {
328 return 0;
329 }

◆ getVROBEz()

int32_t LArRodBlockStructure::getVROBEz ( ) const
inlinevirtualinherited

Reimplemented in LArRodBlockPhysicsV6, and LArRodBlockPhysicsV5.

Definition at line 331 of file LArRodBlockStructure.h.

331  {
332 return 0;
333 }

◆ getVROBFebId()

uint32_t LArRodBlockStructure::getVROBFebId ( )
inlinevirtualinherited

Reimplemented in LArRodBlockPhysicsV6, and LArRodBlockPhysicsV5.

Definition at line 319 of file LArRodBlockStructure.h.

319  {
320 return 0;
321 }

◆ getVROBSumE()

int32_t LArRodBlockStructure::getVROBSumE ( ) const
inlinevirtualinherited

Reimplemented in LArRodBlockPhysicsV6.

Definition at line 335 of file LArRodBlockStructure.h.

335  {
336 return 0;
337 }

◆ hasAccumBlock()

virtual uint32_t LArRodBlockStructure::hasAccumBlock ( ) const
inlinevirtualinherited

Reimplemented in LArRodBlockAccumulatedV3.

Definition at line 123 of file LArRodBlockStructure.h.

123 {return 0;} ;

◆ hasCalibBlock()

virtual uint32_t LArRodBlockPhysicsV4::hasCalibBlock ( ) const
inlinevirtual

Reimplemented from LArRodBlockStructure.

Definition at line 84 of file LArRodBlockPhysicsV4.h.

84 {return 0;} ;

◆ hasControlWords()

virtual uint32_t LArRodBlockPhysicsV4::hasControlWords ( ) const
inlinevirtual

Reimplemented from LArRodBlockStructure.

Definition at line 87 of file LArRodBlockPhysicsV4.h.

87 {return getHeader16(RawDataBlkOff);} ;

◆ hasPhysicsBlock()

virtual uint32_t LArRodBlockPhysicsV4::hasPhysicsBlock ( ) const
inlinevirtual

Reimplemented from LArRodBlockStructure.

Definition at line 85 of file LArRodBlockPhysicsV4.h.

85 {return getHeader16(ResultsOff1);} ;

◆ hasRawDataBlock()

virtual uint32_t LArRodBlockPhysicsV4::hasRawDataBlock ( ) const
inlinevirtual

Reimplemented from LArRodBlockStructure.

Definition at line 86 of file LArRodBlockPhysicsV4.h.

86 {return getHeader16(RawDataBlkOff);} ;

◆ initializeFEB()

void LArRodBlockStructure::initializeFEB ( const uint32_t  id)
virtualinherited

Reimplemented in LArRodBlockPhysicsV6, LArRodBlockPhysicsV5, LArRodBlockPhysicsV3, LArRodBlockPhysicsV1, LArRodBlockPhysicsV0, LArRodBlockPhysicsV2, and LArRodBlockTransparentV0< DSPHEADER >.

Definition at line 182 of file LArRodBlockStructure.cxx.

183 {
184  std::cout << "ERROR: Function initializeFEB not implemented in this instance of LArRodBlockStructure!\n";
185  return;
186 }

◆ initializeFragment()

void LArRodBlockStructure::initializeFragment ( std::vector< uint32_t > &  fragment)
virtualinherited

Reimplemented in LArRodBlockPhysicsV6, LArRodBlockPhysicsV5, LArRodBlockPhysicsV3, LArRodBlockPhysicsV1, LArRodBlockPhysicsV0, LArRodBlockPhysicsV2, and LArRodBlockTransparentV0< DSPHEADER >.

Definition at line 188 of file LArRodBlockStructure.cxx.

189 {
190  std::cout << "ERROR: Function initializeFragment not implemented in this instance of LArRodBlockStructure!\n";
191  return;
192 }

◆ LE_getHeader16()

uint16_t LArRodBlockStructure::LE_getHeader16 ( const unsigned  n) const
inlineprotectedinherited

Definition at line 405 of file LArRodBlockStructure.h.

406 {
407  return (reinterpret_cast<const uint16_t*>(m_FebBlock))[n];
408 }

◆ LE_getVectorHeader16()

uint16_t LArRodBlockStructure::LE_getVectorHeader16 ( const unsigned  n) const
inlineprotectedinherited

Definition at line 410 of file LArRodBlockStructure.h.

411 {
412  const uint32_t* data32 = std::as_const(*m_vFragment).data();
413  const uint16_t* data16 = reinterpret_cast<const uint16_t*> (data32);
414  return data16[n];
415 }

◆ LE_setHeader16()

void LArRodBlockStructure::LE_setHeader16 ( const unsigned  n,
const uint16_t  w 
)
inlineprotectedinherited

Definition at line 417 of file LArRodBlockStructure.h.

418 {
419 #ifdef LARBYTESTREAMRODBLOCK_CHCKBOUNDARIES
420  if ((unsigned)n>=m_vFragment->size()*2) {
421  std::cout << "LArRodBlockStructure::LE_setHeader16 ERROR: WRITE BEYOND ARRAY BONDARY!" << std::endl;
422  std::abort();
423  }
424 #endif
425  ((uint16_t*)(&(m_vFragment->front())))[n] = w;
426 }

◆ nextFEB()

bool LArRodBlockStructure::nextFEB ( )
inlineinherited

Definition at line 497 of file LArRodBlockStructure.h.

498 {
499  resetPointers();
500 
501  const int32_t FebOffset = m_FebBlockSize+m_MiddleHeaderSize;
502  const int32_t LeftSize = m_RodBlockSize-FebOffset+m_RodBlock-m_FebBlock;
503  if ( LeftSize<=0 ) return false; //No next feb
504 
505  m_FebBlock += FebOffset; //Jump to the next FEB fragment
506  const int32_t BlockSize = getNumberOfWords();
507  //std::cout << "LeftSize=" << LeftSize << " BlockSize=" << BlockSize << std::endl;
508  if (BlockSize>LeftSize) {
509  std::cout << "ERROR while decoding LArByteStream: Found FEB block of size " << BlockSize << " in a ROD block of size " << LeftSize << std::endl;
510  m_error_next_feb = true;
511  return false;
512  }
513  //std::cout << "Second FEB ok, size= " << LeftSize <<std::endl;
514 
515  //m_FebBlockSize = LeftSize; //should be =BlockSize;
516  m_FebBlockSize=BlockSize;
517 
518  //std::cout << "2: FEB found with size " << m_FebBlockSize << std::endl;
519  setPointers();
520  return true;
521 }

◆ offlineCheckSum()

uint32_t LArRodBlockPhysicsV4::offlineCheckSum ( ) const
virtual

Reimplemented from LArRodBlockStructure.

Definition at line 283 of file LArRodBlockPhysicsV4.cxx.

284 {
285  int end = getNumberOfWords()-3;
286  //int start = 0; //m_iHeadBlockSize;
287  uint32_t sum = 0;
288  for(int i=0;i<end;i++) {
289  sum += m_FebBlock[i];
290  //std::cout << i << " : " << std::hex << sum << " : " << m_FebBlock[i] << std::endl;
291  }
292  return sum & 0x7fffffff;
293 }

◆ OfflineToRawGain()

uint32_t LArRodBlockStructure::OfflineToRawGain ( const uint32_t  gain) const
inlineinherited

Definition at line 352 of file LArRodBlockStructure.h.

353 {return m_OfflineToRawGainMap[gain];} //For efficency, don't check range

◆ onlineCheckSum()

uint32_t LArRodBlockPhysicsV4::onlineCheckSum ( ) const
virtual

Reimplemented from LArRodBlockStructure.

Definition at line 271 of file LArRodBlockPhysicsV4.cxx.

272 {
273  //int size = getNumberOfWords();
274  int index = getNumberOfWords()-1;
275  if(index<m_iHeadBlockSize) return 0;
277  //for(int i=size-10;i<size;i++) {
278  // std::cout << i << " : " << std::hex << m_FebBlock+i << " : " << m_FebBlock[i] << std::endl;
279  //}
280  return sum;
281 }

◆ RawToOfflineGain()

uint32_t LArRodBlockStructure::RawToOfflineGain ( const uint32_t  gain) const
inlineinherited

Definition at line 349 of file LArRodBlockStructure.h.

350 {return m_RawToOfflineGainMap[gain];} //For efficency, don't check range

◆ report_error()

bool LArRodBlockStructure::report_error ( void  ) const
inlineinherited

Definition at line 177 of file LArRodBlockStructure.h.

177 { return m_error_next_feb;}

◆ resetPointers()

void LArRodBlockPhysicsV4::resetPointers ( )
privatevirtual

Reimplemented from LArRodBlockStructure.

Definition at line 32 of file LArRodBlockPhysicsV4.cxx.

33 {
34  m_EnergyIndex=0;
37  m_TowerIndex=0;
38 
42  m_GainPointer=0;
43  m_MaskPointer=0;
45  m_SumPointer=0;
47 }

◆ setBit()

void LArRodBlockStructure::setBit ( uint32_t *const  p,
const unsigned  chan 
)
inlineprotectedinherited

Definition at line 444 of file LArRodBlockStructure.h.

445 {
446  // chan = (0,127)
447  // int a = chan/32;
448  // int r = chan%32;
449  int a = chan>>5;
450  int r = chan&0x1f;
451  // a = (0,3), r = ( 0, 31 )
452  *(p+a) |= (1<<r) ;
453  return;
454 }

◆ setDAC()

void LArRodBlockStructure::setDAC ( const uint16_t  DACValue)
virtualinherited

Reimplemented in LArRodBlockCalibrationV0< DSPHEADER >.

Definition at line 57 of file LArRodBlockStructure.cxx.

58 {
59  std::cout << "ERROR: Function setDAC not implemented in this instance of LArRodBlockStructure!\n";
60  return;
61 }

◆ setDelay()

void LArRodBlockStructure::setDelay ( const uint16_t  DelayValue)
virtualinherited

Reimplemented in LArRodBlockCalibrationV0< DSPHEADER >.

Definition at line 63 of file LArRodBlockStructure.cxx.

64 {
65  std::cout << "ERROR: Function setDelay not implemented in this instance of LArRodBlockStructure!\n";
66  return;
67 }

◆ setEtQ()

void LArRodBlockStructure::setEtQ ( const int  channel,
const int32_t  energy,
const int32_t  time,
const int32_t  quality,
const uint32_t  gain 
)
virtualinherited

Definition at line 120 of file LArRodBlockStructure.cxx.

121 {
122  std::cout << "ERROR: Function setEtQ not implemented in this instance of LArRodBlockStructure!\n";
123  return;
124 }

◆ setEx()

void LArRodBlockStructure::setEx ( double  )
virtualinherited

Reimplemented in LArRodBlockPhysicsV6, LArRodBlockPhysicsV5, and LArRodBlockPhysicsV3.

Definition at line 200 of file LArRodBlockStructure.cxx.

201 {
202  // Do not set anything
203  return;
204 }

◆ setEy()

void LArRodBlockStructure::setEy ( double  )
virtualinherited

Reimplemented in LArRodBlockPhysicsV6, LArRodBlockPhysicsV5, and LArRodBlockPhysicsV3.

Definition at line 206 of file LArRodBlockStructure.cxx.

207 {
208  // Do not set anything
209  return;
210 }

◆ setEz()

void LArRodBlockStructure::setEz ( double  )
virtualinherited

Reimplemented in LArRodBlockPhysicsV6, LArRodBlockPhysicsV5, and LArRodBlockPhysicsV3.

Definition at line 212 of file LArRodBlockStructure.cxx.

213 {
214  // Do not set anything
215  return;
216 }

◆ setFirstSample()

void LArRodBlockStructure::setFirstSample ( const int  rearrangeFirstSample)
inlineinherited

Definition at line 168 of file LArRodBlockStructure.h.

169  {m_rearrangeFirstSample=rearrangeFirstSample;}

◆ setFragment()

bool LArRodBlockStructure::setFragment ( const uint32_t *  p,
uint32_t  n 
)
inlineinherited

Definition at line 252 of file LArRodBlockStructure.h.

253 {
254  resetPointers();
255  m_FebBlock = p;
257  m_RodBlockSize = n;
258  uint32_t BlockSize = 0;
259 
260  if (n==0) {
261  std::cout << "ERROR while decoding LArByteStream: Got Rod block size 0" << std::endl;
262  return false;
263  }
264 
265  BlockSize = getNumberOfWords();
266  if (BlockSize>n) {
267  std::cout << "ERROR while decoding LArByteStream: Found FEB block of size " << BlockSize << " in a ROD block of size " << n << std::endl;
268  return false;
269  }
270  m_FebBlockSize = BlockSize;
271 
272  m_error_next_feb = false;
273  //std::cout << "1: FEB found with size " << m_FebBlockSize << std::endl;
274 
275  return setPointers();
276 }

◆ setFragmentVirtualROB()

int LArRodBlockStructure::setFragmentVirtualROB ( const uint32_t *  p,
uint32_t  n 
)
inlinevirtualinherited

Definition at line 280 of file LArRodBlockStructure.h.

281  {
282  m_ROB_to_decode=0;
286  if ( n<2 ) { std::cout << "ERROR" << std::endl; return 0;}
287  m_virtualROBJump = ((*p)>>16)>>1; // Divide by two (two FEBs-1ROB)
288  m_ROB_to_decode = ( (*p) & 0xFFFF )<<1; // Multiply by two
289  if ( (n - m_virtualROBJump*m_ROB_to_decode-1) ){
290  std::cout << "ERROR AGAIN" << std::endl;
291  return 0;
292  }
294  return m_ROB_to_decode;
295 }

◆ setGain()

virtual int LArRodBlockPhysicsV4::setGain ( const int  )
inlinevirtual

Reimplemented from LArRodBlockStructure.

Definition at line 97 of file LArRodBlockPhysicsV4.h.

97 { return 1; };

◆ setHeader16()

void LArRodBlockStructure::setHeader16 ( const unsigned  n,
const uint16_t  w 
)
inlineprotectedinherited

Definition at line 380 of file LArRodBlockStructure.h.

381 {
382 #ifdef LARBYTESTREAMRODBLOCK_CHCKBOUNDARIES
383  if ((unsigned)n>=m_vFragment->size()*2) {
384  std::cout << "ERROR WRITE BEYOND ARRAY BONDARY!" << std::endl;
385  std::abort();
386  }
387 #endif
388  if (n&0x1) // n is a odd number
389  m_vFragment->at(n>>1)=((m_vFragment->at(n>>1) & 0xffff0000) | w);
390  else
391  m_vFragment->at(n>>1)=((m_vFragment->at(n>>1) & 0xffff) | (w << 16));
392 }

◆ setHeader32()

void LArRodBlockStructure::setHeader32 ( const unsigned  n,
const uint32_t  w 
)
inlineprotectedinherited

Definition at line 394 of file LArRodBlockStructure.h.

395 {
396 #ifdef LARBYTESTREAMRODBLOCK_CHCKBOUNDARIES
397  if ((unsigned)n>=m_vFragment->size()*2) {
398  std::cout << "ERROR WRITE BEYOND ARRAY BONDARY!" << std::endl;
399  std::abort();
400  }
401 #endif
402  m_vFragment->at(n>>1) = w;
403 }

◆ setNextEnergy()

void LArRodBlockStructure::setNextEnergy ( const int  channel,
const int32_t  energy,
const int32_t  time,
const int32_t  quality,
const uint32_t  gain 
)
virtualinherited

Reimplemented in LArRodBlockPhysicsV6, LArRodBlockPhysicsV5, LArRodBlockPhysicsV3, LArRodBlockPhysicsV1, LArRodBlockPhysicsV0, and LArRodBlockPhysicsV2.

Definition at line 106 of file LArRodBlockStructure.cxx.

107 {
108  std::cout << "ERROR: Function setNextEnergy not implemented in this instance of LArRodBlockStructure!\n";
109  return;
110 }

◆ setNTrigger()

void LArRodBlockStructure::setNTrigger ( const uint16_t  NTrigger)
virtualinherited

Definition at line 75 of file LArRodBlockStructure.cxx.

76 {
77  std::cout << "ERROR: Function setNTrigger not implemented in this instance of LArRodBlockStructure!\n";
78  return;
79 }

◆ setNumberOfGains()

void LArRodBlockStructure::setNumberOfGains ( const uint8_t  n)
virtualinherited

Reimplemented in LArRodBlockPhysicsV3, LArRodBlockPhysicsV1, LArRodBlockPhysicsV0, LArRodBlockPhysicsV2, and LArRodBlockTransparentV0< DSPHEADER >.

Definition at line 138 of file LArRodBlockStructure.cxx.

139 {
140  std::cout << "ERROR: Function setNumberOfGains not implemented in this instance of LArRodBlockStructure!\n";
141  return;
142 }

◆ setNumberOfSamples()

void LArRodBlockStructure::setNumberOfSamples ( const uint8_t  n)
virtualinherited

Reimplemented in LArRodBlockPhysicsV3, LArRodBlockPhysicsV1, LArRodBlockPhysicsV0, LArRodBlockPhysicsV2, and LArRodBlockTransparentV0< DSPHEADER >.

Definition at line 132 of file LArRodBlockStructure.cxx.

133 {
134  std::cout << "ERROR: Function setNumberOfSamples not implemented in this instance of LArRodBlockStructure!\n";
135  return;
136 }

◆ setPointers()

bool LArRodBlockPhysicsV4::setPointers ( )
privatevirtual

Reimplemented from LArRodBlockStructure.

Definition at line 49 of file LArRodBlockPhysicsV4.cxx.

50 {
51  m_EnergyIndex=0;
54  m_TowerIndex=0;
55 
57  {
58  int off = -8;
59  if (getHeader16(ResultsOff1)) {
60  if (getHeader16(ResultsDim1)>=8)
62  if (getHeader16(ResultsDim1)>=12)
64  if (getHeader16(ResultsDim1)>=13)
66  if (getHeader16(ResultsDim1)>13)
68  }
69  if (getHeader16(ResultsOff2)) {
70  if (getHeader16(ResultsOff2)>=4)
72  if (getHeader16(ResultsOff2)>=7)
73  m_SumPointer=(const int32_t*)(m_FebBlock+getHeader16(ResultsOff2)+4+off);
74  if (getHeader16(ResultsOff2)>7)
76  }
79 
80 #ifdef LARBSDBGOUTPUT
81  MsgStream logstr(Athena::getMessageSvc(), BlockType());
82  logstr << MYLEVEL << "***********************************************************************"<< endmsg;
83  logstr << MYLEVEL << "Header values :"<< endmsg;
84  logstr << MYLEVEL << "************************************************************************"<< endmsg;
85  logstr << MYLEVEL << "Fragment @ = 0x" << MSG::hex << m_FebBlock << endmsg;
86  logstr << MYLEVEL << "NWTot = " << MSG::dec << getNumberOfWords() << endmsg;
87  logstr << MYLEVEL << "FebID = 0x" << MSG::hex << getHeader32(FEBID) << endmsg;
88  logstr << MYLEVEL << "FebSN = 0x" << MSG::hex << getHeader32(FEB_SN) << endmsg;
89  logstr << MYLEVEL << "ResultsOff1 = 0x" << MSG::hex << getHeader16(ResultsOff1) << endmsg;
90  logstr << MYLEVEL << "ResultsDim1 = 0x" << MSG::hex << getHeader16(ResultsDim1) << endmsg;
91  logstr << MYLEVEL << "ResultsOff2 = 0x" << MSG::hex << getHeader16(ResultsOff2) << endmsg;
92  logstr << MYLEVEL << "ResultsDim2 = 0x" << MSG::hex << getHeader16(ResultsDim2) << endmsg;
93  logstr << MYLEVEL << "RawDataBlkOff = 0x" << MSG::hex << getHeader16(RawDataBlkOff) << endmsg;
94  logstr << MYLEVEL << "RawDataBlkDim = 0x" << MSG::hex << getHeader16(RawDataBlkDim) << endmsg;
95  logstr << MYLEVEL << "************************************************************************"<< MSG::dec << endmsg;
96 
97  int size = getNumberOfWords();
98  for(int i=0;i<size;i++) {
99  logstr << MYLEVEL << MSG::hex << i << " : " << MSG::hex << m_FebBlock+i << " : " << MSG::hex << m_FebBlock[i] << endmsg;
100  }
101 
102  if(m_MaskPointer) size = 4; else size = 0;
103  logstr << MYLEVEL << "Mask Block size = " << MSG::hex << size << endmsg;
104  logstr << MYLEVEL << "Mask Block address = " << MSG::hex << m_MaskPointer << endmsg;
105  for(int i=0;i<size;i++) {
106  logstr << MYLEVEL << i << " : " << MSG::hex << m_MaskPointer[i] << endmsg;
107  }
108  logstr << MYLEVEL << "End of Mask Block" << endmsg;
109 #endif
110  }
111 
112  return true;
113 }

◆ setPulsed()

void LArRodBlockStructure::setPulsed ( const unsigned  channelNumber)
virtualinherited

Reimplemented in LArRodBlockCalibrationV0< DSPHEADER >.

Definition at line 69 of file LArRodBlockStructure.cxx.

70 {
71  std::cout << "ERROR: Function setPulsed not implemented in this instance of LArRodBlockStructure!\n";
72  return;
73 }

◆ setRawData()

void LArRodBlockStructure::setRawData ( const int  channel,
const std::vector< short > &  samples,
const uint32_t  gain 
)
virtualinherited

Reimplemented in LArRodBlockPhysicsV6, LArRodBlockPhysicsV5, LArRodBlockPhysicsV3, LArRodBlockPhysicsV1, LArRodBlockPhysicsV0, and LArRodBlockPhysicsV2.

Definition at line 113 of file LArRodBlockStructure.cxx.

114 {
115  std::cout << "ERROR: Function setRawData not implemented in this instance of LArRodBlockStructure!\n";
116  return;
117 }

◆ setRawDataFixed()

void LArRodBlockStructure::setRawDataFixed ( const int  channel,
const std::vector< short > &  samples,
const uint32_t  gain 
)
virtualinherited

Reimplemented in LArRodBlockTransparentV0< DSPHEADER >.

Definition at line 126 of file LArRodBlockStructure.cxx.

127 {
128  std::cout << "ERROR: Function setRawDataFixed not implemented in this instance of LArRodBlockStructure!\n";
129  return;
130 }

◆ setSumE()

void LArRodBlockStructure::setSumE ( double  )
virtualinherited

Reimplemented in LArRodBlockPhysicsV6.

Definition at line 218 of file LArRodBlockStructure.cxx.

219 {
220  // Do not set anything
221  return;
222 }

◆ setTDCPhase()

void LArRodBlockStructure::setTDCPhase ( const uint8_t  n)
virtualinherited

Reimplemented in LArRodBlockTransparentV0< DSPHEADER >.

Definition at line 144 of file LArRodBlockStructure.cxx.

145 {
146  std::cout << "ERROR: Function setTDCPhase not implemented in this instance of LArRodBlockStructure!\n";
147  return;
148 }

◆ sortDataVector() [1/5]

void LArRodBlockStructure::sortDataVector ( std::vector< const LArAccumulatedCalibDigit * > &  )
virtualinherited

Definition at line 239 of file LArRodBlockStructure.cxx.

240 {return;}

◆ sortDataVector() [2/5]

void LArRodBlockStructure::sortDataVector ( std::vector< const LArAccumulatedDigit * > &  )
virtualinherited

Definition at line 242 of file LArRodBlockStructure.cxx.

243 {return;}

◆ sortDataVector() [3/5]

void LArRodBlockStructure::sortDataVector ( std::vector< const LArCalibDigit * > &  )
virtualinherited

Definition at line 236 of file LArRodBlockStructure.cxx.

237 {return;}

◆ sortDataVector() [4/5]

void LArRodBlockStructure::sortDataVector ( std::vector< const LArDigit * > &  )
virtualinherited

◆ sortDataVector() [5/5]

void LArRodBlockStructure::sortDataVector ( std::vector< const LArRawChannel * > &  )
virtualinherited

Reimplemented in LArRodBlockPhysicsV3, LArRodBlockPhysicsV1, LArRodBlockPhysicsV0, and LArRodBlockPhysicsV2.

Definition at line 230 of file LArRodBlockStructure.cxx.

231 {return;}

Member Data Documentation

◆ m_channelsPerFEB

int LArRodBlockStructure::m_channelsPerFEB
protectedinherited

Definition at line 225 of file LArRodBlockStructure.h.

◆ m_EnergyIndex

int LArRodBlockPhysicsV4::m_EnergyIndex = 0
private

Definition at line 103 of file LArRodBlockPhysicsV4.h.

◆ m_EnergyPointer

const uint16_t* LArRodBlockPhysicsV4::m_EnergyPointer = nullptr
private

Definition at line 107 of file LArRodBlockPhysicsV4.h.

◆ m_error_next_feb

bool LArRodBlockStructure::m_error_next_feb
protectedinherited

Definition at line 243 of file LArRodBlockStructure.h.

◆ m_Ex

int32_t LArRodBlockStructure::m_Ex
protectedinherited

Definition at line 207 of file LArRodBlockStructure.h.

◆ m_Ey

int32_t LArRodBlockStructure::m_Ey
protectedinherited

Definition at line 208 of file LArRodBlockStructure.h.

◆ m_Ez

int32_t LArRodBlockStructure::m_Ez
protectedinherited

Definition at line 209 of file LArRodBlockStructure.h.

◆ m_FebBlock

const uint32_t* LArRodBlockStructure::m_FebBlock
protectedinherited

Definition at line 227 of file LArRodBlockStructure.h.

◆ m_FebBlockSize

int32_t LArRodBlockStructure::m_FebBlockSize
protectedinherited

Definition at line 229 of file LArRodBlockStructure.h.

◆ m_fixedGain

int LArRodBlockPhysicsV4::m_fixedGain
private

Definition at line 117 of file LArRodBlockPhysicsV4.h.

◆ m_GainPointer

const uint32_t* LArRodBlockPhysicsV4::m_GainPointer = nullptr
private

Definition at line 110 of file LArRodBlockPhysicsV4.h.

◆ m_HotCellsPointer

const uint16_t* LArRodBlockPhysicsV4::m_HotCellsPointer = nullptr
private

Definition at line 112 of file LArRodBlockPhysicsV4.h.

◆ m_iHeadBlockSize

unsigned short LArRodBlockStructure::m_iHeadBlockSize
protectedinherited

Definition at line 221 of file LArRodBlockStructure.h.

◆ m_MaskPointer

const uint32_t* LArRodBlockPhysicsV4::m_MaskPointer = nullptr
private

Definition at line 111 of file LArRodBlockPhysicsV4.h.

◆ m_mFebBlocks

FEBMAPTYPE LArRodBlockStructure::m_mFebBlocks
protectedinherited

Definition at line 234 of file LArRodBlockStructure.h.

◆ m_MiddleHeaderSize

int32_t LArRodBlockStructure::m_MiddleHeaderSize
protectedinherited

Definition at line 239 of file LArRodBlockStructure.h.

◆ m_numberOfEx

uint32_t LArRodBlockStructure::m_numberOfEx
protectedinherited

Definition at line 214 of file LArRodBlockStructure.h.

◆ m_numberOfEy

uint32_t LArRodBlockStructure::m_numberOfEy
protectedinherited

Definition at line 215 of file LArRodBlockStructure.h.

◆ m_numberOfEz

uint32_t LArRodBlockStructure::m_numberOfEz
protectedinherited

Definition at line 216 of file LArRodBlockStructure.h.

◆ m_numberOfSumE

uint32_t LArRodBlockStructure::m_numberOfSumE
protectedinherited

Definition at line 217 of file LArRodBlockStructure.h.

◆ m_OfflineToRawGainMap

const uint32_t LArRodBlockStructure::m_OfflineToRawGainMap ={3,2,1}
staticprotectedinherited

Definition at line 238 of file LArRodBlockStructure.h.

◆ m_pRODblock

std::vector<uint32_t>* LArRodBlockStructure::m_pRODblock
protectedinherited

Definition at line 232 of file LArRodBlockStructure.h.

◆ m_RawDataIndex

int LArRodBlockPhysicsV4::m_RawDataIndex = 0
private

Definition at line 104 of file LArRodBlockPhysicsV4.h.

◆ m_RawDataPointer

const uint16_t* LArRodBlockPhysicsV4::m_RawDataPointer = nullptr
private

Definition at line 109 of file LArRodBlockPhysicsV4.h.

◆ m_RawToOfflineGainMap

const uint32_t LArRodBlockStructure::m_RawToOfflineGainMap ={0, 2, 1,0}
staticprotectedinherited

Definition at line 237 of file LArRodBlockStructure.h.

◆ m_rearrangeFirstSample

unsigned int LArRodBlockStructure::m_rearrangeFirstSample
protectedinherited

Definition at line 241 of file LArRodBlockStructure.h.

◆ m_ROB_to_decode

int32_t LArRodBlockStructure::m_ROB_to_decode
protectedinherited

Definition at line 246 of file LArRodBlockStructure.h.

◆ m_RodBlock

const uint32_t* LArRodBlockStructure::m_RodBlock
protectedinherited

Definition at line 228 of file LArRodBlockStructure.h.

◆ m_RodBlockSize

int32_t LArRodBlockStructure::m_RodBlockSize
protectedinherited

Definition at line 230 of file LArRodBlockStructure.h.

◆ m_SumE

int32_t LArRodBlockStructure::m_SumE
protectedinherited

Definition at line 210 of file LArRodBlockStructure.h.

◆ m_SumPointer

const int32_t* LArRodBlockPhysicsV4::m_SumPointer = nullptr
private

Definition at line 114 of file LArRodBlockPhysicsV4.h.

◆ m_TimeQualityIndex

int LArRodBlockPhysicsV4::m_TimeQualityIndex = 0
private

Definition at line 105 of file LArRodBlockPhysicsV4.h.

◆ m_TimeQualityPointer

const uint16_t* LArRodBlockPhysicsV4::m_TimeQualityPointer = nullptr
private

Definition at line 108 of file LArRodBlockPhysicsV4.h.

◆ m_TowerIndex

int LArRodBlockPhysicsV4::m_TowerIndex = 0
private

Definition at line 106 of file LArRodBlockPhysicsV4.h.

◆ m_TowerPointer

const uint8_t* LArRodBlockPhysicsV4::m_TowerPointer = nullptr
private

Definition at line 113 of file LArRodBlockPhysicsV4.h.

◆ m_vFragment

std::vector<uint32_t>* LArRodBlockStructure::m_vFragment
protectedinherited

Definition at line 231 of file LArRodBlockStructure.h.

◆ m_virtualROBJump

uint32_t LArRodBlockStructure::m_virtualROBJump
protectedinherited

Definition at line 245 of file LArRodBlockStructure.h.

◆ m_virtualROBPointer

const uint32_t* LArRodBlockStructure::m_virtualROBPointer
protectedinherited

Definition at line 247 of file LArRodBlockStructure.h.

◆ m_virtualROBPointerLocal

const uint32_t* LArRodBlockStructure::m_virtualROBPointerLocal
protectedinherited

Definition at line 248 of file LArRodBlockStructure.h.


The documentation for this class was generated from the following files:
LArRodBlockPhysicsV4::resetPointers
virtual void resetPointers()
Definition: LArRodBlockPhysicsV4.cxx:32
LArRodBlockPhysicsV4::m_EnergyPointer
const uint16_t * m_EnergyPointer
Definition: LArRodBlockPhysicsV4.h:107
LArRodBlockPhysicsV4::NGains
@ NGains
Definition: LArRodBlockPhysicsV4.h:50
beamspotman.r
def r
Definition: beamspotman.py:676
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
LArRodBlockPhysicsV4::ResultsDim1
@ ResultsDim1
Definition: LArRodBlockPhysicsV4.h:43
LArRodBlockStructure::m_vFragment
std::vector< uint32_t > * m_vFragment
Definition: LArRodBlockStructure.h:231
LArRodBlockStructure::FEBID_h
@ FEBID_h
Definition: LArRodBlockStructure.h:55
LArRodBlockPhysicsV4::RawDataBlkOff
@ RawDataBlkOff
Definition: LArRodBlockPhysicsV4.h:46
LArRodBlockPhysicsV4::EventStatus
@ EventStatus
Definition: LArRodBlockPhysicsV4.h:48
sendEI_SPB.ch
ch
Definition: sendEI_SPB.py:35
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
LArRodBlockPhysicsV4::FEB_SN_h
@ FEB_SN_h
Definition: LArRodBlockPhysicsV4.h:41
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
LArRodBlockPhysicsV4::getNextEnergy
virtual int getNextEnergy(int &channelNumber, int32_t &energy, int32_t &time, int32_t &quality, uint32_t &gain)
Definition: LArRodBlockPhysicsV4.h:136
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
LArRodBlockPhysicsV4::NSamples
@ NSamples
Definition: LArRodBlockPhysicsV4.h:51
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LArRodBlockStructure::LArRodBlockStructure
LArRodBlockStructure()
Definition: LArRodBlockStructure.cxx:22
LArRodBlockStructure::getNumberOfWords
uint32_t getNumberOfWords() const
Definition: LArRodBlockStructure.h:428
index
Definition: index.py:1
LArRodBlockPhysicsV4::m_TimeQualityPointer
const uint16_t * m_TimeQualityPointer
Definition: LArRodBlockPhysicsV4.h:108
LArRodBlockStructure::NWTot_h
@ NWTot_h
Definition: LArRodBlockStructure.h:53
LArRodBlockStructure::m_FebBlockSize
int32_t m_FebBlockSize
Definition: LArRodBlockStructure.h:229
LArRodBlockStructure::FEBSN
@ FEBSN
Definition: LArRodBlockStructure.h:56
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArRodBlockPhysicsV4::FEBID
@ FEBID
Definition: LArRodBlockPhysicsV4.h:38
LArRodBlockStructure::m_error_next_feb
bool m_error_next_feb
Definition: LArRodBlockStructure.h:243
LArRodBlockStructure::m_FebBlock
const uint32_t * m_FebBlock
Definition: LArRodBlockStructure.h:227
LArRodBlockPhysicsV4::endtag
@ endtag
Definition: LArRodBlockPhysicsV4.h:56
LArRodBlockPhysicsV4::m_MaskPointer
const uint32_t * m_MaskPointer
Definition: LArRodBlockPhysicsV4.h:111
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
LArRodBlockPhysicsV4::FEBID_h
@ FEBID_h
Definition: LArRodBlockPhysicsV4.h:39
CaloGain::LARNGAIN
@ LARNGAIN
Definition: CaloGain.h:19
x
#define x
LArRodBlockPhysicsV4::FebConfig
@ FebConfig
Definition: LArRodBlockPhysicsV4.h:53
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
LArRodBlockPhysicsV4::m_RawDataPointer
const uint16_t * m_RawDataPointer
Definition: LArRodBlockPhysicsV4.h:109
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
LArRodBlockPhysicsV4::InFPGAFormat
@ InFPGAFormat
Definition: LArRodBlockPhysicsV4.h:54
LArRodBlockStructure::setPointers
virtual bool setPointers()
Definition: LArRodBlockStructure.h:189
LArRodBlockPhysicsV4::ResultsOff2
@ ResultsOff2
Definition: LArRodBlockPhysicsV4.h:44
LArRodBlockPhysicsV4::m_GainPointer
const uint32_t * m_GainPointer
Definition: LArRodBlockPhysicsV4.h:110
LArRodBlockStructure::m_iHeadBlockSize
unsigned short m_iHeadBlockSize
Definition: LArRodBlockStructure.h:221
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
LArRodBlockStructure::m_rearrangeFirstSample
unsigned int m_rearrangeFirstSample
Definition: LArRodBlockStructure.h:241
LArRodBlockPhysicsV4::m_TowerPointer
const uint8_t * m_TowerPointer
Definition: LArRodBlockPhysicsV4.h:113
LArRodBlockStructure::getHeader32
uint32_t getHeader32(const unsigned n) const
Definition: LArRodBlockStructure.h:365
convertTimingResiduals.sum
sum
Definition: convertTimingResiduals.py:55
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
LArRodBlockStructure::RawToOfflineGain
uint32_t RawToOfflineGain(const uint32_t gain) const
Definition: LArRodBlockStructure.h:349
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:100
lumiFormat.i
int i
Definition: lumiFormat.py:92
ReadCellNoiseFromCool.chan
chan
Definition: ReadCellNoiseFromCool.py:52
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
beamspotman.n
n
Definition: beamspotman.py:731
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
01SubmitToGrid.samples
samples
Definition: 01SubmitToGrid.py:58
LArRodBlockPhysicsV4::getFirstSampleIndex
uint16_t getFirstSampleIndex() const
Definition: LArRodBlockPhysicsV4.h:131
LArRodBlockPhysicsV4::ResultsOff1
@ ResultsOff1
Definition: LArRodBlockPhysicsV4.h:42
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
sign
int sign(int a)
Definition: TRT_StrawNeighbourSvc.h:127
MYLEVEL
#define MYLEVEL
Definition: LArRodBlockPhysicsV3.h:47
LArRodBlockStructure::m_virtualROBPointerLocal
const uint32_t * m_virtualROBPointerLocal
Definition: LArRodBlockStructure.h:248
LArRodBlockStructure::resetPointers
virtual void resetPointers()
Definition: LArRodBlockStructure.h:187
LArRodBlockStructure::m_RawToOfflineGainMap
static const uint32_t m_RawToOfflineGainMap[4]
Definition: LArRodBlockStructure.h:237
LArRodBlockPhysicsV4::m_fixedGain
int m_fixedGain
Definition: LArRodBlockPhysicsV4.h:117
LArRodBlockStructure::m_ROB_to_decode
int32_t m_ROB_to_decode
Definition: LArRodBlockStructure.h:246
LArRodBlockPhysicsV4::m_TowerIndex
int m_TowerIndex
Definition: LArRodBlockPhysicsV4.h:106
LArRodBlockPhysicsV4::m_SumPointer
const int32_t * m_SumPointer
Definition: LArRodBlockPhysicsV4.h:114
LArRodBlockStructure::endtag
@ endtag
Definition: LArRodBlockStructure.h:58
LArRodBlockStructure::m_virtualROBPointer
const uint32_t * m_virtualROBPointer
Definition: LArRodBlockStructure.h:247
LArRodBlockPhysicsV4::FEB_SN
@ FEB_SN
Definition: LArRodBlockPhysicsV4.h:40
LArRodBlockPhysicsV4::BlockType
std::string BlockType()
Definition: LArRodBlockPhysicsV4.h:62
LArRodBlockStructure::FEBSN_h
@ FEBSN_h
Definition: LArRodBlockStructure.h:57
ReadOfcFromCool.nsamples
nsamples
Definition: ReadOfcFromCool.py:115
LArRodBlockStructure::m_MiddleHeaderSize
int32_t m_MiddleHeaderSize
Definition: LArRodBlockStructure.h:239
LArRodBlockStructure::NWTot
@ NWTot
Definition: LArRodBlockStructure.h:52
LArRodBlockPhysicsV4::FirstSampleIndex
@ FirstSampleIndex
Definition: LArRodBlockPhysicsV4.h:52
DeMoScan.index
string index
Definition: DeMoScan.py:362
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
a
TList * a
Definition: liststreamerinfos.cxx:10
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
LArRodBlockPhysicsV4::ResultsDim2
@ ResultsDim2
Definition: LArRodBlockPhysicsV4.h:45
convertTimingResiduals.offset
offset
Definition: convertTimingResiduals.py:71
LArRodBlockStructure::m_OfflineToRawGainMap
static const uint32_t m_OfflineToRawGainMap[3]
Definition: LArRodBlockStructure.h:238
extractSporadic.q
list q
Definition: extractSporadic.py:98
LArRodBlockPhysicsV4::m_HotCellsPointer
const uint16_t * m_HotCellsPointer
Definition: LArRodBlockPhysicsV4.h:112
LArRodBlockPhysicsV4::m_TimeQualityIndex
int m_TimeQualityIndex
Definition: LArRodBlockPhysicsV4.h:105
LArRodBlockStructure::m_RodBlockSize
int32_t m_RodBlockSize
Definition: LArRodBlockStructure.h:230
LArRodBlockStructure::m_RodBlock
const uint32_t * m_RodBlock
Definition: LArRodBlockStructure.h:228
LArRodBlockPhysicsV4::m_EnergyIndex
int m_EnergyIndex
Definition: LArRodBlockPhysicsV4.h:103
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
LArRodBlockStructure::m_channelsPerFEB
int m_channelsPerFEB
Definition: LArRodBlockStructure.h:225
LArRodBlockPhysicsV4::m_RawDataIndex
int m_RawDataIndex
Definition: LArRodBlockPhysicsV4.h:104
LArRodBlockPhysicsV4::NWTot
@ NWTot
Definition: LArRodBlockPhysicsV4.h:36
LArRodBlockPhysicsV4::EventStatus_h
@ EventStatus_h
Definition: LArRodBlockPhysicsV4.h:49
LArRodBlockStructure::getHeader16
uint16_t getHeader16(const unsigned n) const
Definition: LArRodBlockStructure.h:355
LArRodBlockStructure::m_virtualROBJump
uint32_t m_virtualROBJump
Definition: LArRodBlockStructure.h:245
LARBSDBG
#define LARBSDBG(text)
This class provides decoding/encoding from/to ROD format.
Definition: LArRodBlockPhysicsV4.h:28
LArRodBlockPhysicsV4::NWTot_h
@ NWTot_h
Definition: LArRodBlockPhysicsV4.h:37
LArRodBlockStructure::FEBID
@ FEBID
Definition: LArRodBlockStructure.h:54
LArRodBlockPhysicsV4::InFPGAFormat_h
@ InFPGAFormat_h
Definition: LArRodBlockPhysicsV4.h:55
LArRodBlockPhysicsV4::RawDataBlkDim
@ RawDataBlkDim
Definition: LArRodBlockPhysicsV4.h:47