ATLAS Offline Software
TileCalibDrawerCmt.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 //
9 //_____________________________________________________________
12  const std::string& author,
13  const std::string& comment,
15 {
18  return calibDrawer;
19 }
20 
21 //
22 //_____________________________________________________________
23 const TileCalibDrawerCmt*
25 {
26  //=== const Blob needs to be correctly formated
27  if(blob.size()<static_cast<long>(m_hdrSize32)){
28  throw TileCalib::InvalidBlob("TileCalibDrawerCmt::getInstance");
29  }
30  return (new TileCalibDrawerCmt(blob));
31 }
32 
33 //
34 //__________________________________________________________________
36 
38 {
39  //=== no type check here
40 }
41 
42 //
43 //__________________________________________________________________
45 
47 {
48  //=== no type check here
49 }
50 
51 //
52 //__________________________________________________________________
53 void
54 TileCalibDrawerCmt::init(const std::string& author,
55  const std::string& comment,
57 {
59 }
60 
TileCalibDrawerCmt::init
void init(const std::string &author, const std::string &comment="", uint64_t timeStamp=0)
Initializing a TileCalibDrawerCmt.
Definition: TileCalibDrawerCmt.cxx:54
TileCalibDrawerCmt::TileCalibDrawerCmt
TileCalibDrawerCmt(const coral::Blob &blob)
Ctor used when interpreting an already existing BLOB.
Definition: TileCalibDrawerCmt.cxx:35
TileCalibDrawerBase::m_hdrSize32
static const unsigned int m_hdrSize32
The header size in units of uint32_t.
Definition: TileCalibDrawerBase.h:138
TileCalib::InvalidBlob
Thrown if coral::Blob does not conform with expected structure.
Definition: TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/Exception.h:63
TileCalibType::CMT
@ CMT
Enum for TileCalibDrawerCmt class.
Definition: TileCalibType.h:28
TileCalibType.h
python.subdetectors.tile.Blob
Blob
Definition: tile.py:17
TileCalibDrawerBase
This class provides the core BLOB infrastructure.
Definition: TileCalibDrawerBase.h:59
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
CaloCondBlobAlgs_fillNoiseFromASCII.comment
string comment
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:27
TileCalibDrawerBase::createBlob
uint32_t createBlob(uint16_t objType, uint16_t objVersion, uint32_t objSizeUint32, uint32_t nObjs, uint16_t nChans, uint16_t nGains, const std::string &author="", const std::string &comment="", uint64_t timeStamp=0)
(re-)creation of the referenced BLOB object.
Definition: TileCalibDrawerBase.cxx:87
BchCleanup.calibDrawer
calibDrawer
Definition: BchCleanup.py:217
xAOD::timeStamp
setEventNumber timeStamp
Definition: EventInfo_v1.cxx:128
TileCalibDrawerCmt::getInstance
static const TileCalibDrawerCmt * getInstance(const coral::Blob &blob)
Returns a pointer to a const TileCalibDrawerCmt.
Definition: TileCalibDrawerCmt.cxx:24
CaloCondBlobAlgs_fillNoiseFromASCII.author
string author
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:26
TileCalibDrawerCmt
Class to store comments in BLOB without any data.
Definition: TileCalibDrawerCmt.h:20
TileCalibDrawerCmt.h
CaloCondBlobAlgs_fillNoiseFromASCII.blob
blob
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:96