Rev 175 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 175 | Rev 316 | ||
---|---|---|---|
- | 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 | ||
1 | Analysis of the data acquired with the readout chip |
28 | Analysis of the data acquired with the readout chip |
2 | 29 | ||
3 | https://www.psi.ch/drs/drs-chip |
30 | https://www.psi.ch/drs/drs-chip |
4 | 31 | ||
5 | 0. Connect the signals |
32 | 0. Connect the signals |
6 | 1. Start DRS Oscilloscope |
33 | 1. Start DRS Oscilloscope |
7 | 2. Acquire Waveforms: File->Save->SaveAsType Binary .dat -> Number of waveforms 100000 |
34 | 2. Acquire Waveforms: File->Save->SaveAsType Binary .dat -> Number of waveforms 100000 |
8 | 3. Start ROOT |
35 | 3. Start ROOT |
9 | 4. Load the analysis file |
36 | 4. Load the analysis file |
10 | root [0] .L drs.C+ |
37 | root [0] .L drs.C+ |
11 | 5. Run the analysis: |
38 | 5. Run the analysis: |
12 | root [0] drs(100000,20, "drs001.dat", 0) |
39 | root [0] drs(100000,20, "drs001.dat", 0) |
13 | 40 | ||
14 | void drs(int nev = 1000, int updfrq = 20, const char* FileName = "drs000.dat", int trgch = 0, int debug = 0) |
41 | void drs(int nev = 1000, int updfrq = 20, const char* FileName = "drs000.dat", int trgch = 0, int debug = 0) |
15 | 42 | ||
16 | Input Parameters: |
43 | Input Parameters: |
17 | nev - number of events to process |
44 | nev - number of events to process |
18 | updfrq - display update frequency |
45 | updfrq - display update frequency |
19 | FileName - data file |
46 | FileName - data file |
20 | trgch - trigger channel |
47 | trgch - trigger channel |
21 | debug - debug output |
48 | debug - debug output |
22 | 49 | ||
23 | Resulting Histograms: open TBrowser |
50 | Resulting Histograms: open TBrowser |
24 | 51 | ||
25 | root [0] TBrowser tb |
52 | root [0] TBrowser tb |
26 | Browse through histograms in root/ROOT Memory folder |
53 | Browse through histograms in root/ROOT Memory folder |