Skip to content

Commit

Permalink
Fix bending formula for retarded units
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Wertz authored and blinkseb committed Feb 14, 2017
1 parent eb3443c commit dbddcf6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
10 changes: 4 additions & 6 deletions plugins/Tools.cc
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,10 @@ void HHAnalyzer::matchOfflineLepton(const HLTProducer& hlt, HH::Dilepton& dilept
}

float HHAnalyzer::getL1TPhi(int charge, const LorentzVector& p) {
/*float pt = p.Pt();
float phi = p.Phi();
float theta = p.Theta();
return phi + charge * (1. / pt) * (10.48 - 5.1412 * theta + 0.02308 * theta * theta);*/
// FIXME
return p.Phi();
float pt = p.Pt();
float theta = 180 / M_PI * p.Theta();
theta = ( theta <= 90 ) ? theta : 180 - theta;
return p.Phi() + M_PI / 180 * charge * (1. / pt) * (10.48 - 5.1412 * theta + 0.02308 * theta * theta);
}

bool HHAnalyzer::sameEndCap(const LorentzVector& p1, const LorentzVector& p2) {
Expand Down
8 changes: 4 additions & 4 deletions test/HHConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@

process = framework.create()

process.framework.treeFlushSize = cms.untracked.uint64(5 * 1024 * 1024)

if runOnData :
if runOnData:
process.source.fileNames = cms.untracked.vstring(
'/store/data/Run2016F/DoubleMuon/MINIAOD/23Sep2016-v1/50000/040EDEBA-0490-E611-A424-008CFA110C68.root'
)
else :
else:
process.framework.treeFlushSize = cms.untracked.uint64(5 * 1024 * 1024)

process.source.fileNames = cms.untracked.vstring(
# Signal
'/store/mc/RunIISummer16MiniAODv2/GluGluToHHTo2B2VTo2L2Nu_node_SM_13TeV-madgraph-v2/MINIAODSIM/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/60000/2E1015E2-71D9-E611-911E-02163E019E19.root'
Expand Down

0 comments on commit dbddcf6

Please sign in to comment.