CMS 3D CMS Logo

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

Public Member Functions

def __init__
 
def beginLoop
 
def declareHandles
 
def makeAlphaT
 
def process
 

Static Public Attributes

tuple alphaTCalc = AlphaT()
 

Detailed Description

Definition at line 27 of file AlphaTAnalyzer.py.

Constructor & Destructor Documentation

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

Definition at line 28 of file AlphaTAnalyzer.py.

28 
29  def __init__(self, cfg_ana, cfg_comp, looperName ):
30  super(AlphaTAnalyzer,self).__init__(cfg_ana,cfg_comp,looperName)

Member Function Documentation

def AlphaTAnalyzer.AlphaTAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 36 of file AlphaTAnalyzer.py.

36 
37  def beginLoop(self,setup):
38  super(AlphaTAnalyzer,self).beginLoop(setup)
39  self.counters.addCounter('pairs')
40  count = self.counters.counter('pairs')
41  count.register('all events')
42 
def AlphaTAnalyzer.AlphaTAnalyzer.declareHandles (   self)

Definition at line 31 of file AlphaTAnalyzer.py.

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

31 
32  def declareHandles(self):
33  super(AlphaTAnalyzer, self).declareHandles()
34  #genJets
35  self.handles['genJets'] = AutoHandle( 'slimmedGenJets','std::vector<reco::GenJet>')
def AlphaTAnalyzer.AlphaTAnalyzer.makeAlphaT (   self,
  jets 
)

Definition at line 44 of file AlphaTAnalyzer.py.

Referenced by AlphaTAnalyzer.AlphaTAnalyzer.process().

44 
45  def makeAlphaT(self, jets):
46 
47  if len(jets) == 0:
48  return 0.
49 
50  px = ROOT.std.vector('double')()
51  py = ROOT.std.vector('double')()
52  et = ROOT.std.vector('double')()
53 
#Make alphaT from lead 10 jets
def AlphaTAnalyzer.AlphaTAnalyzer.process (   self,
  event 
)

Definition at line 62 of file AlphaTAnalyzer.py.

References AlphaTAnalyzer.AlphaTAnalyzer.makeAlphaT(), and core.Analyzer.Analyzer.readCollections().

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), ConfigBuilder.ConfigBuilder.prepare_HLT(), ConfigBuilder.ConfigBuilder.prepare_LHE(), ConfigBuilder.ConfigBuilder.prepare_PATFILTER(), ConfigBuilder.ConfigBuilder.prepare_VALIDATION(), ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder.renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

62 
63  def process(self, event):
64  self.readCollections( event.input )
65 
66  event.alphaT = self.makeAlphaT(event.cleanJets)
67 
68  #Do the same with gen jets for MC
69  if self.cfg_comp.isMC:
70  event.genAlphaT = self.makeAlphaT(event.cleanGenJets)
71 
72  return True

Member Data Documentation

tuple AlphaTAnalyzer.AlphaTAnalyzer.alphaTCalc = AlphaT()
static

Definition at line 59 of file AlphaTAnalyzer.py.