ATLAS Offline Software
ITkPixelClusterErrorData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ITKPIXELCLUSTERERRORDATA_H
6 #define ITKPIXELCLUSTERERRORDATA_H
7 
9 
10 #include "Identifier/Identifier.h"
12 
13 #include <string>
14 #include <vector>
15 
16 namespace ITk
17 {
18 
20 {
21 
22  public:
25 
28  std::pair<double,double> getDelta(const Identifier* pixelId,
29  int sizePhi, double angle,
30  int sizeZ, double eta) const;
31  std::pair<double,double> getDeltaError(const Identifier* pixelId) const;
32  const std::map< const Identifier, std::vector<double> >& getConstMap() const {return m_constmap;}
33 
34  void setDeltaError(const Identifier* pixelId,
35  double period_phi, double period_sinheta,
36  double delta_x_slope, double delta_x_offset, double error_x,
37  double delta_y_slope, double delta_y_offset, double error_y );
38 
39  void print(const std::string& file) const;
40  void load(const std::string& file);
41 
42 
43  private:
44  void Initialize();
45 
46  // map to store all ITk Analogue Clustering constants and errors
47  std::map< const Identifier, std::vector<double> > m_constmap;
48 
49  const PixelID* m_pixelID{nullptr};
50 
51 };
52 
53 } // namespace ITk
54 
55 #endif
56 
PixelID.h
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
ITk::PixelClusterErrorData::load
void load(const std::string &file)
Definition: ITkPixelClusterErrorData.cxx:104
ITk::PixelClusterErrorData::setDeltaError
void setDeltaError(const Identifier *pixelId, double period_phi, double period_sinheta, double delta_x_slope, double delta_x_offset, double error_x, double delta_y_slope, double delta_y_offset, double error_y)
Definition: ITkPixelClusterErrorData.cxx:70
ITk::PixelClusterErrorData::PixelClusterErrorData
PixelClusterErrorData()
Definition: ITkPixelClusterErrorData.h:23
ITk::PixelClusterErrorData::getConstMap
const std::map< const Identifier, std::vector< double > > & getConstMap() const
Definition: ITkPixelClusterErrorData.h:32
ITk::PixelClusterErrorData
Definition: ITkPixelClusterErrorData.h:20
angle
double angle(const GeoTrf::Vector2D &a, const GeoTrf::Vector2D &b)
Definition: TRTDetectorFactory_Full.cxx:73
file
TFile * file
Definition: tile_monitor.h:29
ITk::PixelClusterErrorData::print
void print(const std::string &file) const
Definition: ITkPixelClusterErrorData.cxx:86
ITk::PixelClusterErrorData::Initialize
void Initialize()
Definition: ITkPixelClusterErrorData.cxx:20
ITk::PixelClusterErrorData::getDeltaError
std::pair< double, double > getDeltaError(const Identifier *pixelId) const
Definition: ITkPixelClusterErrorData.cxx:55
ITk
Definition: ITkPixelOfflineCalibCondAlg.cxx:14
ITk::PixelClusterErrorData::m_pixelID
const PixelID * m_pixelID
Definition: ITkPixelClusterErrorData.h:49
ITk::PixelClusterErrorData::getDelta
std::pair< double, double > getDelta(const Identifier *pixelId, int sizePhi, double angle, int sizeZ, double eta) const
Methods to access the calibration data.
Definition: ITkPixelClusterErrorData.cxx:34
ITk::PixelClusterErrorData::~PixelClusterErrorData
~PixelClusterErrorData()
Definition: ITkPixelClusterErrorData.h:24
ITk::PixelClusterErrorData::m_constmap
std::map< const Identifier, std::vector< double > > m_constmap
Definition: ITkPixelClusterErrorData.h:47
PixelID
Definition: PixelID.h:67
CLASS_DEF.h
macros to associate a CLID to a type
Identifier
Definition: IdentifierFieldParser.cxx:14