ATLAS Offline Software
GetLCClassification.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_GETLCCLASSIFICATION_H
6 #define CALOLOCALHADCALIB_GETLCCLASSIFICATION_H
7 
24 #include "GaudiKernel/HistoDef.h"
25 #include <vector>
26 #include <string>
27 
28 class TH2F;
29 class TFile;
30 
32 {
33 
34  public:
35 
36  GetLCClassification(const std::string& name, ISvcLocator* pSvcLocator);
37  virtual ~GetLCClassification();
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 
73  std::vector<Gaudi::Histo1DDef> m_dimensions;
74 
81  std::map<std::string,Gaudi::Histo1DDef> m_dimensionsmap;
82 
87  std::vector<int> m_isampmap;
88 
93  std::vector<TH2F *> m_hclus;
94 
100  std::string m_outputFileName;
101 
106  std::unique_ptr<TFile> m_outputFile;
107 
112 
123  std::string m_NormalizationType;
124 
126 
136  std::string m_ClassificationType;
137 
139 
140 };
141 
142 #endif // CALOLOCALHADCALIB_GETLCCLASSIFICATION_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
GetLCClassification::~GetLCClassification
virtual ~GetLCClassification()
Definition: GetLCClassification.cxx:84
GetLCClassification
Top algorithm to generate classification histograms for Local Hadron Calibration.
Definition: GetLCClassification.h:32
GetLCClassification::m_NormalizationType
std::string m_NormalizationType
string to choose different normalization types
Definition: GetLCClassification.h:123
GetLCClassification::GetLCClassification
GetLCClassification(const std::string &name, ISvcLocator *pSvcLocator)
Definition: GetLCClassification.cxx:42
GetLCClassification::mapinsert
void mapinsert(const std::vector< Gaudi::Histo1DDef > &dims)
Definition: GetLCClassification.cxx:399
GetLCClassification::m_hclus
std::vector< TH2F * > m_hclus
Vector of actual histograms.
Definition: GetLCClassification.h:93
SG::ReadHandleKey< xAOD::CaloClusterContainer >
GetLCClassification::m_dimensionsmap
std::map< std::string, Gaudi::Histo1DDef > m_dimensionsmap
property to set all dimensions introduced above
Definition: GetLCClassification.h:81
python.TrigEgammaMonitorHelper.TH2F
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:45
AthAlgorithm.h
GetLCClassification::initialize
virtual StatusCode initialize()
Definition: GetLCClassification.cxx:89
GetLCClassification::m_dimensions
std::vector< Gaudi::Histo1DDef > m_dimensions
definition of all dimensions used for classification
Definition: GetLCClassification.h:73
GetLCClassification::finalize
virtual StatusCode finalize()
Definition: GetLCClassification.cxx:239
GetLCClassification::m_ClassificationTypeNumber
int m_ClassificationTypeNumber
Definition: GetLCClassification.h:138
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
GetLCClassification::mapparse
void mapparse()
Definition: GetLCClassification.cxx:405
GetLCClassification::execute
virtual StatusCode execute()
Definition: GetLCClassification.cxx:253
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
GetLCClassification::m_clusterCollName
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterCollName
Name of the CaloClusterContainer to use.
Definition: GetLCClassification.h:111
GetLCClassification::m_ClassificationType
std::string m_ClassificationType
string to choose different classification types
Definition: GetLCClassification.h:136
GetLCClassification::m_outputFile
std::unique_ptr< TFile > m_outputFile
Output file to save histograms in.
Definition: GetLCClassification.h:106
GetLCClassification::m_outputFileName
std::string m_outputFileName
Name of the output file to save histograms in.
Definition: GetLCClassification.h:100
CaloClusterContainer.h
GetLCClassification::m_NormalizationTypeNumber
int m_NormalizationTypeNumber
Definition: GetLCClassification.h:125
GetLCClassification::m_isampmap
std::vector< int > m_isampmap
Vector of indices in m_dimensions.
Definition: GetLCClassification.h:87