Skip to content

Commit

Permalink
Added missing lazyEval
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr15Jones committed Apr 17, 2024
1 parent c731c6e commit ce8acfc
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 128 deletions.
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 ce8acfc

Please sign in to comment.