Skip to content

Commit 2782c36

Browse files
committed
Set eta separation between barrel and endcap as a named constant
1 parent c0df265 commit 2782c36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Validation/Geometry/src/MaterialBudgetMtdHistos.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ void MaterialBudgetMtdHistos::fillEndTrack() {
263263
hmgr->getHistoProf1(220)->Fill(theData->getPhi(), theData->getSensitiveMB());
264264
hmgr->getHistoProf2(230)->Fill(theData->getEta(), theData->getPhi(), theData->getSensitiveMB());
265265

266-
if (std::abs(theData->getEta()) > 1.55) {
266+
static constexpr double bfTransitionEta = 1.55;
267+
268+
if (std::abs(theData->getEta()) > bfTransitionEta) {
267269
hmgr->getHisto2(10234)->Fill(theData->getEta(), theData->getSensitiveMB());
268270
double norma = std::tanh(std::abs(theData->getEta()));
269271
hmgr->getHisto2(20234)->Fill(theData->getEta(), theData->getSensitiveMB() * norma);

0 commit comments

Comments
 (0)