Skip to content
Snippets Groups Projects

Sweeping !34121 from 21.2 to master. MuonMomentumCorrections: fix MUON_MS bug

Merged Sweeping !34121 from 21.2 to master. MuonMomentumCorrections: fix MUON_MS bug
Merged Atlas Nightlybuild requested to merge cherry-pick-8b7f55fd7c-master into master
2 files
+ 9
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -2789,10 +2789,15 @@ namespace CP {
if(reso_Misaligned > reso_AlignedOnly) {
smear_mod = std::sqrt(std::pow(reso_Misaligned, 2) - std::pow(reso_AlignedOnly, 2));
}
ATH_MSG_VERBOSE("[Direct CB Smearing] smear: " << smear);
ATH_MSG_VERBOSE("[Direct CB Smearing] smear_mod: " << smear_mod);
// Taking 50% difference between perfectly aligned and misaligned samples
newSmear = std::sqrt(std::pow(smear, 2) + var*std::pow(0.5*smear_mod, 2));
if(newSmear<0.) newSmear = 0.;
double newSmearSquared = std::pow(smear, 2) + var*std::pow(0.5*smear_mod, 2);
if(newSmearSquared>0.) newSmear = std::sqrt(newSmearSquared);
else newSmear = 0.;
//if(newSmear<0.) newSmear = 0.;
}
ATH_MSG_VERBOSE("[Direct CB Smearing] newSmear: " << newSmear);
return newSmear;
}
if( DetType == MCAST::DetectorType::MS ) {
Loading