ATLAS Offline Software
CaloLCWeightTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CALOUTILS_CALOLCWEIGHTTOOL_H
6 #define CALOUTILS_CALOLCWEIGHTTOOL_H
7 
23 #include "GaudiKernel/ToolHandle.h"
28 #include "GaudiKernel/EventContext.h"
29 
30 class CaloCell_ID;
31 class CaloCluster;
32 
33 class CaloLCWeightTool : public AthAlgTool, virtual public IClusterCellWeightTool
34 {
35  public:
36 
37  virtual ~CaloLCWeightTool();
38 
39  virtual StatusCode weight(xAOD::CaloCluster* theCluster, const EventContext& ctx) const override;
40  virtual StatusCode initialize() override;
41 
42  CaloLCWeightTool(const std::string& type,
43  const std::string& name,
44  const IInterface* parent);
45  private:
46 
50 
57 
66 
67 
73  std::vector<std::string> m_sampnames;
74 
78 
82 
85  std::vector<std::string> m_interpolateDimensionNames;
86 
89  //std::vector<CaloLocalHadDefs::LocalHadDimensionId> m_interpolateDimensions;
90  std::vector<int> m_interpolateDimensions;
91 
92 
94 
95  SG::ReadCondHandleKey<CaloNoise> m_noiseCDOKey{this,"CaloNoiseKey","electronicNoise","SG Key of CaloNoise data object"};
96 };
97 
98 #endif
99 
100 
CaloLCWeightTool::initialize
virtual StatusCode initialize() override
Definition: CaloLCWeightTool.cxx:59
CaloLCWeightTool::m_updateSamplingVars
bool m_updateSamplingVars
update also sampling variables
Definition: CaloLCWeightTool.h:81
CaloLCWeightTool::m_interpolate
bool m_interpolate
interpolate correction coefficients
Definition: CaloLCWeightTool.h:77
CaloLCWeightTool::m_key
SG::ReadCondHandleKey< CaloLocalHadCoeff > m_key
name of the key for had cell weights
Definition: CaloLCWeightTool.h:49
CaloLCWeightTool::~CaloLCWeightTool
virtual ~CaloLCWeightTool()
CaloLCWeightTool::m_interpolateDimensions
std::vector< int > m_interpolateDimensions
actual set of dimension id's to interpolate
Definition: CaloLCWeightTool.h:90
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
CaloLCWeightTool::m_calo_id
const CaloCell_ID * m_calo_id
Definition: CaloLCWeightTool.h:93
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IClusterCellWeightTool
Interface class for tools weighting cells in CaloCluster objects.
Definition: IClusterCellWeightTool.h:25
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CaloLCWeightTool
calculates hadronic cell weights based on cluster and cell quantities
Definition: CaloLCWeightTool.h:34
CaloCluster
Principal data class for CaloCell clusters.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloCluster.h:79
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
CaloLCWeightTool::m_sampnames
std::vector< std::string > m_sampnames
vector of names of individual samplings
Definition: CaloLCWeightTool.h:73
CaloLCWeightTool::m_useHadProbability
bool m_useHadProbability
look for em-probability moment and apply relative weight only
Definition: CaloLCWeightTool.h:65
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CaloNoise.h
CaloLCWeightTool::m_noiseCDOKey
SG::ReadCondHandleKey< CaloNoise > m_noiseCDOKey
Definition: CaloLCWeightTool.h:95
SG::ReadCondHandleKey< CaloLocalHadCoeff >
CaloLCWeightTool::m_interpolateDimensionNames
std::vector< std::string > m_interpolateDimensionNames
vector of names of dimensions in look-up tables to interpolate
Definition: CaloLCWeightTool.h:85
CaloLocalHadCoeff.h
CaloLCWeightTool::weight
virtual StatusCode weight(xAOD::CaloCluster *theCluster, const EventContext &ctx) const override
method to weight the cells in a cluster
Definition: CaloLCWeightTool.cxx:93
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CaloLCWeightTool::CaloLCWeightTool
CaloLCWeightTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: CaloLCWeightTool.cxx:32
IOVSvcDefs.h
defines and typedefs for IOVSvc
AthAlgTool
Definition: AthAlgTool.h:26
CaloLCWeightTool::m_signalOverNoiseCut
double m_signalOverNoiseCut
minimal signal/elec_noise ratio for a cell to be weighted
Definition: CaloLCWeightTool.h:56
IClusterCellWeightTool.h