You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (static_cast<bool>(hasShaperCorrection) && emcal::intToChannelType(cell.cellType()) == emcal::ChannelType_t::LOW_GAIN) { // Apply shaper correction to LG cells
if (static_cast<bool>(hasShaperCorrection) && emcal::intToChannelType(cell.cellType()) == emcal::ChannelType_t::LOW_GAIN) { // Apply shaper correction to LG cells
timeshift = -std::sqrt(215.f + timeCol * timeCol); // 215 is 14.67ns^2 (time it takes to get the cell at eta = 0)
1591
1594
1592
1595
// Also smear the time to account for the broader time resolution in data than in MC
1593
-
if (cellEnergy < minLeaderEnergy) // Cells with tless than 300 MeV cannot be the leading cell in the cluster, so their time does not require precise calibration
1596
+
if (cellEnergy < minLeaderEnergy) {// Cells with tless than 300 MeV cannot be the leading cell in the cluster, so their time does not require precise calibration
1594
1597
timesmear = 0.; // They will therefore not be smeared and only get their shift
1595
-
elseif (cellType == emcal::ChannelType_t::HIGH_GAIN) // High gain cells -> Low energies
1598
+
} elseif (cellType == emcal::ChannelType_t::HIGH_GAIN) {// High gain cells -> Low energies
1596
1599
timesmear = normalgaus(rdgen) * (1.6 + 9.5 * std::exp(-3. * cellEnergy)); // Parameters extracted from LHC24f3b & LHC22o (pp), but also usable for other periods
1597
-
elseif (cellType == emcal::ChannelType_t::LOW_GAIN) // Low gain cells -> High energies
1600
+
} elseif (cellType == emcal::ChannelType_t::LOW_GAIN) {// Low gain cells -> High energies
1598
1601
timesmear = normalgaus(rdgen) * (5.0); // Parameters extracted from LHC24g4 & LHC24aj (pp), but also usable for other periods
1599
-
1602
+
}
1600
1603
} else { // ---> Data
1601
1604
if (cellEnergy < minLeaderEnergy) { // Cells with tless than 300 MeV cannot be the leading cell in the cluster, so their time does not require precise calibration
1602
1605
timeshift = 0.; // In data they will not be shifted (they are close to 0 anyways)
1603
1606
} elseif (cellType == emcal::ChannelType_t::HIGH_GAIN) { // High gain cells -> Low energies
1604
-
if (cellEnergy < lowEnergyRegime) // Low energy regime
1607
+
if (cellEnergy < lowEnergyRegime) {// Low energy regime
1605
1608
timeshift = 0.8 * std::log(2.7 * cellEnergy); // Parameters extracted from LHC22o (pp), but also usable for other periods
1606
-
else// Medium energy regime
1609
+
} else{// Medium energy regime
1607
1610
timeshift = 1.5 * std::log(0.9 * cellEnergy); // Parameters extracted from LHC22o (pp), but also usable for other periods
1608
-
} elseif (cellType == emcal::ChannelType_t::LOW_GAIN) { // Low gain cells -> High energies
1609
-
if (cellEnergy < highEnergyRegime) // High energy regime
1610
-
timeshift = 1.9 * std::log(0.09 * cellEnergy); // Parameters extracted from LHC24aj (pp), but also usable for other periods
1611
-
else// Very high energy regime
1612
-
timeshift = 1.9; // Parameters extracted from LHC24aj (pp), but also usable for other periods
1611
+
}
1612
+
} elseif (cellType == emcal::ChannelType_t::LOW_GAIN) { // Low gain cells -> High energies
1613
+
if (cellEnergy < highEnergyRegime) { // High energy regime
1614
+
timeshift = 1.9 * std::log(0.09 * cellEnergy); // Parameters extracted from LHC24aj (pp), but also usable for other periods
1615
+
} else { // Very high energy regime
1616
+
timeshift = 1.9; // Parameters extracted from LHC24aj (pp), but also usable for other periods
1617
+
}
1613
1618
}
1614
1619
// Temporary extra shift for bug in time calibraiton of apass4 Pb-Pb 2024, requires pos shift of 2*8.8 ns for low gain cells
0 commit comments