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

Update HCAL Packing/Unpacking #7950

Conversation

agude
Copy link

@agude agude commented Feb 25, 2015

Several related HCAL uHTR Packing/Unpacking changes are included in this request:

  • Add support for data from QIE10s
  • Add skeletal support for QIE11s
  • Fix an old Packing bug where Trigger Primitives were not packed properly
  • Add a version number to HcalTrigTowerDetId in preparation for upcoming Trigger Primitive changes

CC: @jmmans, @abdoulline

Alexander Gude and others added 17 commits February 25, 2015 10:28
We can now just check "m_flavor == 2" directly instead of checking part
of the bits to see if it is 2 or 3.
This method works for flavor 2 and 4; all other flavors do not define an
OK bool and so it returns 'false'.
After the header, ++ should only move 16 bits (1 row) as that is where
the data starts, but after that it should move 32 bits (2 rows) as that
is how each data entry is formatted.
The L1RCTs only work with the old segmentation (version 0 for <= 2012),
so if the version is anything else, we continue.
We use the tens digit in the depth field from the text file to indicate
version. >= 10 is version 1, < 10 is version 0.
Previously it was hardcoded to be 0, which meant the unpacker treated
everything as HO. It is now set by HcalHTRData::packHeaderTrailer.

Also fix a Channel ID bug in HcalHTRData.cc
These bugs prevented HCAL Trigger Towers from properly being converted
to RAW.
Previously processTrig always returned 0 because the "size" variable was set to
0, then not actually used to hold the size of the vector, and finally
returned. Now size is properly set to the size of the vector.
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @agude (Alexander Gude) for CMSSW_7_5_X.

Update HCAL Packing/Unpacking

It involves the following packages:

CalibFormats/HcalObjects
DataFormats/HcalDetId
DataFormats/HcalDigi
EventFilter/HcalRawToDigi
L1Trigger/RegionalCaloTrigger

@civanch, @diguida, @cvuosalo, @mdhildreth, @cmsbuild, @nclopezo, @cerminar, @slava77, @mmusich, @mulhearn can you please review it and eventually sign? Thanks.
@Martin-Grunewald this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.
@nclopezo, @ktf you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@Martin-Grunewald
Copy link
Contributor

Hi @agude
In think at least the hcal TP packing bug should be backported to 74X.

@agude
Copy link
Author

agude commented Feb 25, 2015

Hi @Martin-Grunewald,

It should be easy to pull that out and apply it. It is just the following commits, which I don't believe depend on the rest:

There was some discussion via email about asking for some of the other commits to be backported as well, but that's outside my pay grade; its something for @jmmans and @abdoulline.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_5_X IBs unless changes or unless it breaks tests. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @nclopezo, @ktf, @smuzaffar

@davidlange6
Copy link
Contributor

+1

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.

10 participants