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     // Pointer to average pulse power spectrum to compute the 
00022     // resolution of the optimum filter
00023     PowerSpectrum * fAvPulse;
00024 
00025 
00026     // Array with the OF Resolution values
00027             Float_t * fOFResolution;
00028 
00030     // METHODS
00032   public:
00033 
00034     // Default constructor
00035     NoisePowerSpectrum(); 
00036 
00037     // constructor with gains file name
00038     NoisePowerSpectrum(char * gainsFile); 
00039 
00040     // constructor with number of channels
00041     NoisePowerSpectrum(Int_t nch); 
00042 
00043     // Default copy constructor 
00044     NoisePowerSpectrum (const NoisePowerSpectrum & ps);
00045 
00046     // Destructor
00047     virtual ~NoisePowerSpectrum();
00048 
00049     Int_t OFResolution (Float_t fini = -1, Float_t fend=-1);
00050    
00051     // Get Histogram with OF resolution for every channel
00052     TH1F * GetHistoOFResolution (char * histoName, Float_t fini=-1, Float_t fend=-1);
00053 
00054 
00056     // Get methods
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;}; // Get Average pulse
00061 
00063     // Set methods
00065 
00066     inline void SetAvPulse (PowerSpectrum * ap) {fAvPulse = ap;}; // Get Average pulse
00067 
00068 
00069 };
00070 
00071 #endif

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