CMS 3D CMS Logo

Functions | Variables
GenParticle Namespace Reference

Functions

def printGenParticle (self)
 

Variables

 GenParticle
 

Function Documentation

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
def printGenParticle(self)
Definition: GenParticle.py:5

Variable Documentation

GenParticle.GenParticle

Definition at line 18 of file GenParticle.py.

Referenced by CTPPSHector.add(), Hector.add(), gen::Pythia6Gun.addAntiParticle(), FBaseSimEvent.addParticles(), Hector.addPartToHepMC(), CTPPSHector.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(), lhef::LHEEvent.attempted(), 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(), FSimTrack.charge(), FBaseSimEvent.chargedTrack(), gen::TauolappInterface.decay(), gen::AMPTHadronizer.declareSpecialSettings(), gen::HijingHadronizer.doSharedResources(), Herwig6Hadronizer.doSharedResources(), TtEventPartons.dummyCandidatePtr(), ZeeCalibration.duringLoop(), Generator.eventWeight(), BasicHepMCValidation::ParticleMonitor.Fill(), GenParticleProducer.fillDaughters(), GenParticleProducer.fillIndices(), TopDecaySubset.fillListing(), TopInitSubset.fillOutput(), PythiaFilterMultiMother.filter(), PythiaFilterGammaJet.filter(), PythiaFilterGammaJetIsoPi0.filter(), PythiaFilterGammaJetWithBg.filter(), PythiaFilterGammaJetWithOutBg.filter(), GenLeadTrackFilter.filter(), TwoVBGenFilter.filter(), MCZll.filter(), PythiaFilter.filter(), PythiaFilterHT.filter(), ProtonTaggerFilter.filter(), PythiaFilterIsolatedTrack.filter(), Herwig6Hadronizer.finalizeEvent(), MuScleFitUtils.findSimMuFromRes(), MuScleFitMuonSelector.findSimMuFromRes(), gen::Pythia6PartonPtGun.generateEvent(), gen::Pythia6JetGun.generateEvent(), gen::Pythia6PtGun.generateEvent(), gen::Pythia6PartonEGun.generateEvent(), gen::Pythia6EGun.generateEvent(), gen::Pythia6PtYDistGun.generateEvent(), reco::GenParticle.GenParticle(), TauDecay_CMSSW.Get_MotherIdx(), gen::HijingHadronizer.get_particles(), gen::AMPTHadronizer.get_particles(), gen::HydjetHadronizer.get_particles(), gen::Hydjet2Hadronizer.get_particles(), getDaughters(), BasicHepMCValidation::ParticleMonitor.GetFinal(), gen::Hydjet2Hadronizer.GetWeakDecayLimit(), GenParticleProducer.globalEndRun(), Generator.HepMC2G4(), gen::TauolappInterface.make_simple_tau_event(), lhef::LHEEvent.makeHepMCParticle(), gen::TauolappInterface.MatchedLHESpinUp(), FBaseSimEvent.nChargedTracks(), fastsim::ParticleManager.nextGenParticle(), Generator.nonBeamEvent2G4(), gen::EvtGenInterface.operatesOnParticles(), gen::EvtGenLHCInterface.operatesOnParticles(), HepMCFileReader.printEvent(), FBaseSimEvent.printMCTruth(), edm::FlatRandomMultiParticlePGunProducer.produce(), edm::GaussRandomPThetaGunProducer.produce(), edm::FlatRandomPtThetaGunProducer.produce(), edm::FlatRandomEThetaGunProducer.produce(), edm::FileRandomKEThetaGunProducer.produce(), edm::RandomtXiGunProducer.produce(), edm::FlatRandomOneOverPtGunProducer.produce(), edm::FlatRandomPtGunProducer.produce(), edm::FlatRandomEGunProducer.produce(), edm::MultiParticleInConeGunProducer.produce(), edm::ExpoRandomPtGunProducer.produce(), edm::ExpoRandomPGunProducer.produce(), GenParticlePruner.produce(), edm::CosMuoGenProducer.produce(), GenTrackMatcher.produce(), edm::FlatRandomPtAndDxyGunProducer.produce(), GenParticles2HepMCConverter.produce(), LaserAlignmentProducer.produce(), edm::BeamHaloProducer.produce(), LHE2HepMCConverter.produce(), ZeeCalibration.produce(), GenParticleProducer.produce(), GenPUProtonProducer.produce(), Herwig6Hadronizer.pythiaStatusCode(), readParticlesFromHepMC(), gen::Cascade2Hadronizer.residualDecay(), gen::Py8GunBase.residualDecay(), gen::Pythia6Hadronizer.residualDecay(), Pythia8Hadronizer.residualDecay(), gen::TauolappInterface.setRandomEngine(), HepMCValidationHelper.sortByPseudoRapidity(), gen::EvtGenInterface.update_particles(), and gen::TauolappInterface.update_particles().