ATLAS Offline Software
PixelClusterErrorData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // PixelOfflineCalibData.h, (c) ATLAS Detector software
8 
9 #ifndef PIXELCLUSTERERRORDATA_H
10 #define PIXELCLUSTERERRORDATA_H
11 
12 #include "AthenaKernel/CLASS_DEF.h"
13 #include <string>
14 #include <vector>
15 
25 namespace PixelCalib {
26 
28 
29  public:
32 
35  // get/set version number
36  int getVersion() const;
37  void setVersion(int version);
38 
39  float getPixelBarrelPhiError(int ibin) const;
40  float getPixelBarrelEtaError(int ibin) const;
41  float getPixelEndcapPhiError(int ibin) const;
42  float getPixelEndcapRError(int ibin) const;
43  float getPixelIBLPhiError(int ibin) const;
44  float getPixelIBLEtaError(int ibin) const;
45 
46  // returns an error code (wether ibin is in parametrization range)
47  int setPixelBarrelPhiError(int ibin, float error);
48  int setPixelBarrelEtaError(int ibin, float error);
49  int setPixelEndcapPhiError(int ibin, float error);
50  int setPixelEndcapRError(int ibin, float error);
51  int setPixelIBLPhiError(int ibin, float error);
52  int setPixelIBLEtaError(int ibin, float error);
53 
54  // get the parametrization bin
55  int getEndcapBin(int etaClusterSize, int phiClusterSize) const;
56  int getBarrelBin(double eta, int etaClusterSize, int phiClusterSize) const;
57 
58  // assuming phi and eta parametrizations have the same number of bins...
59  int getNumberOfBarrelBins() const { return m_barrelphierror.size(); }
60  int getNumberOfEndcapBins() const { return m_endcapphierror.size(); }
61 
62  void Print(const std::string& file) const;
63  void Load(const std::string& file);
64 
65  private:
66  void Initialize();
67  // parametrization of errors
68  std::vector<float> m_barrelphierror;
69  std::vector<float> m_barreletaerror;
70  std::vector<float> m_endcapphierror;
71  std::vector<float> m_endcapetaerror;
72  std::vector<float> m_iblphierror;
73  std::vector<float> m_ibletaerror;
74 
75  // number of bins of parametrization (details)
76  int m_nPhi;
77  int m_nZ;
78  int m_version;
79  // eta values of parametrization
80  std::vector<float> m_etaref;
81 };
82 
83 }
84 
85 #endif
PixelCalib::PixelClusterErrorData::setPixelEndcapRError
int setPixelEndcapRError(int ibin, float error)
Definition: PixelClusterErrorData.cxx:115
PixelCalib::PixelClusterErrorData::getNumberOfBarrelBins
int getNumberOfBarrelBins() const
Definition: PixelClusterErrorData.h:59
PixelCalib::PixelClusterErrorData::getPixelBarrelEtaError
float getPixelBarrelEtaError(int ibin) const
Definition: PixelClusterErrorData.cxx:89
PixelCalib::PixelClusterErrorData::m_ibletaerror
std::vector< float > m_ibletaerror
Definition: PixelClusterErrorData.h:73
PixelCalib::PixelClusterErrorData::setPixelBarrelEtaError
int setPixelBarrelEtaError(int ibin, float error)
Definition: PixelClusterErrorData.cxx:129
PixelCalib::PixelClusterErrorData::Initialize
void Initialize()
Definition: PixelClusterErrorData.cxx:23
PixelCalib::PixelClusterErrorData::setPixelIBLPhiError
int setPixelIBLPhiError(int ibin, float error)
Definition: PixelClusterErrorData.cxx:136
PixelCalib::PixelClusterErrorData::m_endcapphierror
std::vector< float > m_endcapphierror
Definition: PixelClusterErrorData.h:70
PixelCalib::PixelClusterErrorData::getNumberOfEndcapBins
int getNumberOfEndcapBins() const
Definition: PixelClusterErrorData.h:60
PixelCalib::PixelClusterErrorData::m_nPhi
int m_nPhi
Definition: PixelClusterErrorData.h:76
PixelCalib::PixelClusterErrorData::getPixelEndcapPhiError
float getPixelEndcapPhiError(int ibin) const
Definition: PixelClusterErrorData.cxx:71
PixelCalib::PixelClusterErrorData::setPixelEndcapPhiError
int setPixelEndcapPhiError(int ibin, float error)
Definition: PixelClusterErrorData.cxx:108
PixelCalib::PixelClusterErrorData::m_nZ
int m_nZ
Definition: PixelClusterErrorData.h:77
PixelCalib::PixelClusterErrorData::getPixelBarrelPhiError
float getPixelBarrelPhiError(int ibin) const
Definition: PixelClusterErrorData.cxx:83
PixelCalib::PixelClusterErrorData::m_endcapetaerror
std::vector< float > m_endcapetaerror
Definition: PixelClusterErrorData.h:71
file
TFile * file
Definition: tile_monitor.h:29
PixelCalib::PixelClusterErrorData::m_barrelphierror
std::vector< float > m_barrelphierror
Definition: PixelClusterErrorData.h:68
PixelCalib
Definition: PixelChargeInterpolationCalibration.h:14
PixelCalib::PixelClusterErrorData::getPixelEndcapRError
float getPixelEndcapRError(int ibin) const
Definition: PixelClusterErrorData.cxx:77
PixelCalib::PixelClusterErrorData::getPixelIBLPhiError
float getPixelIBLPhiError(int ibin) const
Definition: PixelClusterErrorData.cxx:96
PixelCalib::PixelClusterErrorData
Definition: PixelClusterErrorData.h:27
PixelCalib::PixelClusterErrorData::m_etaref
std::vector< float > m_etaref
Definition: PixelClusterErrorData.h:80
PixelCalib::PixelClusterErrorData::setPixelIBLEtaError
int setPixelIBLEtaError(int ibin, float error)
Definition: PixelClusterErrorData.cxx:143
PixelCalib::PixelClusterErrorData::setVersion
void setVersion(int version)
Definition: PixelClusterErrorData.cxx:67
PixelCalib::PixelClusterErrorData::getBarrelBin
int getBarrelBin(double eta, int etaClusterSize, int phiClusterSize) const
Definition: PixelClusterErrorData.cxx:150
PixelCalib::PixelClusterErrorData::Load
void Load(const std::string &file)
Definition: PixelClusterErrorData.cxx:200
PixelCalib::PixelClusterErrorData::getPixelIBLEtaError
float getPixelIBLEtaError(int ibin) const
Definition: PixelClusterErrorData.cxx:102
get_generator_info.version
version
Definition: get_generator_info.py:33
PixelCalib::PixelClusterErrorData::getEndcapBin
int getEndcapBin(int etaClusterSize, int phiClusterSize) const
Definition: PixelClusterErrorData.cxx:165
PixelCalib::PixelClusterErrorData::m_version
int m_version
Definition: PixelClusterErrorData.h:78
PixelCalib::PixelClusterErrorData::~PixelClusterErrorData
~PixelClusterErrorData()
Definition: PixelClusterErrorData.h:31
PixelCalib::PixelClusterErrorData::getVersion
int getVersion() const
Methods to access the calibration data.
Definition: PixelClusterErrorData.cxx:69
PixelCalib::PixelClusterErrorData::Print
void Print(const std::string &file) const
Definition: PixelClusterErrorData.cxx:176
PixelCalib::PixelClusterErrorData::setPixelBarrelPhiError
int setPixelBarrelPhiError(int ibin, float error)
Definition: PixelClusterErrorData.cxx:122
PixelCalib::PixelClusterErrorData::m_barreletaerror
std::vector< float > m_barreletaerror
Definition: PixelClusterErrorData.h:69
error
Definition: IImpactPoint3dEstimator.h:70
CLASS_DEF.h
macros to associate a CLID to a type
PixelCalib::PixelClusterErrorData::m_iblphierror
std::vector< float > m_iblphierror
Definition: PixelClusterErrorData.h:72
PixelCalib::PixelClusterErrorData::PixelClusterErrorData
PixelClusterErrorData()
Definition: PixelClusterErrorData.h:30