Project

General

Profile

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

Robert Hatcher, 10/26/2012 05:27 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 3 Robert Hatcher
is read for any genie session, so picking the right one is *important*.  If other parameters are being modified then it should start with
17 3 Robert Hatcher
the @-q dkcharmtau@ changes as a base (if this is desired).  Then an alternative @-q@ version should be declared to UPS; the 
18 3 Robert Hatcher
make_skeleton script (below) can help with that.
19 3 Robert Hatcher
20 9 Robert Hatcher
h2. setup @genie_xsec@
21 1 Robert Hatcher
22 9 Robert Hatcher
This UPS product provides a standardized way of packaging genie cross-section spline files.
23 9 Robert Hatcher
24 9 Robert Hatcher
the basic thought is users (or expts) would invoke:
25 9 Robert Hatcher
<pre>
26 9 Robert Hatcher
  setup genie <version> -q <qualifier>
27 9 Robert Hatcher
  setup genie_xsec <version> -q default
28 9 Robert Hatcher
</pre>
29 9 Robert Hatcher
30 9 Robert Hatcher
h1. Creating new versions of these packages
31 9 Robert Hatcher
32 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@
33 11 Robert Hatcher
For both sets of instructions you must log into a machine as @nusoft@; that machine must have @/nusoft/app/externals/@ mounted.
34 11 Robert Hatcher
After doing anything the @/nusoft/app/externals@ area please be sure to log your changes in @/nusoft/app/externals/LOG@ by editing the file.
35 10 Robert Hatcher
36 11 Robert Hatcher
h2. install new @genie_phyopt@
37 9 Robert Hatcher
38 6 Robert Hatcher
As @nusoft@:
39 2 Robert Hatcher
<pre>
40 2 Robert Hatcher
source /nusoft/app/externals/setup
41 2 Robert Hatcher
42 3 Robert Hatcher
# GENIE version and qualifier needed for setup
43 2 Robert Hatcher
GVER=v3470
44 2 Robert Hatcher
GQUAL=debug:nu
45 1 Robert Hatcher
# version of genie_phyopt to be generated
46 2 Robert Hatcher
POQUAL=dkcharmtau
47 2 Robert Hatcher
48 1 Robert Hatcher
cd /nusoft/app/externals/genie_phyopt
49 1 Robert Hatcher
setup genie $GVER -q $GQUAL
50 1 Robert Hatcher
./make_skeleton $GVER $POQUAL
51 5 Robert Hatcher
52 5 Robert Hatcher
setup genie_phyopt $GVER -q $POQUAL
53 5 Robert Hatcher
cd $GENIEPHYOPTPATH
54 5 Robert Hatcher
./make_dkcharmtau_phyopt
55 5 Robert Hatcher
56 1 Robert Hatcher
</pre>
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]]