README.md 1.7 KB
Newer Older
Axel Puntke's avatar
Axel Puntke committed
1
2
# TimesliceDataResorter

3
A simple program which reads in the unpacked root-file which comes out of the unpacker containing a TTree with the timeslices (events) of a run and resorts the TRD-Digis (and rawmessages if present) into their correct timeslices. The output is then saved into an output file which contains the new tree and also all other objects (directories, lists, fileheaders, etc.) of the input file, making it compatiple with the reconstruction macro. Of course all other data in the input tree from other detectors is saved in the output tree too.
Axel Puntke's avatar
Axel Puntke committed
4

Axel Puntke's avatar
Axel Puntke committed
5
## Setup
Axel Puntke's avatar
Axel Puntke committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Source your cbmroot-installation.
Clone the repository with
```
git clone https://git.cbm.gsi.de/apuntke/timeslicedataresorter.git
```
and switch to the newly created directory with:
```
cd timeslicedataresorter
```
Then compile the program:
```
./compile.sh TimesliceDataResorter
```

Axel Puntke's avatar
Axel Puntke committed
20
21
## Command-line arguments
### -i <input-file>
Axel Puntke's avatar
Axel Puntke committed
22
Specifies the input-file which is read into the program. The input-file is the *.root-file which comes out of the unpacker.
Axel Puntke's avatar
Axel Puntke committed
23
### -o <output-file>
Axel Puntke's avatar
Axel Puntke committed
24
Specifies the output-file where the resorted tree and all other data is saved into.
Axel Puntke's avatar
Axel Puntke committed
25
### -maxTimeslices <number>
Axel Puntke's avatar
Axel Puntke committed
26
Specifies the maximum number of timeslices which will be processed
27
28
29
### -norep
Disables in-place updates of output lines (good for logging/debugging).
### -forcedTsDuration <number>
Axel Puntke's avatar
Axel Puntke committed
30
Sets the duration of all timeslices to a fixed number (unit: ns), ignoring the value in the TimesliceMetaData-objects. This was sometimes neccessary because the number in TimesliceMetaData deviated from the real timeslice duration of 12800 µs.
Axel Puntke's avatar
Axel Puntke committed
31
32


Axel Puntke's avatar
Axel Puntke committed
33
# Usage example
Axel Puntke's avatar
Axel Puntke committed
34
35
36
```
./TimesliceDataResorter -i /cbmsoft/data-array2/unpacked/r831_0000.root -o /cbmsoft/data-array2/unpacked_resorted/r831_0000.root
```