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
HCAL: Bugfix of PFA1' Trigger Primitive algo by switching to integer based math #38753
Changes from 4 commits
213f266
483a8e5
78bac75
7575645
939ecf8
8414339
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -192,20 +192,20 @@ void HcalTrigPrimDigiProducer::beginRun(const edm::Run& run, const edm::EventSet | |||||
if (!overrideDBweightsAndFilterHB_) { | ||||||
if (fixedPointWeight != -1.0) { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixedPointWeight is an integer, please don't ask it being different from a float! Analogously, please modify the initialization with a "-1" integer value in
|
||||||
theAlgo_.setNumFilterPresamplesHBQIE11(1); | ||||||
theAlgo_.setWeightQIE11(aieta, -static_cast<double>(fixedPointWeight) / 256.0); | ||||||
theAlgo_.setWeightQIE11(aieta, (fixedPointWeight)); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
} else { | ||||||
theAlgo_.setNumFilterPresamplesHBQIE11(0); | ||||||
theAlgo_.setWeightQIE11(aieta, 1.0); | ||||||
theAlgo_.setWeightQIE11(aieta, 255); | ||||||
} | ||||||
} | ||||||
} else if (aieta < lastHERing) { | ||||||
if (!overrideDBweightsAndFilterHE_) { | ||||||
if (fixedPointWeight != -1.0) { | ||||||
theAlgo_.setNumFilterPresamplesHEQIE11(1); | ||||||
theAlgo_.setWeightQIE11(aieta, -static_cast<double>(fixedPointWeight) / 256.0); | ||||||
theAlgo_.setWeightQIE11(aieta, (fixedPointWeight)); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
} else { | ||||||
theAlgo_.setNumFilterPresamplesHEQIE11(0); | ||||||
theAlgo_.setWeightQIE11(aieta, 1.0); | ||||||
theAlgo_.setWeightQIE11(aieta, 255); | ||||||
} | ||||||
} | ||||||
} | ||||||
|
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.
This comment is outdated with the new definition of
segmentationFactor
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.
Thanks @perrotta for all of the comments! I have implemented them