ATLAS Offline Software
Loading...
Searching...
No Matches
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
13#include <vector>
14
16
18
19public:
21
24
25protected:
26 void readBlob(const CondAttrListCollection* attrList, MsgStream& msg);
27
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
36protected:
37 unsigned m_nChannels;
38 unsigned m_nPoints;
39
40private:
41 std::vector<const float*> m_pRamp;
42};
43
44
45#endif
Defines a common ERRORCODE enum for LAr-Calibration objects.
This class is a collection of AttributeLists where each one is associated with a channel number.
LArVectorProxy RampRef_t
This class defines the interface for accessing Ramp @stereotype Interface.
Definition ILArRamp.h:31
This is a "hash" representation of an Identifier.
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
ILArRamp::RampRef_t ADC2DACByHash(const IdentifierHash &hs, int gain) const
Definition LArRampBlob.h:28
unsigned m_nPoints
Definition LArRampBlob.h:38
std::vector< const float * > m_pRamp
Definition LArRampBlob.h:41
unsigned m_nChannels
Definition LArRampBlob.h:37
MsgStream & msg
Definition testRead.cxx:32