ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloLocalHadCalib
CaloLocalHadCalib
GetLCOutOfCluster.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 CALOLOCALHADCALIB_GETLCOUTOFCLUSTER_H
6
#define CALOLOCALHADCALIB_GETLCOUTOFCLUSTER_H
7
19
20
21
#include "
AthenaBaseComps/AthAlgorithm.h
"
22
#include "
xAODCaloEvent/CaloClusterContainer.h
"
23
#include "
StoreGate/ReadHandleKey.h
"
24
#include "GaudiKernel/HistoDef.h"
25
#include <vector>
26
#include <string>
27
28
class
TProfile2D;
29
class
TFile;
30
31
class
GetLCOutOfCluster
:
public
AthAlgorithm
32
{
33
34
public
:
35
36
GetLCOutOfCluster
(
const
std::string& name, ISvcLocator* pSvcLocator);
37
virtual
~GetLCOutOfCluster
();
38
virtual
StatusCode
initialize
();
39
virtual
StatusCode
execute
(
const
EventContext& ctx);
40
virtual
StatusCode
finalize
();
41
42
private
:
43
44
void
mapinsert
(
const
std::vector<Gaudi::Histo1DDef> & dims);
45
46
void
mapparse
();
47
48
76
std::vector<Gaudi::Histo1DDef>
m_dimensions
;
77
84
std::map<std::string,Gaudi::Histo1DDef>
m_dimensionsmap
;
85
90
std::vector<int>
m_isampmap
;
91
96
std::vector<TProfile2D *>
m_ooc
;
97
103
std::string
m_outputFileName
;
104
109
std::unique_ptr<TFile>
m_outputFile
;
110
113
SG::ReadHandleKey<xAOD::CaloClusterContainer>
m_clusterCollName
;
114
122
std::vector<std::string>
m_invalidSamplingNames
;
123
129
std::set<int>
m_invalidSamplings
;
130
140
141
std::string
m_NormalizationType
;
142
143
int
m_NormalizationTypeNumber
;
144
153
154
std::string
m_ClassificationType
;
155
156
int
m_ClassificationTypeNumber
;
157
};
158
159
#endif
// CALOLOCALHADCALIB_GETLCOUTOFCLUSTER_H
AthAlgorithm.h
CaloClusterContainer.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
GetLCOutOfCluster::~GetLCOutOfCluster
virtual ~GetLCOutOfCluster()
Definition
GetLCOutOfCluster.cxx:91
GetLCOutOfCluster::m_ClassificationType
std::string m_ClassificationType
string to choose different classification types
Definition
GetLCOutOfCluster.h:154
GetLCOutOfCluster::m_invalidSamplingNames
std::vector< std::string > m_invalidSamplingNames
vector of names of the calorimeter samplings not to use when applying the out-of-cluster weights.
Definition
GetLCOutOfCluster.h:122
GetLCOutOfCluster::m_outputFileName
std::string m_outputFileName
Name of the output file to save histograms in.
Definition
GetLCOutOfCluster.h:103
GetLCOutOfCluster::m_clusterCollName
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterCollName
Name of the CaloClusterContainer to use.
Definition
GetLCOutOfCluster.h:113
GetLCOutOfCluster::execute
virtual StatusCode execute(const EventContext &ctx)
Execute method.
Definition
GetLCOutOfCluster.cxx:276
GetLCOutOfCluster::m_invalidSamplings
std::set< int > m_invalidSamplings
actual set of samplings to be ignored for out-of-cluster weights
Definition
GetLCOutOfCluster.h:129
GetLCOutOfCluster::m_ooc
std::vector< TProfile2D * > m_ooc
Vector of actual histograms.
Definition
GetLCOutOfCluster.h:96
GetLCOutOfCluster::m_ClassificationTypeNumber
int m_ClassificationTypeNumber
Definition
GetLCOutOfCluster.h:156
GetLCOutOfCluster::m_dimensions
std::vector< Gaudi::Histo1DDef > m_dimensions
definition of all dimensions used for out-of-cluster corrections
Definition
GetLCOutOfCluster.h:76
GetLCOutOfCluster::finalize
virtual StatusCode finalize()
Definition
GetLCOutOfCluster.cxx:262
GetLCOutOfCluster::mapinsert
void mapinsert(const std::vector< Gaudi::Histo1DDef > &dims)
Definition
GetLCOutOfCluster.cxx:410
GetLCOutOfCluster::initialize
virtual StatusCode initialize()
Definition
GetLCOutOfCluster.cxx:96
GetLCOutOfCluster::m_NormalizationType
std::string m_NormalizationType
string to choose different normalization types
Definition
GetLCOutOfCluster.h:141
GetLCOutOfCluster::m_isampmap
std::vector< int > m_isampmap
Vector of indices in m_dimensions.
Definition
GetLCOutOfCluster.h:90
GetLCOutOfCluster::GetLCOutOfCluster
GetLCOutOfCluster(const std::string &name, ISvcLocator *pSvcLocator)
Definition
GetLCOutOfCluster.cxx:41
GetLCOutOfCluster::m_NormalizationTypeNumber
int m_NormalizationTypeNumber
Definition
GetLCOutOfCluster.h:143
GetLCOutOfCluster::m_dimensionsmap
std::map< std::string, Gaudi::Histo1DDef > m_dimensionsmap
property to set all dimensions introduced above
Definition
GetLCOutOfCluster.h:84
GetLCOutOfCluster::mapparse
void mapparse()
Definition
GetLCOutOfCluster.cxx:416
GetLCOutOfCluster::m_outputFile
std::unique_ptr< TFile > m_outputFile
Output file to save histograms in.
Definition
GetLCOutOfCluster.h:109
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
Generated on
for ATLAS Offline Software by
1.17.0