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

Set the SOI for HCAL TP samples when packing. #19804

Merged
merged 2 commits into from Jul 25, 2017

Conversation

matz-e
Copy link
Contributor

@matz-e matz-e commented Jul 18, 2017

See title. The information is accessed on a per-sample basis when unpacking, but the raw samples in MC don't have the corresponding bit set. Set it when packing.

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

EventFilter/HcalRawToDigi

@perrotta, @cmsbuild, @slava77, @davidlange6 can you please review it and eventually sign? Thanks.
@Martin-Grunewald this is something you requested to watch as well.
@davidlange6 you are the release manager for this.

cms-bot commands are listed here

auto raw = qiedf->sample(iTS).raw();
// Add SOI information
if (iTS == qiedf->presamples())
raw |= 0x4000;
Copy link
Contributor

Choose a reason for hiding this comment

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

better to define a mask with this value as a const in the TPHeaderSpec namespace

@slava77
Copy link
Contributor

slava77 commented Jul 18, 2017

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 18, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/21592/console Started: 2017/07/18 23:41

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-19804/21592/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 1242 differences found in the comparisons
  • DQMHistoTests: Total files compared: 23
  • DQMHistoTests: Total histograms compared: 2281784
  • DQMHistoTests: Total failures: 24604
  • DQMHistoTests: Total nulls: 475
  • DQMHistoTests: Total successes: 2256539
  • DQMHistoTests: Total skipped: 166
  • DQMHistoTests: Total Missing objects: 0
  • Checked 93 log files, 14 edm output root files, 23 DQM output files

@cmsbuild
Copy link
Contributor

Pull request #19804 was updated. @perrotta, @cmsbuild, @slava77, @davidlange6 can you please check and sign again.

@slava77
Copy link
Contributor

slava77 commented Jul 20, 2017

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 20, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/21639/console Started: 2017/07/20 16:10

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-19804/21639/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 23
  • DQMHistoTests: Total histograms compared: 2346597
  • DQMHistoTests: Total failures: 15195
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2331236
  • DQMHistoTests: Total skipped: 166
  • DQMHistoTests: Total Missing objects: 0
  • Checked 93 log files, 14 edm output root files, 23 DQM output files

@slava77
Copy link
Contributor

slava77 commented Jul 21, 2017

Looking at jenkins comparisons, there are some changes in 2017 MC related to the TP DQM
https://cmssdt.cern.ch/SDT/jenkins-artifacts/baseLineComparisons/CMSSW_9_3_X_2017-07-20-1100+19804/21464/10024.0_TTbar_13+TTbar_13TeV_TuneCUETP8M1_2017_GenSimFull+DigiFull_2017+RecoFull_2017+ALCAFull_2017+HARVESTFull_2017/L1T_L1TStage2CaloLayer1_HCalDetail.html

Some are somewhat clearly expected, e.g. as
wf10024_l1tstage2calo_l1_hf_2ndbit

but then many more are not obviously going in the right direction, e.g.
wf10024_l1tstage2calo_l1_rawetdiff

@matz-e please clarify what is happening and if the diff is expected.
Thank you.

@christopheralanwest
Copy link
Contributor

@slava77 The SOI bit indicates the sample that generates the L1A. If this bit is not set properly, the default value for the number of presamples (0) is used, and the values of the TP displayed in these DQM plots are those of early OOT pileup. In an MC dataset with no pileup simulation, these TP energies will be negligible. For example, in this plot the maximum "Raw ET" before this PR corresponds to a TP energy of around 1 GeV:

l1t__l1tstage2calolayer1_hcaldetail_hcaltprawetsent

Also, the HF plot you reference is an input to the HF minimum bias trigger: before this PR, TTbar TPs are insufficiently energetic to fire the minimum bias trigger.

The L1T DQM plots are simply not filled correctly in general. This is most easily seen in the corresponding 2D plots, where the energy of the TP received by Layer-1 is always zero:

hcaltprawetcorrelationhbhe

In data, these plots compare the TPs sent by the HCAL uHTRs with the same TPs recorded by Layer-1, in order to monitor link errors. I'm not sure if the MC bothers to make an exact duplicate of the HCAL TP in the SOI or simply uses the HCAL TPs directly (in which case the "Layer 1 received" TPs may not even exist). Perhaps @nsmith- can comment?

@nsmith-
Copy link
Contributor

nsmith- commented Jul 24, 2017

Hi @christopheralanwest,
In MC, the "Layer 1 received" does not exist, since

  1. We have not yet made a packer for CaloLayer1
  2. If we had a packer, it would just pack the exact same HCAL TPs as you do in hcalDigis (restricted to SOI, I suppose)

So these histograms typically get filled with just the negative of the TP Et spectrum, which isn't necessarily useless I guess.

To answer your specific question, though, all plots are filled with SOI_compressedEt()

@slava77
Copy link
Contributor

slava77 commented Jul 24, 2017 via email

@slava77
Copy link
Contributor

slava77 commented Jul 24, 2017

+1

for #19804 51d7216

  • packer update for HCAL, as described; changes are expected only in trigger quantities
  • jenkins tests pass and comparisons with baseline show changes in expected places

@cmsbuild
Copy link
Contributor

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

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 673fc62 into cms-sw:master Jul 25, 2017
@matz-e matz-e deleted the fix-hcal-tp-packing-soi branch September 15, 2017 15:00
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

7 participants