NPSList.hh

00001 
00009 #ifndef __NPSLIST_HH_
00010 #define __NPSLIST_HH_
00011 
00012 #include "NoisePowerSpectrum.hh"
00013 #include <iostream>
00014 #include <sstream>
00015 #include <fstream>
00016 #include <stdio.h>
00017 #include <stdarg.h>
00018 #include "TCanvas.h"
00019 #include "TLegend.h"
00020 #include <TTree.h>
00021 #include "TFile.h"
00022 using namespace std;
00023 
00024 #define MAXFILES 10000
00025 
00026 class NPSList {
00027   protected:
00028 
00029   NoisePowerSpectrum ** fList;
00030   PowerSpectrum ** fAPList;
00031   Int_t fFlag[MAXFILES];
00032   Int_t fMeasNum[MAXFILES];
00033   char fName [MAXFILES][512];
00034   Int_t fNum;
00035   Int_t fActiveNum;
00036   Int_t fAPNum; // Number of average pulses used
00037   
00038   public:
00039 
00040   NPSList(); // default constructor
00041   // constructor. Read an input file
00042   NPSList(char * list); 
00043   virtual ~NPSList(); // default destructor
00044 
00045   NoisePowerSpectrum ** GetList () {return fList;}
00046   Int_t GetNum() {return fNum;}
00047   Int_t GetFlag(Int_t i) {if(i<fNum && i>=0) return fFlag[i]; return -1;}
00048   void SetFlag(Int_t file , int flag) {if (file>=0 && file<fNum) fFlag[file]=flag;}
00049   
00050   
00051   void GetNames(Int_t file=-1);
00052   char * GetName(Int_t file);
00053   void static Info();
00054   Int_t ReadInputFile(char * fileName);
00055   Int_t AddFile(NoisePowerSpectrum * file);
00056   Int_t DrawChannel (Int_t ch, Int_t fi0=-1, Int_t fi1=-1, Int_t fi2=-1, Int_t fi3=-1, Int_t fi4=-1, Int_t fi5=-1, Int_t fi6=-1, Int_t fi7=-1, Int_t fi8=-1, Int_t fi9=-1);
00057 
00058   Int_t DrawMeanChannel (Int_t ch);
00059   Int_t MeanChannel (Int_t ch, char * fileName);
00060   Int_t MeanNPS(char * fileName);
00061   
00062   Int_t DrawChannelAP (Int_t ch, Int_t fi0=-1, Int_t fi1=-1, Int_t fi2=-1, Int_t fi3=-1, Int_t fi4=-1, Int_t fi5=-1, Int_t fi6=-1, Int_t fi7=-1, Int_t fi8=-1, Int_t fi9=-1);
00063   
00064     Int_t DrawFile (Int_t file, Int_t ch0=-1, Int_t ch1=-1, Int_t ch2=-1, Int_t ch3=-1, Int_t ch4=-1, Int_t ch5=-1, Int_t ch6=-1, Int_t ch7=-1, Int_t ch8=-1, Int_t ch9=-1);
00065   
00066   Int_t DrawFileAP (Int_t file, Int_t ch0=-1, Int_t ch1=-1, Int_t ch2=-1, Int_t ch3=-1, Int_t ch4=-1, Int_t ch5=-1, Int_t ch6=-1, Int_t ch7=-1, Int_t ch8=-1, Int_t ch9=-1);
00067   
00068   Int_t Integrate(Float_t fini=-1, Float_t fend=-1);
00069   Int_t OFResolution(Float_t fini=-1, Float_t fend=-1);
00070   TTree * TreeIntegrate(Float_t fini=-1, Float_t fend=-1);
00071   
00072   // Auxiliar
00073   Int_t DrawHistos(Int_t num, TH1F ** histos, Bool_t logx=0, Bool_t logy=0, Bool_t spline=0);
00074 
00075 };
00076 
00077 #endif

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