CMS 3D CMS Logo

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

Public Member Functions

def beginLoop (self, setup)
 
def process (self, event)
 

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, HIPMonitorVariables.tree, CSCTFanalyzer.tree, RootChamberWriter.tree(), CSCTFAnalyzer.tree, core.TreeAnalyzerNumpy.TreeAnalyzerNumpy.tree, HcalTestHistoManager.tree, TreeWriterForEcalCorrection.tree, TkOfflineVariables.tree, AlignmentIORootBase.tree, HIPTwoBodyDecayAnalyzer.tree, edm::DuplicateTreeSentry.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, IsoTrackCalib.tree, KinematicParticle.tree, HcalIsoTrkAnalyzer.tree, edm::root::TFWLiteSelectorMembers.tree(), edm::RootTree.tree(), svgfig.SVG.tree(), and ntupleDataFormat.TrackingNtuple.tree().

6  def beginLoop(self, setup):
7  super(ZJetsTreeAnalyzer, self).beginLoop(setup)
8  ntuple.bookParticle(self.tree, 'jet1')
9  ntuple.bookParticle(self.tree, 'jet1_gen')
10  ntuple.bookParticle(self.tree, 'jet2')
11  ntuple.bookParticle(self.tree, 'jet2_gen')
12  ntuple.bookParticle(self.tree, 'dimuon')
13  ntuple.bookParticle(self.tree, 'dimuon_leg1')
14  ntuple.bookParticle(self.tree, 'dimuon_leg2')
15 
16 
def bookParticle(tree, pName)
Definition: ntuple.py:25
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, HIPMonitorVariables.tree, CSCTFanalyzer.tree, RootChamberWriter.tree(), CSCTFAnalyzer.tree, core.TreeAnalyzerNumpy.TreeAnalyzerNumpy.tree, HcalTestHistoManager.tree, TreeWriterForEcalCorrection.tree, TkOfflineVariables.tree, AlignmentIORootBase.tree, HIPTwoBodyDecayAnalyzer.tree, edm::DuplicateTreeSentry.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, IsoTrackCalib.tree, KinematicParticle.tree, HcalIsoTrkAnalyzer.tree, edm::root::TFWLiteSelectorMembers.tree(), edm::RootTree.tree(), svgfig.SVG.tree(), and ntupleDataFormat.TrackingNtuple.tree().

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), ConfigBuilder.ConfigBuilder.prepare(), ConfigBuilder.ConfigBuilder.prepare_ALCA(), ConfigBuilder.ConfigBuilder.prepare_DQM(), 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  def process(self, event):
18  self.tree.reset()
19  if len(event.jets)>0:
20  ntuple.fillParticle(self.tree, 'jet1', event.jets[0])
21  if event.jets[0].gen:
22  ntuple.fillParticle(self.tree, 'jet1_gen', event.jets[0].gen)
23  if len(event.jets)>1:
24  ntuple.fillParticle(self.tree, 'jet2', event.jets[1])
25  if event.jets[1].gen:
26  ntuple.fillParticle(self.tree, 'jet2_gen', event.jets[1].gen)
27  if len(event.dimuons)>1:
28  ntuple.fillParticle(self.tree, 'dimuon', event.dimuons[0])
29  ntuple.fillParticle(self.tree, 'dimuon_leg1', event.dimuons[0].leg1)
30  ntuple.fillParticle(self.tree, 'dimuon_leg2', event.dimuons[0].leg2)
31  self.tree.tree.Fill()
32 
33 
34 
def fillParticle(tree, pName, particle)
Definition: ntuple.py:34