ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileConditions
TileConditions
TileCondToolNoiseRawChn.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TILECONDITIONS_TILECONDTOOLNOISERAWCHN_H
6
#define TILECONDITIONS_TILECONDTOOLNOISERAWCHN_H
7
8
// Tile includes
9
#include "
TileConditions/ITileCondToolNoise.h
"
10
#include "
TileConditions/TileCalibData.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
19
class
TileCondToolNoiseRawChn
:
public
AthAlgTool
20
,
virtual
public
ITileCondToolNoise
{
21
public
:
22
23
static
const
InterfaceID&
interfaceID
();
24
25
TileCondToolNoiseRawChn
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent);
26
27
virtual
~TileCondToolNoiseRawChn
();
28
29
virtual
StatusCode
initialize
()
override
;
30
virtual
StatusCode
finalize
()
override
;
31
32
float
getElectronicNoise
(
unsigned
int
drawerIdx,
unsigned
int
channel,
unsigned
int
adc,
33
TileRawChannelUnit::UNIT
unit
,
const
EventContext &ctx)
const
;
34
35
float
getPileUpNoise
(
unsigned
int
drawerIdx,
unsigned
int
channel,
unsigned
int
adc,
const
EventContext &ctx)
const
;
36
37
virtual
38
float
getNoise
(
unsigned
int
drawerIdx,
unsigned
int
channel,
unsigned
int
adc,
39
TileRawChannelUnit::UNIT
unit
,
const
EventContext &ctx)
const override
40
{
41
return
getElectronicNoise
(drawerIdx, channel, adc,
unit
, ctx);
42
}
43
44
private
:
45
46
SG::ReadCondHandleKey<TileCalibDataFlt>
m_calibRawChannelNoiseKey
{
this
,
47
"TileRawChannelNoise"
,
"TileRawChannelNoise"
,
"Input Tile raw channel noise constants"
};
48
49
SG::ReadCondHandleKey<TileEMScale>
m_emScaleKey
{
this
,
50
"TileEMScale"
,
"TileEMScale"
,
"Input Tile EMS conditions"
};
51
52
};
53
54
#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
TileCalibData.h
TileEMScale.h
TileRawChannelUnit.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
TileCondToolNoiseRawChn::interfaceID
static const InterfaceID & interfaceID()
Definition
TileCondToolNoiseRawChn.cxx:15
TileCondToolNoiseRawChn::getPileUpNoise
float getPileUpNoise(unsigned int drawerIdx, unsigned int channel, unsigned int adc, const EventContext &ctx) const
Definition
TileCondToolNoiseRawChn.cxx:73
TileCondToolNoiseRawChn::initialize
virtual StatusCode initialize() override
Definition
TileCondToolNoiseRawChn.cxx:35
TileCondToolNoiseRawChn::getElectronicNoise
float getElectronicNoise(unsigned int drawerIdx, unsigned int channel, unsigned int adc, TileRawChannelUnit::UNIT unit, const EventContext &ctx) const
Definition
TileCondToolNoiseRawChn.cxx:56
TileCondToolNoiseRawChn::m_emScaleKey
SG::ReadCondHandleKey< TileEMScale > m_emScaleKey
Definition
TileCondToolNoiseRawChn.h:49
TileCondToolNoiseRawChn::finalize
virtual StatusCode finalize() override
Definition
TileCondToolNoiseRawChn.cxx:47
TileCondToolNoiseRawChn::TileCondToolNoiseRawChn
TileCondToolNoiseRawChn(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TileCondToolNoiseRawChn.cxx:21
TileCondToolNoiseRawChn::~TileCondToolNoiseRawChn
virtual ~TileCondToolNoiseRawChn()
Definition
TileCondToolNoiseRawChn.cxx:30
TileCondToolNoiseRawChn::getNoise
virtual float getNoise(unsigned int drawerIdx, unsigned int channel, unsigned int adc, TileRawChannelUnit::UNIT unit, const EventContext &ctx) const override
Definition
TileCondToolNoiseRawChn.h:38
TileCondToolNoiseRawChn::m_calibRawChannelNoiseKey
SG::ReadCondHandleKey< TileCalibDataFlt > m_calibRawChannelNoiseKey
Definition
TileCondToolNoiseRawChn.h:46
TileRawChannelUnit::UNIT
UNIT
Definition
TileRawChannelUnit.h:16
type
Generated on
for ATLAS Offline Software by
1.17.0