diff --git a/InnerDetector/InDetConditions/PixelConditionsData/PixelConditionsData/PixelModuleData.h b/InnerDetector/InDetConditions/PixelConditionsData/PixelConditionsData/PixelModuleData.h index 66352b0fcec2d9dbadc27e5486286c044720088b..642c30ba7c1fb562e29f8453321b22c4a3a4649d 100644 --- a/InnerDetector/InDetConditions/PixelConditionsData/PixelConditionsData/PixelModuleData.h +++ b/InnerDetector/InDetConditions/PixelConditionsData/PixelConditionsData/PixelModuleData.h @@ -142,7 +142,8 @@ class PixelModuleData { // Lorentz angle correction void setBarrelLorentzAngleCorr(std::vector<double> BarrelLorentzAngleCorr); void setEndcapLorentzAngleCorr(std::vector<double> EndcapLorentzAngleCorr); - double getLorentzAngleCorr(const int bec, const int layer) const; + double getLorentzAngleCorr(int bec, int layer) const; + double getLorentzAngleCorr2() const; // DCS parameters void setDefaultBiasVoltage(float biasVoltage); diff --git a/InnerDetector/InDetConditions/PixelConditionsData/src/PixelModuleData.cxx b/InnerDetector/InDetConditions/PixelConditionsData/src/PixelModuleData.cxx index 29e9b2dd140e61b0bdb94882174f753c4aeeb8e1..faa8fe7245eb9be60a574c0700dd5fbcb7b78f8a 100644 --- a/InnerDetector/InDetConditions/PixelConditionsData/src/PixelModuleData.cxx +++ b/InnerDetector/InDetConditions/PixelConditionsData/src/PixelModuleData.cxx @@ -283,13 +283,18 @@ float PixelModuleData::getDefaultQ2TotC() const { return m_paramC; } // Lorentz angle correction void PixelModuleData::setBarrelLorentzAngleCorr(std::vector<double> BarrelLorentzAngleCorr) { m_BarrelLorentzAngleCorr = BarrelLorentzAngleCorr; } void PixelModuleData::setEndcapLorentzAngleCorr(std::vector<double> EndcapLorentzAngleCorr) { m_EndcapLorentzAngleCorr = EndcapLorentzAngleCorr; } -double PixelModuleData::getLorentzAngleCorr(const int bec, const int layer) const { +double PixelModuleData::getLorentzAngleCorr(int bec, int layer) const { double LAcorr = 1.0; if (std::abs(bec)==0 && layer<(int)m_BarrelLorentzAngleCorr.size()) { LAcorr=m_BarrelLorentzAngleCorr.at(layer); } if (std::abs(bec)==2 && layer<(int)m_EndcapLorentzAngleCorr.size()) { LAcorr=m_EndcapLorentzAngleCorr.at(layer); } return LAcorr; } +double PixelModuleData::getLorentzAngleCorr2() const { + double LAcorr = 1.0; + return LAcorr; +} + // DCS parameters void PixelModuleData::setDefaultBiasVoltage(float biasVoltage) { m_biasVoltage=biasVoltage; } float PixelModuleData::getDefaultBiasVoltage() const { return m_biasVoltage; } diff --git a/InnerDetector/InDetConditions/SiLorentzAngleTool/src/PixelSiLorentzAngleCondAlg.cxx b/InnerDetector/InDetConditions/SiLorentzAngleTool/src/PixelSiLorentzAngleCondAlg.cxx index e3fd0bba45b25ade8889a769fa240a45fee052a6..d16b21a68abda1d1648c1fe3edc0c34427d45f5c 100644 --- a/InnerDetector/InDetConditions/SiLorentzAngleTool/src/PixelSiLorentzAngleCondAlg.cxx +++ b/InnerDetector/InDetConditions/SiLorentzAngleTool/src/PixelSiLorentzAngleCondAlg.cxx @@ -145,6 +145,8 @@ PixelSiLorentzAngleCondAlg::execute(const EventContext& ctx) const { int barrel_ec = pixelId->barrel_ec(element->identify()); int layerIndex = pixelId->layer_disk(element->identify()); + int aaa = moduleData->getFEI4OverflowToT(barrel_ec,layerIndex); + double LACorr2 = moduleData->getLorentzAngleCorr2(barrel_ec,layerIndex); double LACorr = moduleData->getLorentzAngleCorr(barrel_ec,layerIndex); if (not p_design){