- zh_CN 简体中文
This is a simple analysis example to compute the spectrum of two muon final state with CMS Open Data. The goal is to reproduce the results histogram in this paper, Searching in CMS Open Data for Dimuon Resonances with Substantial Transverse Momentum. This repository also made reference to another GitHub project, DimounSpectrum2011
You can run this code in CMS Open Data VM. If you have not installed the CMSSW area do the following:
cmsrel CMSSW_5_3_32
You can also run this code in a CMS Open Data Docker container if you are interested in that:
docker run --name dimu2011mc -it cmsopendata/cmssw_5_3_32 bash
If you already have the CMSSW on your VM or run the docker container, start directly with:
cd CMSSW_5_3_32/src
cmsenv
For this example, you need to create an additional directory, you can call it WorkDir
or choose another name. The name doesn't matter.
Go to this directory, and download the example code. (the default branch is datamaster
)
mkdir WorkDir
cd WorkDir
git clone git://github.com/PhyM73/DimuonSpectrum2011MC.git
Go to the example directory, and compile with scram b
.
cd DimuonSpectrum2011MC
scram b
The input files are defined in the configuration file demoanalyzer_cfg.py
and are already in the datasets
directory. In order not to overwrite the existing DoubleMu2011.root, to which you can compare your output, rename it before you run.
Now run the configuration file.
cmsRun demoanalyzer_cfg.py
The output of the example is a root file containing several histograms, by default DoubleMu2011.root with 10000 input events (small subset of data). These can be looked at using a Root Browser.
For more detailed information, read the comments in src/DimuonSpectrum2011MC.cc.
There are some differences between the analysis workflow for collision data and MC samples. The MC samples don't have any trigger path but do need to perform some analysis to compute efficiency. Hence the example has different branches for different datasets and analysis platforms, i.e. local computer or condor. Below are the descriptions of different branches.
datamaster
is for code testing and simple analysis, This branch process 10000 events from 2011a datasets by default and this is the default branch.datacondor
is for condor submitting. This branch is for processing all the events found in the path./data
which should be created in the input executable for condor submitting. You can use this branch to analyze all the events from 2011a datasets by setting a proper number of jobs.mcmaster
is for code testing and simple analysis, This branch process 10000 events from Monte Carlo datasets by default.mccondor
is for condor submitting. This branch process all the events found in the path./data
which should be created in the input executable for condor submitting. You can use this branch to analyze all the events from MC datasets by setting a proper number of jobs.
datasets
include files below
-
datasets/double
DoubleMu primary dataset in AOD format from RunA of 2011 -
datasets/single
SingleMu primary dataset in AOD format from RunA of 2011 -
datasets/mc
-
datasets/double100
Files indatasets/double
divided into every 100 indexes. -
datasets/mc100
Files indatasets/mc
divided into every 100 indexes. -
CMS list of validated runs for primary datasets of 2011 data taking
You can obtain the luminosity information from CMS luminosity information for 2011 CMS open data as needed.