ATLAS Offline Software
ITkPixelOfflineCalibData.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 // ITkPixelOfflineCalibData.h, (c) ATLAS Detector software
8 
9 #ifndef ITKPIXELOFFLINECALIBDATA_H
10 #define ITKPIXELOFFLINECALIBDATA_H
11 
12 #include "AthenaKernel/CLASS_DEF.h"
13 #include "AthenaKernel/CondCont.h"
15 #include <memory>
16 
24 namespace ITk
25 {
26 
28 {
29 public:
35 
37  ~PixelOfflineCalibData () = default;
38 
39  bool update(const PixelClusterErrorData& idat);
40 
41  // get the pointer to pixel cluster error data
44 
45  std::vector<float> getConstants() const;
46  void setConstants(const std::vector<float> &constants);
47 
48  void dump();
49 
50 private:
51  std::unique_ptr<PixelClusterErrorData> m_clusterErrorData{};
52 };
53 
54 
57 }
58 
60  if (this != &rhs) {
62  }
63  return (*this);
64 }
65 
67  *m_clusterErrorData = idat;
68  return true;
69 }
70 
72  return m_clusterErrorData.get();
73 }
74 
76  return m_clusterErrorData.get();
77 }
78 
79 } // namespace ITk
80 
81 
82 CLASS_DEF( ITk::PixelOfflineCalibData , 114268426 , 1 )
83 CLASS_DEF( CondCont<ITk::PixelOfflineCalibData> , 183220670 , 1 )
84 
85 #endif
ITk::PixelOfflineCalibData::dump
void dump()
Definition: ITkPixelOfflineCalibData.cxx:41
ITkPixelClusterErrorData.h
CondCont.h
Hold mappings of ranges to condition objects.
make_unique
std::unique_ptr< T > make_unique(Args &&... args)
Definition: SkimmingToolEXOT5.cxx:23
ITk::PixelOfflineCalibData::operator=
PixelOfflineCalibData & operator=(const PixelOfflineCalibData &rhs)
Definition: ITkPixelOfflineCalibData.h:59
ITk::PixelOfflineCalibData::getConstants
std::vector< float > getConstants() const
Definition: ITkPixelOfflineCalibData.cxx:17
ITk::PixelOfflineCalibData::~PixelOfflineCalibData
~PixelOfflineCalibData()=default
default destructor
ITk::PixelClusterErrorData
Definition: ITkPixelClusterErrorData.h:20
ITk::PixelOfflineCalibData::getClusterErrorData
PixelClusterErrorData * getClusterErrorData()
Definition: ITkPixelOfflineCalibData.h:71
ITk::PixelOfflineCalibData::setConstants
void setConstants(const std::vector< float > &constants)
Definition: ITkPixelOfflineCalibData.cxx:46
ITk::PixelOfflineCalibData::m_clusterErrorData
std::unique_ptr< PixelClusterErrorData > m_clusterErrorData
Definition: ITkPixelOfflineCalibData.h:51
PixelOfflineCalibData
ITk
Definition: ITkPixelOfflineCalibCondAlg.cxx:14
ITk::PixelOfflineCalibData::PixelOfflineCalibData
PixelOfflineCalibData()
Constructor:
Definition: ITkPixelOfflineCalibData.h:31
CondCont
Hold mapping of ranges to condition objects.
Definition: CondCont.h:811
constants
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:1
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
ITk::PixelOfflineCalibData
Definition: ITkPixelOfflineCalibData.h:28
ITk::PixelOfflineCalibData::update
bool update(const PixelClusterErrorData &idat)
Definition: ITkPixelOfflineCalibData.h:66
CLASS_DEF.h
macros to associate a CLID to a type