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 // check ranges ???
28 return m_pPedestal[gain][hs];
29 }
30
31 float pedestalRMSByHash(const IdentifierHash& hs, const unsigned gain) const {
32 // check ranges ???
33 return m_pPedestalRMS[gain][hs];
34 }
35
36private:
37 std::vector<const float*> m_pPedestal;
38 std::vector<const float*> m_pPedestalRMS;
39protected:
40 unsigned m_nChannels;
41
42
43};
44
45#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