Project

General

Profile

UPS products genie phyopt and genie xsec » History » Version 13

Robert Hatcher, 10/26/2012 05:34 PM

1 1 Robert Hatcher
{{toc}}
2 1 Robert Hatcher
3 1 Robert Hatcher
h1. UPS products genie phyopt and genie xsec
4 1 Robert Hatcher
5 9 Robert Hatcher
h2. setup @genie_phyopt@
6 1 Robert Hatcher
7 1 Robert Hatcher
This UPS product provides a standardized way of packaging an alternative @UserPhysicsOptions.xml@ file to the default found in @$GENIE/config@.
8 1 Robert Hatcher
9 3 Robert Hatcher
the basic thought is users (or expts) would invoke:
10 3 Robert Hatcher
<pre>
11 3 Robert Hatcher
  setup genie <version> -q <qualifier>
12 3 Robert Hatcher
  setup genie_phyopt <version> -q dkcharmtau
13 3 Robert Hatcher
</pre>
14 3 Robert Hatcher
which would put in the @$GXMLPATH@ a @UserPhysicsOptions.xml@ file that has been modified to have GENIE decay charm and tau particles
15 3 Robert Hatcher
before they are passed out (i.e. decays are done at the genie stage rather than, say, Geant4).  Only one @UserPhysicsOptions.xml@ file 
16 13 Robert Hatcher
is read for any genie session, so picking the right one is *important*. 
17 3 Robert Hatcher
18 9 Robert Hatcher
h2. setup @genie_xsec@
19 1 Robert Hatcher
20 9 Robert Hatcher
This UPS product provides a standardized way of packaging genie cross-section spline files.
21 9 Robert Hatcher
22 9 Robert Hatcher
the basic thought is users (or expts) would invoke:
23 9 Robert Hatcher
<pre>
24 9 Robert Hatcher
  setup genie <version> -q <qualifier>
25 9 Robert Hatcher
  setup genie_xsec <version> -q default
26 9 Robert Hatcher
</pre>
27 9 Robert Hatcher
28 9 Robert Hatcher
h1. Creating new versions of these packages
29 9 Robert Hatcher
30 11 Robert Hatcher
p{background:yellow}.  This section is only for those with @nusoft@ account access that need to make versions of these for the entire community in: @/nusoft/app/externals@
31 12 Robert Hatcher
For both sets of instructions you must log into a machine as @nusoft@; that machine must have @/nusoft/app/externals/@ mounted. After doing anything the @/nusoft/app/externals@ area please be sure to log your changes in @/nusoft/app/externals/LOG@ by editing the file.
32 10 Robert Hatcher
33 11 Robert Hatcher
h2. install new @genie_phyopt@
34 9 Robert Hatcher
35 6 Robert Hatcher
As @nusoft@:
36 2 Robert Hatcher
<pre>
37 2 Robert Hatcher
source /nusoft/app/externals/setup
38 2 Robert Hatcher
39 3 Robert Hatcher
# GENIE version and qualifier needed for setup
40 2 Robert Hatcher
GVER=v3470
41 2 Robert Hatcher
GQUAL=debug:nu
42 1 Robert Hatcher
# version of genie_phyopt to be generated
43 2 Robert Hatcher
POQUAL=dkcharmtau
44 2 Robert Hatcher
45 1 Robert Hatcher
cd /nusoft/app/externals/genie_phyopt
46 1 Robert Hatcher
setup genie $GVER -q $GQUAL
47 1 Robert Hatcher
./make_skeleton $GVER $POQUAL
48 5 Robert Hatcher
49 5 Robert Hatcher
setup genie_phyopt $GVER -q $POQUAL
50 5 Robert Hatcher
cd $GENIEPHYOPTPATH
51 1 Robert Hatcher
./make_dkcharmtau_phyopt
52 1 Robert Hatcher
53 1 Robert Hatcher
</pre>
54 13 Robert Hatcher
55 13 Robert Hatcher
If other parameters are being modified then it should start by initializing the package with a qualifier other than @dkcharmtau@, but running the@make_dkcharmtau_phyopt@ script as a base (if have GENIE do the decays is the desired behaviour). 
56 13 Robert Hatcher
57 6 Robert Hatcher
58 11 Robert Hatcher
h2. install new @genie_xsec@
59 6 Robert Hatcher
60 6 Robert Hatcher
As @nusoft@:
61 6 Robert Hatcher
<pre>
62 6 Robert Hatcher
source /nusoft/app/externals/setup
63 6 Robert Hatcher
64 6 Robert Hatcher
# GENIE version and qualifier needed for setup
65 6 Robert Hatcher
GVER=v3470
66 6 Robert Hatcher
GQUAL=debug:nu
67 7 Robert Hatcher
# version of genie_xsec to be generated
68 6 Robert Hatcher
XQUAL=default
69 6 Robert Hatcher
70 1 Robert Hatcher
cd /nusoft/app/externals/genie_xsec
71 1 Robert Hatcher
setup genie $GVER -q $GQUAL
72 1 Robert Hatcher
./make_skeleton $GVER $XQUAL
73 6 Robert Hatcher
74 1 Robert Hatcher
cd $GENIEXSECPATH
75 11 Robert Hatcher
pwd
76 11 Robert Hatcher
# verify this is the proper directory
77 11 Robert Hatcher
78 6 Robert Hatcher
[...populate with spline files ...]
79 11 Robert Hatcher
cd /path/to/spline/files/subdir
80 11 Robert Hatcher
cp -va * $GENIEXSECPATH
81 6 Robert Hatcher
</pre>
82 6 Robert Hatcher
83 8 Robert Hatcher
Generating the actual spline files requires running on the grid (and, thus, probably can't  done as the @nusoft@ account).  Instructions can be found at [[Creating_cross-section_spline_files]]