ATLAS Offline Software
LArSingleFloatBlob.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //Dear emacs, this is -*-c++-*-
6 #ifndef LARCOOLCONDITIONS_LARSINGLEFLOATBLOB_H
7 #define LARCOOLCONDITIONS_LARSINGLEFLOATBLOB_H
8 
10 #include <vector>
11 
13 class MsgStream;
14 
16 
17 public:
18  LArSingleFloatBlob(); //private default constructor
19 
20  void readBlob(const CondAttrListCollection* attrList, const char* attrName, MsgStream& msg);
21 
22 
23 protected:
24 
25  inline const float& getDataByHash(const IdentifierHash& hs, const unsigned gain) const {
26  return m_pValues[gain][hs];
27  }
28 
29  std::vector<const float*> m_pValues;
30  unsigned m_nChannels;
31 };
32 
33 /*
34 inline const float& LArSingleFloatBlob::getData(const Identifier& CellID, const int gain) const {
35  const HWIdentifier OnId = m_larCablingSvc->createSignalChannelID(CellID);
36  return getData(OnId,gain);
37 }
38 
39 inline const float& LArSingleFloatBlob::getData(const HWIdentifier& CellID, int gain) const {
40  return getDataByHash(m_onlineHelper->channel_Hash(CellID),gain);
41 }
42 */
43 
44 #endif
LArSingleFloatBlob::readBlob
void readBlob(const CondAttrListCollection *attrList, const char *attrName, MsgStream &msg)
Definition: LArSingleFloatBlob.cxx:15
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
LArSingleFloatBlob::LArSingleFloatBlob
LArSingleFloatBlob()
Definition: LArSingleFloatBlob.cxx:11
LArSingleFloatBlob::m_nChannels
unsigned m_nChannels
Definition: LArSingleFloatBlob.h:30
CreatePhysValWebPage.hs
hs
Definition: CreatePhysValWebPage.py:107
LArSingleFloatBlob
Definition: LArSingleFloatBlob.h:15
LArSingleFloatBlob::getDataByHash
const float & getDataByHash(const IdentifierHash &hs, const unsigned gain) const
Definition: LArSingleFloatBlob.h:25
LArSingleFloatBlob::m_pValues
std::vector< const float * > m_pValues
Definition: LArSingleFloatBlob.h:29
IdentifierHash.h
python.PoolAttributeHelper.attrName
attrName
Definition: PoolAttributeHelper.py:100
IdentifierHash
Definition: IdentifierHash.h:38
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7