This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
gaudi:modifyparticletable [2011/09/06 16:02] – 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 | from Configurables import LHCb__ParticlePropertySvc as ParticlePropertySvc | ||
Line 12: | Line 12: | ||
</ | </ | ||
if you want to modify the properties of the K*_2(1430) and its antiparticle. The columns are: | if you want to modify the properties of the K*_2(1430) and its antiparticle. The columns are: | ||
- | <verbatim> | + | <file> |
Particle GeantID PDGID CHARGE MASS(GeV) LIFETIME(s) EVTGENNAME PYTHIAID MAXWIDTH | Particle GeantID PDGID CHARGE MASS(GeV) LIFETIME(s) EVTGENNAME PYTHIAID MAXWIDTH | ||
- | </verbatim> | + | </file> |
+ | * **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 | ||
+ | </code> |