ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCondUtils
src
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
11
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
12
#include "
CaloDetDescr/ICaloSuperCellIDTool.h
"
13
#include "
StoreGate/ReadCondHandleKey.h
"
14
#include "
LArCabling/LArOnOffIdMapping.h
"
15
#include "
LArElecCalib/ILArHVScaleCorr.h
"
16
#include "
CaloIdentifier/LArHEC_ID.h
"
17
#include "
LArRecConditions/LArHVCorr.h
"
18
19
#include "GaudiKernel/ToolHandle.h"
20
21
class
LArHVCorrToSCHVCorr
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
AthCondAlgorithm.h
Base class for conditions algorithms.
ICaloSuperCellIDTool.h
ILArHVScaleCorr.h
LArHEC_ID.h
LArHVCorr.h
LArOnOffIdMapping.h
ReadCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
LArHEC_ID
Helper class for LArHEC offline identifiers.
Definition
LArHEC_ID.h:76
LArHVCorrToSCHVCorr::execute
virtual StatusCode execute(const EventContext &) const override
Definition
LArHVCorrToSCHVCorr.h:34
LArHVCorrToSCHVCorr::getWeight
float getWeight(const LArHEC_ID *hecID, const Identifier &id, std::map< int, std::vector< float > > &wmap)
Definition
LArHVCorrToSCHVCorr.cxx:189
LArHVCorrToSCHVCorr::LArHVCorrToSCHVCorr
LArHVCorrToSCHVCorr(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
LArHVCorrToSCHVCorr.cxx:21
LArHVCorrToSCHVCorr::m_cablingKeySC
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKeySC
Definition
LArHVCorrToSCHVCorr.h:39
LArHVCorrToSCHVCorr::m_patchHI
FloatProperty m_patchHI
Definition
LArHVCorrToSCHVCorr.h:50
LArHVCorrToSCHVCorr::m_contKey
SG::ReadCondHandleKey< ILArHVScaleCorr > m_contKey
Definition
LArHVCorrToSCHVCorr.h:41
LArHVCorrToSCHVCorr::initialize
virtual StatusCode initialize() override
Definition
LArHVCorrToSCHVCorr.cxx:27
LArHVCorrToSCHVCorr::m_isHI
BooleanProperty m_isHI
Definition
LArHVCorrToSCHVCorr.h:49
LArHVCorrToSCHVCorr::m_outKey
SG::WriteCondHandleKey< LArHVCorr > m_outKey
Definition
LArHVCorrToSCHVCorr.h:43
LArHVCorrToSCHVCorr::m_folderName
StringProperty m_folderName
Definition
LArHVCorrToSCHVCorr.h:45
LArHVCorrToSCHVCorr::m_scidTool
ToolHandle< ICaloSuperCellIDTool > m_scidTool
Definition
LArHVCorrToSCHVCorr.h:52
LArHVCorrToSCHVCorr::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition
LArHVCorrToSCHVCorr.h:40
LArHVCorrToSCHVCorr::~LArHVCorrToSCHVCorr
virtual ~LArHVCorrToSCHVCorr()=default
Destructor:
LArHVCorrToSCHVCorr::m_weightsName
StringProperty m_weightsName
Definition
LArHVCorrToSCHVCorr.h:47
LArHVCorrToSCHVCorr::stop
virtual StatusCode stop() override
Definition
LArHVCorrToSCHVCorr.cxx:40
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
Identifier
Definition
IdentifierFieldParser.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0