Droplet
Instead of storing all pixels, you can also run droplet reconstruction. You can either store the droplets or break them down in a list of single photons (the latter requires all photons to be of the same energy). This is useful if you have a low hit rate, care about sub-pixel position resolution for detectors where photons leave energy in >1 pixel (e.g. the EPIX) or would like to use deduce the energy of the incident photon and thus need to combine energy from all pixels that stem from the same photon. For data with high photon densities, the photons will all "glob" together in a single droplet as all pixels above threshold with neighboring faces will be constructed into the same droplet. The number of pixels contained in a droplet will be saved for all droplets.
The droplet algorithm and its parameters will be described in more detail later.
epixnames = ['epix_vonHamos'] dets=[] for iepix,epixname in enumerate(epixnames): have_epix = checkDet(ds.env(), epixname) if have_epix: print 'creating epix detector object for epix ',epixname epix = DetObject(epixname ,ds.env(), int(run), name=epixname,common_mode=46) epix.addDroplet(threshold=10., thresholdLow=3., thresADU=0.,name='droplet') epix['droplet'].addAduHist([0.,1500.]) epix['droplet'].addDropletSave(maxDroplets=nDrop[iepix]) dets.append(epix)