CMS 3D CMS Logo

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

Public Member Functions

def beginLoop
 
def process
 

Detailed Description

Definition at line 4 of file ZJetsTreeAnalyzer.py.

Member Function Documentation

def ZJetsTreeAnalyzer.ZJetsTreeAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 6 of file ZJetsTreeAnalyzer.py.

References ntuple.bookParticle(), tree.Tree.tree, SimpleTreeProducer.SimpleTreeProducer.tree, eventstfile.Events.tree, CSCTFanalyzer.tree, RootChamberWriter.tree(), CSCTFAnalyzer.tree, core.TreeAnalyzerNumpy.TreeAnalyzerNumpy.tree, HcalTestHistoManager.tree, TreeWriterForEcalCorrection.tree, TkOfflineVariables.tree, AlignmentIORootBase.tree, edm::DuplicateTreeSentry.tree(), IsolatedParticlesGeneratedJets.tree, KVFTest.tree, EcalPerEvtMatacqAnalyzer.tree, CheckSecondary.tree, FWFileEntry.tree(), EcalDeadChannelRecoveryNN< DetIdT >::MultiLayerPerceptronContext.tree, edm::RootOutputTree.tree(), TreeSaver.tree, EcalMatacqAnalyzer.tree, PhysicsTools::TreeReader.tree, edm::FileBlock.tree(), python.cmstools.EventTree.tree(), IsoTrackCalibration.tree, KinematicVertex.tree, HcalIsoTrkAnalyzer.tree, IsoTrackCalib.tree, KinematicParticle.tree, edm::RootTree.tree(), IsolatedGenParticles.tree, edm::root::TFWLiteSelectorMembers.tree(), IsolatedTracksHcalScale.tree, IsolatedTracksNxN.tree, and svgfig.SVG.tree().

6 
7  def beginLoop(self, setup):
8  super(ZJetsTreeAnalyzer, self).beginLoop(setup)
9  ntuple.bookParticle(self.tree, 'jet1')
10  ntuple.bookParticle(self.tree, 'jet1_gen')
11  ntuple.bookParticle(self.tree, 'jet2')
12  ntuple.bookParticle(self.tree, 'jet2_gen')
13  ntuple.bookParticle(self.tree, 'dimuon')
14  ntuple.bookParticle(self.tree, 'dimuon_leg1')
15  ntuple.bookParticle(self.tree, 'dimuon_leg2')
16 
def bookParticle
Definition: ntuple.py:24
def ZJetsTreeAnalyzer.ZJetsTreeAnalyzer.process (   self,
  event 
)

Definition at line 17 of file ZJetsTreeAnalyzer.py.

References ntuple.fillParticle(), tree.Tree.tree, SimpleTreeProducer.SimpleTreeProducer.tree, eventstfile.Events.tree, CSCTFanalyzer.tree, RootChamberWriter.tree(), CSCTFAnalyzer.tree, core.TreeAnalyzerNumpy.TreeAnalyzerNumpy.tree, HcalTestHistoManager.tree, TreeWriterForEcalCorrection.tree, TkOfflineVariables.tree, AlignmentIORootBase.tree, edm::DuplicateTreeSentry.tree(), IsolatedParticlesGeneratedJets.tree, KVFTest.tree, EcalPerEvtMatacqAnalyzer.tree, CheckSecondary.tree, FWFileEntry.tree(), EcalDeadChannelRecoveryNN< DetIdT >::MultiLayerPerceptronContext.tree, edm::RootOutputTree.tree(), TreeSaver.tree, EcalMatacqAnalyzer.tree, PhysicsTools::TreeReader.tree, edm::FileBlock.tree(), python.cmstools.EventTree.tree(), IsoTrackCalibration.tree, KinematicVertex.tree, HcalIsoTrkAnalyzer.tree, IsoTrackCalib.tree, KinematicParticle.tree, edm::RootTree.tree(), IsolatedGenParticles.tree, edm::root::TFWLiteSelectorMembers.tree(), IsolatedTracksHcalScale.tree, IsolatedTracksNxN.tree, and svgfig.SVG.tree().

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().

17 
18  def process(self, event):
19  self.tree.reset()
20  if len(event.jets)>0:
21  ntuple.fillParticle(self.tree, 'jet1', event.jets[0])
22  if event.jets[0].gen:
23  ntuple.fillParticle(self.tree, 'jet1_gen', event.jets[0].gen)
24  if len(event.jets)>1:
25  ntuple.fillParticle(self.tree, 'jet2', event.jets[1])
26  if event.jets[1].gen:
27  ntuple.fillParticle(self.tree, 'jet2_gen', event.jets[1].gen)
28  if len(event.dimuons)>1:
29  ntuple.fillParticle(self.tree, 'dimuon', event.dimuons[0])
30  ntuple.fillParticle(self.tree, 'dimuon_leg1', event.dimuons[0].leg1)
31  ntuple.fillParticle(self.tree, 'dimuon_leg2', event.dimuons[0].leg2)
32  self.tree.tree.Fill()
33 
34 
def fillParticle
Definition: ntuple.py:33