Skip to content

Commit f790fd5

Browse files
committed
move the energy deposition wrt. centre of response
1 parent 56bfdbe commit f790fd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Detectors/Upgrades/ITS3/simulation/src/Digitizer.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ void Digitizer::init()
9090
} else {
9191
LOGP(fatal, "ResponseFunction '{}' not implemented!", func);
9292
}
93-
mSimRespIBShift = mSimRespIB->getDepthMax() - constants::silicon::thickness / 2.f;
93+
mSimRespIB->computeCentreFromData();
94+
mSimRespIBShift = mSimRespIB->getDepthMax() - constants::silicon::thickness / 2.f - mSimRespIB->getRespCentreDep();
9495
mSimRespOBShift = mSimRespOB->getDepthMax() - SegmentationOB::SensorLayerThickness / 2.f;
9596
}
9697

0 commit comments

Comments
 (0)