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

HBHE: add M2-chi2 into the HBHErecHit data formats #15916

Merged
merged 4 commits into from Sep 27, 2016

Conversation

mariadalfonso
Copy link
Contributor

Added the Method 2-chisquare into the HBHERecHit data formats.
@igv4321

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @mariadalfonso for CMSSW_8_1_X.

It involves the following packages:

DataFormats/HcalRecHit
RecoLocalCalo/HcalRecAlgos

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

cms-bot commands are list here #13028

@slava77
Copy link
Contributor

slava77 commented Sep 20, 2016

@mariadalfonso
is it really just for M2?
The name is generic enough to support other use cases.
Is there an equivalent of chi2 in M3?

@slava77
Copy link
Contributor

slava77 commented Sep 20, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 20, 2016

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

@cmsbuild
Copy link
Contributor

@mariadalfonso
Copy link
Contributor Author

@slava77
M3 doens't have a meaningful value @jaylawhorn

@cmsbuild
Copy link
Contributor

@slava77
Copy link
Contributor

slava77 commented Sep 22, 2016

@mariadalfonso @igv4321
is chi2 enough for your needs?
Should ndf be added as well? (we have one and 3-pulse fit versions active now; unclear if 2-pulse can show up in the future or some shape parameter be added. So, e.g. chi2~10 may be on a high side for 1-pulse, but kind of OK for 3-pulse).

Also, as more values are added, to the event content, the cost on disk increases, even if it is with a shorter life time.
Consider packing this as some e.g int/255, which should be well compressable, compared to typically worse than 2 compression factor for floats.

@@ -22,6 +22,9 @@ class HBHERecHit : public CaloRecHit {
/// get the id
inline HcalDetId id() const { return HcalDetId(detid()); }

inline void setChiSquared(const float chi2) {chiSquared_ = chi2;}
inline float getChiSquared() const {return chiSquared_;}
Copy link
Contributor

Choose a reason for hiding this comment

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

please change to chiSquared to preserve the style with all other access methods, which do not have a "get" prefix.

Copy link
Contributor

Choose a reason for hiding this comment

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

... better yet, use chi2 in the method names to match what we have in track and ecal hit classes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@slava77 renamed getChiSquared into chi2

@cmsbuild
Copy link
Contributor

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

@mariadalfonso
Copy link
Contributor Author

@slava77 The ndof is not needed at the moment.
There is a flag in the rechit to distinguish 1 and 3-pulse fits, and in the future we can store the reduced chi2.

@slava77
Copy link
Contributor

slava77 commented Sep 24, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 24, 2016

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

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

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

@slava77 comparisons for the following workflows were not done due to missing matrix map:

  • 10424.0_TTbar_13+TTbar_13TeV_TuneCUETP8M1_2017NewFPix_GenSimFull+DigiFull_2017NewFPix+RecoFull_2017NewFPix+HARVESTFull_2017NewFPix
  • 10624.0_TTbar_13+TTbar_13TeV_TuneCUETP8M1_2017HCALdev_GenSimFull+DigiFull_2017HCALdev+RecoFull_2017HCALdev+HARVESTFull_2017HCALdev
  • 10824.0_TTbar_13+TTbar_13TeV_TuneCUETP8M1_2017AllNew_GenSimFull+DigiFull_2017AllNew+RecoFull_2017AllNew+HARVESTFull_2017AllNew

@slava77
Copy link
Contributor

slava77 commented Sep 26, 2016

chi2 values are now filled
(color code is inverted wrt the legend: red is baseline and black is with this PR)

Looking at data
2016 single photon wf 136.731
all_origvssign771_runsingleph2016bwf136p731c_log10hbherechitssorted_hbhereco__rereco_obj_obj_chi2
about 15% have a default value (999).
MC with pileup has a similar distribution.

2017 HCALdev wf has a larger fraction at default value
all_origvssign771_ttbar13tev2017hcaldevwf10624p0c_log10hbherechitssorted_hbhereco__reco_obj_obj_chi2

@slava77
Copy link
Contributor

slava77 commented Sep 26, 2016

+1

for #15916 be23969

  • code change is in line with the PR description and the follow up review
  • jenkins tests pass and comparisons show no differences (the new variable is not monitored)
  • local tests with added monitoring of chi2 shows that the variable is now filled

@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

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit f948787 into cms-sw:CMSSW_8_1_X Sep 27, 2016
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