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.
315 // Calculando v a l o r e s <strong>de</strong> INLE e plotando g r a f i c o<br />
316 TF1 ∗ f i t l = graph−>GetFunction ( "pol1" ) ;<br />
317 Double t b = f i t l −>GetParameter ( 0 ) ;<br />
318 Double t a = f i t l −>GetParameter ( 1 ) ;<br />
319 for ( int i =0; i Clear ( ) ;<br />
323 g r a p h i n l e = new TGraph (20 ,x mV, y INLE ) ;<br />
324 s p r i n t f ( t i t u l o , "Erro <strong>de</strong> n~ao -linearida<strong>de</strong> integral do ADC: Ch%d, %s" ,<br />
canal , mpdpath ) ;<br />
325 g r a p h i n l e −>S e t T i t l e ( t i t u l o ) ;<br />
326 g r a p h i n l e −>GetXaxis ( )−>S e t T i t l e ( "Amplitu<strong>de</strong> <strong>de</strong> entrada (mV)" ) ;<br />
327 g r a p h i n l e −>GetYaxis ( )−>S e t T i t l e ( "INLE (LSB)" ) ;<br />
328 g r a p h i n l e −>GetYaxis ( )−>S e t T i t l e O f f s e t ( 1 . 3 ) ;<br />
329 g r a p h i n l e −>S e t F i l l C o l o r ( 4 ) ;<br />
330 // Exibe o v a l o r máximo do INLE<br />
331 Double t y INLE abs [ 2 0 ] ;<br />
332 for ( int i =0; i S e t F i l l C o l o r (40) ;<br />
338 s p r i n t f (nome , "INLE: %1.3f" , i n l e ) ;<br />
339 pave−>AddText (nome) ;<br />
340 g r a p h i n l e −>GetYaxis ( )−>SetRangeUser(− i n l e −0.5 , i n l e +0.5) ;<br />
341 g r a p h i n l e −>Draw( "AB" ) ;<br />
342 pave−>Draw( "same" ) ;<br />
343 c1−>Update ( ) ;<br />
344 s p r i n t f ( t i t u l o , "./%s/root_adc_inle_ch%d.png" , mpdpath , canal ) ;<br />
345 c1−>Print ( t i t u l o , "png" ) ;<br />
346 }// fim<br />
1 {<br />
2 gROOT−>Reset ( ) ;<br />
Listag<strong>em</strong> D.2: Script <strong>em</strong> ROOT <strong>para</strong> o método <strong>de</strong> fotoelétron único<br />
3 #inclu<strong>de</strong> "Riostream.h"<br />
4 #inclu<strong>de</strong> <br />
5 #inclu<strong>de</strong> <br />
6 #inclu<strong>de</strong> <br />
7<br />
8 // Gráfico com barra <strong>de</strong> e r r o s<br />
100