ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCOOLConditions
LArCOOLConditions
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
9
#include "
Identifier/IdentifierHash.h
"
10
#include <vector>
11
12
class
CondAttrListCollection
;
13
class
MsgStream;
14
15
class
LArSingleFloatBlob
{
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
IdentifierHash.h
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number.
Definition
CondAttrListCollection.h:51
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
LArSingleFloatBlob::m_nChannels
unsigned m_nChannels
Definition
LArSingleFloatBlob.h:30
LArSingleFloatBlob::getDataByHash
const float & getDataByHash(const IdentifierHash &hs, const unsigned gain) const
Definition
LArSingleFloatBlob.h:25
LArSingleFloatBlob::readBlob
void readBlob(const CondAttrListCollection *attrList, const char *attrName, MsgStream &msg)
Definition
LArSingleFloatBlob.cxx:15
LArSingleFloatBlob::LArSingleFloatBlob
LArSingleFloatBlob()
Definition
LArSingleFloatBlob.cxx:11
LArSingleFloatBlob::m_pValues
std::vector< const float * > m_pValues
Definition
LArSingleFloatBlob.h:29
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0