ATLAS Offline Software
TileCalibDrawerInt.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include <iostream>
7 
8 //
9 //_____________________________________________________________
12  const DefType& def,
13  uint16_t nChans,
14  uint16_t objVers,
15  const std::string& author,
16  const std::string& comment,
18 {
20  calibDrawer->init(def,nChans,objVers,author,comment,timeStamp);
21  return calibDrawer;
22 }
23 
24 //
25 //_____________________________________________________________
26 const TileCalibDrawerInt*
28 {
29  //=== const Blob needs to be correctly formated
30  if(blob.size()<static_cast<long>(m_hdrSize32)){
31  throw TileCalib::InvalidBlob("TileCalibDrawerBch::getInstance");
32  }
33  return (new TileCalibDrawerInt(blob));
34 }
35 
36 //
37 //_______________________________________________________________
40 {
41  //=== check for correct blob type
42  if(getBlobSize()){
44  throw TileCalib::TypeConflict("TileCalibDrawerInt::Ctor",getObjType(),TileCalibDrawerInt::getType());
45  }
46  }
47 }
48 
49 //
50 //_______________________________________________________________
53 {
54  //=== check for correct blob type
55  if(getBlobSize()){
57  throw TileCalib::TypeConflict("TileCalibDrawerInt::Ctor",getObjType(),TileCalibDrawerInt::getType());
58  }
59  }
60 }
TileCalibDrawerBase::getBlobSize
long getBlobSize() const
Returns the BLOB size in units of bytes.
Definition: TileCalibDrawerBase.h:92
TileCalibDrawerBase::m_hdrSize32
static const unsigned int m_hdrSize32
The header size in units of uint32_t.
Definition: TileCalibDrawerBase.h:138
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TileCalib::InvalidBlob
Thrown if coral::Blob does not conform with expected structure.
Definition: TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:63
python.subdetectors.tile.Blob
Blob
Definition: tile.py:17
TileCalibDrawerDat
Generic template class for storing a number of "T"s for each channel or ADC.
Definition: TileCalibDrawerDat.h:31
TileCalibDrawerInt
Class for storing a 32 bit array of words for each ADC.
Definition: TileCalibDrawerInt.h:23
TileCalibDrawerInt.h
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
TileCalibDrawerInt::getInstance
static const TileCalibDrawerInt * getInstance(const coral::Blob &blob)
Returns a pointer to a const TileCalibDrawerBch.
Definition: TileCalibDrawerInt.cxx:27
TileCalibDrawerInt::TileCalibDrawerInt
TileCalibDrawerInt(const coral::Blob &blob)
Ctor.
Definition: TileCalibDrawerInt.cxx:38
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
CaloCondBlobAlgs_fillNoiseFromASCII.comment
string comment
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:27
TileCalibDrawerInt::getType
virtual uint16_t getType() const
Returns TileCalibType::BCH.
Definition: TileCalibDrawerInt.h:30
BchCleanup.calibDrawer
calibDrawer
Definition: BchCleanup.py:217
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
TileCalibDrawerBase::getObjType
uint16_t getObjType() const
Returns the BLOB object type.
CaloCondBlobAlgs_fillNoiseFromASCII.author
string author
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:26
TileCalib::TypeConflict
Thrown if object type in BLOB does not agree with class type.
Definition: TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:99
CaloCondBlobAlgs_fillNoiseFromASCII.blob
blob
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:96