#include <CacherEM.h>
Public Member Functions | |
| CacherEM () | |
| ~CacherEM () | |
| std::map< Int_t, spef > | GetPSMap () |
| std::vector< rte > | GetRTMap () |
| Double_t | GetSumE () |
| Double_t * | GetPars () |
| void | StorePS (Int_t, Double_t *, std::map< Int_t, spef >) |
| void | StoreRT (Int_t, Double_t *, std::vector< rte >, Double_t) |
| Bool_t | ValidPS (Double_t *) |
| Bool_t | ValidRT (Double_t *) |
| void | PrintPSMap () |
| void | PrintRTMap () |
| void | ClearCache () |
| void | ClearPSCache () |
Private Attributes | |
| Int_t | fn |
| Double_t * | fpars |
| std::map< Int_t, spef > | fpscache |
| std::vector< rte > | frtcache |
| Double_t | fsumE |
|
|
Definition at line 7 of file CacherEM.cxx. References fn, fpars, fpscache, frtcache, and fsumE. 00007 {
00008 fn = 0;
00009 fpars = NULL;
00010 fpscache.clear();
00011 frtcache.clear();
00012 fsumE = 0;
00013 }
|
|
|
Definition at line 16 of file CacherEM.cxx. 00016 {
00017 delete [] fpars;
00018 }
|
|
|
Definition at line 119 of file CacherEM.cxx. References fn, fpars, fpscache, and frtcache. Referenced by FitterEM::PredictEMLoss(). 00119 {
00120
00121 fn = 0;
00122 Double_t *temp = fpars;
00123 fpars = NULL;
00124 delete [] temp;
00125 fpscache.clear();
00126 frtcache.clear();
00127
00128 }
|
|
|
Definition at line 131 of file CacherEM.cxx. References fpscache. Referenced by FitterEM::PredictEMLoss(). 00131 {
00132
00133 fpscache.clear();
00134
00135 }
|
|
|
Definition at line 35 of file CacherEM.cxx. 00035 {
00036 return fpars;
00037 }
|
|
|
Definition at line 21 of file CacherEM.cxx. Referenced by FitterEM::PredictEMLoss(). 00021 {
00022 return fpscache;
00023 }
|
|
|
Definition at line 26 of file CacherEM.cxx. Referenced by FitterEM::PredictEMLoss(). 00026 {
00027 return frtcache;
00028 }
|
|
|
Definition at line 30 of file CacherEM.cxx. Referenced by FitterEM::PredictEMLoss(). 00030 {
00031 return fsumE;
00032 }
|
|
|
Definition at line 84 of file CacherEM.cxx. Referenced by FitterEM::PredictEMLoss(). 00085 {
00086
00087 map<Int_t,spef>::iterator beg = fpscache.begin();
00088 map<Int_t,spef>::iterator end = fpscache.end();
00089
00090 while(beg!=end){
00091 MSG("FitShowerEM", Msg::kVerbose) << beg->first << " "
00092 << beg->second.en << " "
00093 << beg->second.fl << " "
00094 << endl;
00095 beg++;
00096 }
00097
00098 }
|
|
|
Definition at line 101 of file CacherEM.cxx. Referenced by FitterEM::PredictEMLoss(). 00102 {
00103
00104 vector<rte>::iterator beg = frtcache.begin();
00105 vector<rte>::iterator end = frtcache.end();
00106
00107 while(beg!=end){
00108 MSG("FitShowerEM", Msg::kVerbose) << beg->t << " "
00109 << beg->r << " "
00110 << beg->e << " "
00111 << beg->f << " "
00112 << endl;
00113 beg++;
00114 }
00115
00116 }
|
|
||||||||||||||||
|
Definition at line 40 of file CacherEM.cxx. References fpars, and fpscache. Referenced by FitterEM::PredictEMLoss(). 00041 {
00042 for(Int_t i=0;i<n;i++){
00043 fpars[i] = pars[i];
00044 }
00045 fpscache = cache;
00046 }
|
|
||||||||||||||||||||
|
Definition at line 49 of file CacherEM.cxx. References fn, fpars, frtcache, and fsumE. Referenced by FitterEM::PredictEMLoss(). 00050 {
00051 fn = n;
00052 fpars = new Double_t[n];
00053 for(Int_t i=0;i<n;i++){
00054 fpars[i] = pars[i];
00055 }
00056 frtcache = cache;
00057 fsumE = sumE;
00058 }
|
|
|
Definition at line 61 of file CacherEM.cxx. Referenced by FitterEM::PredictEMLoss(). 00061 {
00062
00063 Bool_t valid = true;
00064 if(fn==0) return false;
00065 for(Int_t i=0;i<fn;i++){
00066 if(pars[i]!=fpars[i]) {
00067 valid = false;
00068 break;
00069 }
00070 }
00071 return valid;
00072 }
|
|
|
Definition at line 75 of file CacherEM.cxx. Referenced by FitterEM::PredictEMLoss(). 00075 {
00076
00077 if(fn==0) return false;
00078 if(pars[0]!=fpars[0]) return false;
00079 return true;
00080
00081 }
|
|
|
Definition at line 30 of file CacherEM.h. Referenced by CacherEM(), ClearCache(), StoreRT(), ValidPS(), and ValidRT(). |
|
|
Definition at line 31 of file CacherEM.h. Referenced by CacherEM(), ClearCache(), StorePS(), StoreRT(), ValidPS(), and ValidRT(). |
|
|
Definition at line 32 of file CacherEM.h. Referenced by CacherEM(), ClearCache(), ClearPSCache(), PrintPSMap(), and StorePS(). |
|
|
Definition at line 33 of file CacherEM.h. Referenced by CacherEM(), ClearCache(), PrintRTMap(), and StoreRT(). |
|
|
Definition at line 34 of file CacherEM.h. Referenced by CacherEM(), and StoreRT(). |
1.3.9.1