Skip to content
Snippets Groups Projects
Commit 2fe21937 authored by Giacomo De Pietro's avatar Giacomo De Pietro :goat:
Browse files

Remove old exercises

parent a636caa7
Branches
No related tags found
No related merge requests found
Showing
with 0 additions and 5204 deletions
File deleted
This diff is collapsed.
File deleted
This diff is collapsed.
File deleted
This diff is collapsed.
File deleted
../geant4_simulation
\ No newline at end of file
%% Cell type:markdown id: tags:
---
# Particle Physics 1
## Exercise 4: Working principle of calorimeters
**Institut für Experimentelle Teilchenphysik** <br>
Lecture: Prof. Dr. T. Ferber <br>
Exercise: Dr. T. Chwalek <br>
Assistance: O. Lavoryk, M. Molch, M. Mormille, R. Quishpe <br>
Hand-In: 23.11.2023
---
%% Cell type:markdown id: tags:
This exercise sheet gives an overview of the working principle of calorimeters.
The [introduction](#Intro) provides an overview of the different types of calorimeters, connects the knowledge from the undergrad courses to the current lecture and sets the environment for the following exercises.
[Exercise 1](#Exercise1) performs a simplified calibration to connect a measured detector readout to the observed deposited energy of photons.
Subsequently, [Exercise 2](#Exercise2) repeats the methods from the first exercise for different particle types.
Finally, [Exercise 3](#Exercise3) discusses and determines the energy resolution in calorimeters.
%% Cell type:markdown id: tags:
---
# Introduction: Calorimeter <a id="Intro"></a>
---
The [fifth lecture](https://ilias.studium.kit.edu/goto.php?target=file_1976263_download&client_id=produktiv) introduces two specialised calorimeter concepts with the common task of measuring the energy of incoming particles.
The distinction between these two types is often made because of the respective challenges they face.
Electromagnetic calorimeters are primarily optimised to measure as precisely as possible the energy of photons and electrons.
In the previous exercise, you were already made familiar with the basic concepts of this type of shower.
To keep things simple, this exercise sheet will build on the learned principles.
The other type of calorimeters, namely hadron calorimeters, specials on dealing with hadronic showers.
The key differences for hadronic showers are:
- The hadronic interaction length is much larger than the radiation length of photons and electrons.
- Hadronic showers consist to about a third of neutral pions that decay into two photons.
- Lastly, hadronic showers contain a large fraction (20-40%) of "invisible" particles which reduces the possible energy resolution in comparison to electromagnetic calorimeters.
<div>
<img src="HadronicShower.png" width="800"/>
</div>
[Source](https://www.physi.uni-heidelberg.de/~sma/teaching/ParticleDetectors2/sma_HadronicCalorimeters.pdf)
Another design choice for calorimeters is (are) the used material(s). A first-order distinction can be made for the homogenous and sampling calorimeter:
- **Sampling calorimeter** <br>
Sampling calorimeters have a layered structure with alternating layers of absorber (passive) and detector (active) material.
On the one hand, the design and material choice are flexible and optimisable to a specific task or financial budget.
On the other hand, some of the energy is deposited in the absorber which limits the energy resolution.
- **Homogenous calorimeter** <br>
Here, one material is used simultaneously as an absorber and active material.
Consequently, all the energy is deposited in the detector which allows for an optimal energy resolution.
Also, the choice of the material can be specialised to the task, e.g. CsI has a very low light yield but allows for fast readout; CsI(Tl) has high light yield but slow readout.
However, the materials capable of this task (mostly scintillator crystals) are custom made which makes them often very expensive and very heavy.
The following exercises will focus on a sampling calorimeter structure with lead absorbers and liquid argon as active material.
A key aspect of calorimeters is the readout of the detector which determines the measured energy of the particle.
As discussed in the [third lecture](https://ilias.studium.kit.edu/goto.php?target=file_1966617_download&client_id=produktiv), the total number of particles in an electromagnetic shower is proportional to the initial energy of the particle.
One very common use case in high-energy particle experiments is the use of scintillation materials.
In this case, the electromagnetic shower leads to the production of photons in the visible spectrum which can be measured by photo multipliers, photo diodes, etc.
For example, the voltage measured at a silicon photomultiplier is proportional to the number of incoming photons which in turn is proportional to the initial energy.
The following exercises will discuss a closely related measurement principle: The count of charged particles in the active material.
%% Cell type:markdown id: tags:
---
# Exercise 1: Calorimeter calibration <a id="Exercise1"></a>
---
This exercise presents a very simplified version of the calibration of the photon energy deposition in a calorimeter.
The goal is to determine the relation between the number of charged shower particles (in reality this would be a current) in the detector and the corresponding initial energy.
The setup is inspired by the [sampling electromagnetic calorimeter (ECAL) of ATLAS](https://atlas.cern/Discover/Detector/Calorimeter).
Here, incoming particles can shower in the lead absorbers.
The shower particles then ionize the liquid argon, ions drift to electrodes and the resulting number of charged particles (current) is measured.
%% Cell type:markdown id: tags:
To set up the simulation for this exercise follow the initialization instructions from the previous exercises.
In this and the following exercises, we will use a different physics list than in the previous exercises.
We will use the physics list `MyQGSP_BERT` which includes hadronic interactions as well.
The desired sampling calorimeter can be built by the `samplingcalo(lenAbsorber, lenActive, numLayers)` geometry.
This method produces `numLayers` layers of $(10\times 10\times\text{lenAbsrober/lenActive})\,$cm alternating absorber/active material. <br>
For example,
```python
g4.set_geometry('samplingcalo(2.,1.,15)')
```
will create a calorimeter with lead absorbers of thickness 2 cm and scintillator tiles of thickness 1 cm, and a total of 15 absorber layers.
Initialize the simulation:
- Construct the `ApplicationManager()`,
- build the calorimeter from the example,
- set the correct physics list and
- initialize.
%% Cell type:code id: tags:
``` python
import geant4_simulation as g4sim
import numpy as np
import matplotlib.pyplot as plt
from kafe2 import XYContainer, Fit, Plot
# Initialize the simulation.
# Your code ...
```
%% Cell type:markdown id: tags:
In this exercise, calibrate the given calorimeter for photons, i.e. determine the constant that translates the number $N_{c}$ of charged particles passing the scintillator into the energy $E_{\text{in}}$ of the initial particle.
To compute $N_{c}$, simulate for 20 different energies in the interval of $[1, 15]\,$GeV the interaction of 100 photons with the given calorimeter.
For each simulated photon, read the number of charged particles traversing the scintillator layers.
The number can be obtained using the `calo_readout()` method from the `ApplicationManager` class.
Be aware, this method only works for one event, therefore, you need to loop over the desired number of photon interaction simulations.
Compute the mean and its uncertainty (standard deviation divided by the square root of the number of samples) for each energy and store the result.
Finally, fit the mean number of charged tracks per event and the simulated energy with an appropriate model.
**Hint**: A smaller sample size while debugging the code can be useful here. <br>
**Hint**: For a fit with `kafe2` you can use the `XYContainer` and `Fit` modules.
%% Cell type:code id: tags:
``` python
# Your code ...
```
%% Cell type:markdown id: tags:
---
# Exercise 2: Calorimeter response to different particle types <a id="Exercise2"></a>
---
In this exercise, investigate the response of our sampling calorimeter to different types of particles.
Write a module that repeats the previous exercise as follows:
- Set the particle type.
- Define the desired energies. Here, choose 10 different steps in the interval of $[1, 10]\,$GeV.
- Loop over 100 samples.
- Store the mean number of charged tracks per event and its uncertainty.
- Fit the mean number of charged tracks.
Study the detector response for electrons (PDG code 11), photons (PDG code 22) and charged pions (PDG code 211).
To contain the full pion shower, increase the number of sampling layers to 50.
%% Cell type:markdown id: tags:
<div class="alert alert-info">
<strong>Question 2.1:</strong>
Do you see any differences between electron and photon induced showers? Why?
</div>
%% Cell type:markdown id: tags:
<div class="alert alert-success">
<strong>Answer 2.1:</strong>
*Your answer...*
</div>
%% Cell type:markdown id: tags:
<div class="alert alert-info">
<strong>Question 2.2:</strong>
Do you see any differences between charged pion and photon induced showers? Why?
</div>
%% Cell type:markdown id: tags:
<div class="alert alert-success">
<strong>Answer 2.2:</strong>
*Your answer...*
</div>
%% Cell type:code id: tags:
``` python
# Your code ...
```
%% Cell type:markdown id: tags:
---
# Exercise 3: Calorimeter resolution <a id="Exercise3"></a>
---
In this exercise, we want to determine the stochastic factor $a$ of the energy resolution $\frac{\sigma(E)}{E}$ of the calorimeter for photons as a function of the photon energy $E_{\text{in}}$.
%% Cell type:markdown id: tags:
<div class="alert alert-info">
<strong>Question 3.1:</strong>
* Why do we only care about the stochastic contribution here?
* How does the resolution depend on the energy $E_{\text{in}}$?
</div>
%% Cell type:markdown id: tags:
<div class="alert alert-success">
<strong>Answer 3.1:</strong>
*Your answer...*
</div>
%% Cell type:markdown id: tags:
To compute the energy deviation $\sigma(E)$, simulate for 20 different energies in the interval of $[1, 10]\,$GeV the interaction of 100 photons.
Use a liquid argon sampling calorimeter (15 layers) from the [first exercise](#Exercise1).
For each event, calculate the responding energy by calculating the number of charged tracks $N_c$ and apply the previously computed calibration.
Store the deviation of the response energy $\sigma(E)$ as the standard deviation over all samples.
The uncertainty for $\sigma(E)$ can be calculated as $\frac{\sigma(E)}{\sqrt{N_\text{Sample}-1}}$.
Finally, fit $\frac{\sigma(E)}{E}$ with an appropriate model and determine the stochastic factor $a$.
%% Cell type:markdown id: tags:
<div class="alert alert-info">
<strong>Question 3.2:</strong>
Does the result fulfil the expectation?
</div>
%% Cell type:markdown id: tags:
<div class="alert alert-success">
<strong>Answer 3.2:</strong>
*Your answer...*
</div>
%% Cell type:code id: tags:
``` python
# Your code ...
```
%% Cell type:markdown id: tags:
<div class="alert alert-info">
<strong>Bonus question:</strong>
How does the energy resolution of a sampling calorimeter depend on the thickness of the absorber layers?
</div>
%% Cell type:markdown id: tags:
<div class="alert alert-success">
<strong>Answer Bonus:</strong>
*Your answer...*
</div>
File deleted
Exercise04/HadronicShower.png

201 KiB

../geant4_simulation
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
Exercise05/figures/q2max.png

14.3 KiB

Exercise05/figures/q2min.png

12.5 KiB

Exercise05/figures/sl.png

48.5 KiB

Exercise05/figures/spin.png

31.1 KiB

File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment