ATLAS Offline Software
LUTChargeCalibParser.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
11 #ifndef LUTChargeCalibParser_h
12 #define LUTChargeCalibParser_h
15 #include <nlohmann/json.hpp>
16 
17 #include <string>
18 
19 class PixelModuleData;
20 class PixelID;
21 
22 namespace PixelChargeCalib{
24  public:
26  const InDetDD::SiDetectorElementCollection * pElements,
27  const PixelID * pId):IChargeCalibrationParser(pModData,pElements, pId){
28  //nop
29  }
30 
31  private:
33  parseImpl(unsigned int moduleHash, const nlohmann::json & data, int inputSource) override final;
34 
36  parseImpl(unsigned int /*hash*/, const nlohmann::json & /*data*/) override final {
38  b.isValid=false;
39  return b;
40  }
41 
43  parseImpl(unsigned int /*moduleHash*/, const std::string & /*data*/) override final {
45  b.isValid=false;
46  return b;
47  }
48  };
49 
50 }
51 #endif
PixelChargeCalib::LUTChargeCalibParser::parseImpl
virtual ChargeCalibrationBundle parseImpl(unsigned int, const std::string &) override final
Definition: LUTChargeCalibParser.h:43
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
InDetDD::SiDetectorElementCollection
Definition: SiDetectorElementCollection.h:30
json
nlohmann::json json
Definition: HistogramDef.cxx:9
PixelModuleData
Definition: PixelModuleData.h:22
PixelChargeCalib::LUTChargeCalibParser
Definition: LUTChargeCalibParser.h:23
PixelChargeCalib::LUTChargeCalibParser::parseImpl
virtual ChargeCalibrationBundle parseImpl(unsigned int, const nlohmann::json &) override final
Definition: LUTChargeCalibParser.h:36
PixelChargeCalib::LUTChargeCalibParser::parseImpl
virtual ChargeCalibrationBundle parseImpl(unsigned int moduleHash, const nlohmann::json &data, int inputSource) override final
Definition: LUTChargeCalibParser.cxx:23
PixelChargeCalib::IChargeCalibrationParser
Definition: IChargeCalibrationParser.h:31
ChargeCalibrationBundle.h
Struct for holding vectors of charge calibration constants, with utility methods.
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
PixelChargeCalib::LUTChargeCalibParser::LUTChargeCalibParser
LUTChargeCalibParser(const PixelModuleData *pModData, const InDetDD::SiDetectorElementCollection *pElements, const PixelID *pId)
Definition: LUTChargeCalibParser.h:25
PixelChargeCalib
Definition: IChargeCalibrationParser.h:30
PixelChargeCalib::ChargeCalibrationBundle
bundles of parameters used together in the PixelChargeCalibCondAlg
Definition: ChargeCalibrationBundle.h:24
IChargeCalibrationParser.h
Interface to parsers which accept a string or json object and return a ChargeCalibrationBundle.
PixelID
Definition: PixelID.h:67