Project

General

Profile

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

Robert Hatcher, 10/26/2012 05:30 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 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.
34 10 Robert Hatcher
35 11 Robert Hatcher
h2. install new @genie_phyopt@
36 9 Robert Hatcher
37 6 Robert Hatcher
As @nusoft@:
38 2 Robert Hatcher
<pre>
39 2 Robert Hatcher
source /nusoft/app/externals/setup
40 2 Robert Hatcher
41 3 Robert Hatcher
# GENIE version and qualifier needed for setup
42 2 Robert Hatcher
GVER=v3470
43 2 Robert Hatcher
GQUAL=debug:nu
44 1 Robert Hatcher
# version of genie_phyopt to be generated
45 2 Robert Hatcher
POQUAL=dkcharmtau
46 2 Robert Hatcher
47 1 Robert Hatcher
cd /nusoft/app/externals/genie_phyopt
48 1 Robert Hatcher
setup genie $GVER -q $GQUAL
49 1 Robert Hatcher
./make_skeleton $GVER $POQUAL
50 5 Robert Hatcher
51 5 Robert Hatcher
setup genie_phyopt $GVER -q $POQUAL
52 5 Robert Hatcher
cd $GENIEPHYOPTPATH
53 5 Robert Hatcher
./make_dkcharmtau_phyopt
54 5 Robert Hatcher
55 1 Robert Hatcher
</pre>
56 6 Robert Hatcher
57 11 Robert Hatcher
h2. install new @genie_xsec@
58 6 Robert Hatcher
59 6 Robert Hatcher
As @nusoft@:
60 6 Robert Hatcher
<pre>
61 6 Robert Hatcher
source /nusoft/app/externals/setup
62 6 Robert Hatcher
63 6 Robert Hatcher
# GENIE version and qualifier needed for setup
64 6 Robert Hatcher
GVER=v3470
65 6 Robert Hatcher
GQUAL=debug:nu
66 7 Robert Hatcher
# version of genie_xsec to be generated
67 6 Robert Hatcher
XQUAL=default
68 6 Robert Hatcher
69 1 Robert Hatcher
cd /nusoft/app/externals/genie_xsec
70 1 Robert Hatcher
setup genie $GVER -q $GQUAL
71 1 Robert Hatcher
./make_skeleton $GVER $XQUAL
72 6 Robert Hatcher
73 1 Robert Hatcher
cd $GENIEXSECPATH
74 11 Robert Hatcher
pwd
75 11 Robert Hatcher
# verify this is the proper directory
76 11 Robert Hatcher
77 6 Robert Hatcher
[...populate with spline files ...]
78 11 Robert Hatcher
cd /path/to/spline/files/subdir
79 11 Robert Hatcher
cp -va * $GENIEXSECPATH
80 6 Robert Hatcher
</pre>
81 6 Robert Hatcher
82 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]]