Skip to content

Commit

Permalink
remove ifdef StiTpcHitErrorMDF4_h
Browse files Browse the repository at this point in the history
  • Loading branch information
fisyak committed Sep 1, 2024
1 parent 46576ea commit bbaaf85
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions StRoot/StiTpc/StiTpcDetectorBuilder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,15 @@ StiDetector* StiTpcDetectorBuilder::constructTpcPadrowDetector(StiLayer stiLayer
pDetector->setShape(pShape);
pDetector->setPlacement(pPlacement);

if (tpc_padrow_id <= nInnerPadrows) {
#ifdef StiTpcHitErrorMDF4_h
pDetector->setHitErrorCalculatorMDF4(StiTpcInnerHitErrorMDF4::instance());
#endif
pDetector->setHitErrorCalculator(StiTpcInnerHitErrorCalculator::instance());
if (row <= nInnerPadrows) {
if (StTpcDb::Alignment2024()) {
pDetector->setHitErrorCalculatorMDF4(StiTpcInnerHitErrorMDF4::instance());
}
pDetector->setHitErrorCalculator(StiTPCHitErrorCalculator::instance());
} else {
#ifdef StiTpcHitErrorMDF4_h
pDetector->setHitErrorCalculatorMDF4(StiTpcOuterHitErrorMDF4::instance());
#endif
if (StTpcDb::Alignment2024()) {
pDetector->setHitErrorCalculatorMDF4(StiTpcOuterHitErrorMDF4::instance());
}
pDetector->setHitErrorCalculator(StiTpcOuterHitErrorCalculator::instance());
}
pDetector->setKey(1,stiLayer.sti_padrow_id);
Expand Down

0 comments on commit bbaaf85

Please sign in to comment.