Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

SoftPhotonBarSelConfig.cxx

Go to the documentation of this file.
00001 #include "FastShowerUtils/SoftPhotonBarSelConfig.h"
00002 #include "FastShowerUtils/SoftPhotonBarConfigurer.h"
00003 #include "FastShowerUtils/IShowerer.h"
00004 #include "FastShowerUtils/IFnOfParticleParameters2.h"
00005 #include "FastShowerUtils/IAcceptor.h"
00006 #include "FastShowerUtils/Acceptors/SoftPhotonBarAcceptor.h"
00007 #include "FastShowerUtils/Normalisers/EmHcalLeakageBar.h"
00008 #include "FastShowerUtils/Normalisers/SmearSoftPhotonBar.h"
00009 #include "FastShowerUtils/IConfigurer.h"
00010 
00011 #include <iostream>
00012 #include <map>
00013 namespace FastShower{
00014   SoftPhotonBarSelConfig::SoftPhotonBarSelConfig(Moni& m):
00015     m_configurer( new SoftPhotonBarConfigurer(m) ){
00016   }
00017 
00018   SoftPhotonBarSelConfig::SoftPhotonBarSelConfig(NoMoni& m):
00019     m_configurer( new SoftPhotonBarConfigurer(m) ){
00020   }
00021 
00022   SoftPhotonBarSelConfig::~SoftPhotonBarSelConfig(){
00023     delete m_configurer;
00024   }
00025 
00026   IAcceptor* SoftPhotonBarSelConfig::acceptor() const {
00027     return new SoftPhotonBarAcceptor();
00028   }
00029   IFnOfParticleParameters2* SoftPhotonBarSelConfig::ehSharer() const {
00030     return new EmHcalLeakageBar();
00031   }
00032   IFnOfParticleParameters* SoftPhotonBarSelConfig::resolution() const {
00033     return new SmearSoftPhotonBar(this,"SmearSoftPhotonBar");
00034   }
00035 
00036   IShowerer* SoftPhotonBarSelConfig::showerer() const {
00037     return m_configurer->makeShowerer("SoftPhotonBarShowerer");
00038   }
00040   std::map<double,std::string> SoftPhotonBarSelConfig::histograms() const {
00041     std::map<double,std::string> hists;
00042     double ePoint[5] = {0.2, 0.3, 0.4, 0.5, 1.0};
00043     std::string iFile[5] = {"FastShowerHistograms/hist9101",
00044                             "FastShowerHistograms/hist9102",
00045                             "FastShowerHistograms/hist9103",
00046                             "FastShowerHistograms/hist9104",
00047                             "FastShowerHistograms/hist9105"};
00048     for (int i=0; i<5; ++i){
00049       hists[ePoint[i]] = iFile[i];
00050     }
00051     return hists;
00052   }
00053 }
00054 
00055 
00056 
00057 
00058 
00059 
00060 
00061 
00062 

Generated on Tue Mar 18 11:50:06 2003 for FastShowerUtils by doxygen1.3-rc1