• Help
    Discussion forum
    Search tips
  • About
    CERN Open Data
    ALICE
    ATLAS
    CMS
    DELPHI
    JADE
    LHCb
    OPERA
    TOTEM
    Glossary

Important notice: opendata-qa.cern.ch is a quality-assurance server. Please use it for testing purposes only. The content may be erased from time to time. Please use opendata.cern.ch for production.

Example code to produce the di-muon spectrum from a CMS 2010 primary dataset

Geiser, Achim ; Dutta, Irene ; Hirvonsalo, Harri ; Sheeran, Bridget

Cite as: Geiser, Achim; Dutta, Irene; Hirvonsalo, Harri; Sheeran, Bridget; (2016). Example code to produce the di-muon spectrum from a CMS 2010 primary dataset. CERN Open Data Portal. DOI:10.7483/OPENDATA.CMS.TF26.KG2D

Software Analysis CMS CERN-LHC


Description

This simple analysis example is set up at Research level, i.e. it requires university-student-level programming experience. Minimal acquaintance with Linux and the ROOT analysis package (https://root.cern.ch/) as well as a basic text editor is needed.

Use with

Use this with 2010 Mu primary datasets or any other 2010 primary datasets containing muons.

/Mu/Run2010B-Apr21ReReco-v1/AOD

System details

Use this code with the CMS Open Data VM environment
CMSSW_4_2_8

CMS VM Image, for 2010 CMS open data

Validation

Only the list of validated runs are accepted:

CMS list of validated runs Cert_136033-149442_7TeV_Apr21ReReco_Collisions10_JSON_v2.txt

How can you use this?

If you do not have the CERN Virtual Machine for 2010 CMS data installed, follow the instructions in step 1 at How to install a CERN Virtual Machine. Then install and run the Demo (demo analyzer) program following the instructions at How to Test & Validate.

To run the "di-muon spectrum" demo:

  1. Create directory datasets under Demo/DemoAnalyzer.
  2. Download the index files for the /Mu/Run2010B-Apr21ReReco-v1/AOD primary datasets and store them in Demo/DemoAnalyzer/datasets/.
  3. Download the JSON file from CMS Validated Runs and save it to the Demo/DemoAnalyzer/datasets directory.
  4. Replace the three files BuildFile.xml, demoanalyzer_cfg.py, src/DemoAnalyzer.cc with the ones from this record and read the comments in DemoAnalyzer.cc if you want to understand what the program does.
  5. Recompile (scram b) and rerun (cmsRun ...) exactly as shown before in How to Test & Validate.
  6. You should get an output file Mu.root, which contains histograms for 10000 input events (a small subset of the data). These can be looked at using a ROOT Browser (see above, under Description). The most interesting histogram is GM_mass_log. In order to compare it with the invariant-mass spectrum of di-muons in MUO-10-004, it should be viewed with the logy option. Of course with 10000 events the comparison is poor, but the J/ψ (at log10(mass)=0.5), Υ (at log10(mass=0.98)) and Z (at log10(mass)=1.95, one event only) peaks should be visible.
  7. Finally, to run over more or even the full data, edit the relevant parts of the Python file demoanalyzer_cfg.py (see comments therein) and rerun. Add up the output histograms from different (non-overlapping) input index files using ROOT tools.


      

Disclaimer

These open data are released under the GNU General Public License v3.0.

Logo GPL-3.0-only

Neither the experiment(s) ( CMS ) nor CERN endorse any works, scientific or otherwise, produced using these data.

This release has a unique DOI that you are requested to cite in any applications or publications.

ALICE experiment
ATLAS experiment
CMS experiment
DELPHI experiment
JADE experiment
LHCb experiment
OPERA experiment
PHENIX experiment
TOTEM experiment
© CERN, 2014–2025 ·
Terms of Use ·
Privacy Policy ·
Help ·
GitHub ·
Twitter ·
Email
Powered by Invenio
Open Data Portal v0.3.0
CERN