Skip to content

giopedro92/bachelor-thesis-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions to run the code



Author: Giovanni Pedrelli

Analysis

Docker Analysis

Inside the directory where the .dockerfile is, build the dockerfile to get a docker image

sudo docker build -f analysis.dockerfile -t analysis .

See the images installed

sudo docker images

Run the docker image:

  • as root

    sudo docker run \
    -e DISPLAY=$DISPLAY \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v /home/giovanni-pedrelli/Scrivania/TESI/Analysis:/opt \
    --rm \
    -it \
    analysis bash
  • with --user $(id -u) ALLOWS YOU TO USE TBrowser

    sudo docker run \
    -e DISPLAY=$DISPLAY \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v /home/giovanni-pedrelli/Scrivania/TESI/Analysis:/opt \
    --rm \
    -it \
    --user $(id -u) \
    analysis bash

Run Analysis

Inside the docker container

Move to the right folder

cd /home/giovanni-pedrelli/TESI/Analysis

Run the script

python3 analysis.py

EDO Neural network

Docker EDO

Run the docker image:

sudo docker run \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /home/giovanni-pedrelli/Scrivania/SC-EXAM/:/app \
--rm \
-it \
neural-network bash

Neural Network EDO

Inside the docker container

cd Python_Cat
python3 main.py Neural_Network

Neural network

Training

Docker Neural Network

Inside the directory where the .dockerfile is, build the .dockerfile to get a docker image

sudo docker build -f neural-network.dockerfile -t neural-network .

See the images installed

sudo docker images

Run the docker image:

sudo docker run \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /home/giovanni-pedrelli/Scrivania/TESI/NeuralNetwork:/app \
--rm \
-it \
neural-network bash

Train Neural Network

Inside the docker container

Run the code to train the Neural Netrwork

python3 main.py Neural_Network

Real data

...

Appendice

ROOT Trees

Inspect inside a .root file. Inside ROOT

std::unique_ptr<TFile> myFile( TFile::Open("*_*filename*_*.root") );
myFile->ls()

About

Code for my bachelor degree thesis in Physics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published