ATLAS Offline Software
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 
19 class CaloCell_ID;
20 
22  public:
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
CaloNoiseCondAlg::m_noiseType
CaloNoise::NOISETYPE m_noiseType
Definition: CaloNoiseCondAlg.h:58
CaloNoise::NOISETYPE
NOISETYPE
Conditions Data Object holding the calorimeter noise per cell and per gain.
Definition: CaloNoise.h:21
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
CaloNoise::TOTAL
@ TOTAL
Definition: CaloNoise.h:23
CaloNoiseCondAlg::initialize
StatusCode initialize() override final
Definition: CaloNoiseCondAlg.cxx:10
CaloNoiseCondAlg::m_caloNoiseKey
SG::ReadCondHandleKey< CondAttrListCollection > m_caloNoiseKey
Definition: CaloNoiseCondAlg.h:39
WriteCondHandleKey.h
LArHVCorr.h
CaloNoiseCondAlg::m_outputKey
SG::WriteCondHandleKey< CaloNoise > m_outputKey
Definition: CaloNoiseCondAlg.h:46
CaloNoiseCondAlg::m_useHVCorr
Gaudi::Property< bool > m_useHVCorr
Definition: CaloNoiseCondAlg.h:48
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
CaloNoiseCondAlg::m_hashRange
std::unique_ptr< CaloNoiseHashRanges > m_hashRange
Definition: CaloNoiseCondAlg.h:56
CaloNoiseCondAlg::execute
StatusCode execute(const EventContext &ctx) const override final
Definition: CaloNoiseCondAlg.cxx:72
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
CaloNoiseCondAlg::m_larNoiseKey
SG::ReadCondHandleKey< CondAttrListCollection > m_larNoiseKey
Definition: CaloNoiseCondAlg.h:34
LArOnOffIdMapping.h
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
CaloNoiseCondAlg::m_hvCorrKey
SG::ReadCondHandleKey< LArHVCorr > m_hvCorrKey
Definition: CaloNoiseCondAlg.h:41
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloNoiseHashRanges.h
CaloNoiseCondAlg::m_tileNoiseKey
SG::ReadCondHandleKey< CondAttrListCollection > m_tileNoiseKey
Definition: CaloNoiseCondAlg.h:36
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
ReadCondHandleKey.h
AthReentrantAlgorithm.h
CaloNoiseCondAlg::m_lumi0
Gaudi::Property< float > m_lumi0
Definition: CaloNoiseCondAlg.h:49
CaloNoise.h
CaloNoiseCondAlg::m_lumiFolderKey
SG::ReadCondHandleKey< CondAttrListCollection > m_lumiFolderKey
Definition: CaloNoiseCondAlg.h:43
SG::ReadCondHandleKey< CondAttrListCollection >
CaloNoiseCondAlg::~CaloNoiseCondAlg
virtual ~CaloNoiseCondAlg()=default
SG::WriteCondHandleKey< CaloNoise >
CaloNoiseCondAlg
Definition: CaloNoiseCondAlg.h:21
CaloNoiseCondAlg::finalize
StatusCode finalize() override final
Definition: CaloNoiseCondAlg.h:28
CaloNoiseCondAlg::m_caloCellID
const CaloCell_ID * m_caloCellID
Definition: CaloNoiseCondAlg.h:54