ATLAS Offline Software
LArHVCorrToSCHVCorr.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARCONDUTILS_LARHVTOSCHV_H
6 #define LARCONDUTILS_LARHVTOSCHV_H 1
7 
8 // STL includes
9 #include <string>
10 
18 
19 #include "GaudiKernel/ToolHandle.h"
20 
22  : public ::AthAlgorithm
23 {
24  public:
25 
27  LArHVCorrToSCHVCorr( const std::string& name, ISvcLocator* pSvcLocator );
28 
30  virtual ~LArHVCorrToSCHVCorr()=default;
31 
32  // Athena algorithm's Hooks
33  virtual StatusCode initialize() override;
34  virtual StatusCode execute() override {return StatusCode::SUCCESS;};
35  virtual StatusCode stop() override;
36 
37  private:
38 
39  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKeySC{this,"SCCablingKey","LArOnOffIdMapSC","SG Key of SC LArOnOffIdMapping object"};
40  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
41  SG::ReadCondHandleKey<ILArHVScaleCorr> m_contKey{this,"ContainerKey","LArHVScaleCorr","SG Key of regular cells HV scale corr object"};
42 
43  SG::WriteCondHandleKey<LArHVCorr> m_outKey{this,"OutputKey","LARSCHVScaleCorr","SG Key of produced SC HV scale corr object"};
44 
45  StringProperty m_folderName{this, "OutputFolder", "/LAR/ElecCalibFlatSC/HVScaleCorr", "Output folder for CondAttrListCollection"};
46 
47  StringProperty m_weightsName{this, "PhysicsWeights", "TrigT1CaloCalibUtils/HVcorrPhysicsWeights.txt", "File with layer weights"};
48 
49  ToolHandle<ICaloSuperCellIDTool> m_scidTool{this, "CaloSuperCellIDTool", "CaloSuperCellIDTool"};
50 
51  float getWeight(const LArHEC_ID *hecID, const Identifier &id, std::map<int,std::vector<float> > &wmap);
52 };
53 
54 #endif
LArHVCorrToSCHVCorr::initialize
virtual StatusCode initialize() override
Definition: LArHVCorrToSCHVCorr.cxx:27
LArHVCorrToSCHVCorr::stop
virtual StatusCode stop() override
Definition: LArHVCorrToSCHVCorr.cxx:40
LArHVCorrToSCHVCorr::LArHVCorrToSCHVCorr
LArHVCorrToSCHVCorr(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition: LArHVCorrToSCHVCorr.cxx:21
LArHVCorrToSCHVCorr::m_scidTool
ToolHandle< ICaloSuperCellIDTool > m_scidTool
Definition: LArHVCorrToSCHVCorr.h:49
LArHVCorrToSCHVCorr::m_cablingKeySC
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKeySC
Definition: LArHVCorrToSCHVCorr.h:39
LArHEC_ID
Helper class for LArHEC offline identifiers.
Definition: LArHEC_ID.h:85
LArHVCorr.h
LArHVCorrToSCHVCorr::m_contKey
SG::ReadCondHandleKey< ILArHVScaleCorr > m_contKey
Definition: LArHVCorrToSCHVCorr.h:41
LArHEC_ID.h
LArHVCorrToSCHVCorr::~LArHVCorrToSCHVCorr
virtual ~LArHVCorrToSCHVCorr()=default
Destructor:
ICaloSuperCellIDTool.h
LArHVCorrToSCHVCorr::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArHVCorrToSCHVCorr.h:40
AthAlgorithm.h
LArHVCorrToSCHVCorr::m_weightsName
StringProperty m_weightsName
Definition: LArHVCorrToSCHVCorr.h:47
LArOnOffIdMapping.h
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
ILArHVScaleCorr.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArHVCorrToSCHVCorr::m_folderName
StringProperty m_folderName
Definition: LArHVCorrToSCHVCorr.h:45
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LArHVCorrToSCHVCorr::execute
virtual StatusCode execute() override
Definition: LArHVCorrToSCHVCorr.h:34
SG::ReadCondHandleKey< LArOnOffIdMapping >
LArHVCorrToSCHVCorr::getWeight
float getWeight(const LArHEC_ID *hecID, const Identifier &id, std::map< int, std::vector< float > > &wmap)
Definition: LArHVCorrToSCHVCorr.cxx:183
LArHVCorrToSCHVCorr
Definition: LArHVCorrToSCHVCorr.h:23
SG::WriteCondHandleKey< LArHVCorr >
LArHVCorrToSCHVCorr::m_outKey
SG::WriteCondHandleKey< LArHVCorr > m_outKey
Definition: LArHVCorrToSCHVCorr.h:43