ATLAS Offline Software
LArSingleFloatP.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // Dear emacs, this is -*-c++-*-
6 #ifndef LARRAWCONDITIONS_LARSINGLEFLOATP
7 #define LARRAWCONDITIONS_LARSINGLEFLOATP
8 
10 
12  public:
15  LArSingleFloatP(const float& f) : m_data(f) {}
16  bool isEmpty() const {return (m_data<=1.0+static_cast<int>(ERRORCODE));};
17  operator float() {return m_data;};
18  operator float() const {return m_data;};
19  float m_data;
20 };
21 
22 
23 
24 #endif
25 
python.CaloRecoConfig.f
f
Definition: CaloRecoConfig.py:127
LArSingleFloatP::LArSingleFloatP
LArSingleFloatP()
Definition: LArSingleFloatP.h:14
LArSingleFloatP
Definition: LArSingleFloatP.h:11
LArCalibErrorCode.h
Defines a common ERRORCODE enum for LAr-Calibration objects.
LArSingleFloatP::LArSingleFloatP
LArSingleFloatP(const float &f)
Definition: LArSingleFloatP.h:15
LArSingleFloatP::isEmpty
bool isEmpty() const
Definition: LArSingleFloatP.h:16
LArSingleFloatP::ERRORCODE
@ ERRORCODE
Definition: LArSingleFloatP.h:13
LArElecCalib::ERRORCODE
@ ERRORCODE
Definition: LArCalibErrorCode.h:17
LArSingleFloatP::m_data
float m_data
Definition: LArSingleFloatP.h:18
readCCLHist.float
float
Definition: readCCLHist.py:83