ATLAS Offline Software
Loading...
Searching...
No Matches
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
20
23#include "GaudiKernel/ToolHandle.h"
28#include "GaudiKernel/EventContext.h"
29
30class CaloCell_ID;
31class CaloCluster;
32
34{
35 public:
36
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
72
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
defines and typedefs for IOVSvc
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
Principal data class for CaloCell clusters.
const CaloCell_ID * m_calo_id
SG::ReadCondHandleKey< CaloNoise > m_noiseCDOKey
std::vector< std::string > m_interpolateDimensionNames
vector of names of dimensions in look-up tables to interpolate
double m_signalOverNoiseCut
minimal signal/elec_noise ratio for a cell to be weighted
SG::ReadCondHandleKey< CaloLocalHadCoeff > m_key
name of the key for had cell weights
CaloLCWeightTool(const std::string &type, const std::string &name, const IInterface *parent)
bool m_updateSamplingVars
update also sampling variables
bool m_useHadProbability
look for em-probability moment and apply relative weight only
std::vector< int > m_interpolateDimensions
actual set of dimension id's to interpolate
std::vector< std::string > m_sampnames
vector of names of individual samplings
virtual StatusCode initialize() override
virtual StatusCode weight(xAOD::CaloCluster *theCluster, const EventContext &ctx) const override
method to weight the cells in a cluster
virtual ~CaloLCWeightTool()
bool m_interpolate
interpolate correction coefficients
Interface class for tools weighting cells in CaloCluster objects.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.