CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
RazorAnalyzer.RazorAnalyzer Class Reference
Inheritance diagram for RazorAnalyzer.RazorAnalyzer:

Public Member Functions

def __init__
 
def beginLoop
 
def computeMR
 
def computeMTR
 
def computeR
 
def declareHandles
 
def makeRAZOR
 

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 
25  def __init__(self, cfg_ana, cfg_comp, looperName ):
26  super(RazorAnalyzer,self).__init__(cfg_ana,cfg_comp,looperName)

Member Function Documentation

def RazorAnalyzer.RazorAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 32 of file RazorAnalyzer.py.

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

Definition at line 38 of file RazorAnalyzer.py.

References mathSSE.sqrt().

Referenced by RazorAnalyzer.RazorAnalyzer.computeR().

38 
39  def computeMR(self, ja, jb):
40  A = ja.P();
41  B = jb.P();
42  az = ja.Pz();
43  bz = jb.Pz();
44  mr = sqrt((A+B)*(A+B)-(az+bz)*(az+bz));
45  return mr
T sqrt(T t)
Definition: SSEVec.h:18
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 
47  def computeMTR(self, ja, jb, met):
48 
49  mtr = met.Vect().Mag()*(ja.Pt()+jb.Pt()) - met.Vect().Dot(ja.Vect()+jb.Vect());
50  mtr = sqrt(mtr/2.);
51  return mtr;
T sqrt(T t)
Definition: SSEVec.h:18
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 
53  def computeR(self, ja, jb, met):
54 
55  mr = self.computeMR(ja,jb)
56  mtr = self.computeMTR(ja,jb,met)
57  r = 999999. if mr <= 0 else mtr/mr
58  return r
59 
def RazorAnalyzer.RazorAnalyzer.declareHandles (   self)

Definition at line 27 of file RazorAnalyzer.py.

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

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

Definition at line 60 of file RazorAnalyzer.py.

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