Skip to content
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 2017 HF TP dual-anode readout fixes. #16464

Merged
merged 2 commits into from Nov 16, 2016

Conversation

matz-e
Copy link
Contributor

@matz-e matz-e commented Nov 4, 2016

Fix the energy calculation to match firmware. Duplicate valid energies when one part of the readout fails, and shift over the lower energy bits properly.

The previous iteration used slides as a base for the code, using
divisions for adjusting for the dual-anode read-out.  Use
multiplications instead, as in the uHTR spec and add an omitted shift
for the right LSB.
@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 4, 2016

A new Pull Request was created by @matz-e (Matthias Wolf) for CMSSW_8_1_X.

It involves the following packages:

SimCalorimetry/HcalTrigPrimAlgos

@cmsbuild, @rekovic, @mulhearn, @davidlange6 can you please review it and eventually sign? Thanks.
@slava77, @smuzaffar you are the release manager for this.

cms-bot commands are listed here #13028

@kpedro88
Copy link
Contributor

kpedro88 commented Nov 4, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 4, 2016

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/16206/console

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 4, 2016

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 4, 2016

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 4, 2016


auto sum = long_fiber_val + short_fiber_val;
// If both towers are valid, we cut the sum in half
if (long_fiber_count > 0 and short_fiber_count > 0)
sum *= 0.5;
if (long_fiber_count == 0 or short_fiber_count == 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @matz-e - this logic is very cryptic for me - is there a more concise (and less-codey) summary we can refer to?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should update the comment (was focused on logic) to read

// If one of the fibers is invalid, use the value of the other one instead by doubling the sum

Other than that, I can also link to the uHTR spec, which is a bit more verbose and covers a lot more.

Would that be better?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidlange6 is that comment acceptable?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes - thanks @matz-e @kpedro88

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidlange6 Just updated this with a fairly (IMO) verbose comment on the treatment of the energy calculations.

@rekovic
Copy link
Contributor

rekovic commented Nov 15, 2016

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_8_1_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @smuzaffar

@cmsbuild
Copy link
Contributor

Pull request #16464 was updated. @cmsbuild, @rekovic, @mulhearn, @davidlange6 can you please check and sign again.

@davidlange6 davidlange6 merged commit b35cfcf into cms-sw:CMSSW_8_1_X Nov 16, 2016
@matz-e matz-e deleted the hcal-tp-2017-divisions branch September 15, 2017 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants