- jwebb's home page
- Posts
- 2019
- 2018
- 2017
- 2016
- 2015
- 2014
- 2013
- November (1)
- October (1)
- September (1)
- July (1)
- June (1)
- April (1)
- March (3)
- February (1)
- January (1)
- 2012
- 2011
- December (2)
- September (3)
- August (5)
- July (6)
- June (6)
- May (1)
- April (5)
- March (5)
- February (2)
- January (2)
- 2010
- December (3)
- October (3)
- September (2)
- August (2)
- June (2)
- May (4)
- April (4)
- March (2)
- February (4)
- January (10)
- 2009
- 2008
- 2007
- 2006
- July (1)
- My blog
- Post new blog entry
- All blogs
HOWTO: Override particle definition in geant
MACRO y2006h library=$STAR_LIB root=1 DETP geom y2006h make geometry gclos all Application DATA gstar_upart.g Module gstar_upart "Sets W+ --> e+ nu as the only allowed decay for W+" Author JCW Created 02/01/2010 +CDE,agecom,gconst. Particle W_plus_enu code=42 trktyp=4 mass=80.398 charge=1.0 tlife=0.31600E-24 pdg=24, bratio={ 1.0, }, mode={ 02 04, } END gstar_upart.g gexec gstar_upart.g ************************************************** * usual starsim stuff... RETURN
bratio is an array of up to 6 values, giving the fraction of each decay mode.
mode is an array of integers specifying the decay mode. It takes the form of:
mode = CC BB AAwhere AA is the geant ID of the first decay daughter, BB is the geant ID of the second decay daughter and CC is the geant ID of the third decay daughter (if applicable).
Groups:
- jwebb's blog
- Login or register to post comments