ATLAS Offline Software
PixelClusterOnTrackErrorData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // PixelOfflineCalibData.h, (c) ATLAS Detector software
8 
9 #ifndef PIXELCLUSTERONTRACKERRORDATA_H
10 #define PIXELCLUSTERONTRACKERRORDATA_H
11 
12 #include "AthenaKernel/CLASS_DEF.h"
13 #include <string>
14 #include <vector>
15 
23 namespace PixelCalib {
24 
26 
27  public:
28 
31 
34  // get/set version number
35  int getVersion() const;
36  void setVersion(int version);
37 
38  // get the number of bins
39  int getNumberOfPhiBarrelBins() const;
40  int getNumberOfEtaBarrelBins() const;
41  // IBL
42  int getNumberOfPhiIBLBins() const;
43  int getNumberOfEtaIBLBins() const;
44 
45 
46  // get parametrizations
47  const std::vector<float>& getClusterSizeBinsX() const {return m_csx;}
48  const std::vector<float>& getClusterSizeBinsY() const {return m_csy;}
49  const std::vector<float>& getEtaBins() const {return m_etaref;}
50  const std::vector<float>& getIncidenceAngleBins() const {return m_phibins;}
51  // IBL
52  const std::vector<float>& getEtaIBLBins() const {return m_ibletaref;}
53  const std::vector<float>& getIncidenceAngleIBLBins() const {return m_iblphibins;}
54 
55 
56  // old parametrization (analytical formula)
57  static double getPixelBarrelPhiError(double ang, int phiClusterSize) ;
58 
59  // new parametrization (read from DB)
60  float getPixelBarrelEtaError(int ibin) const;
61  float getPixelBarrelPhiError(int ibin) const;
62  // IBL
63  float getPixelIBLEtaError(int ibin) const;
64  float getPixelIBLPhiError(int ibin) const;
65 
66  void setParameters(const int ncsx, const int ncsy, const int neta, const int nalpha,
67  int offset, const std::vector<float> & constants);
68  void setPixelBarrelPhiError(int ibin, double error){
69  m_barrelphierror[ibin] = error; }
70  void setPixelBarrelEtaError(int ibin, double error){
71  m_barreletaerror[ibin] = error; }
72  // IBL
73  void setPixelIBLPhiError(int ibin, double error){
74  m_iblphierror[ibin] = error; }
75  void setPixelIBLEtaError(int ibin, double error){
76  m_ibletaerror[ibin] = error; }
77 
78 
79  int getBarrelBinPhi(double angle, int phiClusterSize) const;
80 
81  int getBarrelBinEta(double eta, int etaClusterSize,
82  int phiClusterSize) const;
83  // IBL
84  int getIBLBinPhi(double angle, int phiClusterSize) const;
85  int getIBLBinEta(double eta, int etaClusterSize) const;
86 
87  // save constants on text file
88  void Print(const std::string& file) const;
89  // load constants from text file
90  void Load(const std::string& file);
91  // IBL
92 
93  int getIBLcsxbins() const {return m_csxbinsibl;}
94  int getIBLcsybins() const {return m_csybinsibl;}
95  int getIBLetabins() const {return m_etabinsibl;}
96  int getIBLphibins() const {return m_phibinsibl;}
97 
98  void setIBLcsxbins(int icsx){m_csxbinsibl = icsx;}
99  void setIBLcsybins(int icsy){m_csybinsibl = icsy;}
100  void setIBLetabins(int ieta){m_etabinsibl = ieta;}
101  void setIBLphibins(int iphi){m_phibinsibl = iphi;}
102 
103  private:
104  void Initialize();
105 
106  int m_version{};
107  // parametrization of errors
108  std::vector<float> m_barrelphierror;
109  std::vector<float> m_barreletaerror;
110  std::vector<float> m_endcapphierror;
111  std::vector<float> m_endcapetaerror;
112 
113  // The bins of parametrization
114  std::vector<float> m_csx; // x cluster size
115  std::vector<float> m_csy; // y cluster size
116  std::vector<float> m_etaref; // eta values
117  std::vector<float> m_phibins; // Incidence angle values
118  // IBL
119  int m_csxbinsibl{}; // IBL csx bins
120  int m_csybinsibl{}; // IBL csy bins
121  int m_etabinsibl{}; // IBL eta bins
122  int m_phibinsibl{}; // IBL phi bins
123  std::vector<float> m_ibletaref; // eta values of IBL
124  std::vector<float> m_iblphibins; // Incidence angle values of IBL
125  std::vector<float> m_iblphierror;
126  std::vector<float> m_ibletaerror;
127 
128 };
129 
130 }
131 
132 #endif
PixelCalib::PixelClusterOnTrackErrorData::getIBLBinPhi
int getIBLBinPhi(double angle, int phiClusterSize) const
Definition: PixelClusterOnTrackErrorData.cxx:189
PixelCalib::PixelClusterOnTrackErrorData::m_iblphierror
std::vector< float > m_iblphierror
Definition: PixelClusterOnTrackErrorData.h:125
PixelCalib::PixelClusterOnTrackErrorData::getBarrelBinEta
int getBarrelBinEta(double eta, int etaClusterSize, int phiClusterSize) const
Definition: PixelClusterOnTrackErrorData.cxx:166
PixelCalib::PixelClusterOnTrackErrorData::getNumberOfEtaIBLBins
int getNumberOfEtaIBLBins() const
Definition: PixelClusterOnTrackErrorData.cxx:84
PixelCalib::PixelClusterOnTrackErrorData::getIBLBinEta
int getIBLBinEta(double eta, int etaClusterSize) const
Definition: PixelClusterOnTrackErrorData.cxx:204
PixelCalib::PixelClusterOnTrackErrorData::setPixelBarrelPhiError
void setPixelBarrelPhiError(int ibin, double error)
Definition: PixelClusterOnTrackErrorData.h:68
PixelCalib::PixelClusterOnTrackErrorData::getIBLcsxbins
int getIBLcsxbins() const
Definition: PixelClusterOnTrackErrorData.h:93
PixelCalib::PixelClusterOnTrackErrorData::getPixelBarrelPhiError
static double getPixelBarrelPhiError(double ang, int phiClusterSize)
Definition: PixelClusterOnTrackErrorData.cxx:89
PixelCalib::PixelClusterOnTrackErrorData::setPixelIBLEtaError
void setPixelIBLEtaError(int ibin, double error)
Definition: PixelClusterOnTrackErrorData.h:75
PixelCalib::PixelClusterOnTrackErrorData::setIBLetabins
void setIBLetabins(int ieta)
Definition: PixelClusterOnTrackErrorData.h:100
PixelCalib::PixelClusterOnTrackErrorData::Initialize
void Initialize()
Definition: PixelClusterOnTrackErrorData.cxx:24
PixelCalib::PixelClusterOnTrackErrorData::getEtaIBLBins
const std::vector< float > & getEtaIBLBins() const
Definition: PixelClusterOnTrackErrorData.h:52
PixelCalib::PixelClusterOnTrackErrorData::getClusterSizeBinsY
const std::vector< float > & getClusterSizeBinsY() const
Definition: PixelClusterOnTrackErrorData.h:48
PixelCalib::PixelClusterOnTrackErrorData::m_ibletaerror
std::vector< float > m_ibletaerror
Definition: PixelClusterOnTrackErrorData.h:126
PixelCalib::PixelClusterOnTrackErrorData::PixelClusterOnTrackErrorData
PixelClusterOnTrackErrorData()
Definition: PixelClusterOnTrackErrorData.cxx:17
PixelCalib::PixelClusterOnTrackErrorData::getIBLphibins
int getIBLphibins() const
Definition: PixelClusterOnTrackErrorData.h:96
PixelCalib::PixelClusterOnTrackErrorData::~PixelClusterOnTrackErrorData
~PixelClusterOnTrackErrorData()
PixelCalib::PixelClusterOnTrackErrorData::m_phibinsibl
int m_phibinsibl
Definition: PixelClusterOnTrackErrorData.h:122
PixelCalib::PixelClusterOnTrackErrorData::m_ibletaref
std::vector< float > m_ibletaref
Definition: PixelClusterOnTrackErrorData.h:123
PixelCalib::PixelClusterOnTrackErrorData::Print
void Print(const std::string &file) const
Definition: PixelClusterOnTrackErrorData.cxx:301
PixelCalib::PixelClusterOnTrackErrorData::getIncidenceAngleBins
const std::vector< float > & getIncidenceAngleBins() const
Definition: PixelClusterOnTrackErrorData.h:50
PixelCalib::PixelClusterOnTrackErrorData::getNumberOfPhiBarrelBins
int getNumberOfPhiBarrelBins() const
Definition: PixelClusterOnTrackErrorData.cxx:71
PixelCalib::PixelClusterOnTrackErrorData::setIBLcsxbins
void setIBLcsxbins(int icsx)
Definition: PixelClusterOnTrackErrorData.h:98
PixelCalib::PixelClusterOnTrackErrorData::getVersion
int getVersion() const
Methods to access the calibration data.
Definition: PixelClusterOnTrackErrorData.cxx:296
PixelCalib::PixelClusterOnTrackErrorData::getBarrelBinPhi
int getBarrelBinPhi(double angle, int phiClusterSize) const
Definition: PixelClusterOnTrackErrorData.cxx:149
PixelCalib::PixelClusterOnTrackErrorData::setIBLphibins
void setIBLphibins(int iphi)
Definition: PixelClusterOnTrackErrorData.h:101
PixelCalib::PixelClusterOnTrackErrorData::setParameters
void setParameters(const int ncsx, const int ncsy, const int neta, const int nalpha, int offset, const std::vector< float > &constants)
Definition: PixelClusterOnTrackErrorData.cxx:219
PixelCalib::PixelClusterOnTrackErrorData::setIBLcsybins
void setIBLcsybins(int icsy)
Definition: PixelClusterOnTrackErrorData.h:99
angle
double angle(const GeoTrf::Vector2D &a, const GeoTrf::Vector2D &b)
Definition: TRTDetectorFactory_Full.cxx:73
PixelCalib::PixelClusterOnTrackErrorData::getNumberOfPhiIBLBins
int getNumberOfPhiIBLBins() const
Definition: PixelClusterOnTrackErrorData.cxx:79
PixelCalib::PixelClusterOnTrackErrorData::getEtaBins
const std::vector< float > & getEtaBins() const
Definition: PixelClusterOnTrackErrorData.h:49
PixelCalib::PixelClusterOnTrackErrorData::getPixelIBLPhiError
float getPixelIBLPhiError(int ibin) const
Definition: PixelClusterOnTrackErrorData.cxx:143
PixelCalib::PixelClusterOnTrackErrorData::m_csx
std::vector< float > m_csx
Definition: PixelClusterOnTrackErrorData.h:114
file
TFile * file
Definition: tile_monitor.h:29
PixelCalib::PixelClusterOnTrackErrorData::setPixelBarrelEtaError
void setPixelBarrelEtaError(int ibin, double error)
Definition: PixelClusterOnTrackErrorData.h:70
PixelCalib::PixelClusterOnTrackErrorData::m_barreletaerror
std::vector< float > m_barreletaerror
Definition: PixelClusterOnTrackErrorData.h:109
PixelCalib
Definition: PixelChargeInterpolationCalibration.h:14
PixelCalib::PixelClusterOnTrackErrorData::setVersion
void setVersion(int version)
Definition: PixelClusterOnTrackErrorData.cxx:294
PixelCalib::PixelClusterOnTrackErrorData
Definition: PixelClusterOnTrackErrorData.h:25
PixelCalib::PixelClusterOnTrackErrorData::m_csxbinsibl
int m_csxbinsibl
Definition: PixelClusterOnTrackErrorData.h:119
PixelCalib::PixelClusterOnTrackErrorData::m_csybinsibl
int m_csybinsibl
Definition: PixelClusterOnTrackErrorData.h:120
PixelCalib::PixelClusterOnTrackErrorData::m_etabinsibl
int m_etabinsibl
Definition: PixelClusterOnTrackErrorData.h:121
PixelCalib::PixelClusterOnTrackErrorData::m_barrelphierror
std::vector< float > m_barrelphierror
Definition: PixelClusterOnTrackErrorData.h:108
get_generator_info.version
version
Definition: get_generator_info.py:33
PixelCalib::PixelClusterOnTrackErrorData::getClusterSizeBinsX
const std::vector< float > & getClusterSizeBinsX() const
Definition: PixelClusterOnTrackErrorData.h:47
constants
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:1
PixelCalib::PixelClusterOnTrackErrorData::getPixelBarrelEtaError
float getPixelBarrelEtaError(int ibin) const
Definition: PixelClusterOnTrackErrorData.cxx:125
PixelCalib::PixelClusterOnTrackErrorData::getIBLcsybins
int getIBLcsybins() const
Definition: PixelClusterOnTrackErrorData.h:94
PixelCalib::PixelClusterOnTrackErrorData::getNumberOfEtaBarrelBins
int getNumberOfEtaBarrelBins() const
Definition: PixelClusterOnTrackErrorData.cxx:75
PixelCalib::PixelClusterOnTrackErrorData::getIBLetabins
int getIBLetabins() const
Definition: PixelClusterOnTrackErrorData.h:95
PixelCalib::PixelClusterOnTrackErrorData::setPixelIBLPhiError
void setPixelIBLPhiError(int ibin, double error)
Definition: PixelClusterOnTrackErrorData.h:73
convertTimingResiduals.offset
offset
Definition: convertTimingResiduals.py:71
PixelCalib::PixelClusterOnTrackErrorData::m_endcapetaerror
std::vector< float > m_endcapetaerror
Definition: PixelClusterOnTrackErrorData.h:111
PixelCalib::PixelClusterOnTrackErrorData::m_etaref
std::vector< float > m_etaref
Definition: PixelClusterOnTrackErrorData.h:116
PixelCalib::PixelClusterOnTrackErrorData::m_version
int m_version
Definition: PixelClusterOnTrackErrorData.h:106
PixelCalib::PixelClusterOnTrackErrorData::m_phibins
std::vector< float > m_phibins
Definition: PixelClusterOnTrackErrorData.h:117
get_generator_info.error
error
Definition: get_generator_info.py:40
PixelCalib::PixelClusterOnTrackErrorData::m_csy
std::vector< float > m_csy
Definition: PixelClusterOnTrackErrorData.h:115
error
Definition: IImpactPoint3dEstimator.h:70
PixelCalib::PixelClusterOnTrackErrorData::Load
void Load(const std::string &file)
Definition: PixelClusterOnTrackErrorData.cxx:374
CLASS_DEF.h
macros to associate a CLID to a type
PixelCalib::PixelClusterOnTrackErrorData::getIncidenceAngleIBLBins
const std::vector< float > & getIncidenceAngleIBLBins() const
Definition: PixelClusterOnTrackErrorData.h:53
PixelCalib::PixelClusterOnTrackErrorData::m_endcapphierror
std::vector< float > m_endcapphierror
Definition: PixelClusterOnTrackErrorData.h:110
PixelCalib::PixelClusterOnTrackErrorData::m_iblphibins
std::vector< float > m_iblphibins
Definition: PixelClusterOnTrackErrorData.h:124
PixelCalib::PixelClusterOnTrackErrorData::getPixelIBLEtaError
float getPixelIBLEtaError(int ibin) const
Definition: PixelClusterOnTrackErrorData.cxx:137