CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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(), BaseProtonTransport.addPartToHepMC(), Hector.addPartToHepMC(), BeamDivergenceVtxGenerator.addSmearedGenParticle(), BasicHepMCValidation.analyze(), edm::FlatEGunASCIIWriter.analyze(), SimplePhotonAnalyzer.analyze(), EnergyScaleAnalyzer.analyze(), ElectronSeedAnalyzer.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(), 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(), PythiaHepMCFilterGammaGamma.filter(), PythiaFilterGammaJet.filter(), PythiaFilterGammaJetWithBg.filter(), PythiaFilterGammaJetWithOutBg.filter(), PythiaFilterHT.filter(), MCZll.filter(), ComphepSingletopFilterPy8.filter(), PythiaFilter.filter(), PythiaFilterMotherSister.filter(), ProtonTaggerFilter.filter(), PythiaFilterIsolatedTrack.filter(), Herwig6Hadronizer.finalizeEvent(), MuScleFitUtils.findSimMuFromRes(), MuScleFitMuonSelector.findSimMuFromRes(), gen::Pythia6PartonPtGun.generateEvent(), gen::Pythia6PartonEGun.generateEvent(), gen::Pythia6EGun.generateEvent(), gen::Pythia6JetGun.generateEvent(), gen::Pythia6PtGun.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::CloseByParticleGunProducer.produce(), edm::FlatRandomPtThetaGunProducer.produce(), edm::FileRandomMultiParticlePGunProducer.produce(), edm::FlatRandomEThetaGunProducer.produce(), edm::GaussRandomPThetaGunProducer.produce(), edm::RandomMultiParticlePGunProducer.produce(), edm::FlatRandomMultiParticlePGunProducer.produce(), edm::RandomtXiGunProducer.produce(), edm::FileRandomKEThetaGunProducer.produce(), edm::FlatRandomOneOverPtGunProducer.produce(), edm::FlatRandomEGunProducer.produce(), edm::FlatRandomPtGunProducer.produce(), edm::ExpoRandomPtGunProducer.produce(), edm::BeamMomentumGunProducer.produce(), edm::MultiParticleInConeGunProducer.produce(), edm::ExpoRandomPGunProducer.produce(), GenTrackMatcher.produce(), GenParticlePruner.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().