ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCOOLConditions
LArCOOLConditions
LArRampBlob.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
7
#ifndef LARCOOLCONDITIONS_LARRAMPBLOB_H
8
#define LARCOOLCONDITIONS_LARRAMPBLOB_H
9
10
#include "
LArElecCalib/ILArRamp.h
"
11
#include "
Identifier/IdentifierHash.h
"
12
#include "
LArElecCalib/LArCalibErrorCode.h
"
13
#include <vector>
14
15
class
CondAttrListCollection
;
16
17
class
LArRampBlob
{
18
19
public
:
20
enum
{
ERRORCODE
=
LArElecCalib::ERRORCODE
};
21
22
LArRampBlob
();
23
~LArRampBlob
();
24
25
protected
:
26
void
readBlob
(
const
CondAttrListCollection
* attrList, MsgStream&
msg
);
27
28
ILArRamp::RampRef_t
ADC2DACByHash
(
const
IdentifierHash
& hs,
int
gain)
const
{
29
const
float
* start=
m_pRamp
[gain]+hs*
m_nPoints
;
30
if
(*start==
static_cast<
float
>
(
ERRORCODE
))
31
return
ILArRamp::RampRef_t
(NULL,NULL);
32
else
33
return
ILArRamp::RampRef_t
(start,start+
m_nPoints
);
34
}
35
36
protected
:
37
unsigned
m_nChannels
;
38
unsigned
m_nPoints
;
39
40
private
:
41
std::vector<const float*>
m_pRamp
;
42
};
43
44
45
#endif
ILArRamp.h
IdentifierHash.h
LArCalibErrorCode.h
Defines a common ERRORCODE enum for LAr-Calibration objects.
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number.
Definition
CondAttrListCollection.h:51
ILArRamp::RampRef_t
LArVectorProxy RampRef_t
This class defines the interface for accessing Ramp @stereotype Interface.
Definition
ILArRamp.h:31
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
LArRampBlob::LArRampBlob
LArRampBlob()
Definition
LArRampBlob.cxx:9
LArRampBlob::readBlob
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
Definition
LArRampBlob.cxx:18
LArRampBlob::ADC2DACByHash
ILArRamp::RampRef_t ADC2DACByHash(const IdentifierHash &hs, int gain) const
Definition
LArRampBlob.h:28
LArRampBlob::m_nPoints
unsigned m_nPoints
Definition
LArRampBlob.h:38
LArRampBlob::ERRORCODE
@ ERRORCODE
Definition
LArRampBlob.h:20
LArRampBlob::~LArRampBlob
~LArRampBlob()
Definition
LArRampBlob.cxx:14
LArRampBlob::m_pRamp
std::vector< const float * > m_pRamp
Definition
LArRampBlob.h:41
LArRampBlob::m_nChannels
unsigned m_nChannels
Definition
LArRampBlob.h:37
LArElecCalib::ERRORCODE
@ ERRORCODE
Definition
LArCalibErrorCode.h:17
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0