ATLAS Offline Software
Run3ChargeCalibParser.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 Run3ChargeCalibParser_h
12 #define Run3ChargeCalibParser_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) override final;
34 
36  parseImpl(unsigned int /*moduleHash*/, const nlohmann::json & /*data*/, int /*inputSource*/) 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
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
PixelChargeCalib::Run3ChargeCalibParser::parseImpl
virtual ChargeCalibrationBundle parseImpl(unsigned int, const nlohmann::json &, int) override final
Definition: Run3ChargeCalibParser.h:36
PixelModuleData
Definition: PixelModuleData.h:22
PixelChargeCalib::Run3ChargeCalibParser
Definition: Run3ChargeCalibParser.h:23
PixelChargeCalib::Run3ChargeCalibParser::parseImpl
virtual ChargeCalibrationBundle parseImpl(unsigned int, const std::string &) override final
Definition: Run3ChargeCalibParser.h:43
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::Run3ChargeCalibParser::Run3ChargeCalibParser
Run3ChargeCalibParser(const PixelModuleData *pModData, const InDetDD::SiDetectorElementCollection *pElements, const PixelID *pId)
Definition: Run3ChargeCalibParser.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
PixelChargeCalib::Run3ChargeCalibParser::parseImpl
virtual ChargeCalibrationBundle parseImpl(unsigned int moduleHash, const nlohmann::json &data) override final
Definition: Run3ChargeCalibParser.cxx:23