Rev 175 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
316 | f9daq | 1 | Analiza podatkov SiPM, zajetih z DRS4 samplerjem: |
2 | root |
||
3 | .L drs.C+ |
||
4 | .L process_results.cxx+ |
||
5 | // sprocesiraj vse .dat file v direktoriju datasipm (in poddirektorijih), ki se nimajo ob sebi root fileov |
||
6 | // pozene drs analizo s prednastavljenimi parametri na vsakem fileu in sporducira .root in .pdf |
||
7 | process_results("datasipm",".dat", 0); |
||
8 | |||
9 | // Zberi vse histograme v skupnem root fileu in jim dodaj threshold scan grafe sipm.root: |
||
10 | process_results("datasipm",".dat", 1); |
||
11 | |||
12 | |||
13 | // analiza iz root tree v sipm.root |
||
14 | // output v results (extension je drug parameter ), |
||
15 | // ena stran za vsak sipm type in sample z matriko po temperaturah in napetostih |
||
16 | .L tree.C+ |
||
17 | tree t; |
||
18 | tree.Loop(0,"pdf"); //qdc2 |
||
19 | tree.Loop(1,"png"); //qdc3 |
||
20 | tree.Loop(2,"png"); //dpo2 |
||
21 | tree.Loop(3,"png"); //dpo3 |
||
22 | tree.Loop(4,"png"); //cftdif2 |
||
23 | tree.Loop(5,"png"); //cftdif3 |
||
24 | tree.Loop(6,"png"); //thscan |
||
25 | |||
26 | __________________________________________________________________________ |
||
27 | |||
175 | f9daq | 28 | Analysis of the data acquired with the readout chip |
29 | |||
30 | https://www.psi.ch/drs/drs-chip |
||
31 | |||
32 | 0. Connect the signals |
||
33 | 1. Start DRS Oscilloscope |
||
34 | 2. Acquire Waveforms: File->Save->SaveAsType Binary .dat -> Number of waveforms 100000 |
||
35 | 3. Start ROOT |
||
36 | 4. Load the analysis file |
||
37 | root [0] .L drs.C+ |
||
38 | 5. Run the analysis: |
||
39 | root [0] drs(100000,20, "drs001.dat", 0) |
||
40 | |||
41 | void drs(int nev = 1000, int updfrq = 20, const char* FileName = "drs000.dat", int trgch = 0, int debug = 0) |
||
42 | |||
43 | Input Parameters: |
||
44 | nev - number of events to process |
||
45 | updfrq - display update frequency |
||
46 | FileName - data file |
||
47 | trgch - trigger channel |
||
48 | debug - debug output |
||
49 | |||
50 | Resulting Histograms: open TBrowser |
||
51 | |||
52 | root [0] TBrowser tb |
||
53 | Browse through histograms in root/ROOT Memory folder |