Sistema multicanal para aquisiç˜ao de dados em um ... - CBPFIndex
Sistema multicanal para aquisiç˜ao de dados em um ... - CBPFIndex
Sistema multicanal para aquisiç˜ao de dados em um ... - CBPFIndex
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
274 graph−>GetXaxis ( )−>S e t T i t l e ( "Valor <strong>de</strong> ADC (LSB)" ) ;<br />
275 graph−>GetYaxis ( )−>S e t T i t l e ( "#sigma (LSB)" ) ;<br />
276 graph−>GetYaxis ( )−>S e t T i t l e O f f s e t ( 1 . 3 ) ;<br />
277 graph−>S e t F i l l C o l o r ( 1 ) ;<br />
278 graph−>SetLineColor ( 1 ) ;<br />
279 graph−>SetLineWidth ( 2 ) ;<br />
280 graph−>SetMarkerColor ( 1 ) ;<br />
281 graph−>SetMarkerStyle (21) ;<br />
282 graph−>Draw( "AP" ) ;<br />
283 c1−>Update ( ) ;<br />
284 s p r i n t f ( t i t u l o , "./%s/root_adc_erro_hist_ch%d.png" , mpdpath , canal ) ;<br />
285 c1−>Print ( t i t u l o , "png" ) ;<br />
286 // Plotando g r á f i c o <strong>de</strong> c a l i b r a ç ã o com barra <strong>de</strong> e r r o s<br />
287 c1−>Clear ( ) ;<br />
288 graph = new TGraphErrors (20 ,x mV, y ADC, 0 , yE50 ADC) ; // erro m u l t i p l i c a d o<br />
por 50 <strong>para</strong> barra <strong>de</strong> e r r o s<br />
289 s p r i n t f ( t i t u l o , "Calibraç~ao do ADC: Ch%d, %s" , canal , mpdpath ) ;<br />
290 graph−>S e t T i t l e ( t i t u l o ) ;<br />
291 graph−>GetXaxis ( )−>S e t T i t l e ( "Amplitu<strong>de</strong> <strong>de</strong> entrada (mV)" ) ;<br />
292 graph−>GetYaxis ( )−>S e t T i t l e ( "Valor <strong>de</strong> ADC (LSB)" ) ;<br />
293 graph−>GetYaxis ( )−>S e t T i t l e O f f s e t ( 1 . 3 ) ;<br />
294 graph−>S e t F i l l C o l o r ( 1 ) ;<br />
295 graph−>SetLineColor ( 1 ) ;<br />
296 graph−>SetLineWidth ( 2 ) ;<br />
297 graph−>SetMarkerColor ( 1 ) ;<br />
298 graph−>SetMarkerStyle (21) ;<br />
299 graph−>Draw( "AP" ) ;<br />
300 graph−>Fit ( "pol1" ) ;<br />
301 // Colocando os <strong>dados</strong> no g r a f i c o<br />
302 TPaveStats ∗ p t s t a t s = new TPaveStats<br />
( 0 . 1 3 5 9 3 4 8 , 0 . 7 4 7 9 6 6 3 , 0 . 4 2 3 0 8 4 8 , 0 . 8 5 6 7 8 6 1 , "brNDC" ) ;<br />
303 p t s t a t s −>SetName ( "stats" ) ;<br />
304 p t s t a t s −>SetBor<strong>de</strong>rSize ( 1 ) ;<br />
305 p t s t a t s −>S e t F i l l C o l o r ( 0 ) ;<br />
306 p t s t a t s −>SetTextAlign (12) ;<br />
307 p t s t a t s −>SetTextFont (42) ;<br />
308 p t s t a t s −>SetOptStat ( 0 ) ;<br />
309 p t s t a t s −>SetOptFit (111) ;<br />
310 p t s t a t s −>Draw( "SAME" ) ;<br />
311 graph−>GetListOfFunctions ( )−>Add( p t s t a t s ) ;<br />
312 c1−>Update ( ) ;<br />
313 s p r i n t f ( t i t u l o , "./%s/root_adc_linearida<strong>de</strong>_ch%d.png" , mpdpath , canal ) ;<br />
314 c1−>Print ( t i t u l o , "png" ) ;<br />
99