ATLAS Offline Software
Loading...
Searching...
No Matches
GetLCWeights.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_GETLCWEIGHTS_H
6#define CALOLOCALHADCALIB_GETLCWEIGHTS_H
7
19
20#include "GaudiKernel/HistoDef.h"
26#include <vector>
27#include <string>
28
29class TProfile2D;
30class TFile;
31class CaloCell_ID;
32
34 public:
35 unsigned int iClus;
36 double weight;
37 double eCalibTot;
39};
40
42{
43
44 public:
45
46 GetLCWeights(const std::string& name, ISvcLocator* pSvcLocator);
47 virtual ~GetLCWeights();
48 virtual StatusCode initialize();
49 virtual StatusCode execute();
50 virtual StatusCode finalize();
51
52 private:
53
54 void mapinsert(const std::vector<Gaudi::Histo1DDef> & dims);
55
56 void mapparse();
57
92 std::vector<std::vector<Gaudi::Histo1DDef> > m_dimensions;
93
100 std::map<std::string,Gaudi::Histo1DDef> m_dimensionsmap;
101
106 std::vector<std::vector<int> > m_isampmap;
107
113 std::vector<std::vector<TProfile2D *> > m_weight;
114
120 std::string m_outputFileName;
121
126 std::unique_ptr<TFile> m_outputFile;
127
130
132
139
151
161
163
165
174
177
178};
179
180#endif // CALOLOCALHADCALIB_GETLCWEIGHTS_H
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
unsigned int iClus
double eCalibTot
double weight
ClusWeight * next
std::string m_NormalizationType
string to choose different normalization types
std::vector< std::vector< Gaudi::Histo1DDef > > m_dimensions
definition of all dimensions used for each sampling
bool m_useInversionMethod
flag to switch on/off the use of the inversion method
void mapinsert(const std::vector< Gaudi::Histo1DDef > &dims)
std::unique_ptr< TFile > m_outputFile
Output file to save histograms in.
std::map< std::string, Gaudi::Histo1DDef > m_dimensionsmap
property to set all dimensions introduced above
virtual StatusCode execute()
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterCollName
Name of the CaloClusterContainer to use.
GetLCWeights(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize()
virtual StatusCode finalize()
int m_NormalizationTypeNumber
virtual ~GetLCWeights()
int m_ClassificationTypeNumber
std::vector< std::vector< int > > m_isampmap
Vector of indices in m_dimensions for each sampling.
std::string m_ClassificationType
string to choose different classification types
std::string m_outputFileName
Name of the output file to save histograms in.
std::vector< std::vector< TProfile2D * > > m_weight
Vector of vector of actual histograms.
SG::ReadHandleKeyArray< CaloCalibrationHitContainer > m_CalibrationHitContainerNames
vector of calibration hit container names to use.
Property holding a SG store/key/clid from which a ReadHandle is made.
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray