Skip to content

Commit 73a8a7a

Browse files
authored
Combined both readmes into one.
1 parent 602b415 commit 73a8a7a

File tree

1 file changed

+71
-21
lines changed

1 file changed

+71
-21
lines changed

README.md

Lines changed: 71 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
## Description
2-
CMSSW module producing flat tuples from 2011A Jet data.
1+
# CMS Jet Tuple production 2011
32

4-
Source code was forked from the SMPJ Analysis Framework:
5-
6-
https://twiki.cern.ch/twiki/bin/viewauth/CMS/SMPJAnalysisFW
3+
This project is a CMSSW module producing flat tuples from 2011A Jet data.
74

5+
Source code was originally forked from the SMPJ Analysis Framework:
6+
https://twiki.cern.ch/twiki/bin/viewauth/CMS/SMPJAnalysisFW
87
https://github.com/cms-smpj/SMPJ/tree/v1.0/
98

10-
## Setup
9+
The instruction assume that you will work on a VM properly contextualized for CMS, available from http://opendata.cern.ch/VM/CMS.
10+
11+
## Creating the working area
1112

12-
Create project directories:
13+
This step is only needed the first time you run this program:
1314
```
1415
mkdir WorkingArea
1516
cd ./WorkingArea
@@ -24,6 +25,55 @@ cd cms-opendata-2011-jets/AnalysisFW/python/
2425
2526
```
2627

28+
## Setting up additional files
29+
30+
With `cms-opendata-2011-jets/AnalysisFW/python/` as the current folder, run the following commands:
31+
32+
1. Download index files :
33+
34+
```
35+
wget http://opendata.cern.ch/record/21/files/CMS_Run2011A_Jet_AOD_12Oct2013-v1_20000_file_index.txt
36+
wget http://opendata.cern.ch/record/1562/files/CMS_MonteCarlo2011_Summer11LegDR_QCD_Pt-80to120_TuneZ2_7TeV_pythia6_AODSIM_PU_S13_START53_LV6-v1_00000_file_index.txt
37+
```
38+
39+
2. Download JSON of good runs:
40+
41+
```
42+
wget http://opendata.cern.ch/record/1001/files/Cert_160404-180252_7TeV_ReRecoNov08_Collisions11_JSON.txt
43+
```
44+
45+
3. Make link to the condition databases:
46+
47+
```
48+
ln -sf /cvmfs/cms-opendata-conddb.cern.ch/FT_53_LV5_AN1_RUNA FT_53_LV5_AN1
49+
ln -sf /cvmfs/cms-opendata-conddb.cern.ch/FT_53_LV5_AN1_RUNA.db FT_53_LV5_AN1_RUNA.db
50+
51+
ln -sf /cvmfs/cms-opendata-conddb.cern.ch/START53_LV6A1 START53_LV6A1
52+
ln -sf /cvmfs/cms-opendata-conddb.cern.ch/START53_LV6A1.db START53_LV6A1.db
53+
```
54+
55+
## Run the program:
56+
To create tuples from data run the following command:
57+
```
58+
cmsRun OpenDataTreeProducer_dataPAT_2011_cfg.py
59+
```
60+
This command creates tuples from Monte Carlo simulations:
61+
```
62+
cmsRun OpenDataTreeProducer_mcPAT_2011_cfg.py
63+
```
64+
65+
After running the code, you can browse the tuples by opening the produced files in ROOT:
66+
67+
```
68+
root OpenDataTree_*
69+
```
70+
Finally, run this command in the ROOT command prompt:
71+
72+
```
73+
TBrowser t
74+
```
75+
76+
2777
## Troubleshooting
2878
2979
### Missing condition database symlinks
@@ -39,16 +89,16 @@ Connection on "sqlite_file:./FT_53_LV5_AN1/AlCaRecoHLTpaths8e29_1e31_v13_offline
3989
----- End Fatal Exception -------------------------------------------------
4090
```
4191
42-
Data:
43-
92+
* Data:
93+
```
4494
ln -sf /cvmfs/cms-opendata-conddb.cern.ch/FT_53_LV5_AN1_RUNA FT_53_LV5_AN1
4595
ln -sf /cvmfs/cms-opendata-conddb.cern.ch/FT_53_LV5_AN1_RUNA.db FT_53_LV5_AN1_RUNA.db
46-
47-
Monte Carlo:
48-
96+
```
97+
* Monte Carlo:
98+
```
4999
ln -sf /cvmfs/cms-opendata-conddb.cern.ch/START53_LV6A1 START53_LV6A1
50100
ln -sf /cvmfs/cms-opendata-conddb.cern.ch/START53_LV6A1.db START53_LV6A1.db
51-
101+
```
52102
53103
### Missing Global tag
54104
@@ -62,24 +112,24 @@ Valid site-local-config not found at /cvmfs/cms.cern.ch/SITECONF/local/JobConfig
62112
----- End Fatal Exception -------------------------------------------------
63113
```
64114
65-
Add to the Python configuration:
66-
67-
Data:
115+
Add the following lines to the Python configuration:
68116
117+
* Data:
118+
```
69119
process.GlobalTag.connect = cms.string('sqlite_file:/cvmfs/cms-opendata-conddb.cern.ch/FT_53_LV5_AN1_RUNA.db')
70120
process.GlobalTag.globaltag = 'FT_53_LV5_AN1::All'
71-
72-
Monte Carlo:
73-
121+
```
122+
* Monte Carlo:
123+
```
74124
process.GlobalTag.connect = cms.string('sqlite_file:/cvmfs/cms-opendata-conddb.cern.ch/START53_LV6A1.db')
75125
process.GlobalTag.globaltag = cms.string('START53_LV6A1::All')
76-
126+
```
77127
78128
### Missing environment
79129
80130
bash: cmsRun: command not found
81131
82-
Setup the environment by running:
132+
Source the environment by running:
83133
84134
cmsenv
85135

0 commit comments

Comments
 (0)