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 5 of file ZJetsTreeAnalyzer.py.

Member Function Documentation

◆ beginLoop()

def ZJetsTreeAnalyzer.ZJetsTreeAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 7 of file ZJetsTreeAnalyzer.py.

References ntuple.bookParticle(), tree.Tree.tree, SimpleTreeProducer.SimpleTreeProducer.tree, HIPMonitorVariables.tree, eventstfile.Events.tree, RootChamberWriter.tree(), CSCTFAnalyzer.tree, CSCTFanalyzer.tree, core.TreeAnalyzerNumpy.TreeAnalyzerNumpy.tree, AlignmentIORootBase.tree, EcalPerEvtMatacqAnalyzer.tree, HcalIsoTrackAnalyzer.tree, HIPTwoBodyDecayAnalyzer.tree, edm::DuplicateTreeSentry.tree(), CheckSecondary.tree, FWFileEntry.tree(), KVFTest.tree, TkOfflineVariables.tree, SiStripHitEfficiencyHarvester.tree, edm::RootOutputTree.tree(), EcalMatacqAnalyzer.tree, BPHHistoSpecificDecay.tree, ParticleNetFeatureEvaluator.tree, PhysicsTools::TreeReader.tree, output.OutputTree.tree(), KinematicVertex.tree, IsoTrackCalibration.tree, python.cmstools.EventTree.tree(), edm::FileBlock.tree(), IsoTrackCalib.tree, KinematicParticle.tree, edm::root::TFWLiteSelectorMembers.tree(), edm::RootTree.tree(), TkAlMap.TkAlMap.tree, HcalIsoTrkSimAnalyzer.tree, HcalIsoTrkAnalyzer.tree, svgfig.SVG.tree(), and ntupleDataFormat.TrackingNtuple.tree().

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 
17 
def bookParticle(tree, pName)
Definition: ntuple.py:25

◆ process()

def ZJetsTreeAnalyzer.ZJetsTreeAnalyzer.process (   self,
  event 
)

Definition at line 18 of file ZJetsTreeAnalyzer.py.

References ntuple.fillParticle(), reset(), tree.Tree.tree, HIPMonitorVariables.tree, SimpleTreeProducer.SimpleTreeProducer.tree, eventstfile.Events.tree, RootChamberWriter.tree(), CSCTFAnalyzer.tree, CSCTFanalyzer.tree, core.TreeAnalyzerNumpy.TreeAnalyzerNumpy.tree, AlignmentIORootBase.tree, EcalPerEvtMatacqAnalyzer.tree, HcalIsoTrackAnalyzer.tree, HIPTwoBodyDecayAnalyzer.tree, edm::DuplicateTreeSentry.tree(), CheckSecondary.tree, FWFileEntry.tree(), KVFTest.tree, TkOfflineVariables.tree, SiStripHitEfficiencyHarvester.tree, edm::RootOutputTree.tree(), EcalMatacqAnalyzer.tree, BPHHistoSpecificDecay.tree, ParticleNetFeatureEvaluator.tree, PhysicsTools::TreeReader.tree, output.OutputTree.tree(), KinematicVertex.tree, IsoTrackCalibration.tree, python.cmstools.EventTree.tree(), edm::FileBlock.tree(), IsoTrackCalib.tree, KinematicParticle.tree, edm::root::TFWLiteSelectorMembers.tree(), edm::RootTree.tree(), TkAlMap.TkAlMap.tree, HcalIsoTrkSimAnalyzer.tree, HcalIsoTrkAnalyzer.tree, svgfig.SVG.tree(), and ntupleDataFormat.TrackingNtuple.tree().

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 
35 
def fillParticle(tree, pName, particle)
Definition: ntuple.py:34
void reset(double vett[256])
Definition: TPedValues.cc:11