ATLAS Offline Software
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 
24 #include "GaudiKernel/HistoDef.h"
25 #include <vector>
26 #include <string>
27 
28 class TProfile2D;
29 class 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 
141  std::string m_NormalizationType;
142 
144 
154  std::string m_ClassificationType;
155 
157 };
158 
159 #endif // CALOLOCALHADCALIB_GETLCOUTOFCLUSTER_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
GetLCOutOfCluster::m_NormalizationTypeNumber
int m_NormalizationTypeNumber
Definition: GetLCOutOfCluster.h:143
GetLCOutOfCluster::m_NormalizationType
std::string m_NormalizationType
string to choose different normalization types
Definition: GetLCOutOfCluster.h:141
GetLCOutOfCluster::m_ooc
std::vector< TProfile2D * > m_ooc
Vector of actual histograms.
Definition: GetLCOutOfCluster.h:96
GetLCOutOfCluster
Top algorithm to generate OutOfCluster histograms for Local Hadron Calibration.
Definition: GetLCOutOfCluster.h:32
SG::ReadHandleKey< xAOD::CaloClusterContainer >
GetLCOutOfCluster::m_ClassificationType
std::string m_ClassificationType
string to choose different classification types
Definition: GetLCOutOfCluster.h:154
GetLCOutOfCluster::initialize
virtual StatusCode initialize()
Definition: GetLCOutOfCluster.cxx:96
GetLCOutOfCluster::m_dimensionsmap
std::map< std::string, Gaudi::Histo1DDef > m_dimensionsmap
property to set all dimensions introduced above
Definition: GetLCOutOfCluster.h:84
AthAlgorithm.h
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::finalize
virtual StatusCode finalize()
Definition: GetLCOutOfCluster.cxx:262
GetLCOutOfCluster::m_outputFile
std::unique_ptr< TFile > m_outputFile
Output file to save histograms in.
Definition: GetLCOutOfCluster.h:109
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
GetLCOutOfCluster::m_isampmap
std::vector< int > m_isampmap
Vector of indices in m_dimensions.
Definition: GetLCOutOfCluster.h:90
GetLCOutOfCluster::m_clusterCollName
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterCollName
Name of the CaloClusterContainer to use.
Definition: GetLCOutOfCluster.h:113
AthAlgorithm
Definition: AthAlgorithm.h:47
GetLCOutOfCluster::execute
virtual StatusCode execute()
Definition: GetLCOutOfCluster.cxx:276
GetLCOutOfCluster::mapparse
void mapparse()
Definition: GetLCOutOfCluster.cxx:416
GetLCOutOfCluster::GetLCOutOfCluster
GetLCOutOfCluster(const std::string &name, ISvcLocator *pSvcLocator)
Definition: GetLCOutOfCluster.cxx:41
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
GetLCOutOfCluster::m_outputFileName
std::string m_outputFileName
Name of the output file to save histograms in.
Definition: GetLCOutOfCluster.h:103
GetLCOutOfCluster::~GetLCOutOfCluster
virtual ~GetLCOutOfCluster()
Definition: GetLCOutOfCluster.cxx:91
GetLCOutOfCluster::m_invalidSamplings
std::set< int > m_invalidSamplings
actual set of samplings to be ignored for out-of-cluster weights
Definition: GetLCOutOfCluster.h:129
CaloClusterContainer.h
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::mapinsert
void mapinsert(const std::vector< Gaudi::Histo1DDef > &dims)
Definition: GetLCOutOfCluster.cxx:410