{"id":1604,"date":"2015-03-17T15:24:09","date_gmt":"2015-03-17T06:24:09","guid":{"rendered":"http:\/\/www.lookingatnothing.com\/?p=1604"},"modified":"2015-04-03T14:20:40","modified_gmt":"2015-04-03T05:20:40","slug":"does-it-matter-part-5-1-detector-linearity","status":"publish","type":"post","link":"https:\/\/lookingatnothing.com\/index.php\/archives\/1604","title":{"rendered":"Does it matter part 5.1: Detector linearity"},"content":{"rendered":"<p>Time for another short investigation into data corrections? Good. Let&#8217;s take a quick look at the linearity of our Bruker HiStar detector.<\/p>\n<p><!--more--><\/p>\n<h3>What are we doing<\/h3>\n<p>We are testing here whether our detector gives us a proportional (linear) response for high countrates as it does for low countrates. At a certain level, most detectors will &#8220;choke&#8221; on the high number of photons coming in, rejecting photon signals due to a variety of effects. We will be testing this for our HiStar detector: a 2D, gas-filled wire array detector.<\/p>\n<p>Bruker themselves indicate that the detector is supposed to be highly linear, quoting reasonable countrates (also for their later detectors). A closer look, however, reveals that Bruker considers any deviation up to 10% (!) to be within linearity [0]. That, of course, will not be sufficiently accurate if we are supposed to be having data with an uncertainty better than 99% (note that this is a personal goal, not based on any metrics).<\/p>\n<p>There are two main types of detection nonlinearity that can occur, Either global nonlinearity due to too many photons per second impinging on the entire detector surface, or a local nonlinearity due to per-pixel overloading. We will check both.<\/p>\n<p>For this test, I have been using two samples of glassy carbon, one thin, one thick, to be my main source of scattering. The thin GC sample is the standard sample from <a href=\"http:\/\/www.lookingatnothing.com\/index.php\/archives\/1205\">Jan Ilavsky <\/a>that we use for our absolute intensity calibrations. A combination of GC thin (1 mm), GC thick (3 mm), and GC thin &amp; thick (1 &amp; 3 mm) can then give me a signal on the detector with varying count rates.<\/p>\n<h3>Setup<\/h3>\n<p>This combination of samples has been measured for 300s at six different settings for generator current (50, 40, 30, 20, 10 and 5 mA, all with 50kV voltage. we use a Bruker Nanostar SAXS instrument with a high-speed molybdenum rotating anode source). Theoretically, the ratio of intensities for the three samples should be the same for all generator settings. We will check this by checking the intensity in a few locations (ROIs) on the detector images.<\/p>\n<p>It should be noted at this point that the Bruker software already applies a deadtime correction to the detector images, which is supposed to correct for this effect even before we get to touch the images. However, as shown in [1], the minimum uncertainty estimate on the datapoints should then deviate. So we will check if we can see something in the evolution of the uncertainties as well.<\/p>\n<h3>Total Countrate Results<\/h3>\n<figure id=\"attachment_1605\" aria-describedby=\"caption-attachment-1605\" style=\"width: 150px\" class=\"wp-caption alignright\"><a href=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2015\/03\/currentVsTotalCountrate.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-1605\" src=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2015\/03\/currentVsTotalCountrate-150x150.png\" alt=\"Generator current setting versus total detected countrates for three samples of glassy carbon.\" width=\"150\" height=\"150\" \/><\/a><figcaption id=\"caption-attachment-1605\" class=\"wp-caption-text\"><strong>Figure 1:<\/strong> Generator current setting versus total detected countrates for three samples of glassy carbon.<\/figcaption><\/figure>\n<p>First, we can look at the total detector countrates. When we plot the number of counts detected versus the generator setting, we see that the countrate does not appear to be linearly dependent on the generator current (Figure 1). While it is theoretically supposed to be, there are a number of reasons why it shouldn&#8217;t have to be in practice. These include different heat loads on the target and optics at different currents, imprecise current measurements, etc.<\/p>\n<p>This is the reason I measured three different sample combinations. For each setting, the ratio of intensities <em>between<\/em> the samples should be the same, and ideally also independent of the countrate.<\/p>\n<figure id=\"attachment_1610\" aria-describedby=\"caption-attachment-1610\" style=\"width: 150px\" class=\"wp-caption alignright\"><a href=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2015\/03\/1mmCountrateVsTotalCountrate.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-1610\" src=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2015\/03\/1mmCountrateVsTotalCountrate-150x150.png\" alt=\"Countrate of samples versus countrate detected for the 1mm GC sample, showing deviations from linearity for the thicker samples.\" width=\"150\" height=\"150\" \/><\/a><figcaption id=\"caption-attachment-1610\" class=\"wp-caption-text\"><strong>Figure 2:<\/strong> Countrate of samples versus countrate detected for the 1mm GC sample, showing deviations from linearity for the thicker samples.<\/figcaption><\/figure>\n<p>Therefore, taking the 1mm GC sample as the &#8220;calibrated&#8221; countrate (on the X-axis), I can plot the sample set again. From this, we can already see that the total countrate of the three samples is not quite linear (Figure 2). Normalizing by the counts for the 1mm sample (to obtain the intensity ratio), we see what appears to be systematic deviations of the total number of collected counts for the 3mm and 1 &amp; 3mm samples (Figure 3).<\/p>\n<figure id=\"attachment_1611\" aria-describedby=\"caption-attachment-1611\" style=\"width: 150px\" class=\"wp-caption alignright\"><a href=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2015\/03\/1mmCountrateVsTotalRatio.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-1611\" src=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2015\/03\/1mmCountrateVsTotalRatio-150x150.png\" alt=\"Ratio of counts for the three samples, versus the countrate for our standard 1mm sample. \" width=\"150\" height=\"150\" \/><\/a><figcaption id=\"caption-attachment-1611\" class=\"wp-caption-text\">Ratio of counts for the three samples, versus the countrate for our standard 1mm sample.<\/figcaption><\/figure>\n<p>These curves are looking a bit curious, with a maximum at about 2000-4000 cps, after which a gradual decline in the count rate ratio can be observed. For the latter measurements, this means that we are detecting fewer counts than we should be for those thicker samples. It also shows that the deadtime correction implemented by Bruker does not fully compensate for the loss in detection capacity at these rates. Note, however, that all deviations remain within 10%. Therefore it is &#8220;linear&#8221;, according to the Bruker definition.<\/p>\n<p>The initial bump can have two explanations. It is either an artefact of Bruker&#8217;s deadtime correction, or (more worryingly), it might mean that the count rates of our reference sample (1mm GC) are<em> already exceeding<\/em> the count rate limit!<\/p>\n<p>This would make me slightly unhappy as we typically use the 1mm GC sample for our calibration measurements. That would imply that my absolute intensity calibrations could be slightly off.<\/p>\n<p>As for the local linearity checks, I will need to take a raincheck on that. I have the data (which you are more than welcome to have a play with), but this article is becoming too long already, and my time is running out for today.<\/p>\n<p>See you next week!<\/p>\n<p>[0]: Vantec 2000 spec sheet (upgraded, but basically similar detector as the Bruker HiStar). Downloaded <a href=\"https:\/\/www.bruker.com\/fileadmin\/user_upload\/8-PDF-Docs\/X-rayDiffraction_ElementalAnalysis\/XRD\/ProductSheets\/VANTEC-2000-2D-MikroGapDetector_DOC-S88-EXS033_en_Low.pdf\">here,<\/a> March 17, 2015.<\/p>\n<p>[1]: D. Laundy and S. Collins. Counting statistics of x-ray detectors at high counting rates. <a href=\"http:\/\/dx.doi.org\/10.1107\/S0909049503002668\">J. Synchrotron Rad., 10:214\u2013218, 2003<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Time for another short investigation into data corrections? Good. Let&#8217;s take a quick look at the linearity of our Bruker HiStar detector.<\/p>\n<\/div>","protected":false},"author":2,"featured_media":1605,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1,85],"tags":[],"class_list":["post-1604","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","category-looking-into-something"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/lookingatnothing.com\/wp-content\/uploads\/2015\/03\/currentVsTotalCountrate.png","jetpack_shortlink":"https:\/\/wp.me\/p1gZ2v-pS","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/posts\/1604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/comments?post=1604"}],"version-history":[{"count":1,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/posts\/1604\/revisions"}],"predecessor-version":[{"id":1612,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/posts\/1604\/revisions\/1612"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/media\/1605"}],"wp:attachment":[{"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/media?parent=1604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/categories?post=1604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/tags?post=1604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}