Codes to run hadronic tau JRA and TF.#10
Codes to run hadronic tau JRA and TF.#10Calpas wants to merge 13 commits intocms-jet:masterfrom Calpas:master
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"/> | ||
| <!-- | ||
| <flags EDM_PLUGIN="1"/> | ||
| --> |
There was a problem hiding this comment.
Why the change from EDM_PLUGIN to lib? Will this effect the EDAnalyzer in this package?
There was a problem hiding this comment.
I changed it to make the src/ compiled.
There was a problem hiding this comment.
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.
Move the TMath header to the crystalBall header.
There was a problem hiding this comment.
Why? I'm using math functions here.
There was a problem hiding this comment.
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.
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
JetUtilities/interface/crystalBall.h
Outdated
| #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.
What is the difference between crystalBall and crystalBall_1?
There was a problem hiding this comment.
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
|
| continue; | ||
| } | ||
|
|
||
| //if(verbose>0) cout << "Attempting to fit " << histname << " ... " << endl; |
There was a problem hiding this comment.
Is this comment necessary or can it be removed?
There was a problem hiding this comment.
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.