-
Notifications
You must be signed in to change notification settings - Fork 33
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
Codes to run hadronic tau JRA and TF. #10
base: master
Are you sure you want to change the base?
Conversation
I've reviewed much of the code and I do have line-by-line comments. However, first I want to make a couple of general comments and requests.
|
<!-- | ||
<flags EDM_PLUGIN="1"/> | ||
--> |
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.
Why the change from EDM_PLUGIN to lib? Will this effect the EDAnalyzer in this package?
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 changed it to make the src/ compiled.
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.
Okay, I have no problem with this. As long as the code compiles and makes a .so in the CMSSW_BASE/lib folder I'm happy.
I've left comments and questions in the code. |
On 4/21/16 4:56 PM, Alexx Perloff wrote:
Cheers, |
#include "JetMETAnalysis/JetUtilities/interface/crystalBall.h" | ||
|
||
#include "TMath.h" | ||
|
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.
Move the TMath header to the crystalBall header.
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.
Why? I'm using math functions 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.
As a style I like to keep all of the headers in the header file of the class that uses them. It also prevents multiple linking issues.
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 prefer keep it where I'm using it to do not go back and forth to check
o set the header.
More over this is my code, so I prefer keep my style.
Le 27/04/2016 03:24, Alexx Perloff a écrit :
In JetUtilities/src/crystalBall.cc
#10 (comment):@@ -0,0 +1,227 @@
+#include "JetMETAnalysis/JetUtilities/interface/crystalBall.h"
+
+#include "TMath.h"
+As a style I like to keep all of the headers in the header file of the
class that uses them. It also prevents multiple linking issues.—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/cms-jet/JetMETAnalysis/pull/10/files/abbd2ce4a9b0377684ddf51b4382b801e0a66c05#r61187055
#define CRYSTALBALL_HH | ||
|
||
double crystalBall(double *xx, double *pp); // global fit using the function above | ||
double crystalBall_1(double *xx, double *pp); // global fit using the function above |
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.
What is the difference between crystalBall and crystalBall_1?
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.
crystalBall uses a polynome of order 7 (for tauES) and crystalBall_1 a polynome of order 1 (for tau transfer function).
Can the functions in crystalBallRes be moved to crystalBall? Why use two headers/namespaces when one would do? I'm just asking here as, again, I don't know all of the intricacies of these codes. Also, since this is not a standard crystal ball function can we change the name to crystalBallTau or something like that. It's misleading to think that anyone could come along and use your crystal ball code. It's tailor made to your needs, right? As far as I can tell it's not generic. For instance, your crystalBall function can't simply replace the double-sided crystal ball function defined in jet_response_fitter_x.cc, right? Am I misreading things? Okay, I agree that some of the legacy code had a weird structure that should have been changed. That being said, can we use tab=4 spaces? It's just a preference thing for me and means that any changes we both make won't trigger this white space issue. Two spaces just seems a little smushed to me. This is good. I think we are converging. |
Le 22/04/2016 17:25, Alexx Perloff a écrit :
For me I prefer the 2 spaces because when code line is too long, we
|
|
||
//if(verbose>0) cout << "Attempting to fit " << histname << " ... " << endl; |
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.
Is this comment necessary or can it be removed?
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.
Can be removed.
Le 27/04/2016 02:18, Alexx Perloff a écrit :
In JetAnalyzers/bin/jet_response_fitter_x.cc
#10 (comment):
//if(verbose>0) cout << "Attempting to fit " << histname << " ... " << endl;
Is this comment necessary or can it be removed?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/cms-jet/JetMETAnalysis/pull/10/files/6c09ed51401443d614ab03918245241673c2ddb0#r61180964
No description provided.