Archive of old Simulation pages.
Decays
To use Hijing for simulation purposes, one must first run Hijing proper and generate event files, then feed these data to starsim to complete the GEANT part.
The Hijing event generator codes and makefile can be found in the STAR code repository at the following location:$STAR/pams/gen/hijing_382. Once built, the executable is named hijjet.x. The input file is called hijev.inp and should be modified as per user's needs. When the executable is run multiple times in same directory, a series of files will be produced with names like evgen.XXX.nt, where XXX is an integer. The format of the file is PAW Ntuple. The starsim application is equipped to read that format as explained below. If a large number of events are needed, a request should be made to the STAR simulation leader or any member of the S&C.
Listed below is the KUMAC macro that can be used to run your own GEANT simulation with pre-fabricated Hijing events . Unlike the Pythia simulation, events aren't generated on the fly but are read from an external file instead. Look at the comments embedded in the code. Additional notes:
gfile o my_hijing_file.fz detp geom y2006 make geometry gclose all * define a beam with 100um transverse sigma and 60cm sigma in Z vsig 0.01 60.0 * introduce a cut on eta to avoid having to handle massive showers caused by spectators gkine -1 0 0 100 -6.3 6.3 0 6.3 -30.0 30.0 gexec $STAR_LIB/gstar.so us/inp hijing evgen.1.nt * seed the random generator rndm 13 17 * trigger - change to trigger the desired number of times trig 10
gfile o my_pythia_file.fz detp geom y2006 make geometry gclose all * define a beam with 100um transverse sigma and 60cm sigma in Z vsig 0.01 60.0 * Cut on eta (+-6.3) to avoid having to handle massive showers caused by the spectators * Cut on vertex Z (+-30 cm) gkine -1 0 0 100 -6.3 6.3 0 6.29 -30.0 30.0 * load pythia gexec $STAR_LIB/apythia.so * specify parameters ENER 200.0 ! Collision energy MSEL 1 ! Collision type MSUB (11)=1 ! Subprocess choice MSUB (12)=1 MSUB (13)=1 MSUB (28)=1 MSUB (53)=1 MSUB (68)=1 * * Make the following stable: * MDCY (102,1)=0 ! PI0 111 MDCY (106,1)=0 ! PI+ 211 * MDCY (109,1)=0 ! ETA 221 * MDCY (116,1)=0 ! K+ 321 * MDCY (112,1)=0 ! K_SHORT 310 MDCY (105,1)=0 ! K_LONG 130 * * MDCY (164,1)=0 ! LAMBDA0 3122 * MDCY (167,1)=0 ! SIGMA0 3212 MDCY (162,1)=0 ! SIGMA- 3112 MDCY (169,1)=0 ! SIGMA+ 3222 MDCY (172,1)=0 ! Xi- 3312 MDCY (174,1)=0 ! Xi0 3322 MDCY (176,1)=0 ! OMEGA- 3334 * seed the random generator rndm 13 19 * trigger - change to trigger the desired number of times trig 10
gexec $STAR_LIB/apythia.soWith:
gexec $STAR_LIB/libpythia_6410.so gexec $STAR_LIB/bpythia.so
It is possible to simulate the production and propagation of the magnetic monopoles in the STAR experiment, using a few modification in the code base of GEANT 3.21, and in particular in our GEANT-derived application, the starsim. Our work is based on a few papers, including:
The flow of the GEANT code execution is illustrated by the following diagrams from the above publication:
Now, let's take a look at a minimum bias gold-gold event that contains a pair of magnetic monopoles:
Salient features can already be seen in these graphics: large dE/dx losses and characteristic limit on the maximum radius of the recorded monopole track (this is due to the fact that the trajectory of the mm is not helix-like, but rather parabole-like). Now, lets take a look at the phi distribution of the hits, for central and peripheral gold-gold events containing monopoles:
Again, the rather intuitive feature (large peaks in phi due to a very large dE/dx produced by the monopoles) is obviously borne out in the simulation.
This is work in progress and this page is subjec to updates.
#!/usr/bin/ksh
echo commencing the simulation
export STAR=.
echo STAR=$STAR
#
run=$1
geom=Y2006C
ntrig=2000
diamond=60
z=120
# >> run.$run.log 2>&1
node=`uname -n`
echo run:$run geom:$geom ntrig:$ntrig diamond:$diamond z:$z node:$node pid:$$
./starsim -w 0 -g 40 -c trace on .<<EOF
trace on
RUNG $run 1 $$
RNDM $$ $run
gfile o gstar.$run.fz
detp geom $geom
vsig 0.01 $diamond
gexec $STAR/geometry.so
gexec $STAR/libpythia_6410.so
gexec $STAR/bpythia.so
gclose all
gkine -1 0 0 100 -6.3 6.3 0 6.28318 -$z $z
ENER 200.0
MSEL 1
CKIN 3=4.0
CKIN 4=5.0
MSTP (51)=7
MSTP (81)=1
MSTP (82)=4
PARP (82)=2.0
PARP (83)=0.5
PARP (84)=0.4
PARP (85)=0.9
PARP (86)=0.95
PARP (89)=1800
PARP (90)=0.25
PARP (91)=1.0
PARP (67)=4.0
MDCY (102,1)=0 ! PI0 111
MDCY (106,1)=0 ! PI+ 211
MDCY (109,1)=0 ! ETA 221
MDCY (116,1)=0 ! K+ 321
MDCY (112,1)=0 ! K_SHORT 310
MDCY (105,1)=0 ! K_LONG 130
MDCY (164,1)=0 ! LAMBDA0 3122
MDCY (167,1)=0 ! SIGMA0 3212
MDCY (162,1)=0 ! SIGMA- 3112
MDCY (169,1)=0 ! SIGMA+ 3222
MDCY (172,1)=0 ! Xi- 3312
MDCY (174,1)=0 ! Xi0 3322
MDCY (176,1)=0 ! OMEGA- 3334
trig $ntrig
exit
EOF
143575 2007-05-31 18:02:47 agetof
65743 2007-05-31 18:02:39 agetof.def
44591 2007-05-31 19:05:34 bpythia.so
5595692 2007-05-31 18:03:10 geometry.so
183148 2007-05-31 18:03:15 gstar.so
4170153 2007-05-31 19:05:27 libpythia_6410.so
0 2007-05-31 18:00:06 StarDb/
0 2007-05-31 18:00:59 StarDb/StMagF/
51229 2007-05-31 18:00:57 StarDb/StMagF/bfield_full_negative_2D.dat
2775652 2007-05-31 18:00:57 StarDb/StMagF/bfield_full_negative_3D.dat
51227 2007-05-31 18:00:57 StarDb/StMagF/bfield_full_positive_2D.dat
2775650 2007-05-31 18:00:58 StarDb/StMagF/bfield_full_positive_3D.dat
51227 2007-05-31 18:00:58 StarDb/StMagF/bfield_half_positive_2D.dat
2775650 2007-05-31 18:00:58 StarDb/StMagF/bfield_half_positive_3D.dat
1530566 2007-05-31 18:00:59 StarDb/StMagF/boundary_13_efield.dat
51231 2007-05-31 18:00:59 StarDb/StMagF/const_full_positive_2D.dat
1585050 2007-05-31 18:00:59 StarDb/StMagF/endcap_efield.dat
1530393 2007-05-31 18:00:59 StarDb/StMagF/membrane_efield.dat
15663993 2007-05-31 18:03:31 starsim
36600 2007-05-31 18:03:37 starsim.bank
1848 2007-05-31 18:03:42 starsim.logon.kumac
21551 2007-05-31 18:03:48 starsim.makefile
As of spring of 2007, the Monte Carlo production is being run on three different platforms:
StarVMC/StarVMCApplication:
Example of setting the input file: StBFChain::ProcessLine ((StVMCMaker *) 0xaeab6f0)->SetInputFile("/star/simu/simu/gstardata/evgenRoot/evgen.3.root");
In general, StBFChain sets various attributes of the makers.
New chain options must be added in BigFullChain.h