ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloTools
src
CaloNoiseCondAlg.h
Go to the documentation of this file.
1
//Dear emacs, this is -*- c++ -*-
2
3
/*
4
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#ifndef CALOTOOLS_CALRNOISECONDALG_H
8
#define CALOTOOLS_CALRNOISECONDALG_H
9
10
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
11
#include "
StoreGate/ReadCondHandleKey.h
"
12
#include "
StoreGate/WriteCondHandleKey.h
"
13
#include "
AthenaPoolUtilities/CondAttrListCollection.h
"
14
#include "
LArRecConditions/LArHVCorr.h
"
15
#include "
CaloConditions/CaloNoise.h
"
16
#include "
LArCabling/LArOnOffIdMapping.h
"
17
#include "
CaloIdentifier/CaloNoiseHashRanges.h
"
18
19
class
CaloCell_ID
;
20
21
class
CaloNoiseCondAlg
:
public
AthCondAlgorithm
{
22
public
:
23
using
AthCondAlgorithm::AthCondAlgorithm;
24
virtual
~CaloNoiseCondAlg
() =
default
;
25
26
StatusCode
initialize
() override final;
27
StatusCode
execute
(
const
EventContext& ctx)
const
override final;
28
StatusCode
finalize
() override final {
return
StatusCode::SUCCESS;}
29
30
31
private
:
32
33
//SG Keys and other properties:
34
SG::ReadCondHandleKey<CondAttrListCollection>
m_larNoiseKey
{
this
,
"LArNoiseFolder"
,
"/LAR/NoiseOfl/CellNoise"
,
35
"SG key of CondAttrListCollection holding the LAr noise"
};
36
SG::ReadCondHandleKey<CondAttrListCollection>
m_tileNoiseKey
{
this
,
"TileNoiseFolder"
,
"/TILE/OFL02/NOISE/CELL"
,
37
"SG key of CondAttrListCollection holding the Tile noise"
};
38
//Legacy folder, still needed?
39
SG::ReadCondHandleKey<CondAttrListCollection>
m_caloNoiseKey
{
this
,
"CaloNoiseFolder"
,
"/CALO/Ofl/Noise/CellNoise"
,
40
"SG key of CondAttrListCollection holding both LAr and Tile noise (legacy)"
};
41
SG::ReadCondHandleKey<LArHVCorr>
m_hvCorrKey
{
this
,
"LArHVCorrKey"
,
"LArHVScaleCorrRecomputed"
,
42
"SG Key of HV Scale correction CDO"
};
43
SG::ReadCondHandleKey<CondAttrListCollection>
m_lumiFolderKey
{
this
,
"LumiFolder"
,
"/TRIGGER/LUMI/LBLESTONL"
,
44
"SG Key of CondAttrListCollection holding Luminosity information"
};
45
46
SG::WriteCondHandleKey<CaloNoise>
m_outputKey
{
this
,
"OutputKey"
,
"TotalNoise"
,
"SG Key of resulting noise CDO"
};
47
48
Gaudi::Property<bool>
m_useHVCorr
{
this
,
"useHVCorr"
,
false
,
"Use HV Corr on/off"
};
49
Gaudi::Property<float>
m_lumi0
{
this
,
"Luminosity"
,-1.0,
"Fixed Luminosity. -1 means read lumi from DB"
};
50
51
52
//The following variables will be set during initialize:
53
54
const
CaloCell_ID
*
m_caloCellID
=
nullptr
;
55
56
std::unique_ptr<CaloNoiseHashRanges>
m_hashRange
;
57
58
CaloNoise::NOISETYPE
m_noiseType
=
CaloNoise::TOTAL
;
59
60
};
61
62
#endif
AthCondAlgorithm.h
Base class for conditions algorithms.
CaloNoiseHashRanges.h
CaloNoise.h
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
LArHVCorr.h
LArOnOffIdMapping.h
ReadCondHandleKey.h
WriteCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
CaloCell_ID
Helper class for offline cell identifiers.
Definition
CaloCell_ID.h:34
CaloNoiseCondAlg
Definition
CaloNoiseCondAlg.h:21
CaloNoiseCondAlg::m_noiseType
CaloNoise::NOISETYPE m_noiseType
Definition
CaloNoiseCondAlg.h:58
CaloNoiseCondAlg::m_useHVCorr
Gaudi::Property< bool > m_useHVCorr
Definition
CaloNoiseCondAlg.h:48
CaloNoiseCondAlg::~CaloNoiseCondAlg
virtual ~CaloNoiseCondAlg()=default
CaloNoiseCondAlg::initialize
StatusCode initialize() override final
Definition
CaloNoiseCondAlg.cxx:10
CaloNoiseCondAlg::m_larNoiseKey
SG::ReadCondHandleKey< CondAttrListCollection > m_larNoiseKey
Definition
CaloNoiseCondAlg.h:34
CaloNoiseCondAlg::m_caloCellID
const CaloCell_ID * m_caloCellID
Definition
CaloNoiseCondAlg.h:54
CaloNoiseCondAlg::finalize
StatusCode finalize() override final
Definition
CaloNoiseCondAlg.h:28
CaloNoiseCondAlg::m_hashRange
std::unique_ptr< CaloNoiseHashRanges > m_hashRange
Definition
CaloNoiseCondAlg.h:56
CaloNoiseCondAlg::m_hvCorrKey
SG::ReadCondHandleKey< LArHVCorr > m_hvCorrKey
Definition
CaloNoiseCondAlg.h:41
CaloNoiseCondAlg::m_lumiFolderKey
SG::ReadCondHandleKey< CondAttrListCollection > m_lumiFolderKey
Definition
CaloNoiseCondAlg.h:43
CaloNoiseCondAlg::m_outputKey
SG::WriteCondHandleKey< CaloNoise > m_outputKey
Definition
CaloNoiseCondAlg.h:46
CaloNoiseCondAlg::m_tileNoiseKey
SG::ReadCondHandleKey< CondAttrListCollection > m_tileNoiseKey
Definition
CaloNoiseCondAlg.h:36
CaloNoiseCondAlg::m_lumi0
Gaudi::Property< float > m_lumi0
Definition
CaloNoiseCondAlg.h:49
CaloNoiseCondAlg::m_caloNoiseKey
SG::ReadCondHandleKey< CondAttrListCollection > m_caloNoiseKey
Definition
CaloNoiseCondAlg.h:39
CaloNoiseCondAlg::execute
StatusCode execute(const EventContext &ctx) const override final
Definition
CaloNoiseCondAlg.cxx:77
CaloNoise::NOISETYPE
NOISETYPE
Conditions Data Object holding the calorimeter noise per cell and per gain.
Definition
CaloNoise.h:22
CaloNoise::TOTAL
@ TOTAL
Definition
CaloNoise.h:24
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
const
Generated on
for ATLAS Offline Software by
1.17.0