This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| gaudi:modifyparticletable [2011/09/06 15:59] – [How to] decianm | gaudi:modifyparticletable [2011/09/14 09:35] (current) – che | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ===== Idea ===== | ===== Idea ===== | ||
| You can modify the properties of particles, which are stored in the DDDB under param/ | You can modify the properties of particles, which are stored in the DDDB under param/ | ||
| - | ===== How to ===== | + | ===== How (not) to ===== |
| - | This example is for Gauss v40r2p3. In Gauss-Job.py (or similar, write): | + | This example is for Gauss v40r2p3 |
| <code python> | <code python> | ||
| + | from Configurables import LHCb__ParticlePropertySvc as ParticlePropertySvc | ||
| ParticlePropertySvc().Particles = [ " | ParticlePropertySvc().Particles = [ " | ||
| - | " | + | |
| ApplicationMgr().ExtSvc | ApplicationMgr().ExtSvc | ||
| </ | </ | ||
| + | if you want to modify the properties of the K*_2(1430) and its antiparticle. The columns are: | ||
| + | < | ||
| + | Particle GeantID PDGID CHARGE MASS(GeV) LIFETIME(s) EVTGENNAME PYTHIAID MAXWIDTH | ||
| + | </ | ||
| + | * **Note**: You have to write all the modifications in one list. | ||
| + | If this does not give you what you want, try adding in your someNumber.opts file: | ||
| + | <code python> | ||
| + | ParticlePropertySvc.Particles = { " | ||
| + | " | ||
| + | </ | ||
| + | ===== Check ===== | ||
| + | At the beginning of your Gauss job, you should then see something like: | ||
| + | < | ||
| + | ParticlePropertySvc | ||
| + | ParticlePropertySvc | ||
| + | ParticlePropertySvc | ||
| + | ParticlePropertySvc | ||
| + | ParticlePropertySvc | ||
| + | </ | ||