ATLAS Offline Software
Loading...
Searching...
No Matches
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 ::AthCondAlgorithm
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(const EventContext&) const 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 BooleanProperty m_isHI{this, "IsHeavyIons", false, "are we computing for HI ?"};
50 FloatProperty m_patchHI{this, "PatchInHeavyIons", 1.2, " value to patch "};
51
52 ToolHandle<ICaloSuperCellIDTool> m_scidTool{this, "CaloSuperCellIDTool", "CaloSuperCellIDTool"};
53
54 float getWeight(const LArHEC_ID *hecID, const Identifier &id, std::map<int,std::vector<float> > &wmap);
55};
56
57#endif
Base class for conditions algorithms.
Base class for conditions algorithms.
Helper class for LArHEC offline identifiers.
Definition LArHEC_ID.h:76
virtual StatusCode execute(const EventContext &) const override
float getWeight(const LArHEC_ID *hecID, const Identifier &id, std::map< int, std::vector< float > > &wmap)
LArHVCorrToSCHVCorr(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKeySC
SG::ReadCondHandleKey< ILArHVScaleCorr > m_contKey
virtual StatusCode initialize() override
SG::WriteCondHandleKey< LArHVCorr > m_outKey
StringProperty m_folderName
ToolHandle< ICaloSuperCellIDTool > m_scidTool
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
virtual ~LArHVCorrToSCHVCorr()=default
Destructor:
StringProperty m_weightsName
virtual StatusCode stop() override