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"
27#include "GaudiKernel/EventContext.h"
28
29class CaloCell_ID;
30class CaloCluster;
31
33{
34 public:
35
37
38 virtual StatusCode weight(xAOD::CaloCluster* theCluster, const EventContext& ctx) const override;
39 virtual StatusCode initialize() override;
40
41 CaloLCWeightTool(const std::string& type,
42 const std::string& name,
43 const IInterface* parent);
44 private:
45
49
56
65
66
71
72 std::vector<std::string> m_sampnames;
73
77
81
84 std::vector<std::string> m_interpolateDimensionNames;
85
88 //std::vector<CaloLocalHadDefs::LocalHadDimensionId> m_interpolateDimensions;
89 std::vector<int> m_interpolateDimensions;
90
91
93
94 SG::ReadCondHandleKey<CaloNoise> m_noiseCDOKey{this,"CaloNoiseKey","electronicNoise","SG Key of CaloNoise data object"};
95};
96
97#endif
98
99
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.