1 #ifndef ALI_FMD_PREPROCESSOR_H
2 #define ALI_FMD_PREPRECESSOR_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
6 * See cxx source for full Copyright notice
8 //___________________________________________________________________
9 // The class processes data points from DCS (via Amanada), and DAQ DA
10 // files (via FXS) to make calibration data for the FMD.
14 #include "AliPreprocessor.h"
15 #ifndef ALIFMDUSHORTMAP_H
16 # include <AliFMDUShortMap.h>
18 #ifndef ALIFMDBOOLMAP_H
19 # include <AliFMDBoolMap.h>
21 typedef AliFMDUShortMap AliFMDCalibZeroSuppression;
22 typedef AliFMDBoolMap AliFMDCalibDeadMap;
23 class AliFMDCalibPedestal;
24 class AliFMDCalibGain;
25 class AliFMDCalibSampleRate;
26 class AliFMDCalibStripRange;
30 //___________________________________________________________________
31 /** The class processes data points from DCS (via Amanada), and DAQ DA
32 files (via FXS) to make calibration data for the FMD.
38 * pedestals - a (ASCII) Comma Separated Values files with the
41 board FEC board number
42 chip ALTRO chip number on FEC
43 channel ALTRO channel number
44 strip VA1 strip number
46 ped Mean of ADC spectra
47 noise Spread of ADC spectra
48 mu Mean of Gaussian fit to ADC spectra
49 sigma Variance of Gaussian fit to ADC spectra
50 chi2 Chi^2 per degrees of freedom of fit
51 * Gains - a (ASCII) Comma Separated Values files with the
54 board FEC board number
55 chip ALTRO chip number on FEC
56 channel ALTRO channel number
57 strip VA1 strip number
60 chi2 Chi^2 per degrees of freedom of fit
62 class AliFMDPreprocessor: public AliPreprocessor
66 AliFMDPreprocessor(): AliPreprocessor("FMD",0) {}
68 @param shuttle Shuttle */
69 AliFMDPreprocessor(AliShuttleInterface* shuttle) ;
73 virtual ~AliFMDPreprocessor() {}
74 /** Get an entry from OCDB */
75 AliCDBEntry* GetFromCDB(const char* second, const char* third);
77 /** Get the pedestal calibrations
78 @param list List of files */
79 AliFMDCalibPedestal* GetPedestalCalibration(TList* list);
80 /** Get the gain calibrations
81 @param list List of files */
82 AliFMDCalibGain* GetGainCalibration(TList*);
83 /** Get the dead channels map based on the pedestal
84 an gain calibration objects. */
86 AliFMDCalibDeadMap* GetDeadChannelMap(AliFMDCalibPedestal* pedcalib,
87 AliFMDCalibGain* gaincalib);
89 /** Get info calibrations.
90 @param files List of files.
91 @param s On return, newly allocated object
92 @param r On return, newly allocated object
93 @param z On return, newly allocated object
94 @return kTRUE on success */
95 Bool_t GetInfoCalibration(TList* files,
96 AliFMDCalibSampleRate*& s,
97 AliFMDCalibStripRange*& r,
98 AliFMDCalibZeroSuppression*& z);
99 /** Convinience function
100 @param list On return, list of files.
101 @param system Alice system (DAQ, DCS, ...)
103 @return kTRUE on success. */
104 Bool_t GetAndCheckFileSources(TList*& list, Int_t system, const char* id);
107 @param dcsAliasMap Map of DCS data points */
108 virtual UInt_t Process(TMap* dcsAliasMap);
110 ClassDef(AliFMDPreprocessor, 1)
114 //____________________________________________________________________