Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add3jets higgs 709patch3 #28

Merged
merged 7 commits into from
Dec 16, 2014
Merged

Conversation

degrutto
Copy link

add 3 jets Higgs case, and some variables to the
vhbb jet collection, which are usefull for b-jets energy regression

#!/bin/env python
from math import *
import ROOT
#from CMGTools.TTHAnalysis.signedSip import *
from PhysicsTools.Heppy.analyzers.objects.autophobj import *
#from CMGTools.TTHAnalysis.analyzers.ntupleObjects import *
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

questo lo puoi togliere?

@degrutto
Copy link
Author

I found it is necessary to define
event.H3cj = ROOT.reco.Particle.LorentzVector(0.,0.,0.,0.)
event.hJets3cj = ROOT.reco.Particle.LorentzVector(0.,0.,0.,0.)
event.aJets3cj = ROOT.reco.Particle.LorentzVector(0.,0.,0.,0.)

and not as an empty list

@arizzi
Copy link
Owner

arizzi commented Dec 15, 2014

?? il primo si ma gli altri due non e' possibile... sono liste perche' inizializzarle a un oggetto di qualche tipo??

@degrutto
Copy link
Author

@Andrea, adesso dovrebbe essere chiaro, e abbiamo tutte le variabile per la regression a la run1, se sei d'accordo fail il merge di questa pull e magari si fa una piccola produzione con i sample a disposizione

tracks = filter ( lambda x : x.charge()!=0, self.daughterPtrVector() )
if len(tracks)>0:
leadtrack = max( tracks , key = lambda x : x.pt() )
return max(0., leadtrack.pt() )
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

questo max(0, ... ) resta inutile cmq se vuoi mergio cosi

arizzi added a commit that referenced this pull request Dec 16, 2014
@arizzi arizzi merged commit 8a6197d into arizzi:vhbbHeppy3 Dec 16, 2014
arizzi pushed a commit that referenced this pull request Jul 8, 2015
…Pointers

Change pointer array to an array of unique_ptrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants