#include <ConfigurerBase.h>
Inheritance diagram for FastShower::ConfigurerBase:
Public Methods | |
ConfigurerBase (Moni) | |
ConfigurerBase (NoMoni) | |
virtual | ~ConfigurerBase () |
virtual IFn * | findFn (const std::string &) const |
make a showerer methods to retrieve the functions | |
virtual IFnOfParticleParameters * | findFnPP (const std::string &) const |
virtual IFnOfParticleParameters2 * | findFnPP2 (const std::string &) const |
virtual IUpdatingGaussian * | findIUG (const std::string &) const |
virtual ISampler * | findSampler (const std::string &) const |
virtual INormaliser * | findNormaliser (const std::string &) const |
virtual void | eDepositors (std::vector< IDepositor * > &) const |
virtual void | hDepositors (std::vector< IDepositor * > &) const |
virtual EnergyLimiter * | energyLimiter () const |
Default limiter limits energies to 10-100 GeV. | |
virtual IUpdatingGaussian * | makeGaussian (const std::string &) const |
virtual IUpdatingGaussian * | makeUpdatingGaussian0LP (const std::string &) const |
virtual IUpdatingGaussian * | makeUpdatingGaussian01P (const std::string &) const |
virtual IUpdatingGaussian * | makeUpdatingGaussian02P (const std::string &) const |
virtual IProcessedDist * | makeProcessedNormal (const std::string &) const |
virtual IProcessedDist * | makeProcessedFlat (const std::string &) const |
virtual IInTail * | makeIInTail (const std::string &) const |
virtual IShowerer * | makeShowerer (const std::string &) const |
void | addFn (const std::string &, IFn *) |
void | addFnPP (const std::string &, IFnOfParticleParameters *) |
void | addFnPP2 (const std::string &, IFnOfParticleParameters2 *) |
void | addIUG (const std::string &, IUpdatingGaussian *) |
void | addSampler (const std::string &, ISampler *) |
void | addEdepositor (const std::string &, IDepositor *) |
void | addHdepositor (const std::string &, IDepositor *) |
void | addNormaliser (const std::string &, INormaliser *) |
Private Methods | |
ConfigurerBase | operator= (const ConfigurerBase &) |
Private Attributes | |
std::string | m_root |
prepend root for names | |
std::map< std::string, IFn * > | m_ifn |
functions are store in maps, retrieved by name | |
std::map< std::string, IFnOfParticleParameters * > | m_ifnPP |
std::map< std::string, IFnOfParticleParameters2 * > | m_ifnPP2 |
std::map< std::string, IUpdatingGaussian * > | m_iug |
std::map< std::string, ISampler * > | m_isamplers |
std::map< std::string, INormaliser * > | m_inormalisers |
std::vector< IDepositor * > | m_eDepositors |
std::vector< IDepositor * > | m_hDepositors |
IPtrAdapter< IFn > * | m_fnPtrAdapter |
function objects that switch pointers to monitored pointers by using an IPtrAdapter | |
IPtrAdapter< IFnOfParticleParameters > * | m_fnOfPPPtrAdapter |
IPtrAdapter< IFnOfParticleParameters2 > * | m_fnOfPP2PtrAdapter |
IPtrAdapter< IUpdatingGaussian > * | m_UpGnPtrAdapter |
IPtrAdapter< IDepositor > * | m_depositorPtrAdapter |
IPtrAdapter< ISampler > * | m_samplerPtrAdapter |
IPtrAdapter< IProcessedDist > * | m_procDistPtrAdapter |
IPtrAdapter< IInTail > * | m_iinTailPtrAdapter |
IPtrAdapter< INormaliser > * | m_normaliserPtrAdapter |
IPtrAdapter< IShowerer > * | m_showererPtrAdapter |
|
Definition at line 40 of file ConfigurerBase.cxx.
00040 : 00041 00042 m_fnPtrAdapter (new PtrAdapter<IFn, IFnPtr>), 00043 m_fnOfPPPtrAdapter (new PtrAdapter<IFnOfParticleParameters, 00044 FnOfParticleParametersPtr>), 00045 m_fnOfPP2PtrAdapter (new PtrAdapter<IFnOfParticleParameters2, 00046 FnOfParticleParameters2Ptr>), 00047 m_UpGnPtrAdapter (new PtrAdapter<IUpdatingGaussian, UpGnPtr>), 00048 m_depositorPtrAdapter (new PtrAdapter<IDepositor, DepositorPtr>), 00049 m_samplerPtrAdapter (new PtrAdapter<ISampler, SamplerPtr>), 00050 m_procDistPtrAdapter (new PtrAdapter<IProcessedDist, IProcessedDistPtr>), 00051 m_iinTailPtrAdapter (new PtrAdapter<IInTail, IInTailPtr>), 00052 m_normaliserPtrAdapter(new PtrAdapter<INormaliser, NormaliserPtr>), 00053 m_showererPtrAdapter (new PtrAdapter<IShowerer, ShowererPtr>){ 00054 cout<<"ConfigureBase constructer, Moni mode"<<endl; 00055 } |
|
Definition at line 58 of file ConfigurerBase.cxx.
00058 : 00059 00060 m_fnPtrAdapter (new NullPtrAdapter<IFn>), 00061 m_fnOfPPPtrAdapter (new NullPtrAdapter<IFnOfParticleParameters>), 00062 m_fnOfPP2PtrAdapter (new NullPtrAdapter<IFnOfParticleParameters2>), 00063 m_UpGnPtrAdapter (new NullPtrAdapter<IUpdatingGaussian>), 00064 m_depositorPtrAdapter (new NullPtrAdapter<IDepositor>), 00065 m_samplerPtrAdapter (new NullPtrAdapter<ISampler>), 00066 m_procDistPtrAdapter (new NullPtrAdapter<IProcessedDist>), 00067 m_iinTailPtrAdapter (new NullPtrAdapter<IInTail>), 00068 m_normaliserPtrAdapter (new NullPtrAdapter<INormaliser>), 00069 m_showererPtrAdapter (new NullPtrAdapter<IShowerer>){ 00070 cout<<"ConfigureBase constructer, NoMoni mode"<<endl; 00071 } //******************************************************* |
|
Definition at line 99 of file ConfigurerBase.h.
00099 {}; |
|
make a showerer methods to retrieve the functions
Implements FastShower::IConfigurer. Definition at line 73 of file ConfigurerBase.cxx. References m_ifn, and FastShower::IDebug::name(). Referenced by makeGaussian().
|
|
Implements FastShower::IConfigurer. Definition at line 86 of file ConfigurerBase.cxx. References m_ifnPP, and FastShower::IDebug::name().
|
|
Implements FastShower::IConfigurer. Definition at line 99 of file ConfigurerBase.cxx. References m_ifnPP2, and FastShower::IDebug::name().
|
|
Implements FastShower::IConfigurer. Definition at line 112 of file ConfigurerBase.cxx. References m_iug, and FastShower::IDebug::name().
|
|
|
Implements FastShower::IConfigurer. Definition at line 136 of file ConfigurerBase.cxx. References m_inormalisers, and FastShower::IDebug::name().
00136 { 00137 if( m_inormalisers.find(s) != m_inormalisers.end() ){ 00138 IDebug* idg= m_inormalisers.find(s)->second; 00139 idg->name(); 00140 return m_inormalisers.find(s)->second; 00141 }else{ 00142 cout<<"INormaliser not found: "<<s<<endl; 00143 assert(true==false); 00144 return 0; 00145 } 00146 } |
|
Implements FastShower::IConfigurer. Definition at line 148 of file ConfigurerBase.cxx. References m_eDepositors.
00148 { 00149 std::copy(m_eDepositors.begin(), m_eDepositors.end(), back_inserter(v)); 00150 } |
|
Implements FastShower::IConfigurer. Definition at line 152 of file ConfigurerBase.cxx. References m_hDepositors.
00152 { 00153 std::copy(m_hDepositors.begin(), m_hDepositors.end(), back_inserter(v)); 00154 } |
|
Default limiter limits energies to 10-100 GeV. Specific ShowerConfigurers should derive if they want some other limits. Implements FastShower::IConfigurer. Reimplemented in FastShower::HadEarlyEcConfigurer, and FastShower::HadLateEcConfigurer. Definition at line 158 of file ConfigurerBase.cxx.
00158 { 00159 cout<<"ConfigureBase: constructing energy limiter"<<endl; 00160 return new EnergyLimiter(10., 100., "Default EnergyLimiter"); 00161 } |
|
Implements FastShower::IConfigurer. Definition at line 202 of file ConfigurerBase.cxx. References FastShower::IPtrAdapter< IUpdatingGaussian >::adapt(), findFn(), m_UpGnPtrAdapter, and makeProcessedNormal().
00202 { 00203 IUpdatingGaussian* iug = 00204 new UpdatingGaussian(findFn(label+"PeakMean"), 00205 findFn(label+"PeakSigma"), 00206 makeProcessedNormal(label) 00207 ); 00208 return m_UpGnPtrAdapter->adapt(iug, label+"UpdatingGaussian"); 00209 00210 } |
|
Implements FastShower::IConfigurer. Definition at line 213 of file ConfigurerBase.cxx. References FastShower::IPtrAdapter< IUpdatingGaussian >::adapt(), and m_UpGnPtrAdapter.
00213 { 00214 IUpdatingGaussian* iug = new UpdatingGaussian0LP(label, *this); 00215 // new UpdatingGaussian0LP(findFn(label+"PeakMean"), 00216 // findFn(label+"PeakSigma"), 00217 // makeProcessedNormal(label) 00218 // ); 00219 return m_UpGnPtrAdapter->adapt(iug, label+"UpdatingGaussian0LP"); 00220 } |
|
Implements FastShower::IConfigurer. Definition at line 223 of file ConfigurerBase.cxx. References FastShower::IPtrAdapter< IUpdatingGaussian >::adapt(), and m_UpGnPtrAdapter.
00223 { 00224 IUpdatingGaussian* iug = new UpdatingGaussian01P(label, *this); 00225 return m_UpGnPtrAdapter->adapt(iug, label+"UpdatingGaussian01P"); 00226 } |
|
Implements FastShower::IConfigurer. Definition at line 229 of file ConfigurerBase.cxx. References FastShower::IPtrAdapter< IUpdatingGaussian >::adapt(), and m_UpGnPtrAdapter.
00229 { 00230 IUpdatingGaussian* iug = new UpdatingGaussian02P(label, *this); 00231 return m_UpGnPtrAdapter->adapt(iug, label+"UpdatingGaussian02P"); 00232 } |
|
Implements FastShower::IConfigurer. Definition at line 235 of file ConfigurerBase.cxx. References FastShower::IPtrAdapter< IProcessedDist >::adapt(), and m_procDistPtrAdapter. Referenced by makeGaussian().
00235 { 00236 IProcessedDist* ipd = new ProcessedNormal; 00237 return m_procDistPtrAdapter->adapt(ipd, label+"ProcessedNormal"); 00238 } |
|
Implements FastShower::IConfigurer. Definition at line 241 of file ConfigurerBase.cxx. References FastShower::IPtrAdapter< IProcessedDist >::adapt(), and m_procDistPtrAdapter.
00241 { 00242 IProcessedDist* ipd = new ProcessedFlat; 00243 return m_procDistPtrAdapter->adapt(ipd, label+"ProcessedFlat"); 00244 } |
|
Implements FastShower::IConfigurer. Definition at line 247 of file ConfigurerBase.cxx. References FastShower::IPtrAdapter< IInTail >::adapt(), and m_iinTailPtrAdapter.
00247 { 00248 00249 IInTail* iit = new InTail(*this, label); 00250 return m_iinTailPtrAdapter->adapt(iit, label+"IIntail"); 00251 } |
|
Implements FastShower::IConfigurer. Definition at line 280 of file ConfigurerBase.cxx.
00280 { 00281 IShowerer* showerer = new Showerer(this, s); 00282 return m_showererPtrAdapter->adapt(showerer, s); 00283 } |
|
Definition at line 163 of file ConfigurerBase.cxx. References FastShower::IPtrAdapter< IFn >::adapt(), m_fnPtrAdapter, and m_ifn. Referenced by FastShower::SoftPhotonEcConfigurer::initialise(), FastShower::SoftPhotonBarConfigurer::initialise(), FastShower::HardPhotonEcConfigurer::initialise(), FastShower::HardPhotonBarConfigurer::initialise(), FastShower::HadLateEcConfigurer::initialise(), FastShower::HadLateBarConfigurer::initialise(), FastShower::HadEarlyEcConfigurer::initialise(), FastShower::HadEarlyBarConfigurer::initialise(), FastShower::ElectronEcConfigurer::initialise(), and FastShower::ElectronBarConfigurer::initialise().
00163 { 00164 m_ifn[label] = m_fnPtrAdapter->adapt(entry, label); 00165 } |
|
|
Definition at line 172 of file ConfigurerBase.cxx. References FastShower::IPtrAdapter< IFnOfParticleParameters2 >::adapt(), m_fnOfPP2PtrAdapter, and m_ifnPP2. Referenced by FastShower::SoftPhotonEcConfigurer::initialise(), FastShower::SoftPhotonBarConfigurer::initialise(), FastShower::HardPhotonEcConfigurer::initialise(), FastShower::HardPhotonBarConfigurer::initialise(), FastShower::ElectronEcConfigurer::initialise(), and FastShower::ElectronBarConfigurer::initialise().
00173 { 00174 m_ifnPP2[label] = m_fnOfPP2PtrAdapter->adapt(entry, label); 00175 } |
|
|
|
|
|
|
|
|
prepend root for names
Definition at line 139 of file ConfigurerBase.h. |
|
functions are store in maps, retrieved by name
Definition at line 141 of file ConfigurerBase.h. |
|
Definition at line 142 of file ConfigurerBase.h. Referenced by addFnPP(), and findFnPP(). |
|
Definition at line 143 of file ConfigurerBase.h. Referenced by addFnPP2(), and findFnPP2(). |
|
Definition at line 144 of file ConfigurerBase.h. |
|
Definition at line 145 of file ConfigurerBase.h. Referenced by addSampler(), and findSampler(). |
|
Definition at line 146 of file ConfigurerBase.h. Referenced by addNormaliser(), and findNormaliser(). |
|
Definition at line 147 of file ConfigurerBase.h. Referenced by addEdepositor(), and eDepositors(). |
|
Definition at line 148 of file ConfigurerBase.h. Referenced by addHdepositor(), and hDepositors(). |
|
function objects that switch pointers to monitored pointers by using an IPtrAdapter
Definition at line 151 of file ConfigurerBase.h. Referenced by addFn(). |
|
Definition at line 152 of file ConfigurerBase.h. Referenced by addFnPP(). |
|
Definition at line 153 of file ConfigurerBase.h. Referenced by addFnPP2(). |
|
Definition at line 154 of file ConfigurerBase.h. Referenced by addIUG(), makeGaussian(), makeUpdatingGaussian01P(), makeUpdatingGaussian02P(), and makeUpdatingGaussian0LP(). |
|
Definition at line 155 of file ConfigurerBase.h. Referenced by addEdepositor(), and addHdepositor(). |
|
Definition at line 156 of file ConfigurerBase.h. Referenced by addSampler(). |
|
Definition at line 157 of file ConfigurerBase.h. Referenced by makeProcessedFlat(), and makeProcessedNormal(). |
|
Definition at line 158 of file ConfigurerBase.h. Referenced by makeIInTail(). |
|
Definition at line 159 of file ConfigurerBase.h. Referenced by addNormaliser(). |
|
Definition at line 160 of file ConfigurerBase.h. |