Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

FitGC.h

Go to the documentation of this file.
00001 
00002 // $Id: FitGC.h,v 1.7 2006/04/19 19:59:06 rhatcher Exp $
00003 //
00004 // FILL_IN: [Document your code!!]
00005 //
00006 // 
00008 #ifndef FITGC_H
00009 #define FITGC_H
00010 
00011 #include "TObject.h"
00012 #include "TTree.h"
00013 #include "TGraphErrors.h"
00014 #include "DatabaseInterface/DbiWriter.h"
00015 #include "Conventions/Detector.h"
00016 #include "Conventions/SimFlag.h"
00017 #include "Validity/VldTimeStamp.h"
00018 #include "Calibrator/CalPulserFits.h"
00019 
00020 class TF1;
00021 class GCSummary;
00022 class HistMan;
00023 
00024 class FitGC : public TObject
00025 {
00026 public:
00027   FitGC();
00028   ~FitGC();
00029 
00030 public:
00031   void OpenFile(const char* name);
00032   void setxmin(float x){xmin=x;};
00033   void setxmax(float x){xmax=x;};
00034   TTree* GetGCTree(){return gc_tree;};
00035   GCSummary* GetGCSummary(){return gc;};
00036   void DrawPlots(Int_t i){DoPlots = i;};
00037   void GetEntry(int i){gc_tree->GetEntry(i);};
00038   void Plot(Int_t plane,Int_t strip);
00039   void PlotPL(Int_t pb = -1, Int_t led = -1);
00040   void DoFit();
00041   Float_t Getslope(){return slope;};
00042   Float_t Getoffset() {return intercept;};
00043   void writehm();
00044   void GetSiglin(Float_t pmtadc,Int_t pb = -1, Int_t led = -1);
00045   void WriteDB(const Detector::Detector_t &det, std::string fDBName);
00046 
00047   int fittime;
00048 
00049 private:
00050   // Module member data
00051   TTree *gc_tree;
00052   GCSummary *gc;
00053 
00054   Int_t fDetector;
00055 
00056   Int_t DoPlots;
00057 
00058   TGraphErrors *pvp;
00059   TGraphErrors *rvpmt;
00060   TGraphErrors *rvpin;
00061 
00062   float xmin;
00063   float xmax;
00064 
00065   float slope;
00066   float intercept;
00067 
00068   int idebug;
00069   int ibadfit;
00070 
00071   char filename[100];
00072 
00073   HistMan *hm;
00074   
00075  
00076 
00077   TF1 *fit_formula;
00078 
00079   DbiWriter<CalPulserFits> fWriter;
00080 
00081   ClassDef(FitGC, 0) 
00082 
00083 };
00084 #endif // FITGC_H
00085 

Generated on Mon Feb 15 11:06:43 2010 for loon by  doxygen 1.3.9.1