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 : publicPowerSpectrum {
00019 protected:
00020
00021 // Pointer to average pulse power spectrum to compute the 00022 // resolution of the optimum filter00023 PowerSpectrum * fAvPulse;
00024
00025
00026 // Array with the OF Resolution values00027 Float_t * fOFResolution;
00028
00030 // METHODS00032 public:
00033
00034 // Default constructor00035 NoisePowerSpectrum();
00036
00037 // constructor with gains file name00038 NoisePowerSpectrum(char * gainsFile);
00039
00040 // constructor with number of channels00041 NoisePowerSpectrum(Int_t nch);
00042
00043 // Default copy constructor 00044 NoisePowerSpectrum (const NoisePowerSpectrum & ps);
00045
00046 // Destructor00047 virtual ~NoisePowerSpectrum();
00048
00049 Int_t OFResolution (Float_t fini = -1, Float_t fend=-1);
00050
00051 // Get Histogram with OF resolution for every channel00052 TH1F * GetHistoOFResolution (char * histoName, Float_t fini=-1, Float_t fend=-1);
00053
00054
00056 // Get methods00058
00059 inline Float_t GetOFResolution(Int_t i) {if (fOFResolution) return fOFResolution[i]; cout << "Error: OF resolution not calculated yet" << endl;}
00060 inlinePowerSpectrum * GetAvPulse () {return fAvPulse;}; // Get Average pulse00061
00063 // Set methods00065
00066 inlinevoid SetAvPulse (PowerSpectrum * ap) {fAvPulse = ap;}; // Get Average pulse00067
00068
00069 };
00070
00071 #endif
Generated on Tue Nov 16 10:49:58 2010 for CUORE Software by
1.5.6
In questo sito non sono utilizzati cookie per la profilazione degli utenti. Utilizza cookie di sessione, necessari per il corretto funzionamento dello stesso e per gestire l'autenticazione ai servizi on-line, alla intranet e alle aree riservate... leggi tutto