Skip to content

sync changes#2

Open
helfaham wants to merge 2 commits intovischia:masterfrom
helfaham:master
Open

sync changes#2
helfaham wants to merge 2 commits intovischia:masterfrom
helfaham:master

Conversation

@helfaham
Copy link
Copy Markdown

@helfaham helfaham commented Feb 7, 2019

No description provided.

Copy link
Copy Markdown
Owner

@vischia vischia left a comment

Choose a reason for hiding this comment

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

Hi, I am taking the occasion for introducing you to the magic world of PR reviews 💃

You will hate me, but then when you will have to make a PR to code freaks (I mean to semi-professional software engineers) you will be already in control of good commit practices ;)

Comment thread interface/ttHAnalyzer.h

std::vector<ttH::Dilepton> ll;
std::vector<ttH::DileptonMet> llmet;
std::vector<ttH::Dijet> jj;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

It is usually desirable to not have whiteline removed/added without a specific reason.

I am usually personally quite indifferent to that, but there are very picky persons here and there :)

The general idea is that if you don't really need to remove/add a whiteline there, then there is no reason for having it.

Comment thread plugins/ttHAnalyzer.cc
#include <cp3_llbb/Framework/interface/HLTProducer.h>

#include <cmath>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Again, whiteline should be added back

Comment thread plugins/ttHAnalyzer.cc Outdated
#define ttH_GEN_DEBUG (false)
#define TT_GEN_DEBUG (false)


Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

No reason to add a whiteline here

Comment thread plugins/ttHAnalyzer.cc
jj.clear();
//llmetjj.clear();
//llmetjj_cmva.clear();

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

whiteline

Comment thread plugins/ttHAnalyzer.cc
if (allelectrons.p4[ielectron].Pt() > m_subleadingElectronPtCut
&& fabs(allelectrons.p4[ielectron].Eta()) < m_electronEtaCut)
{

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

whiteline

Comment thread plugins/ttHAnalyzer.cc Outdated
leptons.push_back(ele);
//selElectrons.push_back(ele);
}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

whiteline

Comment thread plugins/ttHAnalyzer.cc
int nElectrons=leptons.size();
//std::cout<<" # of ele: "<< nElectrons <<std::endl;
if(nElectrons!=1) return;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

two whitelines

Comment thread plugins/ttHAnalyzer.cc
//int nMuons=selMuons.size();
// if(nMuons!=1) continue;
}//end of loop on muons

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

whiteline

Comment thread test/ttHConfiguration.py
@@ -30,7 +30,7 @@
enable = cms.bool(True),
categories_parameters = cms.PSet(
# Per-category lepton pt cuts
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

why?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Well, I don't understand this commit. I don't remember I touched that intentionally :)

Comment thread test/ttHConfiguration.py
muonEtaCut = cms.untracked.double(2.4),
electrons_loose_wp_name = cms.untracked.string("cutBasedElectronID-Summer16-80X-V1-loose"),
#electrons_loose_wp_name = cms.untracked.string("cutBasedElectronID-Summer16-80X-V1-loose"), #old working point

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

whiteline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants