ATLAS Offline Software
Loading...
Searching...
No Matches
TileCalibDrawerBch.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,
15 const std::string& author,
16 const std::string& comment,
17 uint64_t timeStamp)
18{
19 TileCalibDrawerBch* calibDrawer = new TileCalibDrawerBch(blob);
20 uint16_t objVers = static_cast<uint16_t>(bitPatVer);
21 calibDrawer->init(def,nChans,objVers,author,comment,timeStamp);
22 return calibDrawer;
23}
24
25//
26//_____________________________________________________________
28TileCalibDrawerBch::getInstance(const coral::Blob& blob)
29{
30 //=== const Blob needs to be correctly formated
31 if(blob.size()<static_cast<long>(m_hdrSize32)){
32 throw TileCalib::InvalidBlob("TileCalibDrawerBch::getInstance");
33 }
34 return (new TileCalibDrawerBch(blob));
35}
36
37//
38//_______________________________________________________________
40 : TileCalibDrawerDat<uint32_t>(blob)
41{
42 //=== check for correct blob type
43 if(getBlobSize()){
45 throw TileCalib::TypeConflict("TileCalibDrawerBch::Ctor",getObjType(),TileCalibDrawerBch::getType());
46 }
47 }
48}
49
50//
51//_______________________________________________________________
53 : TileCalibDrawerDat<uint32_t>(blob)
54{
55 //=== check for correct blob type
56 if(getBlobSize()){
58 throw TileCalib::TypeConflict("TileCalibDrawerBch::Ctor",getObjType(),TileCalibDrawerBch::getType());
59 }
60 }
61}
62
static const unsigned int m_hdrSize32
Class for storing a 32 bit status word for each ADC.
static const TileCalibDrawerBch * getInstance(const coral::Blob &blob)
Returns a pointer to a const TileCalibDrawerBch.
TileCalibDrawerBch(const coral::Blob &blob)
Ctor (const).
virtual uint16_t getType() const
Returns TileCalibType::BCH.
TileCalibDrawerDat(const coral::Blob &blob)
std::vector< std::vector< uint32_t > > DefType
Thrown if coral::Blob does not conform with expected structure.
Thrown if object type in BLOB does not agree with class type.