MFitAmplBaseline.hh

Go to the documentation of this file.
00001 
00079 #ifndef __MFITAMPLBASELINE_HH_
00080 #define __MFITAMPLBASELINE_HH_
00081 
00082 #include "QModule.hh"
00083 # include "QCuore.hh"
00084 
00085 class QStabChannel;
00086 namespace Cuore{class QEvent;}
00087 using namespace Cuore;
00088 
00089 class MFitAmplBaseline : public QModule {
00090 
00091         public:
00096                 MFitAmplBaseline(QSequence*);
00097                 /*
00098                  *
00099                  *@ brief Destructor
00100                  *
00101                  */
00102                 virtual ~MFitAmplBaseline();
00108                 virtual void Init();
00113                 virtual QEvent* Do(QEvent*);
00114                 /* 
00115                  * brief Done method: remove spurious non heater pulses, 
00116                  * produces and fits
00117                  * amplitude vs baseline histograms and stores the fit parameters in 
00118                  * the data base.
00119                  */
00120                 virtual void Done();
00121 
00122         private: 
00128                 void SetupChannels();
00133                 std::vector<QStabChannel*> fChannels;
00134                 std::vector<int> fProblematicChannels;
00135                 /*
00136                  * @brief if true the stabilized amplitudes are processed
00137                  *
00138                  */
00139                 bool fUseCorrectedAmplitude;
00140 
00141                 bool fFitVsBaseline;
00142 
00143                 std::string fAsciiOutFileName;
00144                 std::string fInFileName;
00145                 std::string fFitMethod;
00146                 double fAmplitudeTolerance;
00147                 double fSkewnessTolerance;
00148                 bool fGraphicsOn;
00149                 std::string fGraphicsFileName;
00150                 int fNSamples;
00151                 unsigned int fMaxIterationNum;
00152                 unsigned int fPolyDegree;
00153                 FILE* fOutFile;
00154                 FILE* fInitialParametersFile;
00155                 std::string fInitialParametersFileString;
00156                 bool fIsFirstEvent;
00157                 int fRun;
00158                 //time_t fStartTime;
00159 
00160 
00161 };
00162 
00163 
00164 #endif

Generated on Tue Nov 16 10:49:57 2010 for CUORE Software by  doxygen 1.5.6