1
- ## Description
2
- CMSSW module producing flat tuples from 2011A Jet data.
1
+ # CMS Jet Tuple production 2011
3
2
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.
7
4
5
+ Source code was originally forked from the SMPJ Analysis Framework:
6
+ https://twiki.cern.ch/twiki/bin/viewauth/CMS/SMPJAnalysisFW
8
7
https://github.com/cms-smpj/SMPJ/tree/v1.0/
9
8
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
11
12
12
- Create project directories :
13
+ This step is only needed the first time you run this program :
13
14
```
14
15
mkdir WorkingArea
15
16
cd ./WorkingArea
@@ -24,6 +25,55 @@ cd cms-opendata-2011-jets/AnalysisFW/python/
24
25
25
26
```
26
27
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
+
27
77
## Troubleshooting
28
78
29
79
### Missing condition database symlinks
@@ -39,16 +89,16 @@ Connection on "sqlite_file:./FT_53_LV5_AN1/AlCaRecoHLTpaths8e29_1e31_v13_offline
39
89
----- End Fatal Exception -------------------------------------------------
40
90
```
41
91
42
- Data:
43
-
92
+ * Data:
93
+ ```
44
94
ln -sf /cvmfs/cms-opendata-conddb.cern.ch/FT_53_LV5_AN1_RUNA FT_53_LV5_AN1
45
95
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
+ ```
49
99
ln -sf /cvmfs/cms-opendata-conddb.cern.ch/START53_LV6A1 START53_LV6A1
50
100
ln -sf /cvmfs/cms-opendata-conddb.cern.ch/START53_LV6A1.db START53_LV6A1.db
51
-
101
+ ```
52
102
53
103
### Missing Global tag
54
104
@@ -62,24 +112,24 @@ Valid site-local-config not found at /cvmfs/cms.cern.ch/SITECONF/local/JobConfig
62
112
----- End Fatal Exception -------------------------------------------------
63
113
```
64
114
65
- Add to the Python configuration:
66
-
67
- Data:
115
+ Add the following lines to the Python configuration:
68
116
117
+ * Data:
118
+ ```
69
119
process.GlobalTag.connect = cms.string('sqlite_file:/cvmfs/cms-opendata-conddb.cern.ch/FT_53_LV5_AN1_RUNA.db')
70
120
process.GlobalTag.globaltag = 'FT_53_LV5_AN1::All'
71
-
72
- Monte Carlo:
73
-
121
+ ```
122
+ * Monte Carlo:
123
+ ```
74
124
process.GlobalTag.connect = cms.string('sqlite_file:/cvmfs/cms-opendata-conddb.cern.ch/START53_LV6A1.db')
75
125
process.GlobalTag.globaltag = cms.string('START53_LV6A1::All')
76
-
126
+ ```
77
127
78
128
### Missing environment
79
129
80
130
bash: cmsRun: command not found
81
131
82
- Setup the environment by running:
132
+ Source the environment by running:
83
133
84
134
cmsenv
85
135
0 commit comments