CacherEM Class Reference

#include <CacherEM.h>

List of all members.

Public Member Functions

 CacherEM ()
 ~CacherEM ()
std::map< Int_t, spefGetPSMap ()
std::vector< rteGetRTMap ()
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, speffpscache
std::vector< rtefrtcache
Double_t fsumE

Detailed Description

Definition at line 8 of file CacherEM.h.


Constructor & Destructor Documentation

CacherEM::CacherEM (  ) 

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 }

CacherEM::~CacherEM (  ) 

Definition at line 16 of file CacherEM.cxx.

References fpars.

00016                    {
00017   delete [] fpars;
00018 }


Member Function Documentation

void CacherEM::ClearCache (  ) 

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 }

void CacherEM::ClearPSCache (  ) 

Definition at line 131 of file CacherEM.cxx.

References fpscache.

Referenced by FitterEM::PredictEMLoss().

00131                            {
00132   
00133   fpscache.clear();
00134 
00135 }

Double_t * CacherEM::GetPars (  ) 

Definition at line 35 of file CacherEM.cxx.

References fpars.

00035                            {
00036   return fpars;
00037 }

map< Int_t, spef > CacherEM::GetPSMap (  ) 

Definition at line 21 of file CacherEM.cxx.

References fpscache.

Referenced by FitterEM::PredictEMLoss().

00021                                   {
00022   return fpscache;
00023 }

vector< rte > CacherEM::GetRTMap (  ) 

Definition at line 26 of file CacherEM.cxx.

References frtcache.

Referenced by FitterEM::PredictEMLoss().

00026                               {
00027   return frtcache;
00028 }

Double_t CacherEM::GetSumE (  ) 

Definition at line 30 of file CacherEM.cxx.

References fsumE.

Referenced by FitterEM::PredictEMLoss().

00030                           {
00031   return fsumE;
00032 }

void CacherEM::PrintPSMap (  ) 

Definition at line 84 of file CacherEM.cxx.

References fpscache, Msg::kVerbose, and MSG.

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 }

void CacherEM::PrintRTMap (  ) 

Definition at line 101 of file CacherEM.cxx.

References frtcache, Msg::kVerbose, and MSG.

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 }

void CacherEM::StorePS ( Int_t  ,
Double_t *  ,
std::map< Int_t, spef  
)

Referenced by FitterEM::PredictEMLoss().

void CacherEM::StoreRT ( Int_t  ,
Double_t *  ,
std::vector< rte ,
Double_t   
)

Referenced by FitterEM::PredictEMLoss().

Bool_t CacherEM::ValidPS ( Double_t *  pars  ) 

Definition at line 61 of file CacherEM.cxx.

References fn, and fpars.

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 }

Bool_t CacherEM::ValidRT ( Double_t *  pars  ) 

Definition at line 75 of file CacherEM.cxx.

References fn, and fpars.

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 }


Member Data Documentation

Int_t CacherEM::fn [private]

Definition at line 30 of file CacherEM.h.

Referenced by CacherEM(), ClearCache(), ValidPS(), and ValidRT().

Double_t* CacherEM::fpars [private]

Definition at line 31 of file CacherEM.h.

Referenced by CacherEM(), ClearCache(), GetPars(), ValidPS(), ValidRT(), and ~CacherEM().

std::map<Int_t,spef> CacherEM::fpscache [private]

Definition at line 32 of file CacherEM.h.

Referenced by CacherEM(), ClearCache(), ClearPSCache(), GetPSMap(), and PrintPSMap().

std::vector<rte> CacherEM::frtcache [private]

Definition at line 33 of file CacherEM.h.

Referenced by CacherEM(), ClearCache(), GetRTMap(), and PrintRTMap().

Double_t CacherEM::fsumE [private]

Definition at line 34 of file CacherEM.h.

Referenced by CacherEM(), and GetSumE().


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1