******************************************************** * CANDMORGUE PACKAGE March 2006 * * Andy Blake * ******************************************************** This is my attempt to resurrect the CandMorgue package! The contents of this package are the result of tidying up a previous package (FarDetDataQuality) that I wrote for use in the Cambridge atmospheric neutrino analysis. The code has now been cleaned up a lot and works on both Near and Far Detector data. The DataQualityReader runs right at the very beginning of the reconstruction chain and analyses the raw data blocks using a set of internal data quality objects which extract lots of useful information! Whenever the DataQualityReader encounters a RawDigitDataBlock (Snarl), it passes these internal objects to an AlgDataQuality which collates all the data quality information and fills a CandDataQuality. This is then added to the CandRecord and so passes through the candidate framework. The CandDataQualityHandle contains a list of CandDeadChipHandles, detailing each of the bad chips in the detector at the time of the event. The user can ask the CandDataQualityHandle for an assessment of the overall data quality, or about the CandDeadChipHandles stored inside it. I don't think this framework is the most efficient for handling the status of individual channels in the detector though - but hopefully I can add a "CandMorgue" class in the future which does this job better. See the example macro "dataquality.C" for more details.