CMS 3D CMS Logo

Functions | Variables
GenParticle Namespace Reference

Functions

def printGenParticle (self)
 

Variables

 GenParticle
 

Function Documentation

◆ printGenParticle()

def GenParticle.printGenParticle (   self)

Definition at line 5 of file GenParticle.py.

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

Variable Documentation

◆ GenParticle

GenParticle.GenParticle

Definition at line 18 of file GenParticle.py.

Referenced by Hector.add(), gen::Pythia6Gun.addAntiParticle(), FBaseSimEvent.addParticles(), BaseProtonTransport.addPartToHepMC(), Hector.addPartToHepMC(), BeamDivergenceVtxGenerator.addSmearedGenParticle(), ElectronSeedAnalyzer.analyze(), BasicHepMCValidation.analyze(), edm::FlatEGunASCIIWriter.analyze(), SimplePhotonAnalyzer.analyze(), EnergyScaleAnalyzer.analyze(), PhotonValidator.analyze(), ZdcSimHitStudy.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(), gen::TauolappInterface.decay(), TtEventPartons.dummyCandidatePtr(), ZeeCalibration.duringLoop(), fastsim::ParticleManager.exoticRelativesChecker(), BasicHepMCValidation::ParticleMonitor.Fill(), GenParticleProducer.fillDaughters(), GenParticleProducer.fillIndices(), TopDecaySubset.fillListing(), TopInitSubset.fillOutput(), BsJpsiPhiFilter.filter(), PythiaFilterMultiMother.filter(), PythiaFilterGammaJet.filter(), PythiaFilterGammaJetWithBg.filter(), PythiaFilterGammaJetWithOutBg.filter(), PythiaFilterHT.filter(), MCZll.filter(), PythiaFilter.filter(), ProtonTaggerFilter.filter(), PythiaFilterIsolatedTrack.filter(), Herwig6Hadronizer.finalizeEvent(), MuScleFitUtils.findSimMuFromRes(), MuScleFitMuonSelector.findSimMuFromRes(), gen::Pythia6PartonEGun.generateEvent(), gen::Pythia6PartonPtGun.generateEvent(), gen::Pythia6EGun.generateEvent(), gen::Pythia6PtGun.generateEvent(), gen::Pythia6JetGun.generateEvent(), gen::Pythia6PtYDistGun.generateEvent(), edm::RandomXiThetaGunProducer.generateParticle(), PPSFastLocalSimulation.GenerateTrack(), gen::HijingHadronizer.get_particles(), gen::AMPTHadronizer.get_particles(), gen::HydjetHadronizer.get_particles(), gen::Hydjet2Hadronizer.get_particles(), getDaughters(), BasicHepMCValidation::ParticleMonitor.GetFinal(), Generator.HepMC2G4(), gen::TauolappInterface.make_simple_tau_event(), lhef::LHEEvent.makeHepMCParticle(), gen::TauolappInterface.MatchedLHESpinUp(), fastsim::ParticleManager.nextGenParticle(), Generator.nonCentralEvent2G4(), HepMCFileReader.printEvent(), FBaseSimEvent.printMCTruth(), OpticalFunctionsTransport.process(), TotemTransport.process(), HectorTransport.process(), edm::FileRandomMultiParticlePGunProducer.produce(), edm::FlatRandomEThetaGunProducer.produce(), edm::FlatRandomMultiParticlePGunProducer.produce(), edm::FlatRandomPtThetaGunProducer.produce(), edm::RandomMultiParticlePGunProducer.produce(), edm::GaussRandomPThetaGunProducer.produce(), edm::CloseByParticleGunProducer.produce(), edm::FileRandomKEThetaGunProducer.produce(), edm::RandomtXiGunProducer.produce(), edm::FlatRandomOneOverPtGunProducer.produce(), edm::FlatRandomEGunProducer.produce(), edm::FlatRandomPtGunProducer.produce(), edm::ExpoRandomPtGunProducer.produce(), edm::BeamMomentumGunProducer.produce(), edm::MultiParticleInConeGunProducer.produce(), edm::ExpoRandomPGunProducer.produce(), GenParticlePruner.produce(), GenTrackMatcher.produce(), edm::FlatRandomPtAndDxyGunProducer.produce(), edm::CosMuoGenProducer.produce(), GenParticles2HepMCConverter.produce(), LaserAlignmentProducer.produce(), edm::BeamHaloProducer.produce(), LHE2HepMCConverter.produce(), GenParticleProducer.produce(), GenPUProtonProducer.produce(), Herwig6Hadronizer.pythiaStatusCode(), readParticlesFromHepMC(), gen::Cascade2Hadronizer.residualDecay(), gen::Py8GunBase.residualDecay(), gen::Pythia6Hadronizer.residualDecay(), Pythia8Hadronizer.residualDecay(), gen::EvtGenInterface.update_particles(), and gen::TauolappInterface.update_particles().

format
GenParticle.printGenParticle
def printGenParticle(self)
Definition: GenParticle.py:5