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 typedef AliFMDUShortMap AliFMDCalibZeroSuppression;
19 class AliFMDCalibPedestal;
20 class AliFMDCalibGain;
21 class AliFMDCalibSampleRate;
22 class AliFMDCalibStripRange;
26 //___________________________________________________________________
27 /** The class processes data points from DCS (via Amanada), and DAQ DA
28 files (via FXS) to make calibration data for the FMD.
34 * pedestals - a (ASCII) Comma Separated Values files with the
37 board FEC board number
38 chip ALTRO chip number on FEC
39 channel ALTRO channel number
40 strip VA1 strip number
42 ped Mean of ADC spectra
43 noise Spread of ADC spectra
44 mu Mean of Gaussian fit to ADC spectra
45 sigma Variance of Gaussian fit to ADC spectra
46 chi2 Chi^2 per degrees of freedom of fit
47 * Gains - a (ASCII) Comma Separated Values files with the
50 board FEC board number
51 chip ALTRO chip number on FEC
52 channel ALTRO channel number
53 strip VA1 strip number
56 chi2 Chi^2 per degrees of freedom of fit
58 class AliFMDPreprocessor: public AliPreprocessor
62 AliFMDPreprocessor(): AliPreprocessor("FMD",0) {}
64 @param shuttle Shuttle */
65 AliFMDPreprocessor(AliShuttleInterface* shuttle) ;
69 virtual ~AliFMDPreprocessor() {}
70 /** Get an entry from OCDB */
71 AliCDBEntry* GetFromCDB(const char* second, const char* third);
73 /** Get the pedestal calibrations
74 @param list List of files */
75 AliFMDCalibPedestal* GetPedestalCalibration(TList* list);
76 /** Get the gain calibrations
77 @param list List of files */
78 AliFMDCalibGain* GetGainCalibration(TList*);
79 /** Get info calibrations.
80 @param files List of files.
81 @param s On return, newly allocated object
82 @param r On return, newly allocated object
83 @param z On return, newly allocated object
84 @return kTRUE on success */
85 Bool_t GetInfoCalibration(TList* files,
86 AliFMDCalibSampleRate*& s,
87 AliFMDCalibStripRange*& r,
88 AliFMDCalibZeroSuppression*& z);
89 /** Convinience function
90 @param list On return, list of files.
91 @param system Alice system (DAQ, DCS, ...)
93 @return kTRUE on success. */
94 Bool_t GetAndCheckFileSources(TList*& list, Int_t system, const char* id);
97 @param dcsAliasMap Map of DCS data points */
98 virtual UInt_t Process(TMap* dcsAliasMap);
100 ClassDef(AliFMDPreprocessor, 1)
104 //____________________________________________________________________