Skip to content
Snippets Groups Projects
Commit d3d30fbf authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'master-ATLASSIM-4936' into 'master'

Fix bugs of SCT_SurfaceChargesGenerator. (ATLASSIM-4936)

See merge request atlas/athena!38210
parents d910566c acc69d89
No related branches found
No related tags found
No related merge requests found
......@@ -465,9 +465,9 @@ void SCT_SurfaceChargesGenerator::processSiHit(const SiDetectorElement* element,
const double stripPitch{0.080}; // mm
double dstrip{y1 / stripPitch}; // mm
if (dstrip > 0.) {
dstrip -= static_cast<double>(static_cast<int>(dstrip));
dstrip = dstrip - std::trunc(dstrip);
} 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
......
......@@ -120,7 +120,7 @@ class SCT_SurfaceChargesGenerator : public extends<AthAlgTool, ISCT_SurfaceCharg
FloatProperty m_tsubtract{this, "SubtractTime", -999., "subtract drift time from mid gap"};
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_vbias{this, "BiasVoltage", 150., "bias voltage, default 150V"};
BooleanProperty m_doTrapping{this, "doTrapping", false, "Flag to set Charge Trapping"};
......
......@@ -34,7 +34,7 @@ ciRefFileMap = {
'overlay-d1592-22.0' : 'v1',
'overlay-bkg-21.0' : 'v1',
'overlay-bkg-22.0' : 'v4',
'dataoverlay-d1590-22.0' : 'v2',
'dataoverlay-d1590-22.0' : 'v3',
'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