NoisePowerSpectrum.hh
Go to the documentation of this file.00001
00009 #ifndef __NOISE_POWER_SPECTRUM_HH_
00010 #define __NOISE_POWER_SPECTRUM_HH_
00011
00012
00013 #include "PowerSpectrum.hh"
00014
00015
00016 using namespace std;
00017
00018 class NoisePowerSpectrum : public PowerSpectrum {
00019 protected:
00020
00021
00022
00023 PowerSpectrum * fAvPulse;
00024
00025
00026
00027 Float_t * fOFResolution;
00028
00030
00032 public:
00033
00034
00035 NoisePowerSpectrum();
00036
00037
00038 NoisePowerSpectrum(char * gainsFile);
00039
00040
00041 NoisePowerSpectrum(Int_t nch);
00042
00043
00044 NoisePowerSpectrum (const NoisePowerSpectrum & ps);
00045
00046
00047 virtual ~NoisePowerSpectrum();
00048
00049 Int_t OFResolution (Float_t fini = -1, Float_t fend=-1);
00050
00051
00052 TH1F * GetHistoOFResolution (char * histoName, Float_t fini=-1, Float_t fend=-1);
00053
00054
00056
00058
00059 inline Float_t GetOFResolution(Int_t i) {if (fOFResolution) return fOFResolution[i]; cout << "Error: OF resolution not calculated yet" << endl;}
00060 inline PowerSpectrum * GetAvPulse () {return fAvPulse;};
00061
00063
00065
00066 inline void SetAvPulse (PowerSpectrum * ap) {fAvPulse = ap;};
00067
00068
00069 };
00070
00071 #endif