Project

General

Profile

MAROC Scaler test » History » Version 3

Bishnu Karki, 09/01/2020 02:39 PM

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