ATLAS Offline Software
Loading...
Searching...
No Matches
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,
17 uint64_t timeStamp)
18{
19 TileCalibDrawerInt* calibDrawer = new TileCalibDrawerInt(blob);
20 calibDrawer->init(def,nChans,objVers,author,comment,timeStamp);
21 return calibDrawer;
22}
23
24//
25//_____________________________________________________________
27TileCalibDrawerInt::getInstance(const coral::Blob& blob)
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//_______________________________________________________________
39 : TileCalibDrawerDat<uint32_t>(blob)
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//_______________________________________________________________
52 : TileCalibDrawerDat<uint32_t>(blob)
53{
54 //=== check for correct blob type
55 if(getBlobSize()){
57 throw TileCalib::TypeConflict("TileCalibDrawerInt::Ctor",getObjType(),TileCalibDrawerInt::getType());
58 }
59 }
60}
static const unsigned int m_hdrSize32
TileCalibDrawerDat(const coral::Blob &blob)
std::vector< std::vector< uint32_t > > DefType
Class for storing a 32 bit array of words for each ADC.
virtual uint16_t getType() const
Returns TileCalibType::BCH.
TileCalibDrawerInt(const coral::Blob &blob)
Ctor.
static const TileCalibDrawerInt * getInstance(const coral::Blob &blob)
Returns a pointer to a const TileCalibDrawerBch.
Thrown if coral::Blob does not conform with expected structure.
Thrown if object type in BLOB does not agree with class type.