00001 #include "FastShowerUtils/SoftPhotonEcSelConfig.h" 00002 #include "FastShowerUtils/SoftPhotonEcConfigurer.h" 00003 #include "FastShowerUtils/IShowerer.h" 00004 #include "FastShowerUtils/IFnOfParticleParameters2.h" 00005 #include "FastShowerUtils/IAcceptor.h" 00006 #include "FastShowerUtils/Acceptors/SoftPhotonEcAcceptor.h" 00007 #include "FastShowerUtils/Normalisers/EmHcalLeakageEc.h" 00008 #include "FastShowerUtils/Normalisers/SmearSoftPhotonEc.h" 00009 #include "FastShowerUtils/IConfigurer.h" 00010 00011 namespace FastShower{ 00012 SoftPhotonEcSelConfig::SoftPhotonEcSelConfig(Moni& m): 00013 m_configurer( new SoftPhotonEcConfigurer(m) ){ 00014 } 00015 00016 SoftPhotonEcSelConfig::SoftPhotonEcSelConfig(NoMoni& m): 00017 m_configurer( new SoftPhotonEcConfigurer(m) ){ 00018 } 00019 00020 SoftPhotonEcSelConfig::~SoftPhotonEcSelConfig(){ 00021 delete m_configurer; 00022 } 00023 00024 IAcceptor* SoftPhotonEcSelConfig::acceptor() const { 00025 return new SoftPhotonEcAcceptor(); 00026 } 00027 IFnOfParticleParameters2* SoftPhotonEcSelConfig::ehSharer() const { 00028 return new EmHcalLeakageEc(); 00029 } 00030 IFnOfParticleParameters* SoftPhotonEcSelConfig::resolution() const { 00031 return new SmearSoftPhotonEc(this,"SmearSoftPhotonEc"); 00032 } 00033 00034 IShowerer* SoftPhotonEcSelConfig::showerer() const { 00035 return m_configurer->makeShowerer("SoftPhotonEcShowerer"); 00036 } 00038 std::map<double,std::string> SoftPhotonEcSelConfig::histograms() const { 00039 std::map<double,std::string> hists; 00040 double ePoint[5] = {0.2, 0.3, 0.4, 0.5, 1.0}; 00041 std::string iFile[5] = {"FastShowerHistograms/hist7101", 00042 "FastShowerHistograms/hist7102", 00043 "FastShowerHistograms/hist7103", 00044 "FastShowerHistograms/hist7104", 00045 "FastShowerHistograms/hist7105"}; 00046 for (int i=0; i<5; ++i){ 00047 hists[ePoint[i]] = iFile[i]; 00048 } 00049 return hists; 00050 } 00051 }