ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileConditions
TileConditions
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
9
#include "
TileConditions/ITileCondToolNoise.h
"
10
#include "
TileConditions/TileSampleNoise.h
"
11
#include "
TileConditions/TileEMScale.h
"
12
#include "
TileIdentifier/TileRawChannelUnit.h
"
13
14
// Athena includes
15
#include "
AthenaBaseComps/AthAlgTool.h
"
16
#include "
StoreGate/ReadCondHandleKey.h
"
17
18
#include <vector>
19
20
21
class
TileCondToolNoiseSample
:
public
AthAlgTool
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,
54
TileRawChannelUnit::UNIT
unit
,
55
const
EventContext &ctx)
const override
56
{
57
return
getHfn
(drawerIdx, channel, adc,
unit
, ctx);
58
}
59
60
private
:
61
62
SG::ReadCondHandleKey<TileSampleNoise>
m_sampleNoiseKey
{
this
,
63
"TileSampleNoise"
,
"TileSampleNoise"
,
"Input Tile sample noise constants"
};
64
65
SG::ReadCondHandleKey<TileSampleNoise>
m_onlineSampleNoiseKey
{
this
,
66
"TileOnlineSampleNoise"
,
""
,
"Input Tile online noise sample constants (e.g.: TileOnlineSampleNoise)"
};
67
68
SG::ReadCondHandleKey<TileEMScale>
m_emScaleKey
{
this
,
69
"TileEMScale"
,
"TileEMScale"
,
"Input Tile EMS conditions"
};
70
};
71
72
#endif
unit
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
Definition
AmgMatrixBasePlugin.h:21
AthAlgTool.h
ITileCondToolNoise.h
ReadCondHandleKey.h
TileEMScale.h
TileRawChannelUnit.h
TileSampleNoise.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
ITileCondToolNoise
Definition
ITileCondToolNoise.h:12
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
TileCondToolNoiseSample::initialize
virtual StatusCode initialize() override
Definition
TileCondToolNoiseSample.cxx:35
TileCondToolNoiseSample::getOnlinePedestalDifference
float getOnlinePedestalDifference(unsigned int drawerIdx, unsigned int channel, unsigned int adc, TileRawChannelUnit::UNIT onlineUnit, const EventContext &ctx) const
Definition
TileCondToolNoiseSample.cxx:142
TileCondToolNoiseSample::getHfn2
float getHfn2(unsigned int drawerIdx, unsigned int channel, unsigned int adc, const EventContext &ctx) const
Definition
TileCondToolNoiseSample.cxx:121
TileCondToolNoiseSample::TileCondToolNoiseSample
TileCondToolNoiseSample(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TileCondToolNoiseSample.cxx:21
TileCondToolNoiseSample::getHfn1
float getHfn1(unsigned int drawerIdx, unsigned int channel, unsigned int adc, const EventContext &ctx) const
Definition
TileCondToolNoiseSample.cxx:109
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
TileCondToolNoiseSample::getHfnNorm
float getHfnNorm(unsigned int drawerIdx, unsigned int channel, unsigned int adc, const EventContext &ctx) const
Definition
TileCondToolNoiseSample.cxx:132
TileCondToolNoiseSample::getHfn
float getHfn(unsigned int drawerIdx, unsigned int channel, unsigned int adc, TileRawChannelUnit::UNIT unit, const EventContext &ctx) const
Definition
TileCondToolNoiseSample.cxx:76
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::finalize
virtual StatusCode finalize() override
Definition
TileCondToolNoiseSample.cxx:51
TileCondToolNoiseSample::getPed
float getPed(unsigned int drawerIdx, unsigned int channel, unsigned int adc, TileRawChannelUnit::UNIT unit, const EventContext &ctx) const
Definition
TileCondToolNoiseSample.cxx:59
TileCondToolNoiseSample::~TileCondToolNoiseSample
virtual ~TileCondToolNoiseSample()
Definition
TileCondToolNoiseSample.cxx:30
TileCondToolNoiseSample::m_emScaleKey
SG::ReadCondHandleKey< TileEMScale > m_emScaleKey
Definition
TileCondToolNoiseSample.h:68
TileCondToolNoiseSample::m_onlineSampleNoiseKey
SG::ReadCondHandleKey< TileSampleNoise > m_onlineSampleNoiseKey
Definition
TileCondToolNoiseSample.h:65
TileCondToolNoiseSample::interfaceID
static const InterfaceID & interfaceID()
Definition
TileCondToolNoiseSample.cxx:15
TileCondToolNoiseSample::m_sampleNoiseKey
SG::ReadCondHandleKey< TileSampleNoise > m_sampleNoiseKey
Definition
TileCondToolNoiseSample.h:62
TileRawChannelUnit::UNIT
UNIT
Definition
TileRawChannelUnit.h:16
type
Generated on
for ATLAS Offline Software by
1.17.0