-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated EcalUncalibRecHitTimingCCAlgo to correct for bias at high energies #45386
Conversation
cms-bot internal usage |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45386/40835 Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
type ecal |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45386/40836 |
A new Pull Request was created by @jking79 for master. It involves the following packages:
@cmsbuild, @jfernan2, @mandrenguyen can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
powerSamples += std::pow(samples[i], 2); | ||
powerTemplate += std::pow(interpolated[i], 2); | ||
cc += interpolated[i] * samples[i]; | ||
powerSamples += std::pow(samples[i], 2) * weights[i]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not important now since the weights are either 0 or 1, but would it make more sense to have std::pow(samples[i] * weights[i], 2)
instead when there may be float values for weights?
@@ -14,6 +14,8 @@ | |||
outOfTimeThresholdGain12mEB = 3.0, | |||
outOfTimeThresholdGain61pEB = 3.0, | |||
outOfTimeThresholdGain61mEB = 3.0, | |||
useSlewCorrectionEB = True, | |||
useSlewCorrectionEE = False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these are not needed.
@@ -783,6 +794,8 @@ edm::ParameterSetDescription EcalUncalibRecHitWorkerMultiFit::getAlgoDescription | |||
edm::ParameterDescription<double>("outOfTimeThresholdGain61mEE", 1000, true) and | |||
edm::ParameterDescription<double>("amplitudeThresholdEB", 10, true) and | |||
edm::ParameterDescription<double>("amplitudeThresholdEE", 10, true) and | |||
edm::ParameterDescription<bool>("useSlewCorrectionEB", true, true) and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe change the variable name to crossCorrelationUseSlewCorrectionEB
to distinguish it clearly from the slew rate fixes in the amplitude reconstruction, which are activated with the gainSwitchUseMaxSampleEB
parameter.
…fi.py, Changed name of slew correction paramters in EcalUncalibRecHitWorkerMultiFit.cc
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45386/40838 Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
please test Errors do not seem related to code changes. |
-1 Failed Tests: RelVals
RelVals
|
The same segfault happens also in the tests of #45375 |
please test |
+1 Size: This PR adds an extra 12KB to repository
Comparison SummarySummary:
|
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @sextonkennedy, @antoniovilela, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
Thomas, please use @cms-sw/orp-l2 to mention us. |
+1 |
Added correction for MPGA slew issue to CC time reconstruction algorithm
Added useSlewCorrectionEB and useSlewCorrectionEE parameters to activate slew correction code
Tested and presented in ECAL DPG : https://indico.cern.ch/event/1433850/