MAROC Scaler test » History » Version 5
Bishnu Karki, 09/01/2020 02:41 PM
| 1 | 3 | Bishnu Karki | h1. MAROC Scaler test |
|---|---|---|---|
| 2 | 1 | Bishnu Karki | |
| 3 | 5 | Bishnu Karki | h2. How to run the scripts |
| 4 | # Scripts are currently located under the following directories in solid@tunl11 |
||
| 5 | 1 | Bishnu Karki | # Scripts is located at "/home/clasrun/rich/suite1.0/sw/ana/ped" |
| 6 | 3 | Bishnu Karki | # library is located at "/home/clasrun/rich/suite1.0/sw/ana/lib" |
| 7 | 5 | Bishnu Karki | # The output files are at "/home/clasrun/rich/suite1.0/results/scalers" |
| 8 | 4 | Bishnu Karki | # The main library is created by compiling the code "rich.C" |
| 9 | 3 | Bishnu Karki | # The script "recoPed.sh" take the input file and a integer number (0 or 1) |
| 10 | 1 | Bishnu Karki | >> 0 is for pedestal run |
| 11 | >> 1 is for dark current run |
||
| 12 | |||
| 13 | 5 | Bishnu Karki | # Example to run the code ./recoped.sh filename 0 |
| 14 | 1 | Bishnu Karki | |
| 15 | It runs the following scripts" |
||
| 16 | 2 | Bishnu Karki | |
| 17 | |||
| 18 | A) "richDoHistoCount.c">> It runs the function doHistoCount () in rich.C |
||
| 19 | output |
||
| 20 | 1) stat.txt >> It gives the mean, rms of the pedestal in entire range |
||
| 21 | 2) dead.txt >> Channel having the count less than 1 |
||
| 22 | 3) noisy.txt >> Noisty channels. Channel with RMS>=4 |
||
| 23 | 4) hot.txt >> channel with rate greater than 10 kHz |
||
| 24 | |||
| 25 | 5) rate.txt >>Dark current rate for individual channel between 300-500 |
||
| 26 | 6) chip.txt >> mean and rms of pedestal for each pmt (average of all pixel within same pmt) |
||
| 27 | 7) chiprate.txt >> mean and rms of dark current (average of all pixel within same pmt) |
||
| 28 | |||
| 29 | 8) histo.root >> hCount[channel]-> Rate at different threshold |
||
| 30 | >> hRate[channel]-> Dark current rate in region between 300-500 |
||
| 31 | >> hShoulder[channel]-> Dark current rate from Threshold to threshold +25 unts |
||
| 32 | |||
| 33 | ############# BBBBBBBBBBBBBBBBBBBBBBB ############################################## |
||
| 34 | B) "richPlot.C" >> runs the function plot ( 1 , datatype) from rich.C |
||
| 35 | >> datatype = 0 (pedestal) or 1 (dark current) |
||
| 36 | output |
||
| 37 | 1) range.txt >> mean, rms of the pedestal fitting the histogram with guassian in narrow range. It also gives the maximum value of Threshold (DAC unit) which has rate >1. That is the end of tail of histogram hCount. For dark current range is take between (150,650) while for pedestal its in between 170,220) |
||
| 38 | |||
| 39 | 2) "largePedestals.txt" >> if the mean pedestal + 10*sigma > Threshold pedestal. Then that channel is flagged as large pedestal and written in file. |
||
| 40 | |||
| 41 | 3) "slope.txt" >> slope at 5 different point above pedestal. Basically its measure of flucatation of of dark current above threshold. |
||
| 42 | |||
| 43 | >> how is slope determinded |
||
| 44 | 5 point (Threshold +25 , Threshold +50,Threshold +100 , Threshold +200,Threshold +400) are picked |
||
| 45 | Then Dark current rate at each point is computed (average of 7 points in step of 3.5 DAC units) |
||
| 46 | |||
| 47 | 4) plot.pdf >> Its the fit to the pedestal with guassian in narrow range around the peak |
||
| 48 | |||
| 49 | ##################### KEY NOTE ########################### |
||
| 50 | Key note "range.txt" is the output with guassian fit but "stat.txt" contains same information without fitting but taking values from direclty histogram (for example h->GetMean() in case of "stat.txt"). So "stat.txt" is only good when pedestal is very high. |
||
| 51 | |||
| 52 | |||
| 53 | ########## CCCCCCCCCCCCCCCCCCCCC ############################# |
||
| 54 | C) "richDisplayCount.C" >> display2(filename, opt, ymin,ymax) from "rich.C" |
||
| 55 | filename is the name of file used to draw information |
||
| 56 | opt: is 0 (pedestal) or 1 (dark current) |
||
| 57 | ymax, ymin >> range to draw plot |
||
| 58 | |||
| 59 | Output: |
||
| 60 | 1) display1.pdf >> plot1 >> xpixel:ypixel:pedestal_mean (using "stat.txt") |
||
| 61 | >> plot2 >> 1D histogram of pedestal mean value |
||
| 62 | >> plot3 >> mean pedestal for different channel within same PMT (for all PMT) |
||
| 63 | |||
| 64 | |||
| 65 | 2) display2.pdf >> plot1 >> xpixel:ypixel:pedestal_rms (using "stat.txt") |
||
| 66 | >> plot2 >> 1D histogram of pedestal rms value |
||
| 67 | >> plot3 >> rms value of pedestal pedestal for different channel within same PMT (for all PMT) |
||
| 68 | |||
| 69 | 3) display3.pdf >> Equivalent to display1.pdf but using the file "range.txt" (which are extracted by fitting histogram in narrow rangel") |
||
| 70 | 4) display4.pdf >> Equivalen to display2.pdf but using "rangle.txt" (fitted information) |
||
| 71 | |||
| 72 | 5) display11.pdf >> plot1 >> xpixel:ypixel:Mean of Dark Current rate between 300 -500 (using "range.txt") |
||
| 73 | >>plot2 >> 1D histogram of Mean of Dark Current for all 960 channel |
||
| 74 | >> plot3>> Mean of Dark current of different pixel within a PMT |
||
| 75 | |||
| 76 | 6) display12.pdf >> plot1 >> xpixel:ypixel:RMS of Dark Current rate between 300 -500 (using "range.txt") |
||
| 77 | >>plot2 >> 1D histogram of RMS of Dark Current for all 960 channel |
||
| 78 | >> plot3>> RMS Dark current of different pixel within a PMT |
||
| 79 | |||
| 80 | 7) display15.pdf >> plot1 >> xpixel:ypixel:RMS/mean of Dark Current rate between 300 -500 (using "range.txt") |
||
| 81 | >>plot2 >> 1D histogram of RMS/mean of Dark Current for all 960 channel |
||
| 82 | >> plot3>> RMS/mean Dark current of different pixel within a PMT |
||
| 83 | |||
| 84 | |||
| 85 | 8) display16.pdf >> plot1 >> xpixel:ypixel:RMS/sqrt(mean) of Dark Current rate between 300 -500 (using "range.txt") |
||
| 86 | >>plot2 >> 1D histogram of RMS/sqrt(mean) of Dark Current for all 960 channel |
||
| 87 | >> plot3>> RMS/sqrt(mean) Dark current of different pixel within a PMT |
||
| 88 | |||
| 89 | |||
| 90 | ########### DDDDDDDDDDDDDDDDDDDDDDDDDD####################### |
||
| 91 | "richDisplayScan.c">> call a function display3 from "rich.C" |
||
| 92 | |||
| 93 | OUtput: |
||
| 94 | scan.pdf >> 1D and 2D plot are generated for each value of threshold between 200-300 |
||
| 95 | >> Dark current is evaluated from 200 to next 300 in step of 1( for example dark current at 200, 201 202 ...) |
||
| 96 | |||
| 97 | >> 2D histo >> xpixel:ypixel:Dark Current |
||
| 98 | >> 1D histogram>> Dark current for given threshold ( for eg reading first plot : xaxis is dark current , most of the channel have dark current around 100. Y axis is count of number of channel have particular value of dark current |
||
| 99 | |||
| 100 | |||
| 101 | ################ EEEEEEEEEEEEEEEEEEEEEEE ##################### |
||
| 102 | "doAnalysis.C" >> invokes the function doAnalysis( dark current run) or doPedestalAnalysis( pedestal run) from "rich.C" |
||
| 103 | |||
| 104 | output: |
||
| 105 | 1) ShowLargePedestal() >> largePedestals.pdf (if mean+10*sigma >Threshold) Then its large pedestal |
||
| 106 | 2) DisplaySlopes() >> 1) slopeDisplay.pdf >> slope of dark current at 4 different points above threshold |
||
| 107 | >> 2) slopeDisplay2.pdf>> slope of dark current of each pixel within a pmt. Red are slope with negative slope while blue a re +ve slope. Though in plot its plots the absolute value |
||
| 108 | |||
| 109 | >> slopeHigh.txt >> if slope< -2 |
||
| 110 | |||
| 111 | >> slopeVeryHigh.txt >> if slope < -10 |
||
| 112 | |||
| 113 | 3) DisplayRange() >> SPErange.pdf >> plot1 >> Maximum value if DAC unit (threshold) with count/rate>0 |
||
| 114 | or last point of x-axis of hCount histogram. |
||
| 115 | >> plot2 >> Maximum value of DAC unit with count>0, for different pixels in same pmt |
||
| 116 | >> plot3>> pedestal mean with file "range.txt" i.e fitted value |
||
| 117 | >> plot4 >> mean of the pedestal for each pixel in same pmt |
||
| 118 | >> plot5>> RMS of the pedestal with file "range.txt" i.e fitted value |
||
| 119 | >> plot6 >> RMS of the pedestal for each pixel in same pmt |
||
| 120 | |||
| 121 | 4) DisplayRate() >> rate.pdf >> plot1 >> distribution of Dark current rate (between 300 -500) for NPIXEL*NPMT |
||
| 122 | >> plot2 >> distribution of RMS of dark current (300-500) |
||
| 123 | >> plot3>> distribution of RMS/Mean |
||
| 124 | >> plot4>> Dark current rate mean for all pixel within same pmt |
||
| 125 | >> plot5 >> Dark current RMS for all pixel within same PMT |
||
| 126 | >> Plot6 >> Dark current RMS/Mean for all pixel within same pmt |
||
| 127 | >> plot7 >> Dark current mean shoulder ( from Threshold + 25 )/ Dark current mean |
||
| 128 | >> plot7 >> RMS Dark current shoulder ( from Threshold + 25 )/ Dark current RMS |
||
| 129 | >> plot8 >> Mean Dark current shoulder ( from Threshold + 25 )/ Dark current mean for different pixel within same PMT |
||
| 130 | >>plot9 >> RMS Dark current shoulder ( from Threshold + 25 )/ RMS Dark current for different pixel within same pmt |
||
| 131 | |||
| 132 | 5) DisplayRatePMT() >> ratePMT.pdf >>plot1>> Mean Dark current rate for every PMT ("chiprate.pdf", dark current 300-500) average of 64 pixel |
||
| 133 | >>plot2>> RMS Dark current rate for every PMT ("chiprate.pdf", dark current 300-500) average of 64 pixel |
||
| 134 | >> plot3>> RMS/Mean of Dark current rate for every PMT ("chiprate.pdf", dark current 300-500) average of 64 pixe |
||
| 135 | |||
| 136 | 6) DisplayHotPixels() >> hot.pdf >> pixels with dark current rate larger than 10 kHz |
||
| 137 | |||
| 138 | 7) showThresholds() >> rateorderedRatio.txt >>Prints the slot, fiber, pmt,pixel, and (ShoulderMean/Mean) Dark Current if its greater than 2. In case of no cross-talk (ShoulderMean/Mean) Dark Current is ==1 . In other words shows possible cross-talk candidates. |