Skip to content

Commit

Permalink
removing lepton tthMVA from new ntuples, significantly reduces overhe…
Browse files Browse the repository at this point in the history
…ad of packages needed (dont need PhysicsTools/NanoAOD)
  • Loading branch information
brentstone committed Apr 27, 2020
1 parent c11bf26 commit 308b19c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion TreeFillers/interface/ElectronFiller.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ElectronFiller : public BaseFiller {
spv_float lepAct_o_pt = make_spv_float();
spv_float sc_act_o_pt = make_spv_float();
spv_float sc_dr_act = make_spv_float();
spv_float tthMVA = make_spv_float();
// spv_float tthMVA = make_spv_float();

//ID vars (for cut based)
spv_size16 passMedCutBased = make_spv_size16();
Expand Down
2 changes: 1 addition & 1 deletion TreeFillers/interface/MuonFiller.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MuonFiller : public BaseFiller {
spv_float ptRatio = make_spv_float();
spv_float dRnorm = make_spv_float();
spv_float lepAct_o_pt = make_spv_float();
spv_float tthMVA = make_spv_float();
// spv_float tthMVA = make_spv_float();

spv_int8 simType = make_spv_int8();

Expand Down
4 changes: 2 additions & 2 deletions TreeFillers/src/ElectronFiller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ ElectronFiller::ElectronFiller(const edm::ParameterSet& fullParamSet, const std:
data.addVector(lepAct_o_pt,branchName,"electrons_N","lepAct_o_pt" ,6);
data.addVector(sc_act_o_pt,branchName,"electrons_N","sc_act_o_pt" ,6);
data.addVector(sc_dr_act ,branchName,"electrons_N","sc_dr_act" ,6);
data.addVector(tthMVA ,branchName,"electrons_N","tthMVA" ,8);
// data.addVector(tthMVA ,branchName,"electrons_N","tthMVA" ,8);
if(storeIDVars){
data.addVector(passMedCutBased ,branchName,"electrons_N","passMedCutBased" );
data.addVector(passTightCutBased ,branchName,"electrons_N","passTightCutBased" );
Expand Down Expand Up @@ -158,7 +158,7 @@ void ElectronFiller::setValues(){
sc_act_o_pt ->push_back(sc_rato);
sc_dr_act ->push_back(sc_dr);

tthMVA->push_back(lep->userFloat("electronMVATTH"));
// tthMVA->push_back(lep->userFloat("electronMVATTH"));

if(storeIDVars){
passMedCutBased ->push_back(lep->userInt("cutBasedElectronID-Fall17-94X-V2-medium"));
Expand Down
4 changes: 2 additions & 2 deletions TreeFillers/src/MuonFiller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ MuonFiller::MuonFiller(const edm::ParameterSet& fullParamSet, const std::string&
data.addVector(ptRatio ,branchName,"muons_N","ptRatio" ,6);
data.addVector(dRnorm ,branchName,"muons_N","dRnorm" ,6);
data.addVector(lepAct_o_pt,branchName,"muons_N","lepAct_o_pt",6);
data.addVector(tthMVA ,branchName,"muons_N","tthMVA",8);
// data.addVector(tthMVA ,branchName,"muons_N","tthMVA",8);

if(!isRealData)
data.addVector(simType,branchName,"muons_N","simType");
Expand Down Expand Up @@ -127,7 +127,7 @@ void MuonFiller::setValues(){
dRnorm->push_back(jetActvars[0]);
lepAct_o_pt->push_back(jetActvars[1]);

tthMVA->push_back(lep->userFloat("muonMVATTH"));
// tthMVA->push_back(lep->userFloat("muonMVATTH"));

if(!isRealData){
//https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideMuonIdRun2
Expand Down
8 changes: 4 additions & 4 deletions TreeMaker/run/searchRegionTreeMaker_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@
process.p += process.ecalBadCalibReducedMINIAODFilter
process.treeMaker.METFilterFiller.ecalBadCalibFilterUpdate = True;

from AnalysisTreeMaker.TreeMaker.addLeptonMVA_cff import muonMVA
muonMVA(process, process.treeMaker,type,cms.InputTag('slimmedMuons'))
from AnalysisTreeMaker.TreeMaker.addLeptonMVA_cff import electronMVA
electronMVA(process, process.treeMaker,type,cms.InputTag('slimmedElectrons','','run'))
#from AnalysisTreeMaker.TreeMaker.addLeptonMVA_cff import muonMVA
#muonMVA(process, process.treeMaker,type,cms.InputTag('slimmedMuons'))
#from AnalysisTreeMaker.TreeMaker.addLeptonMVA_cff import electronMVA
#electronMVA(process, process.treeMaker,type,cms.InputTag('slimmedElectrons','','run'))

#==============================================================================================================================#
# Tree maker is the last step
Expand Down

0 comments on commit 308b19c

Please sign in to comment.