I am trying to sort a bit, the ADC values of a read out system. The output files have the following format
Kmax Event File - Text Format
1 4 1000
65 4121 9426 12312
56 4118 8882 12307
1273 4188 8217 12309
1291 4204 8233 12308
1329 4170 8225 12303
1341 4135 8207 12306
63 4108 8904 12300
60 4106 8897 12307
731 4108 8192 12306
...
ÿÿÿÿÿÿÿÿ
Let me explain more about the file. The 1st line is rather unimportant. The 2nd line has 3 numbers. The first one says the event type(nothing important), the 2nd one is how many detectors the system has(it’s actually the number of the columns and it’s not always 4) while the 3rd one gives the number of events, after which the second line appears.
In this case after 1000 events the line 1 4 1000 will repeat itself. The last line is to be ignored.
The ADC has a number of channels. In the above case it’s 4096(it’s not always like that). So the real number of the 2nd column is “Value of Second Column”-“Number of Channels”, of the 3rd is “Value of Third Column”-2*“Number of Channels” and so on…
Like I said each column represents a detector. My target is to have an NTuple that will sort every detector in one histogram. I need the NTuple, because it will give me the advantage to plot some events, depending on some restrictions/selection over the other detectors.
How can this be achieved? Thank you very much in advance!