Skip to content
Snippets Groups Projects
Commit acc69d89 authored by Susumu Oda's avatar Susumu Oda Committed by Adam Edward Barton
Browse files

Fix a bug of SCT_SurfaceChargesGenerator. Use conditions database in...

Fix a bug of SCT_SurfaceChargesGenerator. Use conditions database in SCT_SurfaceChargesGenerator. (ATLASSIM-4936)
parent f5f5fd44
No related branches found
No related tags found
No related merge requests found
...@@ -465,9 +465,9 @@ void SCT_SurfaceChargesGenerator::processSiHit(const SiDetectorElement* element, ...@@ -465,9 +465,9 @@ void SCT_SurfaceChargesGenerator::processSiHit(const SiDetectorElement* element,
const double stripPitch{0.080}; // mm const double stripPitch{0.080}; // mm
double dstrip{y1 / stripPitch}; // mm double dstrip{y1 / stripPitch}; // mm
if (dstrip > 0.) { if (dstrip > 0.) {
dstrip -= static_cast<double>(static_cast<int>(dstrip)); dstrip = dstrip - std::trunc(dstrip);
} else { } else {
dstrip -= static_cast<double>(static_cast<int>(dstrip)) + 1; dstrip = dstrip - std::trunc(dstrip) + 1;
} }
// now y will be x and z will be y ....just to make sure to confuse everebody // now y will be x and z will be y ....just to make sure to confuse everebody
......
...@@ -120,7 +120,7 @@ class SCT_SurfaceChargesGenerator : public extends<AthAlgTool, ISCT_SurfaceCharg ...@@ -120,7 +120,7 @@ class SCT_SurfaceChargesGenerator : public extends<AthAlgTool, ISCT_SurfaceCharg
FloatProperty m_tsubtract{this, "SubtractTime", -999., "subtract drift time from mid gap"}; FloatProperty m_tsubtract{this, "SubtractTime", -999., "subtract drift time from mid gap"};
BooleanProperty m_doDistortions{this, "doDistortions", false, "Simulation of module distortions"}; BooleanProperty m_doDistortions{this, "doDistortions", false, "Simulation of module distortions"};
BooleanProperty m_useSiCondDB{this, "UseSiCondDB", false, "Usage of SiConditions DB values can be disabled to use setable ones"}; BooleanProperty m_useSiCondDB{this, "UseSiCondDB", true, "Usage of SiConditions DB values can be disabled to use setable ones"};
FloatProperty m_vdepl{this, "DepletionVoltage", 70., "depletion voltage, default 70V"}; FloatProperty m_vdepl{this, "DepletionVoltage", 70., "depletion voltage, default 70V"};
FloatProperty m_vbias{this, "BiasVoltage", 150., "bias voltage, default 150V"}; FloatProperty m_vbias{this, "BiasVoltage", 150., "bias voltage, default 150V"};
BooleanProperty m_doTrapping{this, "doTrapping", false, "Flag to set Charge Trapping"}; BooleanProperty m_doTrapping{this, "doTrapping", false, "Flag to set Charge Trapping"};
......
...@@ -34,7 +34,7 @@ ciRefFileMap = { ...@@ -34,7 +34,7 @@ ciRefFileMap = {
'overlay-d1592-22.0' : 'v1', 'overlay-d1592-22.0' : 'v1',
'overlay-bkg-21.0' : 'v1', 'overlay-bkg-21.0' : 'v1',
'overlay-bkg-22.0' : 'v4', 'overlay-bkg-22.0' : 'v4',
'dataoverlay-d1590-22.0' : 'v2', 'dataoverlay-d1590-22.0' : 'v3',
'dataoverlay-hits-22.0' : 'v1', 'dataoverlay-hits-22.0' : 'v1',
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment