| 1 | pam-fi | 1.1 | #ifndef calohough_h | 
| 2 |  |  | #define calohough_h | 
| 3 |  |  |  | 
| 4 |  |  |  | 
| 5 |  |  | #if !defined(__CINT__) || defined(__MAKECINT__) | 
| 6 |  |  |  | 
| 7 |  |  | #include <PamLevel2.h> | 
| 8 |  |  |  | 
| 9 |  |  | #include <TMinuit.h> | 
| 10 |  |  | #include <TPaveStats.h> | 
| 11 |  |  | #include <TStyle.h> | 
| 12 |  |  | #include <TSystem.h> | 
| 13 |  |  | #include <TCanvas.h> | 
| 14 |  |  | #include <TGraphErrors.h> | 
| 15 |  |  | #include <TH1F.h> | 
| 16 |  |  | #include <TGraphErrors.h> | 
| 17 |  |  | #include <TF2.h> | 
| 18 |  |  | #include <TH2F.h> | 
| 19 |  |  |  | 
| 20 |  |  | #include <iostream> | 
| 21 |  |  | #include <iomanip> | 
| 22 |  |  | using namespace std; | 
| 23 |  |  |  | 
| 24 |  |  | #endif | 
| 25 |  |  | /////////////////////////////////////////////////// | 
| 26 |  |  | /// | 
| 27 |  |  | /// | 
| 28 |  |  | ///  CLASS FOR INITIALIZATIONS & PARAMETERS | 
| 29 |  |  | /// | 
| 30 |  |  | /// | 
| 31 |  |  | /////////////////////////////////////////////////// | 
| 32 |  |  | class CaloHough_parameters : public TObject{ | 
| 33 |  |  |  | 
| 34 |  |  | private: | 
| 35 |  |  |  | 
| 36 |  |  | CaloHough_parameters(){ SetDefault(); }; | 
| 37 |  |  |  | 
| 38 |  |  | static CaloHough_parameters * _parameters; | 
| 39 |  |  |  | 
| 40 |  |  | public: | 
| 41 |  |  |  | 
| 42 |  |  | static CaloHough_parameters *Get(){ | 
| 43 |  |  | if(_parameters==0) { | 
| 44 |  |  | //          cout << "**NEW**"<<endl; | 
| 45 |  |  | _parameters = new CaloHough_parameters(); | 
| 46 |  |  | } | 
| 47 |  |  | return _parameters; | 
| 48 |  |  | } | 
| 49 |  |  |  | 
| 50 |  |  | // ------ | 
| 51 |  |  | //general | 
| 52 |  |  | // ------ | 
| 53 |  |  |  | 
| 54 |  |  | int isimu; | 
| 55 |  |  |  | 
| 56 |  |  | float Q_UP; | 
| 57 |  |  | float Q_DN; | 
| 58 |  |  | int   M_UP; | 
| 59 |  |  | int   M_DN; | 
| 60 |  |  |  | 
| 61 |  |  | TH2F *h_qtot[2]; // hit pattern (q>qth) | 
| 62 |  |  | TH2F *h_par[2];  // parameter space | 
| 63 |  |  | TH2F *h_par_fine[2];  // parameter space (finer binning) | 
| 64 |  |  |  | 
| 65 |  |  | TH1F *h_par1[2];  // | 
| 66 |  |  | TH1F *h_par2[2];  // | 
| 67 |  |  |  | 
| 68 |  |  |  | 
| 69 |  |  | void SetSimulation(int isetsimu){isimu = isetsimu;}; | 
| 70 |  |  | void SetQUpThreshold(float setqth) {Q_UP  = setqth;}; | 
| 71 |  |  | void SetMUpThreshold(int   setmth) {M_UP  = setmth;}; | 
| 72 |  |  | void SetQDnThreshold(float setqth) {Q_DN  = setqth;}; | 
| 73 |  |  | void SetMDnThreshold(int   setmth) {M_DN  = setmth;}; | 
| 74 |  |  | void SetDefault(); | 
| 75 |  |  |  | 
| 76 |  |  | ClassDef(CaloHough_parameters,1); | 
| 77 |  |  |  | 
| 78 |  |  | }; | 
| 79 |  |  | /////////////////////////////////////////////////// | 
| 80 |  |  | /// | 
| 81 |  |  | /// | 
| 82 |  |  | ///  CLASS INPLEMENTATION | 
| 83 |  |  | /// | 
| 84 |  |  | /// | 
| 85 |  |  | /////////////////////////////////////////////////// | 
| 86 |  |  | class CaloHough : public TObject{ | 
| 87 |  |  |  | 
| 88 |  |  | private: | 
| 89 |  |  |  | 
| 90 |  |  | public: | 
| 91 |  |  |  | 
| 92 |  |  | CaloHough(){ Reset(); }; | 
| 93 |  |  | CaloHough(CaloLevel1 *l1){ Reset(); Set(l1); }; | 
| 94 |  |  |  | 
| 95 |  |  | ~CaloHough(){ Reset(); }; | 
| 96 |  |  |  | 
| 97 |  |  | void Reset(); | 
| 98 |  |  | void Clear(){ Reset(); }; | 
| 99 |  |  | void Delete(){ Reset(); }; | 
| 100 |  |  |  | 
| 101 |  |  | bool Set(CaloLevel1*); | 
| 102 |  |  |  | 
| 103 |  |  | ClassDef(CaloHough,1); | 
| 104 |  |  |  | 
| 105 |  |  | }; | 
| 106 |  |  |  | 
| 107 |  |  | #endif |