CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
GenParticle Namespace Reference

Functions

def printGenParticle
 

Variables

 GenParticle = ROOT.reco.GenParticle
 

Function Documentation

def GenParticle.printGenParticle (   self)

Definition at line 5 of file GenParticle.py.

5 
6 def printGenParticle(self):
7  tmp = '{className} : {pdgId:>3}, pt = {pt:5.1f}, eta = {eta:5.2f}, phi = {phi:5.2f}, mass = {mass:5.2f}'
8  base= tmp.format( className = self.__class__.__name__,
9  pdgId = self.pdgId(),
10  pt = self.pt(),
11  eta = self.eta(),
12  phi = self.phi(),
13  mass = self.mass() )
14  theStr = '{base}, status = {status:>2}'.format(base=base, status=self.status())
15  return theStr
16 setattr(ROOT.reco.GenParticle,"__str__",printGenParticle)
17 
#from ROOT.reco import GenParticle # sometimes doesn't work
def printGenParticle
Definition: GenParticle.py:5

Variable Documentation

GenParticle.GenParticle = ROOT.reco.GenParticle

Definition at line 18 of file GenParticle.py.

Referenced by Hector.add(), gen::Pythia6Gun.addAntiParticle(), FBaseSimEvent.addParticles(), Hector.addPartToHepMC(), ElectronSeedAnalyzer.analyze(), BasicHepMCValidation.analyze(), SimplePhotonAnalyzer.analyze(), edm::FlatEGunASCIIWriter.analyze(), EnergyScaleAnalyzer.analyze(), ZdcSimHitStudy.analyze(), PhotonValidator.analyze(), gen::PhotosppInterface.apply(), lhef::LHEEvent.asHepMCEvent(), gen::PhotosInterface.attachParticles(), gen::Pythia6Gun.attachPy6DecaysToGenEvent(), gen::AMPTHadronizer.build_ampt(), EPOS::IO_EPOS.build_end_vertex(), gen::HijingHadronizer.build_hijing(), gen::HydjetHadronizer.build_hyjet(), gen::Hydjet2Hadronizer.build_hyjet2(), EPOS::IO_EPOS.build_particle(), EPOS::IO_EPOS.build_production_vertex(), GenMuonRadiationAlgorithm.compFSR(), gen::TauolappInterface.decay(), TtEventPartons.dummyCandidatePtr(), ZeeCalibration.duringLoop(), BasicHepMCValidation::ParticleMonitor.Fill(), GenParticleProducer.fillDaughters(), GenParticleProducer.fillIndices(), TopDecaySubset.fillListing(), TopInitSubset.fillOutput(), ComphepSingletopFilter.filter(), PythiaFilterGammaGamma.filter(), PythiaFilterMultiMother.filter(), PythiaFilterGammaJetWithOutBg.filter(), PythiaFilterGammaJetIsoPi0.filter(), PythiaFilterGammaJet.filter(), PythiaFilterGammaJetWithBg.filter(), BdecayFilter.filter(), BsJpsiPhiFilter.filter(), GenLeadTrackFilter.filter(), PythiaFilterIsolatedTrack.filter(), PythiaFilterHT.filter(), TwoVBGenFilter.filter(), MCZll.filter(), PythiaFilter.filter(), ProtonTaggerFilter.filter(), Herwig6Hadronizer.finalizeEvent(), MuScleFitUtils.findSimMuFromRes(), MuScleFitMuonSelector.findSimMuFromRes(), gen::Pythia6PartonEGun.generateEvent(), gen::Pythia6EGun.generateEvent(), gen::Pythia6PtGun.generateEvent(), gen::Pythia6JetGun.generateEvent(), gen::Pythia6PartonPtGun.generateEvent(), gen::Pythia6PtYDistGun.generateEvent(), gen::HijingHadronizer.get_particles(), gen::AMPTHadronizer.get_particles(), gen::HydjetHadronizer.get_particles(), gen::Hydjet2Hadronizer.get_particles(), getDaughters(), BasicHepMCValidation::ParticleMonitor.GetFinal(), TrackClassifier.hadronFlavor(), Generator.HepMC2G4(), gen::TauolappInterface.make_simple_tau_event(), lhef::LHEEvent.makeHepMCParticle(), gen::TauolappInterface.MatchedLHESpinUp(), Generator.nonBeamEvent2G4(), HepMCFileReader.printEvent(), FBaseSimEvent.printMCTruth(), edm::FlatRandomEThetaGunProducer.produce(), edm::FlatRandomPtThetaGunProducer.produce(), edm::FileRandomKEThetaGunProducer.produce(), edm::FlatRandomOneOverPtGunProducer.produce(), edm::FlatRandomEGunProducer.produce(), edm::FlatRandomPtGunProducer.produce(), edm::MultiParticleInConeGunProducer.produce(), edm::ExpoRandomPtGunProducer.produce(), edm::ExpoRandomPGunProducer.produce(), GenParticlePruner.produce(), edm::CosMuoGenProducer.produce(), GenTrackMatcher.produce(), GenParticleProducer.produce(), GenParticles2HepMCConverter.produce(), LaserAlignmentProducer.produce(), edm::BeamHaloProducer.produce(), ParticleReplacerZtautau.produce(), LHE2HepMCConverter.produce(), HepMCSplitter.produce(), Herwig6Hadronizer.pythiaStatusCode(), readParticlesFromHepMC(), gen::Cascade2Hadronizer.residualDecay(), gen::Py8GunBase.residualDecay(), gen::Pythia6Hadronizer.residualDecay(), Pythia8Hadronizer.residualDecay(), ParticleReplacerZtautau.testEvent(), gen::EvtGenInterface.update_particles(), and gen::TauolappInterface.update_particles().