ATLAS Offline Software
Loading...
Searching...
No Matches
LArCalorimeter
LArRawConditions
LArRawConditions
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
9
#include "
LArElecCalib/LArCalibErrorCode.h
"
10
11
class
LArSingleFloatP
{
12
public
:
13
enum
{
ERRORCODE
=
LArElecCalib::ERRORCODE
};
14
LArSingleFloatP
() :
m_data
(
ERRORCODE
) {}
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
LArCalibErrorCode.h
Defines a common ERRORCODE enum for LAr-Calibration objects.
LArSingleFloatP::LArSingleFloatP
LArSingleFloatP()
Definition
LArSingleFloatP.h:14
LArSingleFloatP::isEmpty
bool isEmpty() const
Definition
LArSingleFloatP.h:16
LArSingleFloatP::m_data
float m_data
Definition
LArSingleFloatP.h:19
LArSingleFloatP::LArSingleFloatP
LArSingleFloatP(const float &f)
Definition
LArSingleFloatP.h:15
LArSingleFloatP::ERRORCODE
@ ERRORCODE
Definition
LArSingleFloatP.h:13
LArElecCalib::ERRORCODE
@ ERRORCODE
Definition
LArCalibErrorCode.h:17
Generated on
for ATLAS Offline Software by
1.14.0