ATLAS Offline Software
TileCondToolNoiseRawChn.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 // Athena includes
11 
12 //
13 //____________________________________________________________________
14 static const InterfaceID IID_TileCondToolNoiseRawChn("TileCondToolNoiseRawChn", 1, 0);
16  return IID_TileCondToolNoiseRawChn;
17 }
18 
19 //
20 //____________________________________________________________________
21 TileCondToolNoiseRawChn::TileCondToolNoiseRawChn(const std::string& type, const std::string& name, const IInterface* parent)
23 {
24  declareInterface<ITileCondToolNoise>(this);
25  declareInterface<TileCondToolNoiseRawChn>(this);
26 }
27 
28 //
29 //____________________________________________________________________
31 }
32 
33 //
34 //____________________________________________________________________
36 
37  ATH_MSG_DEBUG( "In initialize()" );
38 
39  ATH_CHECK( m_calibRawChannelNoiseKey.initialize() );
41 
42  return StatusCode::SUCCESS;
43 }
44 
45 //
46 //____________________________________________________________________
48 
49  ATH_MSG_DEBUG( "finalize called" );
50 
51  return StatusCode::SUCCESS;
52 }
53 
54 //
55 //____________________________________________________________________
56 float TileCondToolNoiseRawChn::getElectronicNoise(unsigned int drawerIdx, unsigned int channel, unsigned int adc,
57  TileRawChannelUnit::UNIT unit, const EventContext &ctx) const {
58 
60  float val = calibRawChannelNoise->getCalibDrawer(drawerIdx)->getData(channel, adc, 0);
61 
65  }
66 
67  return val;
68 
69 }
70 
71 //
72 //____________________________________________________________________
73 float TileCondToolNoiseRawChn::getPileUpNoise(unsigned int drawerIdx, unsigned int channel, unsigned int adc,
74  const EventContext &ctx) const {
75 
77  return calibRawChannelNoise->getCalibDrawer(drawerIdx)->getData(channel, adc, 1);
78 
79 }
TileCalibDrawerFlt.h
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
TileCondToolNoiseRawChn::interfaceID
static const InterfaceID & interfaceID()
Definition: TileCondToolNoiseRawChn.cxx:15
ReadCondHandle.h
TileCondToolNoiseRawChn::TileCondToolNoiseRawChn
TileCondToolNoiseRawChn(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TileCondToolNoiseRawChn.cxx:21
TileCondToolNoiseRawChn::initialize
virtual StatusCode initialize() override
Definition: TileCondToolNoiseRawChn.cxx:35
TileCalibData::getCalibDrawer
const T * getCalibDrawer(unsigned int drawerIdx) const
Return TileCalibDrawer of type T.
Definition: TileCalibData.cxx:26
TileEMScale::calibrateChannel
float calibrateChannel(unsigned int drawerIdx, unsigned int channel, unsigned int adc, float amplitude, TileRawChannelUnit::UNIT rawDataUnitIn, TileRawChannelUnit::UNIT rawDataUnitOut) const
Calibrate a Tile channel.
Definition: TileEMScale.cxx:136
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
TileCondToolNoiseRawChn::getPileUpNoise
float getPileUpNoise(unsigned int drawerIdx, unsigned int channel, unsigned int adc, const EventContext &ctx) const
Definition: TileCondToolNoiseRawChn.cxx:73
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
TileCondToolNoiseRawChn::finalize
virtual StatusCode finalize() override
Definition: TileCondToolNoiseRawChn.cxx:47
TileCondToolNoiseRawChn::~TileCondToolNoiseRawChn
virtual ~TileCondToolNoiseRawChn()
Definition: TileCondToolNoiseRawChn.cxx:30
TileRawChannelUnit::UNIT
UNIT
Definition: TileRawChannelUnit.h:16
TileCondToolNoiseRawChn::m_calibRawChannelNoiseKey
SG::ReadCondHandleKey< TileCalibDataFlt > m_calibRawChannelNoiseKey
Definition: TileCondToolNoiseRawChn.h:46
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
errorcheck.h
Helpers for checking error return status codes and reporting errors.
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
TileCondToolNoiseRawChn::getElectronicNoise
float getElectronicNoise(unsigned int drawerIdx, unsigned int channel, unsigned int adc, TileRawChannelUnit::UNIT unit, const EventContext &ctx) const
Definition: TileCondToolNoiseRawChn.cxx:56
ReadFloatFromCool.adc
adc
Definition: ReadFloatFromCool.py:48
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
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
TileCondToolNoiseRawChn::m_emScaleKey
SG::ReadCondHandleKey< TileEMScale > m_emScaleKey
Definition: TileCondToolNoiseRawChn.h:49
TileCondToolNoiseRawChn.h
TileRawChannelUnit::ADCcounts
@ ADCcounts
Definition: TileRawChannelUnit.h:17