Skip to content

ibeuler/CMS_HEP_ANALYSIS_TUTORIAL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HEPTutorial: CMS Data Analysis Exercises

Overview

This project is a High Energy Physics (HEP) analysis tutorial inspired by CMS data and Monte Carlo simulations. It offers a practical, hands-on approach to learning data analysis techniques commonly used in particle physics, leveraging the ROOT framework and C++.

This tutorial is based on the official CMS HEP Tutorial by IPPOG, which I am using for self-study and learning.

Purpose

The primary goal of this repository is to facilitate learning and knowledge sharing. By completing the exercises, you will:

  • Understand the structure and workflow of HEP data analysis.
  • Learn how to select and analyze physics objects such as muons, electrons, and jets.
  • Practice creating, filling, and visualizing histograms.
  • Compare experimental data with Monte Carlo simulations.
  • Develop skills in modular C++ programming and the ROOT analysis framework.

This repository is designed for personal learning purposes and encourages experimentation and sharing of ideas.

Structure

  • Each exercise is implemented in a separate Git branch.
    • This allows you to focus on one analysis task at a time and track your progress.
  • The main files and their roles:
    • example.C: The main program. Sets up the analysis, processes data/MC files, and calls the plotter.
    • MyAnalysis.h / MyAnalysis.C: The core analysis logic. Handles event selection, object reconstruction, and histogram filling.
    • MyMuon.h, MyJet.h, etc.: Definitions for physics objects.
    • Plotter.h / Plotter.C: Handles plotting and visualization of histograms.
    • Makefile: Automates compilation.
    • files/: Contains input ROOT files (data and MC samples).
    • Output files (e.g., results.pdf): Plots generated by the analysis.

How to Use

  1. Clone the repository and check out the branch for the exercise you want to work on:
    git checkout exercise1
  2. Compile the code using the provided Makefile:
    make
  3. Run the analysis:
    ./example.x
  4. View the results in the generated PDF files (e.g., results.pdf).

Exercises

Each branch corresponds to a specific exercise, such as:

  • Muon multiplicity and invariant mass analysis (exercise 1)
  • Properties of top quark events (exercise 2)
  • Cross-section of top quark production (exercise 3)
  • Top quark mass reconstruction (exercise 4)

Follow the instructions in each branch to complete the exercise and learn the relevant analysis techniques.

Notes

  • This project is for educational purposes only.
  • The code is modular and can be extended for more advanced analyses.
  • If you have questions or want to try your own ideas, feel free to experiment by creating new branches.

Happy analyzing!

About

CMS data analysis tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published