The device irradiates samples with alpha particles and maps the spectra of X-rays that are re-emitted for determining the elemental composition of samples.  Curiosity 's APXS was developed by the Canadian Space Agency .  MacDonald Dettwiler (MDA) , the Canadian aerospace company that built the Canadarm and RADARSAT , were responsible for the engineering design and building of the APXS. The APXS science team includes members from the University of Guelph , the University of New Brunswick , the University of Western Ontario , NASA , the University of California, San Diego and Cornell University .  The APXS instrument takes advantage of particle-induced X-ray emission (PIXE) and X-ray fluorescence , previously exploited by the Mars Pathfinder and the Mars Exploration Rovers .  
If you're just looking to have a shitload of dry compounds, I'd agree with everyone else about giving up on the primo. It's just too often faked (by the labs, the dealers, or the factories). Doesn't mean you don't have other options. Running Mast into the stratosphere - like, 1g+ - will get expensive in its own right, but might give you something similar. The "drying" effect will top out at around 500-600, yeah, but if you crank it high enough it'll also work fine as a recomp compound or even a bulking agent. Just watch for sides.