ATLAS Offline Software
Loading...
Searching...
No Matches
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
20
24#include "GaudiKernel/HistoDef.h"
25#include <vector>
26#include <string>
27
28class TH2F;
29class 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
110
112
122
124
126
135
137
139
140};
141
142#endif // CALOLOCALHADCALIB_GETLCCLASSIFICATION_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::unique_ptr< TFile > m_outputFile
Output file to save histograms in.
std::vector< Gaudi::Histo1DDef > m_dimensions
definition of all dimensions used for classification
virtual StatusCode initialize()
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.
void mapinsert(const std::vector< Gaudi::Histo1DDef > &dims)
GetLCClassification(const std::string &name, ISvcLocator *pSvcLocator)
std::vector< int > m_isampmap
Vector of indices in m_dimensions.
std::string m_NormalizationType
string to choose different normalization types
std::map< std::string, Gaudi::Histo1DDef > m_dimensionsmap
property to set all dimensions introduced above
std::vector< TH2F * > m_hclus
Vector of actual histograms.
virtual StatusCode execute()
virtual StatusCode finalize()
Property holding a SG store/key/clid from which a ReadHandle is made.