ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCOOLConditions
LArCOOLConditions
LArPedestalBlob.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
7
#ifndef LARCOOLCONDITIONS_LARPEDESTALBLOB_H
8
#define LARCOOLCONDITIONS_LARPEDESTALBLOB_H
9
10
//#include "LArElecCalib/ILArPedestal.h" #include "LArCOOLConditions/LArCondBlobBase.h"
11
#include "
Identifier/IdentifierHash.h
"
12
#include "GaudiKernel/MsgStream.h"
13
14
class
CondAttrListCollection
;
15
16
class
LArPedestalBlob
{
17
18
public
:
19
LArPedestalBlob
();
20
~LArPedestalBlob
();
21
//enum {ERRORCODE = LArElecCalib::ERRORCODE};
22
23
protected
:
24
void
readBlob
(
const
CondAttrListCollection
* attrList, MsgStream&
msg
);
25
26
float
pedestalByHash
(
const
IdentifierHash
& hs,
const
unsigned
gain)
const
{
27
if
(
m_nChannels
==1)
//MC case, same pedestal for all channels
28
return
m_pPedestal
[gain][0];
29
else
30
return
m_pPedestal
[gain][hs];
31
}
32
33
float
pedestalRMSByHash
(
const
IdentifierHash
& hs,
const
unsigned
gain)
const
{
34
if
(
m_nChannels
== 1)
//MC-case, same pedestal for all channels
35
return
m_pPedestalRMS
[gain][0];
36
else
37
return
m_pPedestalRMS
[gain][hs];
38
}
39
40
private
:
41
std::vector<const float*>
m_pPedestal
;
42
std::vector<const float*>
m_pPedestalRMS
;
43
protected
:
44
unsigned
m_nChannels
;
45
46
47
};
48
49
#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
LArPedestalBlob::m_pPedestalRMS
std::vector< const float * > m_pPedestalRMS
Definition
LArPedestalBlob.h:42
LArPedestalBlob::pedestalByHash
float pedestalByHash(const IdentifierHash &hs, const unsigned gain) const
Definition
LArPedestalBlob.h:26
LArPedestalBlob::LArPedestalBlob
LArPedestalBlob()
Definition
LArPedestalBlob.cxx:12
LArPedestalBlob::m_pPedestal
std::vector< const float * > m_pPedestal
Definition
LArPedestalBlob.h:41
LArPedestalBlob::m_nChannels
unsigned m_nChannels
Definition
LArPedestalBlob.h:44
LArPedestalBlob::pedestalRMSByHash
float pedestalRMSByHash(const IdentifierHash &hs, const unsigned gain) const
Definition
LArPedestalBlob.h:33
LArPedestalBlob::~LArPedestalBlob
~LArPedestalBlob()
Definition
LArPedestalBlob.cxx:16
LArPedestalBlob::readBlob
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
Definition
LArPedestalBlob.cxx:18
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0