ATLAS Offline Software
Loading...
Searching...
No Matches
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
18
19class CaloCell_ID;
20
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
59
60};
61
62#endif
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Base class for conditions algorithms.
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
CaloNoise::NOISETYPE m_noiseType
Gaudi::Property< bool > m_useHVCorr
virtual ~CaloNoiseCondAlg()=default
StatusCode initialize() override final
SG::ReadCondHandleKey< CondAttrListCollection > m_larNoiseKey
const CaloCell_ID * m_caloCellID
StatusCode finalize() override final
std::unique_ptr< CaloNoiseHashRanges > m_hashRange
SG::ReadCondHandleKey< LArHVCorr > m_hvCorrKey
SG::ReadCondHandleKey< CondAttrListCollection > m_lumiFolderKey
SG::WriteCondHandleKey< CaloNoise > m_outputKey
SG::ReadCondHandleKey< CondAttrListCollection > m_tileNoiseKey
Gaudi::Property< float > m_lumi0
SG::ReadCondHandleKey< CondAttrListCollection > m_caloNoiseKey
StatusCode execute(const EventContext &ctx) const override final
NOISETYPE
Conditions Data Object holding the calorimeter noise per cell and per gain.
Definition CaloNoise.h:21