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

HCAL 25ns reco update #9154

Merged
merged 7 commits into from May 30, 2015
Merged

Conversation

kfiekas
Copy link
Contributor

@kfiekas kfiekas commented May 19, 2015

Lowered the Method 2 thresholds, no use of Method0 for low-energy pulses anymore and 100fC switchover from the three-pulse fit to the one-pulse fit

Included a negative energy cut for Method2

Included a RecHit flag depending on whether Method2 fit was performed with a single pulse or three pulses

Made time slew parameters for Method3 configurable

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @kfiekas for CMSSW_7_5_X.

HCAL 25ns reco update

It involves the following packages:

CalibCalorimetry/HcalAlgos
DataFormats/METReco
RecoLocalCalo/HcalRecAlgos
RecoLocalCalo/HcalRecProducers

@nclopezo, @cvuosalo, @cerminar, @cmsbuild, @diguida, @slava77, @mmusich can you please review it and eventually sign? Thanks.
@rappoccio, @ahinzmann, @mmarionncern, @argiro, @jdolen, @nhanvtran, @schoef, @mariadalfonso, @TaiSakuma 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 you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@mmusich
Copy link
Contributor

mmusich commented May 19, 2015

@cmsbuild please test

enum BiasSetting { Slow=0, Medium=1, Fast=2 };

/** \brief Returns the amount (ns) by which a pulse of the given
number of fC will be delayed by the timeslew effect, for the
specified bias setting. */
static double delay(double fC, BiasSetting bias=Medium);
static double delay(double fC, ParaSource source=TestStand, BiasSetting bias=Medium);
static double delay(double fC, ParaSource source=TestStand, BiasSetting bias=Medium, double par0=9.27638, double par1=-2.05585);
Copy link
Contributor

Choose a reason for hiding this comment

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

@kfiekas Sorry, this interface declaration is not acceptable.
Putting magic numbers as default in a static member function is bad code implementation.
You can declare static constexpr double (float is not enough?) precision data members, and use them as default (so you also document the parameters)

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.


if (source==TestStand) {
return HcalTimeSlew::delay(fC, bias);
}
else if (source==Data) {
//from john 2/20 talk: indico.cern.ch/event/375365/contribution/9/material/slides/5.pdf
return 13.98-3.20*log(fC+32)-2.82965+10;
return std::min(6.0,10.2627-2.41281*log(fC));
Copy link
Contributor

Choose a reason for hiding this comment

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

@kfiekas again, please avoid magic numbers (even if documented on Indico!)

if(TMath::Abs(cell.ieta())<16){
fpar0 = fparhb0;
fpar1 = fparhb1;
}else if(TMath::Abs(cell.ieta())==16||TMath::Abs(cell.ieta())==17){
Copy link
Contributor

Choose a reason for hiding this comment

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

@kfiekas what do 16 and 17 mean?

Copy link
Contributor

Choose a reason for hiding this comment

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

@diguida 16 and 17 should be the ieta values for transition region between HB and HE.

Copy link
Contributor

Choose a reason for hiding this comment

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

here and the rest: use std::abs

Copy link
Contributor

Choose a reason for hiding this comment

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

@xmniu thanks for the clarifications.
So, what about an array with the ieta of transition region?

@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 (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @nclopezo, @smuzaffar

@abdoulline
Copy link

May we have it merged? Thank you.

@davidlange6
Copy link
Contributor

would be better if we had the PR for the GT with PF cluster calibration at the same time

On May 27, 2015, at 11:00 AM, abdoulline notifications@github.com wrote:

May we have it merged? Thank you.


Reply to this email directly or view it on GitHub.

@abdoulline
Copy link

Ah... indeed.

On Wed, 27 May 2015, David Lange wrote:

would be better if we had the PR for the GT with PF cluster calibration at the same time

On May 27, 2015, at 11:00 AM, abdoulline notifications@github.com wrote:

May we have it merged? Thank you.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.[AEx02pp9teckzPwA62mcyGJJz3Z2QCTdks5oNYi4gaJpZM4EgTix.gif]

@mmusich
Copy link
Contributor

mmusich commented May 27, 2015

@davidlange6 @abdoulline the GTs with the new version of PFCalibration_v3_mc are out and available in PR #9300

@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.

None yet

9 participants