ATLAS Offline Software
Loading...
Searching...
No Matches
CaloCondBlobFlt.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 CALOCONDBLOBOBJS_CALOCONDBLOBFLT_H
6#define CALOCONDBLOBOBJS_CALOCONDBLOBFLT_H
7
19
22#include <stdint.h>
23#include <vector>
24#include <ostream>
25#include <iostream>
26#include "CoralBase/Blob.h"
27
28class CaloCondBlobFlt : public CaloCondBlobDat<float>
29{
30 public:
31
33 virtual ~CaloCondBlobFlt(){}
34
36 virtual uint16_t getType() const {return CaloCondType::FLT;}
37
39 static CaloCondBlobFlt* getInstance(coral::Blob& blob);
40
42 static const CaloCondBlobFlt* getInstance(const coral::Blob& blob);
43
49 float getCalib(unsigned int channel, unsigned int adc, float x, bool invert=false) const;
50
51 protected:
53 CaloCondBlobFlt(const coral::Blob& blob);
55 CaloCondBlobFlt(coral::Blob& blob);
56
57};
58#endif
#define x
CaloCondBlobDat(const coral::Blob &blob)
Class for storing a number of floats (Flt) and functions on those.
virtual uint16_t getType() const
Returns CaloCondType::FLT.
virtual ~CaloCondBlobFlt()
Dtor.
static CaloCondBlobFlt * getInstance(coral::Blob &blob)
Returns a pointer to a non-const CaloCondBlobFlt.
float getCalib(unsigned int channel, unsigned int adc, float x, bool invert=false) const
Returns the calibrated energy for a given channel/gain and input energy.
CaloCondBlobFlt(const coral::Blob &blob)
Ctor.
@ FLT
Enum for CaloCondBlobFlt class.