ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloClusterCorrection
src
CaloLCWeightTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef CALOUTILS_CALOLCWEIGHTTOOL_H
6
#define CALOUTILS_CALOLCWEIGHTTOOL_H
20
21
#include "
CaloInterface/IClusterCellWeightTool.h
"
22
#include "
CaloConditions/CaloLocalHadCoeff.h
"
23
#include "GaudiKernel/ToolHandle.h"
24
#include "
AthenaBaseComps/AthAlgTool.h
"
25
#include "
StoreGate/ReadCondHandleKey.h
"
26
#include "
CaloConditions/CaloNoise.h
"
27
#include "GaudiKernel/EventContext.h"
28
29
class
CaloCell_ID
;
30
class
CaloCluster
;
31
32
class
CaloLCWeightTool
:
public
extends<AthAlgTool, IClusterCellWeightTool>
33
{
34
public
:
35
using
base_class::base_class;
36
virtual
~CaloLCWeightTool
();
37
38
virtual
StatusCode
weight
(
xAOD::CaloCluster
* theCluster,
const
EventContext& ctx)
const override
;
39
virtual
StatusCode
initialize
()
override
;
40
41
private
:
42
45
SG::ReadCondHandleKey<CaloLocalHadCoeff>
m_key
{
this
,
"CorrectionKey"
,
"HadWeights"
};
46
52
Gaudi::Property<double>
m_signalOverNoiseCut
{
this
,
"SignalOverNoiseCut"
, 2};
53
61
Gaudi::Property<bool>
m_useHadProbability
{
this
,
"UseHadProbability"
,
false
} ;
62
63
68
69
std::vector<std::string>
m_sampnames
;
70
73
Gaudi::Property<bool>
m_interpolate
{
this
,
"Interpolate"
,
false
};
74
77
Gaudi::Property<bool>
m_updateSamplingVars
{
this
,
"UpdateSamplingVars"
,
false
};
78
81
Gaudi::Property<std::vector<std::string>>
m_interpolateDimensionNames
{
this
,
"InterpolateDimensionNames"
82
, {
"DIMW_ETA"
,
"DIMW_ENER"
,
"DIMW_EDENS"
}};
83
86
std::vector<int>
m_interpolateDimensions
;
87
88
const
CaloCell_ID
*
m_calo_id
{};
89
90
SG::ReadCondHandleKey<CaloNoise>
m_noiseCDOKey
{
this
,
"CaloNoiseKey"
,
"electronicNoise"
,
"SG Key of CaloNoise data object"
};
91
};
92
93
#endif
94
95
AthAlgTool.h
CaloLocalHadCoeff.h
CaloNoise.h
IClusterCellWeightTool.h
ReadCondHandleKey.h
CaloCell_ID
Helper class for offline cell identifiers.
Definition
CaloCell_ID.h:34
CaloCluster
Principal data class for CaloCell clusters.
Definition
Calorimeter/CaloEvent/CaloEvent/CaloCluster.h:79
CaloLCWeightTool
calculates hadronic cell weights based on cluster and cell quantities
Definition
CaloLCWeightTool.h:33
CaloLCWeightTool::m_useHadProbability
Gaudi::Property< bool > m_useHadProbability
look for em-probability moment and apply relative weight only
Definition
CaloLCWeightTool.h:61
CaloLCWeightTool::m_interpolate
Gaudi::Property< bool > m_interpolate
interpolate correction coefficients
Definition
CaloLCWeightTool.h:73
CaloLCWeightTool::m_signalOverNoiseCut
Gaudi::Property< double > m_signalOverNoiseCut
minimal signal/elec_noise ratio for a cell to be weighted
Definition
CaloLCWeightTool.h:52
CaloLCWeightTool::m_updateSamplingVars
Gaudi::Property< bool > m_updateSamplingVars
update also sampling variables
Definition
CaloLCWeightTool.h:77
CaloLCWeightTool::m_calo_id
const CaloCell_ID * m_calo_id
Definition
CaloLCWeightTool.h:88
CaloLCWeightTool::m_noiseCDOKey
SG::ReadCondHandleKey< CaloNoise > m_noiseCDOKey
Definition
CaloLCWeightTool.h:90
CaloLCWeightTool::m_key
SG::ReadCondHandleKey< CaloLocalHadCoeff > m_key
name of the key for had cell weights
Definition
CaloLCWeightTool.h:45
CaloLCWeightTool::m_interpolateDimensions
std::vector< int > m_interpolateDimensions
actual set of dimension id's to interpolate
Definition
CaloLCWeightTool.h:86
CaloLCWeightTool::m_sampnames
std::vector< std::string > m_sampnames
vector of names of individual samplings
Definition
CaloLCWeightTool.h:69
CaloLCWeightTool::initialize
virtual StatusCode initialize() override
Definition
CaloLCWeightTool.cxx:34
CaloLCWeightTool::m_interpolateDimensionNames
Gaudi::Property< std::vector< std::string > > m_interpolateDimensionNames
vector of names of dimensions in look-up tables to interpolate
Definition
CaloLCWeightTool.h:81
CaloLCWeightTool::weight
virtual StatusCode weight(xAOD::CaloCluster *theCluster, const EventContext &ctx) const override
Definition
CaloLCWeightTool.cxx:68
CaloLCWeightTool::~CaloLCWeightTool
virtual ~CaloLCWeightTool()
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
Generated on
for ATLAS Offline Software by
1.17.0