CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
RazorAnalyzer Namespace Reference

Classes

class  RazorAnalyzer
 

Functions

def process
 

Variables

list allGenJets = [ x for x in self.handles['genJets'].product() ]
 
tuple bJet1 = ROOT.TLorentzVector(event.bjetsMedium[0].px(), event.bjetsMedium[0].py(), event.bjetsMedium[0].pz(), event.bjetsMedium[0].energy())
 do the razor with one or two b jets (medium CSV) More...
 
tuple bJet2 = ROOT.TLorentzVector(event.bjetsMedium[1].px(), event.bjetsMedium[1].py(), event.bjetsMedium[1].pz(), event.bjetsMedium[1].energy())
 
tuple Evec = ROOT.std.vector(float)
 
tuple genmetp4 = ROOT.TLorentzVector()
 do same things for GEN More...
 
tuple grouping = ROOT.std.vector(int)
 
tuple lep1 = ROOT.TLorentzVector(event.selectedLeptons[0].px(), event.selectedLeptons[0].py(), event.selectedLeptons[0].pz(), event.selectedLeptons[0].energy())
 print 'MRbb(1b)',event.mr_bb More...
 
tuple lep2 = ROOT.TLorentzVector(event.selectedLeptons[1].px(), event.selectedLeptons[1].py(), event.selectedLeptons[1].pz(), event.selectedLeptons[1].energy())
 
tuple megajet = Megajet(pxvec, pyvec, pzvec, Evec, 1)
 get megajets (association method: default 1 = minimum sum of the invariant masses of the two megajets) More...
 
tuple metp4 = ROOT.TLorentzVector()
 ===> hadronic RAZOR More...
 
list objects10lc = [ l for l in event.selectedLeptons if l.pt() > 10 and abs(l.eta())<2.5 ]
 ===> full RAZOR (jets + leptons) More...
 
 objects40j10lc = objects40jc+objects10lc
 
list objects40jc = [ j for j in event.cleanJets if j.pt() > 40 and abs(j.eta())<2.5 ]
 
list objects40jc_Gen = [ j for j in allGenJets if j.pt() > 40 and abs(j.eta())<2.5 ]
 
list objects40jcCSV = [ j for j in event.cleanJets if j.pt() > 40 and abs(j.eta())<2.5 and j.p4()!=event.bjetsMedium[0].p4() ]
 
tuple pseudoJet1_gen = ROOT.TLorentzVector( pseudoJet1px, pseudoJet1py, pseudoJet1pz, pseudoJet1energy)
 
tuple pseudoJet1energy = megajet.getAxis1()
 
 pseudoJet1pt2 = pseudoJet1px*pseudoJet1px+pseudoJet1py*pseudoJet1py
 
tuple pseudoJet1px = megajet.getAxis1()
 
tuple pseudoJet1py = megajet.getAxis1()
 
tuple pseudoJet1pz = megajet.getAxis1()
 
tuple pseudoJet2_gen = ROOT.TLorentzVector( pseudoJet2px, pseudoJet2py, pseudoJet2pz, pseudoJet2energy)
 
tuple pseudoJet2energy = megajet.getAxis2()
 
 pseudoJet2pt2 = pseudoJet2px*pseudoJet2px+pseudoJet2py*pseudoJet2py
 
tuple pseudoJet2px = megajet.getAxis2()
 
tuple pseudoJet2py = megajet.getAxis2()
 
tuple pseudoJet2pz = megajet.getAxis2()
 
tuple pxvec = ROOT.std.vector(float)
 get megajets (association method: default 1 = minimum sum of the invariant masses of the two megajets) More...
 
tuple pyvec = ROOT.std.vector(float)
 
tuple pzvec = ROOT.std.vector(float)
 

Function Documentation

def RazorAnalyzer.process (   self,
  event 
)

Definition at line 272 of file RazorAnalyzer.py.

References LaserDQM_cfg.process.

273  def process(self, event):
274  self.readCollections( event.input )
275 
276  event.mr_gen=-999
277  event.mtr_gen=-999
278  event.r_gen=-999
279 
280  event.mr_bb=-999
281  event.mtr_bb=-999
282  event.r_bb=-999
283 
284  event.mr_lept=-999
285  event.mtr_lept=-999
286  event.r_lept=-999
287 
288  event.mr_had=-999
289  event.mtr_had=-999
290  event.r_had=-999
291 
292  event.mr=-999
293  event.mtr=-999
294  event.r=-999
295 
296  event.pseudoJet1 = ROOT.TLorentzVector( 0, 0, 0, 0 )
297  event.pseudoJet2 = ROOT.TLorentzVector( 0, 0, 0, 0 )
298 
299  ###
300 
301  self.makeRAZOR(event)
302 
303 # print 'variables computed: MR=',event.mr_had,'R=',event.r,'MTR=',event.mtr
304 # print 'pseudoJet1 px=',event.pseudoJet1.px(),' py=',event.pseudoJet1.py(),' pz=',event.pseudoJet1.pz()
305 # print 'pseudoJet2 px=',event.pseudoJet2.px(),' py=',event.pseudoJet2.py(),' pz=',event.pseudoJet2.pz()
306 
307  return True
tuple process
Definition: LaserDQM_cfg.py:3

Variable Documentation

list RazorAnalyzer.allGenJets = [ x for x in self.handles['genJets'].product() ]

Definition at line 125 of file RazorAnalyzer.py.

tuple RazorAnalyzer.bJet1 = ROOT.TLorentzVector(event.bjetsMedium[0].px(), event.bjetsMedium[0].py(), event.bjetsMedium[0].pz(), event.bjetsMedium[0].energy())

do the razor with one or two b jets (medium CSV)

Definition at line 234 of file RazorAnalyzer.py.

Referenced by PseudoTopProducer.produce().

tuple RazorAnalyzer.bJet2 = ROOT.TLorentzVector(event.bjetsMedium[1].px(), event.bjetsMedium[1].py(), event.bjetsMedium[1].pz(), event.bjetsMedium[1].energy())

Definition at line 235 of file RazorAnalyzer.py.

Referenced by PseudoTopProducer.produce().

tuple RazorAnalyzer.Evec = ROOT.std.vector(float)

Definition at line 83 of file RazorAnalyzer.py.

tuple RazorAnalyzer.genmetp4 = ROOT.TLorentzVector()

do same things for GEN

Definition at line 122 of file RazorAnalyzer.py.

tuple RazorAnalyzer.grouping = ROOT.std.vector(int)

Definition at line 84 of file RazorAnalyzer.py.

tuple RazorAnalyzer.lep1 = ROOT.TLorentzVector(event.selectedLeptons[0].px(), event.selectedLeptons[0].py(), event.selectedLeptons[0].pz(), event.selectedLeptons[0].energy())
tuple RazorAnalyzer.lep2 = ROOT.TLorentzVector(event.selectedLeptons[1].px(), event.selectedLeptons[1].py(), event.selectedLeptons[1].pz(), event.selectedLeptons[1].energy())
tuple RazorAnalyzer.megajet = Megajet(pxvec, pyvec, pzvec, Evec, 1)

get megajets (association method: default 1 = minimum sum of the invariant masses of the two megajets)

Definition at line 92 of file RazorAnalyzer.py.

tuple RazorAnalyzer.metp4 = ROOT.TLorentzVector()

===> hadronic RAZOR

Definition at line 71 of file RazorAnalyzer.py.

list RazorAnalyzer.objects10lc = [ l for l in event.selectedLeptons if l.pt() > 10 and abs(l.eta())<2.5 ]

===> full RAZOR (jets + leptons)

Definition at line 174 of file RazorAnalyzer.py.

RazorAnalyzer.objects40j10lc = objects40jc+objects10lc

Definition at line 178 of file RazorAnalyzer.py.

list RazorAnalyzer.objects40jc = [ j for j in event.cleanJets if j.pt() > 40 and abs(j.eta())<2.5 ]

Definition at line 74 of file RazorAnalyzer.py.

list RazorAnalyzer.objects40jc_Gen = [ j for j in allGenJets if j.pt() > 40 and abs(j.eta())<2.5 ]

Definition at line 126 of file RazorAnalyzer.py.

list RazorAnalyzer.objects40jcCSV = [ j for j in event.cleanJets if j.pt() > 40 and abs(j.eta())<2.5 and j.p4()!=event.bjetsMedium[0].p4() ]

Definition at line 244 of file RazorAnalyzer.py.

tuple RazorAnalyzer.pseudoJet1_gen = ROOT.TLorentzVector( pseudoJet1px, pseudoJet1py, pseudoJet1pz, pseudoJet1energy)

Definition at line 158 of file RazorAnalyzer.py.

tuple RazorAnalyzer.pseudoJet1energy = megajet.getAxis1()

Definition at line 97 of file RazorAnalyzer.py.

RazorAnalyzer.pseudoJet1pt2 = pseudoJet1px*pseudoJet1px+pseudoJet1py*pseudoJet1py

Definition at line 104 of file RazorAnalyzer.py.

tuple RazorAnalyzer.pseudoJet1px = megajet.getAxis1()

Definition at line 94 of file RazorAnalyzer.py.

tuple RazorAnalyzer.pseudoJet1py = megajet.getAxis1()

Definition at line 95 of file RazorAnalyzer.py.

tuple RazorAnalyzer.pseudoJet1pz = megajet.getAxis1()

Definition at line 96 of file RazorAnalyzer.py.

tuple RazorAnalyzer.pseudoJet2_gen = ROOT.TLorentzVector( pseudoJet2px, pseudoJet2py, pseudoJet2pz, pseudoJet2energy)

Definition at line 159 of file RazorAnalyzer.py.

tuple RazorAnalyzer.pseudoJet2energy = megajet.getAxis2()

Definition at line 102 of file RazorAnalyzer.py.

RazorAnalyzer.pseudoJet2pt2 = pseudoJet2px*pseudoJet2px+pseudoJet2py*pseudoJet2py

Definition at line 105 of file RazorAnalyzer.py.

tuple RazorAnalyzer.pseudoJet2px = megajet.getAxis2()

Definition at line 99 of file RazorAnalyzer.py.

tuple RazorAnalyzer.pseudoJet2py = megajet.getAxis2()

Definition at line 100 of file RazorAnalyzer.py.

tuple RazorAnalyzer.pseudoJet2pz = megajet.getAxis2()

Definition at line 101 of file RazorAnalyzer.py.

tuple RazorAnalyzer.pxvec = ROOT.std.vector(float)

get megajets (association method: default 1 = minimum sum of the invariant masses of the two megajets)

Definition at line 80 of file RazorAnalyzer.py.

tuple RazorAnalyzer.pyvec = ROOT.std.vector(float)

Definition at line 81 of file RazorAnalyzer.py.

tuple RazorAnalyzer.pzvec = ROOT.std.vector(float)

Definition at line 82 of file RazorAnalyzer.py.