- 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
STARSIM: Pileup Simulation HOWTO
Running pileup simulation in starsim
1) Generate your physics event sample and save them in an fzd file
2) Generate your (larger) minbias background event sample, saving them in multiple fzd files. Create a list of background files --
$ ls background*.fzd > background.list
3) Run starsim and merge the
starsim> gfile p physics.fzd ** physics input fzd
starsim> gfile b background.list ** list of background files
starsim> gfile o output.fzd ** final output file.
Determine how many bunch crossing before and after the trigger bunch crossing you are interested in sampling. Also determine the probability that a given bunch crossing results in a collision, and the mean time between collisions.
starsim > gback [Nbefore] [Nafter] [Probability] 106.5 1.5
Here we used 106.5 ns between bunch crossings. The last number 1.5 instructs starsim to skip a random number of events (poisson with mean 1.5) in the background sample.
Now set the parameters for the simulation of each detector which is sensitive to pileup:
starsim> mode tpce back 3761376 ** TPC sees 376 bxings before and 376 bxings after the trigger collision.
starsim> mode pixl back 8751875 ** Pixel sees 875 bxings before and 875 bxings after the trigger collision.
Now, trigger on all events and we have created an fzd file, which can be reconstructed.
starsim> trig [nevents]
Running pileup simulation as part of a reconstruction job...
- jwebb's blog
- Login or register to post comments