Skip to content

Commit 1008941

Browse files
authored
Merge pull request #1 from Lukas9318/master
TrackVertex
2 parents 12bebfb + b8ee859 commit 1008941

13 files changed

+2893
-0
lines changed

BuildFile.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<use name="FWCore/Framework"/>
2+
<use name="FWCore/PluginManager"/>
3+
<use name="FWCore/ParameterSet"/>
4+
<use name="DataFormats/TrackReco"/>
5+
<use name="CommonTools/UtilAlgos"/>
6+
<use name="PhysicsTools/UtilAlgos"/>
7+
<use name="DataFormats/MuonReco"/>
8+
<use name="RecoMuon/TrackingTools"/>
9+
<flags EDM_PLUGIN="1"/>
10+
<export>
11+
<lib name="1"/>
12+
</export>

README.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,78 @@
11
# 2010-minimumbias-trackvertex
22
Validation code for 2010 MinimumBias dataset, based on track and vertex spectra
3+
4+
You need to work in a Virtual Machine properly contextualized for CMS. Everything is available on the CERN Open Data Portal:
5+
http://opendata.cern.ch/VM/CMS/2010.
6+
7+
In order to run the demoanalyzer_cfg.py to create the ROOT files, you need to create a working area and set up a proper
8+
CMS environment.
9+
10+
## Creating the Working area
11+
This step is only needed the first time.
12+
```
13+
cmsrel CMSSW_4_2_8
14+
```
15+
## Cloning the 2010-minimumbias-trackvertex repository from Github
16+
Type this command to change directory:
17+
```
18+
cd CMSSW_4_2_8/src
19+
```
20+
For cloning type:
21+
```
22+
git clone https://github.com/cms-opendata-validation/2010-minimumbias-trackvertex Validation/TrackVertex_2010
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

datasets/CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0000_file_index.txt

Lines changed: 553 additions & 0 deletions
Large diffs are not rendered by default.

datasets/CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0001_file_index.txt

Lines changed: 264 additions & 0 deletions
Large diffs are not rendered by default.

datasets/CMS_Run2010B_MinimumBias_AOD_Apr21ReReco-v1_0002_file_index.txt

Lines changed: 250 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root://eospublic.cern.ch//eos/opendata/cms/Run2010B/MinimumBias/AOD/Apr21ReReco-v1/0003/00B988CA-FF70-E011-9D5D-0018F3D096B6.root
2+
root://eospublic.cern.ch//eos/opendata/cms/Run2010B/MinimumBias/AOD/Apr21ReReco-v1/0003/0470A792-EA70-E011-940B-003048678E80.root
3+
root://eospublic.cern.ch//eos/opendata/cms/Run2010B/MinimumBias/AOD/Apr21ReReco-v1/0003/0AFC645F-EC70-E011-82C1-001A92971B7E.root
4+
root://eospublic.cern.ch//eos/opendata/cms/Run2010B/MinimumBias/AOD/Apr21ReReco-v1/0003/1696F03E-1271-E011-86A4-0018F3D0970A.root
5+
root://eospublic.cern.ch//eos/opendata/cms/Run2010B/MinimumBias/AOD/Apr21ReReco-v1/0003/388577A4-1E71-E011-A5BE-00261894396A.root
6+
root://eospublic.cern.ch//eos/opendata/cms/Run2010B/MinimumBias/AOD/Apr21ReReco-v1/0003/4A75CC77-EA70-E011-896A-0030486790FE.root
7+
root://eospublic.cern.ch//eos/opendata/cms/Run2010B/MinimumBias/AOD/Apr21ReReco-v1/0003/525A0C02-1571-E011-A098-001A92810AEC.root
8+
root://eospublic.cern.ch//eos/opendata/cms/Run2010B/MinimumBias/AOD/Apr21ReReco-v1/0003/70B7B926-A070-E011-A6C3-002618943923.root
9+
root://eospublic.cern.ch//eos/opendata/cms/Run2010B/MinimumBias/AOD/Apr21ReReco-v1/0003/AADFEEA7-FF70-E011-808B-001A92971B04.root
10+
root://eospublic.cern.ch//eos/opendata/cms/Run2010B/MinimumBias/AOD/Apr21ReReco-v1/0003/C05F534D-EC70-E011-BB1F-0018F3D0970C.root
11+
root://eospublic.cern.ch//eos/opendata/cms/Run2010B/MinimumBias/AOD/Apr21ReReco-v1/0003/CEED2922-2271-E011-B195-001A92971BCA.root

0 commit comments

Comments
 (0)