CMS 3D CMS Logo

List of all members | Public Member Functions
RazorAnalyzer.RazorAnalyzer Class Reference
Inheritance diagram for RazorAnalyzer.RazorAnalyzer:

Public Member Functions

def __init__ (self, cfg_ana, cfg_comp, looperName)
 
def beginLoop (self, setup)
 
def computeMR (self, ja, jb)
 
def computeMTR (self, ja, jb, met)
 
def computeR (self, ja, jb, met)
 
def declareHandles (self)
 
def makeRAZOR (self, event)
 

Detailed Description

Definition at line 23 of file RazorAnalyzer.py.

Constructor & Destructor Documentation

def RazorAnalyzer.RazorAnalyzer.__init__ (   self,
  cfg_ana,
  cfg_comp,
  looperName 
)

Definition at line 24 of file RazorAnalyzer.py.

24  def __init__(self, cfg_ana, cfg_comp, looperName ):
25  super(RazorAnalyzer,self).__init__(cfg_ana,cfg_comp,looperName)
26 
def __init__(self, cfg_ana, cfg_comp, looperName)

Member Function Documentation

def RazorAnalyzer.RazorAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 32 of file RazorAnalyzer.py.

32  def beginLoop(self, setup):
33  super(RazorAnalyzer,self).beginLoop(setup)
34  self.counters.addCounter('pairs')
35  count = self.counters.counter('pairs')
36  count.register('all events')
37 
def beginLoop(self, setup)
def RazorAnalyzer.RazorAnalyzer.computeMR (   self,
  ja,
  jb 
)

Definition at line 38 of file RazorAnalyzer.py.

References mathSSE.sqrt().

Referenced by RazorAnalyzer.RazorAnalyzer.computeR().

38  def computeMR(self, ja, jb):
39  A = ja.P();
40  B = jb.P();
41  az = ja.Pz();
42  bz = jb.Pz();
43  mr = sqrt((A+B)*(A+B)-(az+bz)*(az+bz));
44  return mr
45 
T sqrt(T t)
Definition: SSEVec.h:18
def computeMR(self, ja, jb)
def RazorAnalyzer.RazorAnalyzer.computeMTR (   self,
  ja,
  jb,
  met 
)

Definition at line 46 of file RazorAnalyzer.py.

References mathSSE.sqrt().

Referenced by RazorAnalyzer.RazorAnalyzer.computeR().

46  def computeMTR(self, ja, jb, met):
47 
48  mtr = met.Vect().Mag()*(ja.Pt()+jb.Pt()) - met.Vect().Dot(ja.Vect()+jb.Vect());
49  mtr = sqrt(mtr/2.);
50  return mtr;
51 
T sqrt(T t)
Definition: SSEVec.h:18
def computeMTR(self, ja, jb, met)
def RazorAnalyzer.RazorAnalyzer.computeR (   self,
  ja,
  jb,
  met 
)

Definition at line 52 of file RazorAnalyzer.py.

References RazorAnalyzer.RazorAnalyzer.computeMR(), and RazorAnalyzer.RazorAnalyzer.computeMTR().

52  def computeR(self, ja, jb, met):
53 
54  mr = self.computeMR(ja,jb)
55  mtr = self.computeMTR(ja,jb,met)
56  r = 999999. if mr <= 0 else mtr/mr
57  return r
58 
59 
def computeMTR(self, ja, jb, met)
def computeMR(self, ja, jb)
def computeR(self, ja, jb, met)
def RazorAnalyzer.RazorAnalyzer.declareHandles (   self)

Definition at line 27 of file RazorAnalyzer.py.

References core.Analyzer.Analyzer.handles, and HTTP.RequestManager.handles.

27  def declareHandles(self):
28  super(RazorAnalyzer, self).declareHandles()
29  #genJets
30  self.handles['genJets'] = AutoHandle( 'slimmedGenJets','std::vector<reco::GenJet>')
31 
def RazorAnalyzer.RazorAnalyzer.makeRAZOR (   self,
  event 
)

Definition at line 60 of file RazorAnalyzer.py.

60  def makeRAZOR(self, event):
61 # print '==> INSIDE THE PRINT MT2'
62 # print 'MET=',event.met.pt()
63 
64  import array
65  import numpy
66 
67 
def makeRAZOR(self, event)