Skip to content

Commit

Permalink
python print migration RecoBTag/PerformanceDB
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlange6 committed Jul 25, 2018
1 parent e30b382 commit 4ac9f0c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions RecoBTag/PerformanceDB/test/plotPerformanceDB.py
Expand Up @@ -8,6 +8,7 @@
#
#____________________________________________________________

from __future__ import print_function
import sys
import math
import commands
Expand Down Expand Up @@ -71,17 +72,17 @@ def main():

aeta = etamin = ieta*etabinwidth

print "pt = "+str(apt) + " eta = "+str(aeta)
print("pt = "+str(apt) + " eta = "+str(aeta))
tmpjetpt = jetpt+str(apt)
tmpjeteta = jeteta+str(aeta)

allcmd = executable+ sp +rootFile+ sp +payload+ sp +flavor+ sp +typeSF+ sp +tmpjetpt+ sp +tmpjeteta
print allcmd
print(allcmd)
output = commands.getstatusoutput(allcmd)
print output[1]
print(output[1])

if output[0]!=0:
print " Error retrieving data from file DB."
print(" Error retrieving data from file DB.")

aSF = float( output[1].split()[2] )
aSFerr = float( output[1].split()[4] )
Expand All @@ -95,7 +96,7 @@ def main():
#print output[1]

if output[0]!=0:
print " Error retrieving data from file DB."
print(" Error retrieving data from file DB.")

aEff = float( output[1].split()[2] )
aEfferr = float( output[1].split()[4] )
Expand Down

0 comments on commit 4ac9f0c

Please sign in to comment.