File indexing completed on 2023-03-17 11:20:49
0001 #include "TObject.h"
0002 #include "SeedPtFunction.h"
0003 #include <vector>
0004 #include <stdio.h>
0005 #include <iostream>
0006 #include <string>
0007 #include <TString.h>
0008 #include <TSystem.h>
0009 #include <TStyle.h>
0010 #include <TFile.h>
0011 #include <TCanvas.h>
0012 #include <TFrame.h>
0013 #include <TH2.h>
0014 #include <TH1.h>
0015 #include <TH1D.h>
0016 #include <TF1.h>
0017 #include <TFormula.h>
0018 #include <TGraphErrors.h>
0019 #include <TGraph.h>
0020 #include <TMath.h>
0021
0022 class SeedParaFit : public TObject {
0023
0024 private:
0025
0026 TString dname ;
0027 TString fName ;
0028 TString suffixps ;
0029 float nsigmas ;
0030 double bsz ;
0031 int rbin ;
0032 bool debug ;
0033 bool debugAll ;
0034
0035 TFile *file ;
0036 FILE* dfile;
0037 FILE* logfile;
0038
0039 char det[6];
0040 char dphi_case[20];
0041 TString dphi_type ;
0042 TString det_id ;
0043
0044 TString plot01;
0045 TString plot02;
0046 TString plot03;
0047 TString plot04;
0048 TString plot05;
0049
0050 TCanvas* c1;
0051 TCanvas* c2;
0052 TCanvas* c3;
0053 TCanvas* c4;
0054 TCanvas* c5;
0055
0056 TH2F* heta_dphiPt;
0057
0058
0059 TCanvas* cv;
0060 char dbplot[11];
0061 TString plot_id ;
0062
0063 SeedPtFunction* ptFunc ;
0064
0065 public:
0066
0067 SeedParaFit();
0068
0069 ~SeedParaFit();
0070
0071
0072 void ParaFit( int type, int st, double h1, double h2, int np );
0073
0074 vector<int> preFitter( TF1* ffunc, TString falias, double h1, double h2, int asize, Double_t* xa, Double_t* ya );
0075
0076 void PrintTitle();
0077 void PrintEnd();
0078
0079 ClassDef(SeedParaFit, 1);
0080
0081 };
0082
0083 #if !defined(__CINT__)
0084 ClassImp(SeedParaFit);
0085 #endif
0086