CMS 3D CMS Logo

Classes | Functions | Variables
MT2Analyzer Namespace Reference

Classes

class  MT2Analyzer
 

Functions

def process (self, event)
 

Variables

 allGenJets
 do same things for GEN More...
 
 class_object
 
 collectionPostFix
 
 csLeptons
 ===> zll_MT2 More...
 
 csLeptons_mt
 
 davismt2
 
 doOnlyDefault
 
 gamma_mt2
 if len(gamma_objects40j10lc)>=2: More...
 
 gamma_mt2_Xj
 
 gamma_objects40j10lc
 
 gamma_objects40jc
 ===> full gamma_MT2 More...
 
 gamma_objectsXj10lc
 
 gamma_objectsXjc
 
 key
 
 metCollection
 
 mt2
 
 mt2_gen
 
 mt2_had
 ===> hadronic MT2 (as used in the SUS-13-019) get hemispheres (seed 2: max inv mass, association method: default 3 = minimal lund distance) More...
 
 mt2_Xj
 
 mt2_Xj_gen
 
 mt2_Xj_had
 
 mt2bb
 do the mt2 with one or two b jets (medium CSV) More...
 
 mt2bb_Xj
 
 mt2lep
 print 'MT2bb(1b)',event.mt2bb More...
 
 mt2wSNT
 
 objects10lc
 ===> full MT2 (jets + leptons) More...
 
 objects40j10lc
 
 objects40jc_Gen
 
 objects40jcCSV
 
 objectsXj10lc
 
 objectsXjc_Gen
 
 objectsXjcCSV
 
 reverse
 
 rl_mt2
 
 rl_mt2_Xj
 
 zll_mt2
 
 zll_mt2_Xj
 
 zllmt_mt2
 
 zllmt_mt2_Xj
 

Function Documentation

def MT2Analyzer.process (   self,
  event 
)

Definition at line 439 of file MT2Analyzer.py.

439  def process(self, event):
440  self.readCollections( event.input )
441 
442  event.mt2bb=-999
443  event.mt2bb_Xj=-999
444  event.mt2lept=-999
445 
446  event.multPseudoJet1_had=0
447  event.multPseudoJet2_had=0
448 
449  event.multPseudoJet1_Xj_had=0
450  event.multPseudoJet2_Xj_had=0
451 
452  ###
453 
454  self.makeMT2(event)
455 
456 # print 'variables computed: MT=',event.mtw,'MT2=',event.mt2,'MT2W=',event.mt2w
457 # print 'pseudoJet1 px=',event.pseudoJet1.px(),' py=',event.pseudoJet1.py(),' pz=',event.pseudoJet1.pz()
458 # print 'pseudoJet2 px=',event.pseudoJet2.px(),' py=',event.pseudoJet2.py(),' pz=',event.pseudoJet2.pz()
459 
460  return True
461 
462 
463 
464 setattr(MT2Analyzer,"defaultConfig", cfg.Analyzer(
def process(self, event)
Definition: MT2Analyzer.py:439

Variable Documentation

MT2Analyzer.allGenJets

do same things for GEN

Definition at line 214 of file MT2Analyzer.py.

MT2Analyzer.class_object

Definition at line 465 of file MT2Analyzer.py.

MT2Analyzer.collectionPostFix

Definition at line 467 of file MT2Analyzer.py.

MT2Analyzer.csLeptons

===> zll_MT2

===> zllmt_MT2

setattr(event, "mt2"+self.cfg_ana.collectionPostFix+"_zllmt", -999) setattr(event, "pseudoJet1"+self.cfg_ana.collectionPostFix+"_zllmt", ROOT.reco.Particle.LorentzVector( 0, 0, 0, 0 )) setattr(event, "pseudoJet2"+self.cfg_ana.collectionPostFix+"_zllmt", ROOT.reco.Particle.LorentzVector( 0, 0, 0, 0 ))

if hasattr(event, 'zllmt_met'):

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

if len(csLeptons)==2 and len(objects40jc)>=2:

    self.zllmt_mt2 = self.getMT2Hemi(event,objects40jc,event.zllmt_met,self.cfg_ana.collectionPostFix,"_zllmt")
    setattr(event, "mt2"+self.cfg_ana.collectionPostFix+"_Xj_zllmt", -999)
    setattr(event, "pseudoJet1"+self.cfg_ana.collectionPostFix+"_Xj_zllmt", ROOT.reco.Particle.LorentzVector( 0, 0, 0, 0 ))
    setattr(event, "pseudoJet2"+self.cfg_ana.collectionPostFix+"_Xj_zllmt", ROOT.reco.Particle.LorentzVector( 0, 0, 0, 0 ))

    if hasattr(event, 'zllmt_met'):
csLeptons = [ l for l in event.selectedLeptons if l.pt() > 10 and abs(l.eta()) < 2.5 ]

if len(csLeptons)==2 and len(objectsXjc)>=2:

    self.zllmt_mt2_Xj = self.getMT2Hemi(event,objectsXjc,event.zllmt_met,self.cfg_ana.collectionPostFix,"_Xj_zllmt") 

===> rl_MT2

Definition at line 302 of file MT2Analyzer.py.

MT2Analyzer.csLeptons_mt

Definition at line 398 of file MT2Analyzer.py.

MT2Analyzer.davismt2

Definition at line 22 of file MT2Analyzer.py.

MT2Analyzer.doOnlyDefault

Definition at line 468 of file MT2Analyzer.py.

MT2Analyzer.gamma_mt2

if len(gamma_objects40j10lc)>=2:

Definition at line 274 of file MT2Analyzer.py.

MT2Analyzer.gamma_mt2_Xj

Definition at line 290 of file MT2Analyzer.py.

MT2Analyzer.gamma_objects40j10lc

Definition at line 267 of file MT2Analyzer.py.

MT2Analyzer.gamma_objects40jc

===> full gamma_MT2

Definition at line 265 of file MT2Analyzer.py.

MT2Analyzer.gamma_objectsXj10lc

Definition at line 284 of file MT2Analyzer.py.

MT2Analyzer.gamma_objectsXjc

Definition at line 282 of file MT2Analyzer.py.

MT2Analyzer.key

Definition at line 235 of file MT2Analyzer.py.

MT2Analyzer.metCollection
MT2Analyzer.mt2
MT2Analyzer.mt2_gen

Definition at line 219 of file MT2Analyzer.py.

MT2Analyzer.mt2_had

===> hadronic MT2 (as used in the SUS-13-019) get hemispheres (seed 2: max inv mass, association method: default 3 = minimal lund distance)

Definition at line 202 of file MT2Analyzer.py.

MT2Analyzer.mt2_Xj

Definition at line 254 of file MT2Analyzer.py.

MT2Analyzer.mt2_Xj_gen

Definition at line 222 of file MT2Analyzer.py.

MT2Analyzer.mt2_Xj_had

Definition at line 206 of file MT2Analyzer.py.

MT2Analyzer.mt2bb

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

Definition at line 410 of file MT2Analyzer.py.

MT2Analyzer.mt2bb_Xj

Definition at line 411 of file MT2Analyzer.py.

MT2Analyzer.mt2lep

print 'MT2bb(1b)',event.mt2bb

===> leptonic MT2 (as used in the SUS-13-025 )

Definition at line 434 of file MT2Analyzer.py.

MT2Analyzer.mt2wSNT

Definition at line 25 of file MT2Analyzer.py.

MT2Analyzer.objects10lc

===> full MT2 (jets + leptons)

Definition at line 230 of file MT2Analyzer.py.

MT2Analyzer.objects40j10lc

Definition at line 234 of file MT2Analyzer.py.

MT2Analyzer.objects40jc_Gen

Definition at line 215 of file MT2Analyzer.py.

MT2Analyzer.objects40jcCSV

Definition at line 415 of file MT2Analyzer.py.

MT2Analyzer.objectsXj10lc

Definition at line 237 of file MT2Analyzer.py.

MT2Analyzer.objectsXjc_Gen

Definition at line 216 of file MT2Analyzer.py.

MT2Analyzer.objectsXjcCSV

Definition at line 418 of file MT2Analyzer.py.

MT2Analyzer.reverse

Definition at line 235 of file MT2Analyzer.py.

MT2Analyzer.rl_mt2

Definition at line 359 of file MT2Analyzer.py.

MT2Analyzer.rl_mt2_Xj

Definition at line 371 of file MT2Analyzer.py.

MT2Analyzer.zll_mt2

Definition at line 306 of file MT2Analyzer.py.

MT2Analyzer.zll_mt2_Xj

Definition at line 318 of file MT2Analyzer.py.

MT2Analyzer.zllmt_mt2

Definition at line 386 of file MT2Analyzer.py.

MT2Analyzer.zllmt_mt2_Xj

Definition at line 404 of file MT2Analyzer.py.