MAROC Scaler test » History » Version 8
Bishnu Karki, 09/01/2020 02:47 PM
1 | 3 | Bishnu Karki | h1. MAROC Scaler test |
---|---|---|---|
2 | 1 | Bishnu Karki | |
3 | 5 | Bishnu Karki | h2. How to run the scripts |
4 | 8 | Bishnu Karki | # *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 | 8 | Bishnu Karki | >> 1 is for dark current run |
12 | 1 | Bishnu Karki | |
13 | 6 | Bishnu Karki | h2. Example to run the code ./recoped.sh filename 0 |
14 | 1 | Bishnu Karki | |
15 | 6 | Bishnu Karki | h2. It runs the following scripts" |
16 | 2 | Bishnu Karki | |
17 | |||
18 | 6 | Bishnu Karki | # "richDoHistoCount.c">> It runs the function doHistoCount () in rich.C |
19 | 7 | Bishnu Karki | *Output:* |
20 | 2 | Bishnu Karki | 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 | 6 | Bishnu Karki | |
34 | # "richPlot.C" >> runs the function plot ( 1 , datatype) from rich.C |
||
35 | 2 | Bishnu Karki | >> datatype = 0 (pedestal) or 1 (dark current) |
36 | 7 | Bishnu Karki | *Output:* |
37 | 2 | Bishnu Karki | 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 | 6 | Bishnu Karki | |
54 | # "richDisplayCount.C" >> display2(filename, opt, ymin,ymax) from "rich.C" |
||
55 | 2 | Bishnu Karki | 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 | 6 | Bishnu Karki | *Output:* |
60 | 2 | Bishnu Karki | 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 | 1 | Bishnu Karki | >>plot2 >> 1D histogram of RMS/sqrt(mean) of Dark Current for all 960 channel |
87 | 2 | Bishnu Karki | >> plot3>> RMS/sqrt(mean) Dark current of different pixel within a PMT |
88 | |||
89 | |||
90 | 6 | Bishnu Karki | #"richDisplayScan.c">> call a function display3 from "rich.C" |
91 | * |
||
92 | 7 | Bishnu Karki | Output:* |
93 | 2 | Bishnu Karki | scan.pdf >> 1D and 2D plot are generated for each value of threshold between 200-300 |
94 | >> Dark current is evaluated from 200 to next 300 in step of 1( for example dark current at 200, 201 202 ...) |
||
95 | |||
96 | >> 2D histo >> xpixel:ypixel:Dark Current |
||
97 | >> 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 |
||
98 | |||
99 | |||
100 | 6 | Bishnu Karki | # "doAnalysis.C" >> invokes the function doAnalysis( dark current run) or doPedestalAnalysis( pedestal run) from "rich.C" |
101 | 2 | Bishnu Karki | |
102 | 6 | Bishnu Karki | *output:* |
103 | 2 | Bishnu Karki | 1) ShowLargePedestal() >> largePedestals.pdf (if mean+10*sigma >Threshold) Then its large pedestal |
104 | 2) DisplaySlopes() >> 1) slopeDisplay.pdf >> slope of dark current at 4 different points above threshold |
||
105 | >> 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 |
||
106 | |||
107 | >> slopeHigh.txt >> if slope< -2 |
||
108 | |||
109 | >> slopeVeryHigh.txt >> if slope < -10 |
||
110 | |||
111 | 3) DisplayRange() >> SPErange.pdf >> plot1 >> Maximum value if DAC unit (threshold) with count/rate>0 |
||
112 | or last point of x-axis of hCount histogram. |
||
113 | >> plot2 >> Maximum value of DAC unit with count>0, for different pixels in same pmt |
||
114 | >> plot3>> pedestal mean with file "range.txt" i.e fitted value |
||
115 | >> plot4 >> mean of the pedestal for each pixel in same pmt |
||
116 | >> plot5>> RMS of the pedestal with file "range.txt" i.e fitted value |
||
117 | >> plot6 >> RMS of the pedestal for each pixel in same pmt |
||
118 | |||
119 | 4) DisplayRate() >> rate.pdf >> plot1 >> distribution of Dark current rate (between 300 -500) for NPIXEL*NPMT |
||
120 | >> plot2 >> distribution of RMS of dark current (300-500) |
||
121 | >> plot3>> distribution of RMS/Mean |
||
122 | >> plot4>> Dark current rate mean for all pixel within same pmt |
||
123 | >> plot5 >> Dark current RMS for all pixel within same PMT |
||
124 | >> Plot6 >> Dark current RMS/Mean for all pixel within same pmt |
||
125 | >> plot7 >> Dark current mean shoulder ( from Threshold + 25 )/ Dark current mean |
||
126 | >> plot7 >> RMS Dark current shoulder ( from Threshold + 25 )/ Dark current RMS |
||
127 | >> plot8 >> Mean Dark current shoulder ( from Threshold + 25 )/ Dark current mean for different pixel within same PMT |
||
128 | >>plot9 >> RMS Dark current shoulder ( from Threshold + 25 )/ RMS Dark current for different pixel within same pmt |
||
129 | |||
130 | 5) DisplayRatePMT() >> ratePMT.pdf >>plot1>> Mean Dark current rate for every PMT ("chiprate.pdf", dark current 300-500) average of 64 pixel |
||
131 | >>plot2>> RMS Dark current rate for every PMT ("chiprate.pdf", dark current 300-500) average of 64 pixel |
||
132 | >> plot3>> RMS/Mean of Dark current rate for every PMT ("chiprate.pdf", dark current 300-500) average of 64 pixe |
||
133 | |||
134 | 6) DisplayHotPixels() >> hot.pdf >> pixels with dark current rate larger than 10 kHz |
||
135 | |||
136 | 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. |