1 |
pakhotin |
1.1 |
|
2 |
|
|
$Id: README,v 1.11 2011/11/22 10:10:30 pooja Exp $
|
3 |
|
|
|
4 |
|
|
Creating a user area in the CMSSW repository
|
5 |
|
|
--------------------------------------------
|
6 |
|
|
|
7 |
|
|
There is an area called "UserCode" in the CMSSW repository where you can
|
8 |
|
|
create yourself a package to store your code and cfg files, for example:
|
9 |
|
|
|
10 |
|
|
UserCode/PElmer
|
11 |
|
|
|
12 |
|
|
Note that this area is primarily intended for "user" code which will never
|
13 |
|
|
go into CMSSW software releases. If you intend for your code to go into
|
14 |
|
|
CMSSW releases, you should probably just request a normal package with the
|
15 |
|
|
normal procedure via the Tag Collector.
|
16 |
|
|
|
17 |
|
|
To create such a user CVS area for yourself, do the following:
|
18 |
|
|
|
19 |
|
|
1) Choose a packagename for yourself. Typically this should be your
|
20 |
|
|
name (e.g. with some capitalization as above, or your CERN unix
|
21 |
|
|
username, etc.) so that it is semi-obvious whose package it is.
|
22 |
|
|
|
23 |
|
|
2) Then create your package (here for an example "JohnDoe" user):
|
24 |
|
|
|
25 |
|
|
(set your CVSROOT to point to the CMSSW CVS repository)
|
26 |
|
|
('cd' to some temporary area)
|
27 |
|
|
cvs co UserCode/README
|
28 |
|
|
mkdir UserCode/JohnDoe
|
29 |
|
|
cd UserCode
|
30 |
|
|
cvs add JohnDoe
|
31 |
|
|
|
32 |
|
|
In general it is advisable to structure it like a normal CMSSW package,
|
33 |
|
|
i.e. with the same subdirectory structure. To do this, you can do:
|
34 |
|
|
|
35 |
|
|
mkdir JohnDoe/src JohnDoe/interface
|
36 |
|
|
cvs add JohnDoe/src JohnDoe/interface
|
37 |
|
|
mkdir JohnDoe/data JohnDoe/test
|
38 |
|
|
cvs add JohnDoe/data JohnDoe/test
|
39 |
|
|
|
40 |
|
|
If you do not think you need some of these subdirectories at the
|
41 |
|
|
moment, you simply do not 'mkdir' and 'cvs add' them.
|
42 |
|
|
|
43 |
|
|
3) Then you can 'cd' into the "src" area of some scram working/developer
|
44 |
|
|
area and do:
|
45 |
|
|
|
46 |
|
|
cvs co UserCode/JohnDoe
|
47 |
|
|
|
48 |
|
|
and begin to add your code and cfg files to the subdirectories. If you
|
49 |
|
|
need a BuildFile, you can copy an example from a normal CMSSW package
|
50 |
|
|
and edit it to serve your purposes.
|
51 |
|
|
|
52 |
|
|
*********************************************************************
|
53 |
|
|
** Please note that you should _not_ commit files to the UserCode **
|
54 |
|
|
** directory itself, but only in your equivalent of the "JohnDoe" **
|
55 |
|
|
** sub-directory.... **
|
56 |
|
|
*********************************************************************
|
57 |
|
|
|
58 |
|
|
** To add the files in the USerCode area, Do :
|
59 |
|
|
1.) Add the file in the area where you want to add
|
60 |
|
|
add myPlot.C psaxena/scripts/myPlot.C
|
61 |
|
|
|
62 |
|
|
2.) cvs commit psaxena/scripts/myPlot.C
|
63 |
|
|
|
64 |
|
|
3.) HelpPage:
|
65 |
|
|
http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/UserCode/README?view=markup
|
66 |
|
|
https://twiki.cern.ch/twiki/bin/view/Main/HowToUserCode |