Skip to content

Commit

Permalink
Merge pull request #1 from ybuch/Hephy
Browse files Browse the repository at this point in the history
Merge Hephy branch into master as new baseline
  • Loading branch information
ybuch authored Aug 9, 2024
2 parents 1698651 + 62eca33 commit 17bab9c
Show file tree
Hide file tree
Showing 650 changed files with 602,402 additions and 1,360 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
output/alignment/*.root
output/dut_align/*.root

47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# General Instructions

This repo contains needed scripts and files for the alignment and analysis of TB data. Please note that paths need to be updated in the scrips as well as in geo files (path to mask files). The scripts also assume that the corryvreckan binary is in PATH.

Alignment: run `full_align.sh` for each geo_id (telescope and DUT alignment) and afterwards `run_alignment.sh` for each run (DUT alignment).

Masking: run `mask_generator.sh` which generates a mask file from a default mask (masking not used frontends) and a yaml file (list of disabeled pixels in the data taking). Please nothe that the default masks do not work for all runs since the frontends were also changed within geo_ids! These masks were adapted by hand and a set of working masks is stored under initial_masks.

Analysis: is done using jobsub which is installed under your corry installation (see corry manual and below). A csv file has to be created with `data_searcher.sh` which contains information of geo and data for each run before starting the analysis.


## conf

This folder contains all config files for corry which are used for the alignment as well as scripts. The analysis is done via jobsub (see below)

### full_align.sh

Script for the alignment of a geo_id (usage: `source ./full_align.sh <runnumber_to_align> <geo_id>`).
It uses `prealign_tel_mpx2.conf`, `align_dut_mpx2.conf` and `align_tel_mpx2.conf`, the output is stored under `/geo/full_aligned`. The initial geo file is taken from `/geo/init_geo`.

### run_alignment.sh

Script for the alignment of the DUT for each run starting from the output geo of `full_align.sh`. Reads the runnumbers and geo_ids from one of the following files: `W02R05_standard.csv`, `W05R15_TID.csv` or `W08R06_p.csv`. The output is stored under `/geo/temp`.

### W02R05_standard.csv, W05R15_TID.csv, W08R06_p.csv

List of runnumbers with matching geo_ids

## geo/mask_files

Folder containing used mask files (applied_masks) and scripts for generating mask_files.

### mask_generator.sh

This script copies a default mask from the default folder (containing information about the masking of the not activated frontends) and appends the information of the yaml files depending on the runnumber (by using extract_masked_pixels.py). The output is stored in the folder applied_masks. Please note that the default masks are not propper for all runs since changes in the masking werde done throughout equal geo_ids. Already finished masks can be found in the folder initial_masks.

## jobsub

This folder contains necessary files for jobsub which has to be started from your local corry installation (`<path_to_corry>/jobsub python3 jobsub.py -c <path_to_repo>/jobsub/analysis_jobsub.cfg> -csv <path_to_repo>/jobsub/data_p.csv -s -j 5 <runnumbers>`). For further information about jobsub please have a look at the corry manual. As example csv file, data_examle.csv is given.

### analysis_jobsub.cfg

config file used by jobsub

### data_searcher.sh

This script takes `W02R05_standard.csv`, `W05R15_TID.csv` or `W08R06_p.csv` as input and generates the needed csv file for jobsub.
83 changes: 0 additions & 83 deletions align.py

This file was deleted.

51 changes: 0 additions & 51 deletions align_dut_mpx2.conf

This file was deleted.

39 changes: 0 additions & 39 deletions align_tel_mpx2.conf

This file was deleted.

57 changes: 0 additions & 57 deletions analysis.conf

This file was deleted.

Binary file added analysis/alignment_run_1400.root
Binary file not shown.
Binary file added analysis/alignment_run_1401.root
Binary file not shown.
Binary file added analysis/analysis_run_1400.root
Binary file not shown.
Binary file added analysis/analysis_run_1401.root
Binary file not shown.
Loading

0 comments on commit 17bab9c

Please sign in to comment.