Skip to content

Commit

Permalink
Merge pull request #43732 from fabiocos/fc-fixTimeCalib20240117
Browse files Browse the repository at this point in the history
MTD reconstruction: fix BTL time for missing correction in BTL geometry v3 (scenario I17)
  • Loading branch information
cmsbuild authored Jan 22, 2024
2 parents 9ca8b50 + 43c8e00 commit f09c4d3
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions RecoLocalFastTime/FTLCommonAlgos/src/MTDTimeCalib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,12 @@ float MTDTimeCalib::getTimeCalib(const MTDDetId& id) const {
const RectangularMTDTopology& topo = static_cast<const RectangularMTDTopology&>(topoproxy.specificTopology());

BTLDetId::CrysLayout btlL = MTDTopologyMode::crysLayoutFromTopoMode(topo_->getMTDTopologyMode());
if (btlL == BTLDetId::CrysLayout::tile) {
time_calib -= btlLightCollTime_; //simply remove the offset introduced at sim level
} else if (btlL == BTLDetId::CrysLayout::bar || btlL == BTLDetId::CrysLayout::barphiflat ||
btlL == BTLDetId::CrysLayout::v2) {
if (static_cast<int>(btlL) >= static_cast<int>(BTLDetId::CrysLayout::barphiflat)) {
//for bars in phi
time_calib -= 0.5 * topo.pitch().first * btlLightCollSlope_; //time offset for bar time is L/2v
} else if (btlL == BTLDetId::CrysLayout::barzflat) {
//for bars in z
time_calib -= 0.5 * topo.pitch().second * btlLightCollSlope_; //time offset for bar time is L/2v
} else {
throw cms::Exception("MTDTimeCalib")
<< "BTL topology mode " << static_cast<int>(btlL) << " unsupported! Aborting";
}
} else if (id.mtdSubDetector() == MTDDetId::ETL) {
time_calib += etlTimeOffset_;
Expand Down

0 comments on commit f09c4d3

Please sign in to comment.