ATLAS Offline Software
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"
13 #include <vector>
14 
16 
17 class LArRampBlob {
18 
19 public:
21 
22  LArRampBlob();
23  ~LArRampBlob();
24 
25 protected:
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
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
LArRampBlob::readBlob
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
Definition: LArRampBlob.cxx:18
mergePhysValFiles.start
start
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:14
LArElecCalib::ERRORCODE
@ ERRORCODE
Definition: LArCalibErrorCode.h:17
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArRampBlob
Definition: LArRampBlob.h:17
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
LArCalibErrorCode.h
Defines a common ERRORCODE enum for LAr-Calibration objects.
CreatePhysValWebPage.hs
hs
Definition: CreatePhysValWebPage.py:107
LArRampBlob::m_nChannels
unsigned m_nChannels
Definition: LArRampBlob.h:37
LArRampBlob::m_pRamp
std::vector< const float * > m_pRamp
Definition: LArRampBlob.h:41
LArRampBlob::~LArRampBlob
~LArRampBlob()
Definition: LArRampBlob.cxx:14
LArRampBlob::m_nPoints
unsigned m_nPoints
Definition: LArRampBlob.h:38
ILArRamp::RampRef_t
LArVectorProxy RampRef_t
This class defines the interface for accessing Ramp @stereotype Interface.
Definition: ILArRamp.h:31
IdentifierHash.h
LArRampBlob::LArRampBlob
LArRampBlob()
Definition: LArRampBlob.cxx:9
LArRampBlob::ADC2DACByHash
ILArRamp::RampRef_t ADC2DACByHash(const IdentifierHash &hs, int gain) const
Definition: LArRampBlob.h:28
ILArRamp.h
LArRampBlob::ERRORCODE
@ ERRORCODE
Definition: LArRampBlob.h:20
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
LArVectorProxy
Proxy for accessing a range of float values like a vector.
Definition: LArVectorProxy.h:38