A waveform analysis program for PMT & SiPM
CERN ROOT
g++ waveformAna.cc -Wall `root-config --cflags` `root-config --libs` -o WaveAna
Because of the data requirment system we use, there are always two column in the input txt, the first column is the data we need, the other is useless. Just like this.
-0.001875 -0.001875
-0.002031 -0.002031
-0.002188 -0.002188
-0.002031 -0.002031
-0.001875 -0.001875
-0.001875 -0.001875
-0.001719 -0.001719
-0.002031 -0.002031
-0.002500 -0.002500
-0.002188 -0.002188
-0.001719 -0.001719
-0.001719 -0.001719
-0.002500 -0.002500
The program also can accept the input file who has only one column. It's necessary to set the first argument input in the command line (1: one line type, 2: two line type). If type 1 is chosen, the program also can due with input file who has one waveform per line.
For convenience, all waveform data were put into one txt file. (This step can be achieved by "type *.txt >> ../input.txt" command in windows cmd")
Input arguments:
- "./WaveAna"
- Input data type.
- The path of input file.
- Lower bound.
- Higher bound.
- Scale.
- The number of sampling points.
- The number of waveforms.
- Threshold (default 1mV).
./WaveAna 2 ./waveforms 500 700 0.2 1400 20000 0.5