ATLAS Offline Software
Loading...
Searching...
No Matches
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
24#include "GaudiKernel/HistoDef.h"
25#include <vector>
26#include <string>
27
28class TProfile2D;
29class TFile;
30
32{
33
34 public:
35
36 GetLCOutOfCluster(const std::string& name, ISvcLocator* pSvcLocator);
37 virtual ~GetLCOutOfCluster();
38 virtual StatusCode initialize();
39 virtual StatusCode execute();
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
114
122 std::vector<std::string> m_invalidSamplingNames;
123
129 std::set<int> m_invalidSamplings;
130
140
142
144
153
155
157};
158
159#endif // CALOLOCALHADCALIB_GETLCOUTOFCLUSTER_H
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::string m_ClassificationType
string to choose different classification types
std::vector< std::string > m_invalidSamplingNames
vector of names of the calorimeter samplings not to use when applying the out-of-cluster weights.
std::string m_outputFileName
Name of the output file to save histograms in.
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterCollName
Name of the CaloClusterContainer to use.
std::set< int > m_invalidSamplings
actual set of samplings to be ignored for out-of-cluster weights
std::vector< TProfile2D * > m_ooc
Vector of actual histograms.
std::vector< Gaudi::Histo1DDef > m_dimensions
definition of all dimensions used for out-of-cluster corrections
virtual StatusCode finalize()
void mapinsert(const std::vector< Gaudi::Histo1DDef > &dims)
virtual StatusCode initialize()
std::string m_NormalizationType
string to choose different normalization types
std::vector< int > m_isampmap
Vector of indices in m_dimensions.
GetLCOutOfCluster(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute()
std::map< std::string, Gaudi::Histo1DDef > m_dimensionsmap
property to set all dimensions introduced above
std::unique_ptr< TFile > m_outputFile
Output file to save histograms in.
Property holding a SG store/key/clid from which a ReadHandle is made.