Subversion Repositories f9daq

Rev

Rev 175 | Blame | Compare with Previous | Last modification | View Log | RSS feed

Analiza podatkov SiPM, zajetih z DRS4 samplerjem:
root
.L drs.C+
.L process_results.cxx+
// sprocesiraj vse .dat file v direktoriju datasipm (in poddirektorijih), ki se nimajo ob sebi root fileov
// pozene drs analizo s prednastavljenimi parametri na vsakem fileu in sporducira .root in .pdf
process_results("datasipm",".dat", 0);

// Zberi vse histograme v skupnem root fileu in jim dodaj threshold scan grafe sipm.root:
process_results("datasipm",".dat", 1);


// analiza iz root tree v sipm.root 
// output v results (extension je drug parameter ), 
// ena stran za vsak sipm type in sample z matriko po temperaturah in napetostih
.L tree.C+
tree t;
tree.Loop(0,"pdf"); //qdc2
tree.Loop(1,"png"); //qdc3
tree.Loop(2,"png"); //dpo2
tree.Loop(3,"png"); //dpo3
tree.Loop(4,"png"); //cftdif2
tree.Loop(5,"png"); //cftdif3
tree.Loop(6,"png"); //thscan

__________________________________________________________________________

Analysis of the data acquired with the readout chip

https://www.psi.ch/drs/drs-chip

0. Connect the signals
1. Start DRS Oscilloscope
2. Acquire Waveforms: File->Save->SaveAsType Binary .dat -> Number of waveforms 100000
3. Start ROOT 
4. Load the analysis file
root [0] .L drs.C+
5. Run the analysis:
root [0] drs(100000,20, "drs001.dat", 0)

void drs(int nev = 1000, int updfrq = 20, const char* FileName = "drs000.dat", int trgch = 0, int debug = 0)

Input Parameters:
nev - number of events to process
updfrq - display update frequency
FileName - data file
trgch - trigger channel
debug - debug output

Resulting Histograms: open TBrowser

root [0] TBrowser tb
Browse through histograms in root/ROOT Memory folder