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(), gen::EvtGenLHCInterface.addToHepMC(), 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(), GenParticleProducer.fillDaughters(), GenParticleProducer.fillIndices(), TopDecaySubset.fillListing(), TopInitSubset.fillOutput(), ComphepSingletopFilter.filter(), PythiaFilterGammaGamma.filter(), BsJpsiPhiFilter.filter(), BdecayFilter.filter(), PythiaFilterGammaJet.filter(), PythiaFilterGammaJetWithBg.filter(), PythiaFilterGammaJetIsoPi0.filter(), PythiaFilterGammaJetWithOutBg.filter(), GenLeadTrackFilter.filter(), PythiaFilterIsolatedTrack.filter(), TwoVBGenFilter.filter(), MCZll.filter(), PythiaFilter.filter(), ProtonTaggerFilter.filter(), Herwig6Hadronizer.finalizeEvent(), MuScleFitUtils.findSimMuFromRes(), MuScleFitMuonSelector.findSimMuFromRes(), gen::Pythia6EGun.generateEvent(), gen::Pythia6PartonEGun.generateEvent(), gen::Pythia6JetGun.generateEvent(), gen::Pythia6PartonPtGun.generateEvent(), gen::Pythia6PtGun.generateEvent(), gen::Pythia6PtYDistGun.generateEvent(), gen::HijingHadronizer.get_particles(), gen::AMPTHadronizer.get_particles(), gen::HydjetHadronizer.get_particles(), gen::Hydjet2Hadronizer.get_particles(), getDaughters(), TrackClassifier.hadronFlavor(), Generator.HepMC2G4(), gen::TauolappInterface.make_simple_tau_event(), lhef::LHEEvent.makeHepMCParticle(), gen::TauolappInterface.MatchedLHESpinUp(), Generator.nonBeamEvent2G4(), lhef::JetInput.operator()(), HepMCFileReader.printEvent(), FBaseSimEvent.printMCTruth(), edm::FlatRandomEThetaGunProducer.produce(), edm::FlatRandomPtThetaGunProducer.produce(), edm::FileRandomKEThetaGunProducer.produce(), edm::FlatRandomOneOverPtGunProducer.produce(), edm::FlatRandomEGunProducer.produce(), edm::FlatRandomPtGunProducer.produce(), edm::ExpoRandomPtGunProducer.produce(), edm::MultiParticleInConeGunProducer.produce(), edm::ExpoRandomPGunProducer.produce(), GenParticlePruner.produce(), GenTrackMatcher.produce(), edm::CosMuoGenProducer.produce(), GenParticleProducer.produce(), GenParticles2HepMCConverter.produce(), LaserAlignmentProducer.produce(), PileUpProducer.produce(), edm::BeamHaloProducer.produce(), PileUpSimulator.produce(), ParticleReplacerZtautau.produce(), LHE2HepMCConverter.produce(), HepMCSplitter.produce(), Herwig6Hadronizer.pythiaStatusCode(), readParticlesFromHepMC(), gen::Cascade2Hadronizer.residualDecay(), gen::Pythia6Hadronizer.residualDecay(), gen::Py8GunBase.residualDecay(), Pythia8Hadronizer.residualDecay(), ParticleReplacerZtautau.testEvent(), gen::EvtGenInterface.update_particles(), and gen::TauolappInterface.update_particles().