Skip to content

Commit

Permalink
Increase of the precision of pt, eta, phi of the GenParticles
Browse files Browse the repository at this point in the history
  • Loading branch information
rbhattacharya04 committed Feb 19, 2024
1 parent 4f61519 commit 1977a60
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions PhysicsTools/NanoAOD/python/custom_muon_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,21 @@ def AddTriggerObjectBits(process):

return process

def IncreaseGenPrecesion(process):

process.genParticleTable.variables.pt = Var("pt", float, precision=16)
process.genParticleTable.variables.eta = Var("eta", float,precision=16)
process.genParticleTable.variables.phi = Var("phi", float,precision=16)

return process

def PrepMuonCustomNanoAOD(process):

process = Custom_Muon_Task(process)
process = AddPFTracks(process)
process = AddVariablesForMuon(process)
process = AddTriggerObjectBits(process)
process = IncreaseGenPrecesion(process)


return process

0 comments on commit 1977a60

Please sign in to comment.