ATLAS Offline Software
TileCondToolNoiseSample.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TILECONDITIONS_TILECONDTOOLNOISESAMPLE_H
6 #define TILECONDITIONS_TILECONDTOOLNOISESAMPLE_H
7 
8 // Tile includes
13 
14 // Athena includes
17 
18 #include <vector>
19 
20 
22  , virtual public ITileCondToolNoise {
23  public:
24 
25  static const InterfaceID& interfaceID();
26  TileCondToolNoiseSample(const std::string& type, const std::string& name,
27  const IInterface* parent);
28  virtual ~TileCondToolNoiseSample();
29 
30  virtual StatusCode initialize() override;
31  virtual StatusCode finalize() override;
32 
33  float getPed(unsigned int drawerIdx, unsigned int channel, unsigned int adc,
34  TileRawChannelUnit::UNIT unit, const EventContext &ctx) const;
35 
36  float getHfn(unsigned int drawerIdx, unsigned int channel, unsigned int adc,
37  TileRawChannelUnit::UNIT unit, const EventContext &ctx) const;
38 
39  float getLfn(unsigned int drawerIdx, unsigned int channel, unsigned int adc,
40  TileRawChannelUnit::UNIT unit, const EventContext &ctx) const;
41 
42  float getHfn1(unsigned int drawerIdx, unsigned int channel, unsigned int adc, const EventContext &ctx) const;
43 
44  float getHfn2(unsigned int drawerIdx, unsigned int channel, unsigned int adc, const EventContext &ctx) const;
45 
46  float getHfnNorm(unsigned int drawerIdx, unsigned int channel, unsigned int adc, const EventContext &ctx) const;
47 
48  float getOnlinePedestalDifference(unsigned int drawerIdx, unsigned int channel, unsigned int adc,
49  TileRawChannelUnit::UNIT onlineUnit,
50  const EventContext &ctx) const;
51 
52 
53  virtual float getNoise(unsigned int drawerIdx, unsigned int channel, unsigned int adc,
55  const EventContext &ctx) const override
56  {
57  return getHfn(drawerIdx, channel, adc, unit, ctx);
58  }
59 
60  private:
61 
63  "TileSampleNoise", "TileSampleNoise", "Input Tile sample noise constants"};
64 
66  "TileOnlineSampleNoise", "", "Input Tile online noise sample constants (e.g.: TileOnlineSampleNoise)"};
67 
69  "TileEMScale", "TileEMScale", "Input Tile EMS conditions"};
70 };
71 
72 #endif
TileEMScale.h
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
TileCondToolNoiseSample::getLfn
float getLfn(unsigned int drawerIdx, unsigned int channel, unsigned int adc, TileRawChannelUnit::UNIT unit, const EventContext &ctx) const
Definition: TileCondToolNoiseSample.cxx:93
TileCondToolNoiseSample::getHfn
float getHfn(unsigned int drawerIdx, unsigned int channel, unsigned int adc, TileRawChannelUnit::UNIT unit, const EventContext &ctx) const
Definition: TileCondToolNoiseSample.cxx:76
ITileCondToolNoise.h
TileCondToolNoiseSample::m_emScaleKey
SG::ReadCondHandleKey< TileEMScale > m_emScaleKey
Definition: TileCondToolNoiseSample.h:68
TileCondToolNoiseSample::getHfn1
float getHfn1(unsigned int drawerIdx, unsigned int channel, unsigned int adc, const EventContext &ctx) const
Definition: TileCondToolNoiseSample.cxx:109
TileCondToolNoiseSample::getHfn2
float getHfn2(unsigned int drawerIdx, unsigned int channel, unsigned int adc, const EventContext &ctx) const
Definition: TileCondToolNoiseSample.cxx:121
TileCondToolNoiseSample::~TileCondToolNoiseSample
virtual ~TileCondToolNoiseSample()
Definition: TileCondToolNoiseSample.cxx:30
TileCondToolNoiseSample::m_sampleNoiseKey
SG::ReadCondHandleKey< TileSampleNoise > m_sampleNoiseKey
Definition: TileCondToolNoiseSample.h:62
TileCondToolNoiseSample::m_onlineSampleNoiseKey
SG::ReadCondHandleKey< TileSampleNoise > m_onlineSampleNoiseKey
Definition: TileCondToolNoiseSample.h:65
TileCondToolNoiseSample::interfaceID
static const InterfaceID & interfaceID()
Definition: TileCondToolNoiseSample.cxx:15
TileCondToolNoiseSample::TileCondToolNoiseSample
TileCondToolNoiseSample(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TileCondToolNoiseSample.cxx:21
TileCondToolNoiseSample::getOnlinePedestalDifference
float getOnlinePedestalDifference(unsigned int drawerIdx, unsigned int channel, unsigned int adc, TileRawChannelUnit::UNIT onlineUnit, const EventContext &ctx) const
Definition: TileCondToolNoiseSample.cxx:142
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
TileCondToolNoiseSample::getPed
float getPed(unsigned int drawerIdx, unsigned int channel, unsigned int adc, TileRawChannelUnit::UNIT unit, const EventContext &ctx) const
Definition: TileCondToolNoiseSample.cxx:59
TileRawChannelUnit::UNIT
UNIT
Definition: TileRawChannelUnit.h:16
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
TileCondToolNoiseSample::getHfnNorm
float getHfnNorm(unsigned int drawerIdx, unsigned int channel, unsigned int adc, const EventContext &ctx) const
Definition: TileCondToolNoiseSample.cxx:132
TileCondToolNoiseSample::getNoise
virtual float getNoise(unsigned int drawerIdx, unsigned int channel, unsigned int adc, TileRawChannelUnit::UNIT unit, const EventContext &ctx) const override
Definition: TileCondToolNoiseSample.h:53
TileRawChannelUnit.h
SG::ReadCondHandleKey< TileSampleNoise >
TileSampleNoise.h
TileCondToolNoiseSample::finalize
virtual StatusCode finalize() override
Definition: TileCondToolNoiseSample.cxx:51
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
TileCondToolNoiseSample
Definition: TileCondToolNoiseSample.h:22
unit
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
Definition: AmgMatrixBasePlugin.h:20
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AthAlgTool
Definition: AthAlgTool.h:26
TileCondToolNoiseSample::initialize
virtual StatusCode initialize() override
Definition: TileCondToolNoiseSample.cxx:35
ITileCondToolNoise
Definition: ITileCondToolNoise.h:12