User Tools

Site Tools


gaudi:modifyparticletable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
gaudi:modifyparticletable [2011/09/06 16:06] – [How to] decianmgaudi: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/ParticleTable.txt. This can be useful e.g. in Gauss. You can modify the properties of particles, which are stored in the DDDB under param/ParticleTable.txt. This can be useful e.g. in Gauss.
-===== How to ===== +===== How (not) to ===== 
-This example is for Gauss v40r2p3. In Gauss-Job.py (or similar) write:+This example is for Gauss v40r2p3 and does not fully seem to work. In Gauss-Job.py (or similar) write:
 <code python> <code python>
 from Configurables import LHCb__ParticlePropertySvc as ParticlePropertySvc from Configurables import LHCb__ParticlePropertySvc as ParticlePropertySvc
Line 15: Line 15:
 Particle GeantID PDGID CHARGE MASS(GeV) LIFETIME(s) EVTGENNAME PYTHIAID MAXWIDTH Particle GeantID PDGID CHARGE MASS(GeV) LIFETIME(s) EVTGENNAME PYTHIAID MAXWIDTH
 </file> </file>
-  * *Note*: You have to write all the modifications in one list.+  **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 = { "K*_2(1430)0         153         315  0.0        0.100000   1.0e-10                    K_2*0         315        0.0",  
 +                                  "K*_2(1430)~0        154        -315  0.0        0.100000   1.0e-10               anti-K_2*0        -315        0.0" }; 
 +</code>                                
 ===== Check ===== ===== Check =====
 At the beginning of your Gauss job, you should then see something like: At the beginning of your Gauss job, you should then see something like:
 <code> <code>
-LHCb::ParticlePropert...   INFO  Mass     has beed redefined for [ 'K*_2(1430)0' 'K*_2(1430)~0' ] +ParticlePropertySvc        INFO Opened particle properties file conddb:///param/ParticleTable.txt 
-LHCb::ParticlePropert...   INFO  Lifetime has beed redefined for [ 'K*_2(1430)0' 'K*_2(1430)~0' ] +ParticlePropertySvc     SUCCESS  Add/Modify the particle:  name='K*_2(1430)0' geant=153 jetset=315 charge=0 mass=0.1 ltime=1e-10 evtgen='K_2*0' pythia=315 maxwid=0 
-LHCb::ParticlePropert...   INFO  MaxWidth has beed redefined for [ 'K*_2(1430)0''K*_2(1430)~0' ]+ParticlePropertySvc        INFO Properties have been redefined for 1 particles : [ 'K*_2(1430)0' 
 +ParticlePropertySvc     SUCCESS  Add/Modify the particle:  name='K*_2(1430)~0' geant=154 jetset=-315 charge=0 mass=0.1 ltime=1e-10 evtgen='anti-K_2*0' pythia=-315 maxwid=0 
 +ParticlePropertySvc        INFO Properties have been redefined for 1 particles : [ 'K*_2(1430)~0' ]
 </code> </code>
gaudi/modifyparticletable.1315317990.txt.gz · Last modified: 2011/09/06 16:06 by decianm