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 
)

◆ process()

def ZJetsTreeAnalyzer.ZJetsTreeAnalyzer.process (   self,
  event 
)

Definition at line 18 of file ZJetsTreeAnalyzer.py.

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 

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, TreeWriterForEcalCorrection.tree, AlignmentIORootBase.tree, TkOfflineVariables.tree, HIPTwoBodyDecayAnalyzer.tree, edm::DuplicateTreeSentry.tree(), EcalPerEvtMatacqAnalyzer.tree, FWFileEntry.tree(), CheckSecondary.tree, KVFTest.tree, edm::RootOutputTree.tree(), EcalMatacqAnalyzer.tree, BPHHistoSpecificDecay.tree, PhysicsTools::TreeReader.tree, edm::FileBlock.tree(), KinematicVertex.tree, IsoTrackCalibration.tree, python.cmstools.EventTree.tree(), IsoTrackCalib.tree, KinematicParticle.tree, edm::root::TFWLiteSelectorMembers.tree(), TkAlMap.TkAlMap.tree, edm::RootTree.tree(), HcalIsoTrkAnalyzer.tree, svgfig.SVG.tree(), and ntupleDataFormat.TrackingNtuple.tree().

ntuple.bookParticle
def bookParticle(tree, pName)
Definition: ntuple.py:26
ntuple.fillParticle
def fillParticle(tree, pName, particle)
Definition: ntuple.py:35
LaserDQM_cfg.process
process
Definition: LaserDQM_cfg.py:3
reset
void reset(double vett[256])
Definition: TPedValues.cc:11