ATLAS Offline Software
Loading...
Searching...
No Matches
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"
12#include "GaudiKernel/MsgStream.h"
13
15
17
18public:
21 //enum {ERRORCODE = LArElecCalib::ERRORCODE};
22
23protected:
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
40private:
41 std::vector<const float*> m_pPedestal;
42 std::vector<const float*> m_pPedestalRMS;
43protected:
44 unsigned m_nChannels;
45
46
47};
48
49#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.
std::vector< const float * > m_pPedestalRMS
float pedestalByHash(const IdentifierHash &hs, const unsigned gain) const
std::vector< const float * > m_pPedestal
float pedestalRMSByHash(const IdentifierHash &hs, const unsigned gain) const
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
MsgStream & msg
Definition testRead.cxx:32