Skip to content

Commit 9c42b82

Browse files
authored
Update README.md
1 parent 2fde4da commit 9c42b82

File tree

1 file changed

+61
-12
lines changed

1 file changed

+61
-12
lines changed

README.md

Lines changed: 61 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,71 @@ In order to run the demoanalyzer_cfg.py to create the ROOT files, you need to cr
88
CMS environment.
99

1010
## Creating the Working area
11-
1211
This step is only needed the first time.
13-
14-
'''
12+
```
1513
cmsrel CMSSW_4_2_8
16-
'''
17-
14+
```
1815
## Cloning the 2010-minimumbias-trackvertex repository from Github
19-
2016
Type this command to change directory:
21-
22-
'''
17+
```
2318
cd CMSSW_4_2_8/src
24-
'''
25-
19+
```
2620
For cloning type:
27-
'''
21+
```
2822
git clone https://github.com/cms-opendata-validation/2010-minimumbias-trackvertex Validation/TrackVertex_2010
29-
'''
23+
```
24+
## Setting up the CMS environment
25+
```
26+
cd Validation/TrackVertex_2010
27+
cmsenv
28+
```
29+
## Compiling and Running
30+
```
31+
scram b
32+
cmsRun demoanalyzer_cfg.py
33+
```
34+
35+
After analysis, MinBias00val.root file should be created.
36+
Then, is necessary to change input and also output files in demoanalyzer_cfg.py, to save these changes and to rerun program.
37+
In the datasets directory in the repository from github are index files with names:
38+
39+
```
40+
CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0000_file_index.txt
41+
CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0001_file_index.txt
42+
CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0002_file_index.txt
43+
CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0003_file_index.txt
44+
CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0004_file_index.txt
45+
CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0005_file_index.txt
46+
CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0006_file_index.txt
47+
```
48+
These index files are the same as you can find in the open data portal record http://opendata.cern.ch/record/8 , they are copied here for convenience and also for details of the analysis you can read comments in the analysis code TrackVertexAnalyzer.cc .
49+
It necessary to note that whole analysis can take around 16 hours!
50+
51+
When you rerun all seven index files you should have seven root files with names:
52+
```
53+
MinBias00val.root
54+
MinBias01val.root
55+
MinBias02val.root
56+
MinBias03val.root
57+
MinBias04val.root
58+
MinBias05val.root
59+
MinBias06val.root
60+
```
61+
62+
The last thing what you should do is to merge these seven root files into one root file.
63+
You do this as follow. In the downloaded repository is also file with name mergeMinBias.C .
64+
Type command for opening ROOT program:
65+
```
66+
root
67+
```
68+
In this program just type command:
69+
```
70+
.x mergeMinBias.C
71+
```
72+
This merging creates a root file called MinBiasAllval.root .
73+
To look at this output, write down command in ROOT program:
74+
```
75+
new TBrowser
76+
```
77+
and navigate to relevant file.
78+
The most interesting histograms are the inclusive track pt spectra: 2.6pt, 2.4pt... - ...0.4pt, 0.2pt corresponding to the |eta| ranges 2.6-2.4, 2.4-2.2, ... , 0.4-0.2, 0.2-0.0

0 commit comments

Comments
 (0)