ATLAS Offline Software
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 
18 public:
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  // 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 
36 private:
37  std::vector<const float*> m_pPedestal;
38  std::vector<const float*> m_pPedestalRMS;
39 protected:
40  unsigned m_nChannels;
41 
42 
43 };
44 
45 #endif
LArPedestalBlob::m_pPedestalRMS
std::vector< const float * > m_pPedestalRMS
Definition: LArPedestalBlob.h:38
LArPedestalBlob::pedestalRMSByHash
float pedestalRMSByHash(const IdentifierHash &hs, const unsigned gain) const
Definition: LArPedestalBlob.h:31
LArPedestalBlob::readBlob
void readBlob(const CondAttrListCollection *attrList, MsgStream &msg)
Definition: LArPedestalBlob.cxx:18
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArPedestalBlob::pedestalByHash
float pedestalByHash(const IdentifierHash &hs, const unsigned gain) const
Definition: LArPedestalBlob.h:26
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
CreatePhysValWebPage.hs
hs
Definition: CreatePhysValWebPage.py:107
LArPedestalBlob
Definition: LArPedestalBlob.h:16
LArPedestalBlob::~LArPedestalBlob
~LArPedestalBlob()
Definition: LArPedestalBlob.cxx:16
LArPedestalBlob::LArPedestalBlob
LArPedestalBlob()
Definition: LArPedestalBlob.cxx:12
IdentifierHash.h
LArPedestalBlob::m_pPedestal
std::vector< const float * > m_pPedestal
Definition: LArPedestalBlob.h:37
LArPedestalBlob::m_nChannels
unsigned m_nChannels
Definition: LArPedestalBlob.h:40
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7