{"action":"closed","issue":{"url":"https://api.github.com/repos/SPIhub/hummingbird/issues/15","labels_url":"https://api.github.com/repos/SPIhub/hummingbird/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/SPIhub/hummingbird/issues/15/comments","events_url":"https://api.github.com/repos/SPIhub/hummingbird/issues/15/events","html_url":"https://github.com/SPIhub/hummingbird/issues/15","id":117619715,"number":15,"title":"Skype_Agenda_2015_02_13","user":{"login":"daurer","id":5823208,"avatar_url":"https://avatars.githubusercontent.com/u/5823208?v=3","gravatar_id":"","url":"https://api.github.com/users/daurer","html_url":"https://github.com/daurer","followers_url":"https://api.github.com/users/daurer/followers","following_url":"https://api.github.com/users/daurer/following{/other_user}","gists_url":"https://api.github.com/users/daurer/gists{/gist_id}","starred_url":"https://api.github.com/users/daurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daurer/subscriptions","organizations_url":"https://api.github.com/users/daurer/orgs","repos_url":"https://api.github.com/users/daurer/repos","events_url":"https://api.github.com/users/daurer/events{/privacy}","received_events_url":"https://api.github.com/users/daurer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SPIhub/hummingbird/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-18T16:07:05Z","updated_at":"2015-11-18T16:24:11Z","closed_at":"2015-11-18T16:24:11Z","body":"# Meeting Agenda for Single Particle Imaging#\n\n## 1. Key analyses goals - extraction of reducedData: ##\n\n###A. How much have we reduced the background? Background level(s) VS motor position. --> \"Heatmap\" of background level vs motor position.\n\n- EPICS parameters for motors.\n\n- CSPAD photon scores using psana's dark-subtraction + median-subtraction routines. For each 2x1 measure (6 values) photon average, median, StdDev, NumPix>Thresh0, NumPix>Thresh1, NumPix>Thresh2.\n\n###B1. Level of noise and sufficiency for SPI-hitfinding (perhaps studied in offline mode):\n- Convert patterns into average photon pattern so we can relate to SPI scattering strength.\n- Loss of resolution of an equivalent powder pattern given measured background. Measuring the fluctuation of the background pattern (e.g. std. deviation) informs us how well we can detect signal photons that appear over the background. \n- Which \"regions\" on the detector can we use for hit-finding?\n- Simulated hit-finding -- what is the smallest particle that we can detect (with xxx confidence) given the current measured background?\n- Detection of spurious outlier patterns.\n\n###B2. What are the key photon features in the pattern? Persistent average pattern of (-periodic writes to single file?):\n- ADUs that are below Thresh0.\n- ADUs between Thresh0 to Thresh1. \n- ADUs between Thresh1 to Thresh2.\n- ADUs above Thresh2.\n- Strong background/detector artifacts.\n- Identify dead pixels on the fly. I think py-psana's darkcalibration kinda does this to some extent.\n- For the future: adaptive thresholding?\n\n###C. Setting up a framework that will become useful for hit-finding in June.\n- How to integrate structure-aware hit-finding?\n- How to integrate simulation modules into data stream (e.g. sizing, sphericity etc).\n- We can discuss this in detail over time.\n\n\n\n## 2. Py-psana framework and backbone-code for accessing DAQ datastream.\n\n###A. Should the backbone code be:\n\n- like Cheetah, where a main thread passes events to worker threads, or \n- have independent worker threads that separately access the datastream and write to its own time-tagged LogFile?\n\n###B. How similar should online and offline analyses codes be similar? \n\n- Are psana library and its dependencies portable across different machines?\n\n###C. Paired programming model: \n\n- \"one person\" works on data-reduction code, \"another person\" work on data-analyses. This way, we don't have to re-access XTCs just to rerun/debug analyses on reduced data.\n\n\n## 3. Cheetah’s role:\n### A. Output pixel-wise Histograming. \n- Pixel-wise average and standard deviation. \n\n### B. Convert statistical outlier patterns to CXIDB format. \n- For March-2015 beamtime this would be useful to identify streaks in background (correlate with motor positions?) which might be lost if we just stared at histograms.\n\n### C. Photon-based hitfinding using running background subtraction? \n\n- Help find surprises in the background (e.g. streaking, or that we hit a fixed target!) \n\n\n## 4. Feature request for AMI: \n\nA. Histograms of ADU counts for certain pixels vs EPICS parameter. The cxiopr could use this for fast feedback for optimal motor positioning.\n\n\n## 5. Offline (or quick-offline) analyses: \n\n###A. Pixel-by-pixel pedestal + gain calibration off Cheetah output?\n\n###B. Probability mass in one-photon peak vs that in zero-photon peak.\n\n###C. False positive hit rates given pixel-by-pixel histogram statistics and simulated scattering pattern.\n\n\n## 6. Additional questions: ##\n###A. How many processing streams should we have during online analysis?\n###B. How are dark-cal computed in py-psana?\n###C. Matching simulated diffraction patterns? (e.g. diffraction pattern of fabricated shape)\n###D. Test data streams for us to play with before March beamtime.\n###E. Who will be going to the beamtime? \n###F. How should this document be shared with the Initiative? \n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/spinitiative/hummingbird.git/issue/2\n- Originally reported by: [duaneloh](http://bitbucket.org/duaneloh)\n- Originally created at: 2015-02-13T02:36:30.904\n"}}