ATLAS Offline Software
LArADC2MeVCondAlg.h
Go to the documentation of this file.
1 //Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 
8 
9 #ifndef LARRECUTILS_LARADC2MEVCONDALG_H
10 #define LARRECUTILS_LARADC2MEVCONDALG_H
11 
18 #include "LArElecCalib/ILArRamp.h"
23 
24 class LArOnlineID_Base;
25 
26 
28  public:
29 
32 
33  StatusCode initialize() override;
34  StatusCode execute(const EventContext& ctx) const override;
35  StatusCode finalize() override {return StatusCode::SUCCESS;}
36  virtual bool isReEntrant() const override final { return false; }
37 
38  private:
39  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"LArOnOffIdMappingKey","LArOnOffIdMap","SG key of LArOnOffIdMapping object"};
40  SG::ReadCondHandleKey<ILAruA2MeV> m_lAruA2MeVKey{this,"LAruA2MeVKey","LAruA2MeV","SG key of uA2MeV object"}; //Always used
41  SG::ReadCondHandleKey<ILArDAC2uA> m_lArDAC2uAKey{this,"LArDAC2uAKey","LArDAC2uA","SG key of DAC2uA object"}; //Always used
42  SG::ReadCondHandleKey<ILArRamp> m_lArRampKey{this,"LArRampKey","LArRamp","SG key of Ramp object"}; //Always used
43 
44 
45  SG::ReadCondHandleKey<ILArMphysOverMcal> m_lArMphysOverMcalKey{this,"LArMphysOverMcalKey","LArMphysOverMcal",
46  "SG key of MpysOverMcal object (or empty string if no MphysOverMcal)"}; //Not used for supercells
47  SG::ReadCondHandleKey<ILArHVScaleCorr> m_lArHVScaleCorrKey{this,"LArHVScaleCorrKey","LArHVScaleCorr",
48  "SG key of HVScaleCorr object (or empty string if no HVScaleCorr)"}; //Not (yet) used for supercells and simulation
49 
50  SG::WriteCondHandleKey<LArADC2MeV> m_ADC2MeVKey{this,"LArADC2MeVKey","LArADC2MeV","SG key of the resulting LArADC2MeV object"};
51 
52  SG::ReadCondHandleKey<LArFebConfig> m_febConfigKey{this,"FebConfigKey","LArFebConfig","SG key for FEB config object"};
53 
54  Gaudi::Property<bool> m_useFEBGainThresholds{this,"UseFEBGainTresholds",true};
55  Gaudi::Property<bool> m_isSuperCell{this,"isSuperCell",false,"switch to true to use the SuperCell Identfier helper"};
56  Gaudi::Property<bool> m_completeDetector{this,"CompleteDetector",true,"If True, this algo will fail if input data is missing"};
57 
58  size_t m_nGains = 0UL;
60 };
61 
62 
63 
64 #endif
LArADC2MeVCondAlg::m_lArDAC2uAKey
SG::ReadCondHandleKey< ILArDAC2uA > m_lArDAC2uAKey
Definition: LArADC2MeVCondAlg.h:41
ILArDAC2uA.h
ILAruA2MeV.h
LArADC2MeVCondAlg::m_lArMphysOverMcalKey
SG::ReadCondHandleKey< ILArMphysOverMcal > m_lArMphysOverMcalKey
Definition: LArADC2MeVCondAlg.h:45
LArADC2MeVCondAlg
Definition: LArADC2MeVCondAlg.h:27
WriteCondHandleKey.h
LArADC2MeVCondAlg::m_ADC2MeVKey
SG::WriteCondHandleKey< LArADC2MeV > m_ADC2MeVKey
Definition: LArADC2MeVCondAlg.h:50
LArADC2MeVCondAlg::~LArADC2MeVCondAlg
~LArADC2MeVCondAlg()
Definition: LArADC2MeVCondAlg.cxx:13
LArADC2MeVCondAlg::m_useFEBGainThresholds
Gaudi::Property< bool > m_useFEBGainThresholds
Definition: LArADC2MeVCondAlg.h:54
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
LArADC2MeVCondAlg::m_larOnlineID
const LArOnlineID_Base * m_larOnlineID
Definition: LArADC2MeVCondAlg.h:59
LArADC2MeVCondAlg::m_lArRampKey
SG::ReadCondHandleKey< ILArRamp > m_lArRampKey
Definition: LArADC2MeVCondAlg.h:42
ILArMphysOverMcal.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
LArADC2MeVCondAlg::initialize
StatusCode initialize() override
Definition: LArADC2MeVCondAlg.cxx:16
LArADC2MeV.h
LArOnOffIdMapping.h
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
LArADC2MeVCondAlg::m_nGains
size_t m_nGains
Definition: LArADC2MeVCondAlg.h:58
LArADC2MeVCondAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition: LArADC2MeVCondAlg.cxx:62
LArADC2MeVCondAlg::m_lArHVScaleCorrKey
SG::ReadCondHandleKey< ILArHVScaleCorr > m_lArHVScaleCorrKey
Definition: LArADC2MeVCondAlg.h:47
ILArHVScaleCorr.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArADC2MeVCondAlg::finalize
StatusCode finalize() override
Definition: LArADC2MeVCondAlg.h:35
ReadCondHandleKey.h
AthReentrantAlgorithm.h
LArOnlineID_Base
Helper for the Liquid Argon Calorimeter cell identifiers.
Definition: LArOnlineID_Base.h:105
SG::ReadCondHandleKey< LArOnOffIdMapping >
ILArRamp.h
LArADC2MeVCondAlg::m_isSuperCell
Gaudi::Property< bool > m_isSuperCell
Definition: LArADC2MeVCondAlg.h:55
LArFebConfig.h
SG::WriteCondHandleKey< LArADC2MeV >
LArADC2MeVCondAlg::m_lAruA2MeVKey
SG::ReadCondHandleKey< ILAruA2MeV > m_lAruA2MeVKey
Definition: LArADC2MeVCondAlg.h:40
LArADC2MeVCondAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: LArADC2MeVCondAlg.h:36
LArADC2MeVCondAlg::m_febConfigKey
SG::ReadCondHandleKey< LArFebConfig > m_febConfigKey
Definition: LArADC2MeVCondAlg.h:52
LArADC2MeVCondAlg::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArADC2MeVCondAlg.h:39
LArADC2MeVCondAlg::m_completeDetector
Gaudi::Property< bool > m_completeDetector
Definition: LArADC2MeVCondAlg.h:56