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
mHistManager.add("hHGCellTimeEnergy", "hCellTime", o2HistType::kTH2F, {{300, -30, 30}, cellEnergyBins}); // Cell time vs energy for high gain cells (low energies)
208
+
mHistManager.add("hLGCellTimeEnergy", "hCellTime", o2HistType::kTH2F, {{300, -30, 30}, cellEnergyBins}); // Cell time vs energy for low gain cells (high energies)
199
209
// NOTE: Reversed column and row because it's more natural for presentation.
// Also smear the time to account for the broader time resolution in data than in MC
826
839
timesmear = normalgaus(rdgen) * (1.6 + 9.5 * TMath::Exp(-3. * cellEnergy)); // Parameters extracted from LHC22o (pp), but also usable for other periods
827
840
} else { // data
828
-
if (cellEnergy < 0.3) // Cells with tless than 300 MeV cannot be the leading cell in the cluster, so their time does not require precise calibration
841
+
if (cellEnergy < 0.3) {// Cells with tless than 300 MeV cannot be the leading cell in the cluster, so their time does not require precise calibration
829
842
timeshift = 0.;
830
-
elseif (cellEnergy < 4.) // Low energy regime
831
-
timeshift = 0.57284 + 0.82194 * TMath::Log(1.30651 * cellEnergy); // Parameters extracted from LHC22o (pp), but also usable for other periods
832
-
else// High energy regime
833
-
timeshift = -0.05858 + 1.50593 * TMath::Log(0.97591 * cellEnergy); // Parameters extracted from LHC22o (pp), but also usable for other periods
843
+
} elseif (cellType == o2::emcal::ChannelType_t::HIGH_GAIN) { // High gain cells -> Low energies
844
+
if (cellEnergy < 4.) // Low energy regime
845
+
timeshift = 0.57284 + 0.82194 * TMath::Log(1.30651 * cellEnergy); // Parameters extracted from LHC22o (pp), but also usable for other periods
846
+
else// Medium energy regime
847
+
timeshift = -0.05858 + 1.50593 * TMath::Log(0.97591 * cellEnergy); // Parameters extracted from LHC22o (pp), but also usable for other periods
848
+
} elseif (cellType == o2::emcal::ChannelType_t::LOW_GAIN) { // Low gain cells -> High energies
849
+
timeshift = -0.05858 + 1.50593 * TMath::Log(0.97591 * cellEnergy); // Parameters extracted from LHC22o (pp), will be updated by LHC24aj input
850
+
}
834
851
}
852
+
835
853
LOG(debug) << "Shift the cell time by " << timeshift << " + " << timesmear << " ns";
0 commit comments