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 440 of file MT2Analyzer.py.

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

Variable Documentation

MT2Analyzer.allGenJets

do same things for GEN

Definition at line 215 of file MT2Analyzer.py.

MT2Analyzer.class_object

Definition at line 466 of file MT2Analyzer.py.

MT2Analyzer.collectionPostFix

Definition at line 468 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 303 of file MT2Analyzer.py.

MT2Analyzer.csLeptons_mt

Definition at line 399 of file MT2Analyzer.py.

MT2Analyzer.davismt2

Definition at line 23 of file MT2Analyzer.py.

MT2Analyzer.doOnlyDefault

Definition at line 469 of file MT2Analyzer.py.

MT2Analyzer.gamma_mt2

if len(gamma_objects40j10lc)>=2:

Definition at line 275 of file MT2Analyzer.py.

MT2Analyzer.gamma_mt2_Xj

Definition at line 291 of file MT2Analyzer.py.

MT2Analyzer.gamma_objects40j10lc

Definition at line 268 of file MT2Analyzer.py.

MT2Analyzer.gamma_objects40jc

===> full gamma_MT2

Definition at line 266 of file MT2Analyzer.py.

MT2Analyzer.gamma_objectsXj10lc

Definition at line 285 of file MT2Analyzer.py.

MT2Analyzer.gamma_objectsXjc

Definition at line 283 of file MT2Analyzer.py.

MT2Analyzer.key

Definition at line 236 of file MT2Analyzer.py.

MT2Analyzer.metCollection

Definition at line 467 of file MT2Analyzer.py.

MT2Analyzer.mt2
MT2Analyzer.mt2_gen

Definition at line 220 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 203 of file MT2Analyzer.py.

MT2Analyzer.mt2_Xj

Definition at line 255 of file MT2Analyzer.py.

MT2Analyzer.mt2_Xj_gen

Definition at line 223 of file MT2Analyzer.py.

MT2Analyzer.mt2_Xj_had

Definition at line 207 of file MT2Analyzer.py.

MT2Analyzer.mt2bb

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

Definition at line 411 of file MT2Analyzer.py.

MT2Analyzer.mt2bb_Xj

Definition at line 412 of file MT2Analyzer.py.

MT2Analyzer.mt2lep

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

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

Definition at line 435 of file MT2Analyzer.py.

MT2Analyzer.mt2wSNT

Definition at line 26 of file MT2Analyzer.py.

MT2Analyzer.objects10lc

===> full MT2 (jets + leptons)

Definition at line 231 of file MT2Analyzer.py.

MT2Analyzer.objects40j10lc

Definition at line 235 of file MT2Analyzer.py.

MT2Analyzer.objects40jc_Gen

Definition at line 216 of file MT2Analyzer.py.

MT2Analyzer.objects40jcCSV

Definition at line 416 of file MT2Analyzer.py.

MT2Analyzer.objectsXj10lc

Definition at line 238 of file MT2Analyzer.py.

MT2Analyzer.objectsXjc_Gen

Definition at line 217 of file MT2Analyzer.py.

MT2Analyzer.objectsXjcCSV

Definition at line 419 of file MT2Analyzer.py.

MT2Analyzer.reverse

Definition at line 236 of file MT2Analyzer.py.

MT2Analyzer.rl_mt2

Definition at line 360 of file MT2Analyzer.py.

MT2Analyzer.rl_mt2_Xj

Definition at line 372 of file MT2Analyzer.py.

MT2Analyzer.zll_mt2

Definition at line 307 of file MT2Analyzer.py.

MT2Analyzer.zll_mt2_Xj

Definition at line 319 of file MT2Analyzer.py.

MT2Analyzer.zllmt_mt2

Definition at line 387 of file MT2Analyzer.py.

MT2Analyzer.zllmt_mt2_Xj

Definition at line 405 of file MT2Analyzer.py.