for tags in prod: jet=tags.jet() print "extracted jet: ", jet print "jet pt is ", jet.pt() tagvars=tags.taggingVariables() print "tagvar=", tagvars print "var=", tags.taggingVariables().get(0) # for var in tagvars.getList(22): # print "tag is ", var prod2=None if (labels[i]=="hltBLifetimeL25TagInfosHbb"): print "Getting JetTags " prod2=Handle(products["hltBLifetimeL25BJetTagsHbb"]) event.getByLabel ("hltBLifetimeL25BJetTagsHbb", prod2) print prod2 # if (labels[i]=="hltBLifetimeL3TagInfosHbb"): prod2=event.getByLabel ("hltBLifetimeL3BJetTagsHbb", Handle(products["hltBLifetimeL3BJetTagsHbb"])) if (prod2 != None) : print "Found valid ", prod2 print prod2.value(0) # for k in len(prod2.size()): # print "element ", k # print prod2[k] # print "jet with pt ", prod3.first, " and tag ", prod3.second except: print "Something wrong with %s of type %s"%(labels[i], handles[i]) evt=evt+1