Skip to content

Commit

Permalink
Fixed missed issues with lazyEval
Browse files Browse the repository at this point in the history
- added where missing
- fixed a merge error
- removed an unnecessary lazyEval
  • Loading branch information
Dr15Jones committed Apr 17, 2024
1 parent c731c6e commit 2af481a
Show file tree
Hide file tree
Showing 6 changed files with 135 additions and 131 deletions.
3 changes: 1 addition & 2 deletions PhysicsTools/NanoAOD/python/boostedTaus_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@

finalBoostedTaus = cms.EDFilter("PATTauRefSelector",
src = cms.InputTag("slimmedTausBoosted"),
cut = cms.string("pt > 40 && tauID('decayModeFindingNewDMs') && (tauID('byVVLooseIsolationMVArun2DBoldDMwLT') || tauID('byVVLooseIsolationMVArun2DBnewDMwLT'))"),
lazyzEval = cms.untracked.bool(True)
cut = cms.string("pt > 40 && tauID('decayModeFindingNewDMs') && (tauID('byVVLooseIsolationMVArun2DBoldDMwLT') || tauID('byVVLooseIsolationMVArun2DBnewDMwLT'))")
)
run2_nanoAOD_106Xv2.toModify(
finalBoostedTaus,
Expand Down
12 changes: 8 additions & 4 deletions PhysicsTools/NanoAOD/python/btvMC_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
vx = Var("vx", "float", doc="x coordinate of vertex position"),
vy = Var("vy", "float", doc="y coordinate of vertex position"),
vz = Var("vz", "float", doc="z coordinate of vertex position"),
genPartIdxMother2 = Var("?numberOfMothers>1?motherRef(1).key():-1", "int", doc="index of the second mother particle, if valid")
genPartIdxMother2 = Var("?numberOfMothers>1?motherRef(1).key():-1", "int", doc="index of the second mother particle, if valid", lazyEval=True)
))
genParticleTablesTask.replace(genParticleTable,btvGenTable)
btvMCTable = cms.EDProducer("BTVMCFlavourTableProducer",name=jetPuppiTable.name,src=cms.InputTag("linkedObjects","jets"),genparticles=cms.InputTag("prunedGenParticles"))
Expand All @@ -41,10 +41,13 @@
variables=cms.PSet(
nBHadrons=Var("jetFlavourInfo().getbHadrons().size()",
int,
doc="number of b-hadrons"),
doc="number of b-hadrons",
lazyEval=True),
nCHadrons=Var("jetFlavourInfo().getcHadrons().size()",
int,
doc="number of c-hadrons"),
doc="number of c-hadrons",
lazyEval=True
),
))

btvSubJetMCExtTable = cms.EDProducer(
Expand All @@ -58,7 +61,8 @@
variables = cms.PSet(
subGenJetAK8Idx = Var("?genJetFwdRef().backRef().isNonnull()?genJetFwdRef().backRef().key():-1",
int,
doc="index of matched gen Sub jet"),
doc="index of matched gen Sub jet",
lazyEval=True),
)
)
genJetsAK8Constituents = cms.EDProducer("GenJetPackedConstituentPtrSelector",
Expand Down
Loading

0 comments on commit 2af481a

Please sign in to comment.