ATLAS Offline Software
ITkPixelClusterErrorData.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 ITKPIXELCLUSTERERRORDATA_H
6 #define ITKPIXELCLUSTERERRORDATA_H
7 
9 
10 #include "Identifier/Identifier.h"
12 #include "StoreGate/StoreGateSvc.h"
13 
14 #include <string>
15 #include <vector>
16 
17 namespace ITk
18 {
19 
21 {
22 
23  public:
26 
29  std::pair<double,double> getDelta(const Identifier* pixelId,
30  int sizePhi, double angle,
31  int sizeZ, double eta) const;
32  std::pair<double,double> getDeltaError(const Identifier* pixelId) const;
33  std::map< const Identifier, std::vector<double> > getConstMap() const {return m_constmap;}
34 
35  void setDeltaError(const Identifier* pixelId,
36  double period_phi, double period_sinheta,
37  double delta_x_slope, double delta_x_offset, double error_x,
38  double delta_y_slope, double delta_y_offset, double error_y );
39 
40  void print(const std::string& file) const;
41  void load(const std::string& file);
42 
43 
44  private:
45  void Initialize();
46 
47  // map to store all ITk Analogue Clustering constants and errors
48  std::map< const Identifier, std::vector<double> > m_constmap;
49 
51  const PixelID* m_pixelID{nullptr};
52 
53 };
54 
55 } // namespace ITk
56 
57 #endif
58 
PixelID.h
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
ITk::PixelClusterErrorData::load
void load(const std::string &file)
Definition: ITkPixelClusterErrorData.cxx:105
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:71
ITk::PixelClusterErrorData::PixelClusterErrorData
PixelClusterErrorData()
Definition: ITkPixelClusterErrorData.h:24
ITk::PixelClusterErrorData
Definition: ITkPixelClusterErrorData.h:21
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
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:87
ITk::PixelClusterErrorData::Initialize
void Initialize()
Definition: ITkPixelClusterErrorData.cxx:19
ITk::PixelClusterErrorData::getDeltaError
std::pair< double, double > getDeltaError(const Identifier *pixelId) const
Definition: ITkPixelClusterErrorData.cxx:56
ITk
Definition: ITkPixelOfflineCalibCondAlg.cxx:14
ITk::PixelClusterErrorData::m_detStore
StoreGateSvc * m_detStore
Definition: ITkPixelClusterErrorData.h:50
ITk::PixelClusterErrorData::m_pixelID
const PixelID * m_pixelID
Definition: ITkPixelClusterErrorData.h:51
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:35
ITk::PixelClusterErrorData::~PixelClusterErrorData
~PixelClusterErrorData()
Definition: ITkPixelClusterErrorData.h:25
ITk::PixelClusterErrorData::m_constmap
std::map< const Identifier, std::vector< double > > m_constmap
Definition: ITkPixelClusterErrorData.h:48
ITk::PixelClusterErrorData::getConstMap
std::map< const Identifier, std::vector< double > > getConstMap() const
Definition: ITkPixelClusterErrorData.h:33
PixelID
Definition: PixelID.h:67
StoreGateSvc.h
CLASS_DEF.h
macros to associate a CLID to a type