ATLAS Offline Software
Loading...
Searching...
No Matches
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
13#include <string>
14#include <vector>
15
24
25namespace PixelCalib {
26
28
29 public:
32
34
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;
79 // eta values of parametrization
80 std::vector<float> m_etaref;
81};
82
83}
84
85#endif
Scalar eta() const
pseudorapidity method
macros to associate a CLID to a type
int setPixelIBLPhiError(int ibin, float error)
int setPixelIBLEtaError(int ibin, float error)
int getBarrelBin(double eta, int etaClusterSize, int phiClusterSize) const
int setPixelBarrelPhiError(int ibin, float error)
int getEndcapBin(int etaClusterSize, int phiClusterSize) const
void Print(const std::string &file) const
int setPixelEndcapRError(int ibin, float error)
int setPixelBarrelEtaError(int ibin, float error)
int getVersion() const
Methods to access the calibration data.
int setPixelEndcapPhiError(int ibin, float error)
TFile * file