asalzburger / sms2021-tra-tra

Repository for SummerStudent 2021 project to learn a (conformal) TRAnsform for TRAcks
2 stars 0 forks source link

More complex simulation setups #20

Open asalzburger opened 3 years ago

asalzburger commented 3 years ago

List of datasets to be produced:

This needs a material map file odd-material-map.root. To activate this, one needs to specify the material input file in the Fatras simulation, by adding the following program options:"

--mat-input-type=file --mat-input-file=odd-material-map.root"

This needs a magnetic field map odd-bfield.root. To use this, one needs to add the following commands to the Fatras configuration:

  --bf-map-file=odd-bfield.root

These two options can also be done together of course (which presents the worst case).

The files are part of a PR into the ODD detector (not merged yet):

https://github.com/acts-project/OpenDataDetector/pulls

Accessing them needs git large file system (git-lfs) support.

As we hadn't talked about particle type, we should do that as well:

Some actions:

If we want to see the effects of magnetic field / material on muons themselves:

AndrewSpano commented 3 years ago

After creating the new datasets, I tested the Hough Transform and again, I ended up with high efficiency in all the simulations. So I decided to plot "count vs number-of-hits-for-1-event" for electrons, muons and pions respectively. This is what I got:

pdg-11-hits-counts

pdg-13-hits-counts

pdg-211-hits-counts

The distribution looks very similar. Only for pdg = 13, a bit more hits are concentrated in the center. But this is barely noticeable. The commands I used to produce the datasets like these:

@REM ---------------------------------------------------   pdg-11   ---------------------------------------------------

@REM First Dataset: Ideal dataset
../acts_build/bin/ActsExampleParticleGun -n 100 --gen-pdg 11 --gen-nparticles 25 --gen-mom-gev 0.5:10. --gen-mom-transverse true --gen-eta -0.5:0.5 --output-csv
../acts_build/bin/ActsExampleFatrasDD4hep --gen-pdg 11 --dd4hep-input=../acts/thirdparty/OpenDataDetector/xml/OpenDataDetector.xml --output-csv --bf-constant-tesla 0:0:2 --input-dir="./"
mv ./* ../../../Desktop/CERN/tra-tra/data/pdg11/pdg11-n25-0.5to10GeV-0.5eta/

@REM Second Dataset: With Material Effects (and constant B)
../acts_build/bin/ActsExampleParticleGun -n 100 --gen-pdg 11 --gen-nparticles 25 --gen-mom-gev 0.5:10. --gen-mom-transverse true --gen-eta -0.5:0.5 --output-csv
../acts_build/bin/ActsExampleFatrasDD4hep --gen-pdg 11 --dd4hep-input=../acts/thirdparty/OpenDataDetector/xml/OpenDataDetector.xml --output-csv --mat-input-type=file --mat-input-file=../../../Desktop/CERN/other-repos/OpenDataDetector/data/odd-material-map.root --bf-constant-tesla 0:0:2 --input-dir="./"
mv ./* ../../../Desktop/CERN/tra-tra/data/pdg11/pdg11-n25-0.5to10GeV-0.5eta-with-material-effects/

@REM Third Dataset: With Non Homogenous B (without Material Effects)
../acts_build/bin/ActsExampleParticleGun -n 100 --gen-pdg 11 --gen-nparticles 25 --gen-mom-gev 0.5:10. --gen-mom-transverse true --gen-eta -0.5:0.5 --output-csv
../acts_build/bin/ActsExampleFatrasDD4hep --gen-pdg 11 --dd4hep-input=../acts/thirdparty/OpenDataDetector/xml/OpenDataDetector.xml --output-csv --bf-map-file=../../../Desktop/CERN/other-repos/OpenDataDetector/data/odd-bfield.root --input-dir="./"
mv ./* ../../../Desktop/CERN/tra-tra/data/pdg11/pdg11-n25-0.5to10GeV-0.5eta-non-homogenous-magnetic-field/

@REM Fourth Dataset: With Material Effects and Non Homogenous B
../acts_build/bin/ActsExampleParticleGun -n 100 --gen-pdg 11 --gen-nparticles 25 --gen-mom-gev 0.5:10. --gen-mom-transverse true --gen-eta -0.5:0.5 --output-csv
../acts_build/bin/ActsExampleFatrasDD4hep --gen-pdg 11 --dd4hep-input=../acts/thirdparty/OpenDataDetector/xml/OpenDataDetector.xml --output-csv --mat-input-type=file --mat-input-file=../../../Desktop/CERN/other-repos/OpenDataDetector/data/odd-material-map.root --bf-map-file=../../../Desktop/CERN/other-repos/OpenDataDetector/data/odd-bfield.root --input-dir="./"
mv ./* ../../../Desktop/CERN/tra-tra/data/pdg11/pdg11-n25-0.5to10GeV-0.5eta-with-material-effects-non-homogenous-magnetic-field/

@ REM -----------------------------------------------------------------------------------------------------------------

If I'm correct, the behavior above is not expected. I will take again a closer look tomorrow.

AndrewSpano commented 3 years ago
AndrewSpano commented 3 years ago

Created the Dataset using Pythia8. This is with npileup = 0 (similar results occur for npileup = 200). Removed the particles that have initial p_T smaller than 500 MeV. The xy view of the remaining particles is:

pt8-xy

Running the algorithms in this dataset yields the following metrics (tried for many events, results are similar)

pt8-metrics

The natural question arises: Which particles were not reconstructed? Let's take a look:

pt8-pids-found

I will have to take a look at which particles those pdg values refer to, in order to get a better understanding of the situation.