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
Changing linkage of the "timeshift_ns_hbheho" function to external #14957
Merged
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
RecoLocalCalo/HcalRecAlgos/interface/timeshift_ns_hbheho.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef RecoLocalCalo_HcalRecAlgos_timeshift_ns_hbheho_h_ | ||
#define RecoLocalCalo_HcalRecAlgos_timeshift_ns_hbheho_h_ | ||
|
||
///Timeshift correction for HPDs based on the position of the peak ADC measurement. | ||
/// Allows for an accurate determination of the relative phase of the pulse shape from | ||
/// the HPD. Calculated based on a weighted sum of the -1,0,+1 samples relative to the peak | ||
/// as follows: wpksamp = (0*sample[0] + 1*sample[1] + 2*sample[2]) / (sample[0] + sample[1] + sample[2]) | ||
/// where sample[1] is the maximum ADC sample value. | ||
float timeshift_ns_hbheho(float wpksamp); | ||
|
||
/// Special energy correction for some HB- cells | ||
float hbminus_special_ecorr(int ieta, int iphi, double energy, int runnum); | ||
|
||
#endif // RecoLocalCalo_HcalRecAlgos_timeshift_ns_hbheho_h_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
since there are two methods declared here now, the timeshift_ns_hbheho.h file name is no longer intuitive.
Please rename to something more comprising.
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.
I have no idea what is intuitive for you. It is intuitive enough for me.
If you want it renamed, suggest a name.
On 06/26/2016 11:06 AM, Slava Krutelyov wrote:
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.
a file named timeshift containing energy correction is not intuitive.
CorrectionFunctions.h may be well covering what's here.
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.
Fine. Renamed into HcalCorrectionFunctions.h
On 06/26/2016 12:38 PM, Slava Krutelyov wrote:
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.
thank you.