Skip to content

Commit

Permalink
Merge pull request #30 from tresreid/mods
Browse files Browse the repository at this point in the history
Remove prefire for 2016
  • Loading branch information
tresreid authored Feb 7, 2023
2 parents e542eff + 350ec7b commit 464a17b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/ScoutingNanoAOD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2007,7 +2007,7 @@ if(runOffline){
}else{// rho=0;
rho2=0;}

if(isMC){
if(doSignal or (isMC and not era_16)){
//if(doSignal){
PSweights = genEvtInfo->weights();
Handle<double> prefirewgt;
Expand Down
3 changes: 2 additions & 1 deletion test/ScoutingNanoAOD_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,10 @@
#if(runRho):
# process.myTask = cms.Task(process.fixedGridRhoFastjetAllScouting)

if(params.isMC):
if(runSig or (params.isMC and not params.era=="2016")):
#if(runSig):
#if(params.signal):
#print("test1",runSig,params.isMC,params.era,(params.isMC and not params.era=="2016"))
from PhysicsTools.PatUtils.l1PrefiringWeightProducer_cfi import l1PrefiringWeightProducer
process.prefiringweight = l1PrefiringWeightProducer.clone(
ThePhotons = cms.InputTag("hltScoutingEgammaPacker"),
Expand Down

0 comments on commit 464a17b

Please sign in to comment.