Added shuttle preprocessor code from Hans Dalsgaard (with several
[u/mrichter/AliRoot.git] / FMD / AliFMDPreprocessor.h
CommitLineData
f6449cc0 1#ifndef ALI_FMD_PREPROCESSOR_H
2#define ALI_FMD_PREPRECESSOR_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4 * reserved.
5 *
6 * See cxx source for full Copyright notice
7 */
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.
11// More to come.
12
13
14#include "AliPreprocessor.h"
15class AliFMDCalibPedestal;
16class AliFMDCalibGain;
17class TList;
18
19//___________________________________________________________________
20/** The class processes data points from DCS (via Amanada), and DAQ DA
21 files (via FXS) to make calibration data for the FMD.
22
23 Data points:
24 * Nothing yet.
25
26 DAQ FXS file:
27 * pedestals - a (ASCII) Comma Separated Values files with the
28 fields
29 rcu DDL number
30 board FEC board number
31 chip ALTRO chip number on FEC
32 channel ALTRO channel number
33 strip VA1 strip number
34 sample Sample number
35 ped Mean of ADC spectra
36 noise Spread of ADC spectra
37 mu Mean of Gaussian fit to ADC spectra
38 sigma Variance of Gaussian fit to ADC spectra
39 chi2 Chi^2 per degrees of freedom of fit
40 * Gains - a (ASCII) Comma Separated Values files with the
41 fields
42 rcu DDL number
43 board FEC board number
44 chip ALTRO chip number on FEC
45 channel ALTRO channel number
46 strip VA1 strip number
47 gain Slope of gain
48 error Error on gain
49 chi2 Chi^2 per degrees of freedom of fit
50*/
51class AliFMDPreprocessor: public AliPreprocessor
52{
53public:
54 /** Constructor */
55 AliFMDPreprocessor(): AliPreprocessor("FMD",0) { }
56 /** Constructor
57 @param shuttle Shuttle */
58 AliFMDPreprocessor(AliShuttleInterface* shuttle)
59 : AliPreprocessor("FMD", shuttle)
60 {}
61 /** Destructor */
62 virtual ~AliFMDPreprocessor() {}
63protected:
64 /** Get the pedestal calibrations
65 @param list List of files */
66 AliFMDCalibPedestal* GetPedestalCalibration(TList* list);
67 /** Get the gain calibrations
68 @param list List of files */
69 AliFMDCalibGain* GetGainCalibration(TList*);
70 /** Entry method
71 @param dcsAliasMap Map of DCS data points */
72 virtual UInt_t Process(TMap* dcsAliasMap);
73private:
74 ClassDef(AliFMDPreprocessor, 1)
75};
76
77#endif
78//____________________________________________________________________
79//
80// Local Variables:
81// mode: C++
82// End:
83//
84// EOF
85//