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

Forward port of Hcal pre-mixing from PR4325 #4379

Merged
merged 3 commits into from Jul 4, 2014

Conversation

civanch
Copy link
Contributor

@civanch civanch commented Jun 24, 2014

This is forward port by hand of PR 4325, which cannot be merged due to random number thread safity modifications in 7_1_X.

This PR fix pre-mixing for Hcal.

For some reason its peak up PR 4306, which is being validated and is OK but should not go together.

@civanch civanch changed the title Forwardport4325 Forward port of Hcal pre-mixing from PR4325 Jun 24, 2014
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @civanch (Vladimir Ivantchenko) for CMSSW_7_1_X.

Forward port of Hcal pre-mixing from PR4325

It involves the following packages:

EventFilter/HcalRawToDigi
IOMC/EventVertexGenerators
SimCalorimetry/HcalSimAlgos
SimCalorimetry/HcalSimProducers
SimCalorimetry/HcalTestBeam
SimG4Core/Generators
SimGeneral/DataMixingModule

@civanch, @nclopezo, @mdhildreth, @cmsbuild, @StoyanStoynev, @slava77, @Degano can you please review it and eventually sign? Thanks.
@wmtan 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.
@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.

@civanch
Copy link
Contributor Author

civanch commented Jun 24, 2014

+1

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@StoyanStoynev
Copy link
Contributor

working on it

@@ -248,7 +248,7 @@ void HcalHTRData::pack(unsigned char* daq_lengths, unsigned short* daq_samples,
for (ichan=0; ichan<24; ichan++) {
unsigned short chanid=((ichan%3)+((ichan/3)<<2))<<11;
for (isample=0; isample<daq_lengths[ichan] && isample<MAXIMUM_SAMPLES_PER_CHANNEL; isample++) {
unsigned short basedata=daq_samples[ichan*MAXIMUM_SAMPLES_PER_CHANNEL+isample]&0x3FF;
unsigned short basedata=daq_samples[ichan*MAXIMUM_SAMPLES_PER_CHANNEL+isample]&0x7FF;
Copy link
Contributor

Choose a reason for hiding this comment

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

@civanch , which PR changed this in 70X? Is this supposed to work with any data ("old", "new"), could you please explain the intended change 0x3FF -> 0x7FF?

Copy link
Contributor

Choose a reason for hiding this comment

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

The PR was 4325. Its a bug fix.

On Jun 26, 2014, at 9:26 AM, StoyanStoynev notifications@github.com
wrote:

In EventFilter/HcalRawToDigi/src/HcalHTRData.cc:

@@ -248,7 +248,7 @@ void HcalHTRData::pack(unsigned char* daq_lengths, unsigned short* daq_samples,
for (ichan=0; ichan<24; ichan++) {
unsigned short chanid=((ichan%3)+((ichan/3)<<2))<<11;
for (isample=0; isample<daq_lengths[ichan] && isample<MAXIMUM_SAMPLES_PER_CHANNEL; isample++) {

  •  unsigned short basedata=daq_samples[ichan*MAXIMUM_SAMPLES_PER_CHANNEL+isample]&0x3FF;
    
  •  unsigned short basedata=daq_samples[ichan*MAXIMUM_SAMPLES_PER_CHANNEL+isample]&0x7FF;
    

@civanch , which PR changed this in 70X? Is this supposed to work with any data ("old", "new"), could you please explain the intended change 0x3FF -> 0x7FF?


Reply to this email directly or view it on GitHub.

@StoyanStoynev
Copy link
Contributor

+1
OK, I may as well read the Title first next time before posting...
It is a forward-port of approved bug-fixes and Jenkins comparisons are OK (most of the code changes are in SIM/GEN files). There are many warnings in the unit tests but not related to this PR.
For the record: this PR is very much related to #4325 (70X) and #4387 (72X) but not identical. In fact there is an error produced in the unit tests for 72X (to comment there). No jenkins were run for the 70X PR and it was merged by-passing sign-offs.

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_1_X IBs unless changes (tests are also fine). @nclopezo, @ktf can you please take care of it?

@civanch
Copy link
Contributor Author

civanch commented Jul 2, 2014

#4387 is integrated into 7_2_X

davidlange6 added a commit that referenced this pull request Jul 4, 2014
Forward port of Hcal pre-mixing from PR4325
@davidlange6 davidlange6 merged commit 7b465ca into cms-sw:CMSSW_7_1_X Jul 4, 2014
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

4 participants