Skip to content

Commit

Permalink
Limit precision of top tagger values
Browse files Browse the repository at this point in the history
  • Loading branch information
pastika committed Apr 16, 2019
1 parent ca8dfa1 commit eed5331
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions TopTagger/python/TopTaggerProducer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,27 @@ def endJob(self):
def beginFile(self, inputFile, outputFile, inputTree, wrappedOutputTree):
self.isFirstEventOfFile = True
self.out = wrappedOutputTree
self.out.branch("ResolvedTop%s_pt"%self.suffixResolved, "F", lenVar="nResolvedTop%s"%self.suffixResolved)
self.out.branch("ResolvedTop%s_eta"%self.suffixResolved, "F", lenVar="nResolvedTop%s"%self.suffixResolved)
self.out.branch("ResolvedTop%s_phi"%self.suffixResolved, "F", lenVar="nResolvedTop%s"%self.suffixResolved)
self.out.branch("ResolvedTop%s_mass"%self.suffixResolved, "F", lenVar="nResolvedTop%s"%self.suffixResolved)
self.out.branch("ResolvedTop%s_discriminator"%self.suffixResolved, "F", lenVar="nResolvedTop%s"%self.suffixResolved)
self.out.branch("ResolvedTop%s_pt"%self.suffixResolved, "F", lenVar="nResolvedTop%s"%self.suffixResolved, limitedPrecision=12)
self.out.branch("ResolvedTop%s_eta"%self.suffixResolved, "F", lenVar="nResolvedTop%s"%self.suffixResolved, limitedPrecision=12)
self.out.branch("ResolvedTop%s_phi"%self.suffixResolved, "F", lenVar="nResolvedTop%s"%self.suffixResolved, limitedPrecision=12)
self.out.branch("ResolvedTop%s_mass"%self.suffixResolved, "F", lenVar="nResolvedTop%s"%self.suffixResolved, limitedPrecision=12)
self.out.branch("ResolvedTop%s_discriminator"%self.suffixResolved, "F", lenVar="nResolvedTop%s"%self.suffixResolved, limitedPrecision=12)
self.out.branch("ResolvedTop%s_j1Idx"%self.suffixResolved, "I", lenVar="nResolvedTop%s"%self.suffixResolved)
self.out.branch("ResolvedTop%s_j2Idx"%self.suffixResolved, "I", lenVar="nResolvedTop%s"%self.suffixResolved)
self.out.branch("ResolvedTop%s_j3Idx"%self.suffixResolved, "I", lenVar="nResolvedTop%s"%self.suffixResolved)

if self.saveAK8:
self.out.branch("MergedTop%s_pt"%self.suffix, "F", lenVar="nMergedTop%s"%self.suffix)
self.out.branch("MergedTop%s_eta"%self.suffix, "F", lenVar="nMergedTop%s"%self.suffix)
self.out.branch("MergedTop%s_phi"%self.suffix, "F", lenVar="nMergedTop%s"%self.suffix)
self.out.branch("MergedTop%s_mass"%self.suffix, "F", lenVar="nMergedTop%s"%self.suffix)
self.out.branch("MergedTop%s_discriminator"%self.suffix, "F", lenVar="nMergedTop%s"%self.suffix)
self.out.branch("MergedTop%s_pt"%self.suffix, "F", lenVar="nMergedTop%s"%self.suffix, limitedPrecision=12)
self.out.branch("MergedTop%s_eta"%self.suffix, "F", lenVar="nMergedTop%s"%self.suffix, limitedPrecision=12)
self.out.branch("MergedTop%s_phi"%self.suffix, "F", lenVar="nMergedTop%s"%self.suffix, limitedPrecision=12)
self.out.branch("MergedTop%s_mass"%self.suffix, "F", lenVar="nMergedTop%s"%self.suffix, limitedPrecision=12)
self.out.branch("MergedTop%s_discriminator"%self.suffix, "F", lenVar="nMergedTop%s"%self.suffix, limitedPrecision=12)

self.out.branch("MergedW%s_pt"%self.suffix, "F", lenVar="nMergedW%s"%self.suffix)
self.out.branch("MergedW%s_eta"%self.suffix, "F", lenVar="nMergedW%s"%self.suffix)
self.out.branch("MergedW%s_phi"%self.suffix, "F", lenVar="nMergedW%s"%self.suffix)
self.out.branch("MergedW%s_mass"%self.suffix, "F", lenVar="nMergedW%s"%self.suffix)
self.out.branch("MergedW%s_discriminator"%self.suffix, "F", lenVar="nMergedW%s"%self.suffix)
self.out.branch("MergedW%s_pt"%self.suffix, "F", lenVar="nMergedW%s"%self.suffix, limitedPrecision=12)
self.out.branch("MergedW%s_eta"%self.suffix, "F", lenVar="nMergedW%s"%self.suffix, limitedPrecision=12)
self.out.branch("MergedW%s_phi"%self.suffix, "F", lenVar="nMergedW%s"%self.suffix, limitedPrecision=12)
self.out.branch("MergedW%s_mass"%self.suffix, "F", lenVar="nMergedW%s"%self.suffix, limitedPrecision=12)
self.out.branch("MergedW%s_discriminator"%self.suffix, "F", lenVar="nMergedW%s"%self.suffix, limitedPrecision=12)

def endFile(self, inputFile, outputFile, inputTree, wrappedOutputTree):
pass
Expand Down

0 comments on commit eed5331

Please sign in to comment.