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
Conversation
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 @civanch, @nclopezo, @mdhildreth, @cmsbuild, @StoyanStoynev, @slava77, @Degano can you please review it and eventually sign? Thanks. |
+1 |
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; |
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.
@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?
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.
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.
+1 |
#4387 is integrated into 7_2_X |
Forward port of Hcal pre-mixing from PR4325
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.