ATLAS Offline Software
TileCalibDrawerBch.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TILECALIBBLOBOBJS_TILECALIBDRAWERBCH_H
6 #define TILECALIBBLOBOBJS_TILECALIBDRAWERBCH_H
7 
24 #include <stdint.h>
25 #include <vector>
26 #include "CoralBase/Blob.h"
27 
28 class TileCalibDrawerBch : public TileCalibDrawerDat<uint32_t>
29 {
30  public:
31 
33  virtual ~TileCalibDrawerBch(){}
34 
36  virtual uint16_t getType() const {return TileCalibType::BCH;}
37 
39  static const TileCalibDrawerBch* getInstance(const coral::Blob& blob);
40 
50  const DefType& def,
51  uint16_t nChans,
52  TileBchDecoder::BitPatVer bitPatVer,
53  const std::string& author="",
54  const std::string& comment="",
56 
59 
65  void getStatusWords(unsigned int channel, unsigned int adc,
66  uint32_t& adcStatus, uint32_t& chnStatus) const;
67 
68  protected:
73 };
74 
75 //
76 //______________________________________________________________________
79 {
80  return static_cast<TileBchDecoder::BitPatVer>(getObjVersion());
81 }
82 
83 //
84 //______________________________________________________________________
85 inline void
86 TileCalibDrawerBch::getStatusWords(unsigned int channel, unsigned int adc,
87  uint32_t& adcStatus, uint32_t& chnStatus) const
88 {
89  adcStatus = getData(channel,adc,0);
90  chnStatus = getData(channel, 2,0);
91 }
92 
93 #endif
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
TileCalibDrawerBch::getInstance
static const TileCalibDrawerBch * getInstance(const coral::Blob &blob)
Returns a pointer to a const TileCalibDrawerBch.
Definition: TileCalibDrawerBch.cxx:28
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TileCalibDrawerBch::getStatusWords
void getStatusWords(unsigned int channel, unsigned int adc, uint32_t &adcStatus, uint32_t &chnStatus) const
Extracts the adc and channel status words.
Definition: TileCalibDrawerBch.h:86
TileCalibType.h
TileCalibDrawerDat.h
python.subdetectors.tile.Blob
Blob
Definition: tile.py:17
TileCalibDrawerBch::getBitPatternVersion
TileBchDecoder::BitPatVer getBitPatternVersion() const
Returns the bit pattern version.
Definition: TileCalibDrawerBch.h:78
TileCalibDrawerDat
Generic template class for storing a number of "T"s for each channel or ADC.
Definition: TileCalibDrawerDat.h:31
TileCalibDrawerBase::getObjVersion
uint16_t getObjVersion() const
Returns the BLOB object version.
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
TileCalibDrawerBch::TileCalibDrawerBch
TileCalibDrawerBch(const coral::Blob &blob)
Ctor (const).
Definition: TileCalibDrawerBch.cxx:39
TileBchDecoder.h
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
CaloCondBlobAlgs_fillNoiseFromASCII.comment
string comment
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:27
TileBchDecoder::BitPatVer
BitPatVer
Definition: TileBchDecoder.h:40
xAOD::timeStamp
setEventNumber timeStamp
Definition: EventInfo_v1.cxx:128
TileCalibDrawerDat< uint32_t >::DefType
std::vector< std::vector< uint32_t > > DefType
Object to hold default data used for initialization.
Definition: TileCalibDrawerDat.h:37
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
CaloCondBlobAlgs_fillNoiseFromASCII.author
string author
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:26
TileCalibDrawerBch
Class for storing a 32 bit status word for each ADC.
Definition: TileCalibDrawerBch.h:29
TileCalibDrawerBch::~TileCalibDrawerBch
virtual ~TileCalibDrawerBch()
Dtor.
Definition: TileCalibDrawerBch.h:33
TileCalibDrawerDat< uint32_t >::getData
uint32_t getData(unsigned int channel, unsigned int adc, unsigned int idx) const
Returns a single T belonging to a channel/ADC.
Definition: TileCalibDrawerDat.h:140
TileCalibType::BCH
@ BCH
Enum for TileCalibDrawerBch class.
Definition: TileCalibType.h:31
TileCalibDrawerBch::getType
virtual uint16_t getType() const
Returns TileCalibType::BCH.
Definition: TileCalibDrawerBch.h:36
CaloCondBlobAlgs_fillNoiseFromASCII.blob
blob
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:96