forked from CSEmbree/MyAnalysis
/
README_NEW
143 lines (103 loc) · 4.53 KB
/
README_NEW
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
Read through this document to understand what is
needed to create plots with the MyAnalysis framwork.
README Structure:
1. DEPENDANCIES
1.a FILES
1.b SOFTWARE
1.c STEERING
2. SETUP
2.a INSTALL DEPENDANCIES
2.b UPDATE SETUP SCRIPT
3. RUNNING
4. EXAMPLE(s)
#######################################################
# 1. DEPENDANCIES #
#######################################################
##############################
# 1.a FILES #
##############################
Need access to newest of the following files (which
should already be in the MyAnalysis svn):
MyBand.{cxx,h} - Does PDF(s) overlay & ratio drawing
MyCrossSection.{cxx,h} - Deals with other classes & draws frame
MyData.{cxx,h} - Reads & holds MyData steering info
MyEvent.{cxx,h} - Holds event details
MyFrame.{cxx,h} - The framewith anoverlay & ratio section
MyFrameData.{cxx,h}
MyGrid.{cxx,h} - home for Applgrid inforamtion
MyPDF.{cxx,h} - Holds PDF inforamtion
MyGrids/ - Directory for holding APPLGrids
MyPDF/ - Directory holding MyPDF steerings
These code and directories are needed for the
MyAnalysis framework. The MyGrids directory is not
'needed' because you can place your applegrids
wherever you want in the project directory, so long
as the MyGrid steering path is correct.
##############################
# 1.b SOFTWARE #
##############################
Also needed is the following software:
hoppet - 1.1.6
applgrid - Any version (recommend 1.4.56 )
root - A version <= v5.34.18
LHAPDF - 5.9.1 (avoid > 6 for now b/c of PDF directory changes)
The above code is needed because Hoppet is used by Applgrid,
LHAPDF houses the PDF code and files, and everyone needed ROOT.
This software can be downloaded by doing each of the following as commands in Terminal:
svn checkout http://hoppet.hepforge.org/svn/trunk hoppet
wget http://www.hepforge.org/archive/applgrid/applgrid-1.4.56.tgz
wget ftp://root.cern.ch/root/root_v5.34.20.source.tar.gz
wget http://www.hepforge.org/archive/lhapdf/lhapdf-5.9.1.tar.gz
Also, if the account 'jgibson' is still available in AFS, copies of all working versions of
each (in the form of tarballs) can be found in /afs/cern.ch/work/j/jgibson/public/software
Also needed is to link a PDFsets directory to the home project
directory. Either link to the one provided in the lhapdf-config
path, like so:
ln -s `lhapdf-config --pdfsets-path`
You can also link your own PDFsets directory:
ln -s <some/path/PDFsets> .
##############################
# 1.c STEERING #
##############################
The MyAnalysis code also uses steering file to run
examples can be found in the the 'example' directory.
A MyCrossSection steering file requires a MyGrid
steering, MyPDF steering, and MyData steering.
examples of steering files for these can be found in
the 'docs' directory
#######################################################
# 2. SETUP #
#######################################################
##############################
# 2.a INSTALL DEPENDANCIES #
##############################
First install all dependant software, which can all
be found in the above DEPENDANCES section 1.b.
##############################
# 2.b UPDATE SETUP SCRIPT #
##############################
Edit the setup script called 'setuplxplus.sh' to your
liking, and then perform:
source setuplxplus.sh
make clean
make
#######################################################
# 3. RUNNING #
#######################################################
Executable 'plot' which is generated after a 'make'
takes only one parameter, a MyCrossSection steering
file.
Make your own steering files in the format that can
be found in the 'docs' directory. Examples is also
found in the 'example' directory.
Output from running will show in root, so you should
enable X11 forwarding if you are ssh'ing in, which
for cern lxplus user's looks something like:
ssh -X username@lxplus.cern.ch
####################################################
# 4. EXAMPLE RUNS #
####################################################
EXAMPLE RUN(S):
Consider the example in the example directory that
can be ran with:
./plot example/atlastest.txt