ATLAS Offline Software
Loading...
Searching...
No Matches
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
13class MsgStream;
14
16
17public:
18 LArSingleFloatBlob(); //private default constructor
19
20 void readBlob(const CondAttrListCollection* attrList, const char* attrName, MsgStream& msg);
21
22
23protected:
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/*
34inline 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
39inline const float& LArSingleFloatBlob::getData(const HWIdentifier& CellID, int gain) const {
40 return getDataByHash(m_onlineHelper->channel_Hash(CellID),gain);
41}
42*/
43
44#endif
This class is a collection of AttributeLists where each one is associated with a channel number.
This is a "hash" representation of an Identifier.
const float & getDataByHash(const IdentifierHash &hs, const unsigned gain) const
void readBlob(const CondAttrListCollection *attrList, const char *attrName, MsgStream &msg)
std::vector< const float * > m_pValues
MsgStream & msg
Definition testRead.cxx:32