GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
GearMgrImpl.cc
1 
2 #include "gearimpl/GearMgrImpl.h"
3 #include "gearimpl/GearParametersImpl.h"
4 #include "gear/CalorimeterParameters.h"
5 #include "gear/ZPlanarParameters.h"
6 #include "gear/SiPlanesParameters.h"
7 #include "gear/TrackerPlanesParameters.h"
8 
9 #include "gear/GearPointProperties.h"
10 #include "gear/GearDistanceProperties.h"
11 #include "gear/BField.h"
12 #include "gear/TPCParameters.h"
13 #include "gearimpl/TPCParametersImpl.h"
14 #include "gearimpl/CalorimeterParametersImpl.h"
15 #include "gearimpl/ZPlanarParametersImpl.h"
16 #include "gearimpl/FTDParametersImpl.h"
17 #include "gearimpl/SiPlanesParametersImpl.h"
18 #include "gearimpl/TrackerPlanesParametersImpl.h"
19 
20 #include "gearimpl/ConstantBField.h"
21 #include "gearimpl/SimpleMaterialImpl.h"
22 
23 #include <sstream>
24 
25 namespace gear{
26 
27 
28  GearMgrImpl::GearMgrImpl() :
29  _tpcParameters(0) ,
30  _ecalBarrelParameters(0) ,
31  _ecalEndcapParameters(0) ,
32  _ecalPlugParameters(0) ,
33  _yokeBarrelParameters(0) ,
34  _yokeEndcapParameters(0) ,
35  _yokePlugParameters(0) ,
36  _hcalBarrelParameters(0) ,
37  _hcalEndcapParameters(0) ,
38  _hcalRingParameters(0) ,
39  _lcalParameters(0) ,
40  _lhcalParameters(0) ,
41  _beamcalParameters(0) ,
42  _vxdParameters(0) ,
43  _sitParameters(0) ,
44  _setParameters(0) ,
45  _ftdParameters(0) ,
46  _trackerplanesParameters(0) ,
47  _siplanesParameters(0) ,
48  _pointProperties(0) ,
49  _distanceProperties(0) ,
50  _bField(0) ,
51  _detectorName(""){
52 
53  _surfaceStore = new MeasurementSurfaceStore();
54 
55  }
56 
57  //~ GearMgrImpl::GearMgrImpl(const GearMgrImpl & right)
58  //~ {
59  // the same code will be called in the assigment operator, so it's in
60  // a separate function to avoid code replication
61  //~ copy_and_assign(right);
62  //~ }
63 
64  //~ void GearMgrImpl::copy_and_assign(const GearMgrImpl & right) {
65  //~ ///FIXME!!! this also contains pointers
66  //~ //ParameterMap::iterator it_end = _map.end() ;
67  //~
68  //~ for( ParameterMap::iterator paramIter = _map.begin() ; paramIter != _map.end() ; paramIter++ ) {
69  //~ // the map should only have GearParametersImpl, not anything derrived from it
70  //~ paramIter->second = new GearParametersImpl( *dynamic_cast<GearParametersImpl *>(paramIter->second) );
71  //~ }
72  //~
73  //~ //*** these two need qualification for construction -- how?? CR ***/
74  //~ _distanceProperties = new (right._distanceProperties ); GearDistanceProperties
75  //~ _pointProperties = new (right._pointProperties );GearPointProperties
76 //~
77  //~ _beamcalParameters = new CalorimeterParametersImpl( *dynamic_cast<CalorimeterParametersImpl *>(right._beamcalParameters ));
78  //~ _lhcalParameters = new CalorimeterParametersImpl( *dynamic_cast<CalorimeterParametersImpl *>(right._lhcalParameters ));
79  //~ _yokeBarrelParameters = new CalorimeterParametersImpl( *dynamic_cast<CalorimeterParametersImpl *>(right._yokeBarrelParameters ));
80  //~ _yokeEndcapParameters = new CalorimeterParametersImpl( *dynamic_cast<CalorimeterParametersImpl *>(right._yokeEndcapParameters ));
81  //~ _yokePlugParameters = new CalorimeterParametersImpl( *dynamic_cast<CalorimeterParametersImpl *>(right._yokePlugParameters ));
82  //~
83  //~ _tpcParameters = new TPCParametersImpl( *dynamic_cast<TPCParametersImpl *> (right._tpcParameters ));
84  //~ _ecalBarrelParameters = new CalorimeterParametersImpl( *dynamic_cast<CalorimeterParametersImpl *>(right._ecalBarrelParameters));
85  //~ _ecalEndcapParameters = new CalorimeterParametersImpl( *dynamic_cast<CalorimeterParametersImpl *>(right._ecalEndcapParameters));
86  //~ _ecalPlugParameters = new CalorimeterParametersImpl( *dynamic_cast<CalorimeterParametersImpl *>(right._ecalPlugParameters));
87  //~ _hcalBarrelParameters = new CalorimeterParametersImpl( *dynamic_cast<CalorimeterParametersImpl *>(right._hcalBarrelParameters));
88  //~ _hcalEndcapParameters = new CalorimeterParametersImpl( *dynamic_cast<CalorimeterParametersImpl *>(right._hcalEndcapParameters));
89  //~ _hcalRingParameters = new CalorimeterParametersImpl( *dynamic_cast<CalorimeterParametersImpl *>(right._hcalRingParameters));
90  //~ _lcalParameters = new CalorimeterParametersImpl( *dynamic_cast<CalorimeterParametersImpl *>(right._lcalParameters));
91  //~ _vxdParameters = new ZPlanarParametersImpl( *dynamic_cast<ZPlanarParametersImpl *>(right._vxdParameters));
92  //~ _sitParameters = new ZPlanarParametersImpl( *dynamic_cast<ZPlanarParametersImpl *>(right._sitParameters));
93  //~ _setParameters = new ZPlanarParametersImpl( *dynamic_cast<ZPlanarParametersImpl *>(right._setParameters));
94  //~ _ftdParameters = new FTDParametersImpl( *dynamic_cast<FTDParametersImpl *>(right._ftdParameters));
95  //~ _siplanesParameters = new SiPlanesParametersImpl( *dynamic_cast<SiPlanesParametersImpl *>(right._siplanesParameters));
96 //~
97  //~ // there might be different implementations for bField , so test whether casting works
98  //~ if (dynamic_cast<ConstantBField *>(right._bField) != 0)
99  //~ _bField = new ConstantBField(*dynamic_cast<ConstantBField *>(right._bField));
100  //~ else
101  //~ throw gear::Exception(" GearMgrImpl::GearMgrImpl(const GearMgrImpl & r) Unknown BField type");
102 //~
103  //~ _detectorName = right._detectorName;
104  //~ _keys = right._keys;
105 //~
106 //~
107  //~ for( MatMap::const_iterator it = right._matMap.begin(), end = right._matMap.end() ; it != end ; ++it ){
108 //~
109  //~ this->registerSimpleMaterial( new SimpleMaterialImpl( *dynamic_cast<const SimpleMaterialImpl*>( it->second ) ) ) ;
110  //~ }
111 //~
112  //~ _surfaceStore = new MeasurementSurfaceStore( (*right._surfaceStore) ) ;
113 //~
114  //~ }
115 
117  {
118  cleanup();
119  }
120 
122 
123  // clean up all parameters
124  if( _tpcParameters ) delete _tpcParameters ;
125  if( _ecalBarrelParameters ) delete _ecalBarrelParameters ;
126  if( _ecalEndcapParameters ) delete _ecalEndcapParameters ;
127  if( _ecalPlugParameters ) delete _ecalPlugParameters ;
128  // no need to check for 0, it's save to delete a 0-pointer
129  delete _yokeBarrelParameters ;
130  delete _yokeEndcapParameters ;
131  delete _yokePlugParameters ;
132  if( _hcalBarrelParameters ) delete _hcalBarrelParameters ;
133  if( _hcalEndcapParameters ) delete _hcalEndcapParameters ;
134  if( _hcalRingParameters ) delete _hcalRingParameters ;
135  if( _lcalParameters ) delete _lcalParameters;
136  if( _lhcalParameters ) delete _lhcalParameters;
137  if( _beamcalParameters ) delete _beamcalParameters;
138  if( _vxdParameters ) delete _vxdParameters ;
139  if( _sitParameters ) delete _sitParameters ;
140  if( _setParameters ) delete _setParameters ;
141  if( _ftdParameters ) delete _ftdParameters ;
142  if( _trackerplanesParameters ) delete _trackerplanesParameters ;
143  if( _siplanesParameters ) delete _siplanesParameters ;
144  if( _pointProperties ) delete _pointProperties ;
145  if( _distanceProperties ) delete _distanceProperties ;
146  if( _bField ) delete _bField ;
147 
148  for( ParameterMap::iterator it = _map.begin() ; it != _map.end() ; ++ it ) {
149  delete it->second ;
150  }
151 
152  for(MatMap::iterator it = _matMap.begin(), end = _matMap.end() ; it != end ; ++it ){
153  delete it->second ;
154  }
155 
156  delete _surfaceStore ; _surfaceStore = 0 ;
157 
158  }
159 
160  //~ GearMgrImpl& GearMgrImpl::operator = (const GearMgrImpl &right)
161  //~ {
162  // call the cleanup and the copy and assignment afterwards
163  //~ cleanup();
164  //~ copy_and_assign(right);
165 
166  //~ return *this;
167  //~ }
168 
169  const std::string& GearMgrImpl::getDetectorName() const {
170 
171  if( _detectorName.size() == 0 )
172  throw UnknownParameterException( "No DetectorName set ") ;
173 
174 
175  return _detectorName ;
176  }
177 
178 
179  const GearParameters & GearMgrImpl::getGearParameters(const std::string & key) const {
180 
181  ParameterMap::const_iterator it = _map.find( key ) ;
182  if( it == _map.end() || it->second == 0 )
183  throw UnknownParameterException( "No parameters set for : " + key ) ;
184  return * it->second ;
185 
186  }
187 
189 
190  if( _tpcParameters == 0 )
191  throw UnknownParameterException( "No TPCParameters set ") ;
192 
193  return *_tpcParameters ;
194 
195  }
196 
197  const BField & GearMgrImpl::getBField() const {
198 
199  if( _bField == 0 )
200  throw UnknownParameterException( "No BField set ") ;
201 
202  return *_bField ;
203 
204  }
205 
207 
208  if( _ecalBarrelParameters == 0 )
209  throw UnknownParameterException( "No EcalBarrelParameters set ") ;
210 
211  return *_ecalBarrelParameters ;
212 
213  }
215 
216  if( _ecalEndcapParameters == 0 )
217  throw UnknownParameterException( "No EcalEndcapParameters set ") ;
218 
219  return *_ecalEndcapParameters ;
220 
221  }
222 
224 
225  if( _ecalPlugParameters == 0 )
226  throw UnknownParameterException( "No EcalPlugParameters set ") ;
227 
228  return *_ecalPlugParameters ;
229 
230  }
231 
233 
234  if( _yokeBarrelParameters == 0 )
235  throw UnknownParameterException( "No YokeBarrelParameters set ") ;
236 
237  return *_yokeBarrelParameters ;
238 
239  }
241 
242  if( _yokeEndcapParameters == 0 )
243  throw UnknownParameterException( "No YokeEndcapParameters set ") ;
244 
245  return *_yokeEndcapParameters ;
246 
247  }
248 
250 
251  if( _yokePlugParameters == 0 )
252  throw UnknownParameterException( "No YokePlugParameters set ") ;
253 
254  return *_yokePlugParameters ;
255 
256  }
257 
258 
259 
261 
262  if( _hcalBarrelParameters == 0 )
263  throw UnknownParameterException( "No HcalBarrelParameters set ") ;
264 
265  return *_hcalBarrelParameters ;
266 
267  }
269 
270  if( _hcalEndcapParameters == 0 )
271  throw UnknownParameterException( "No HcalEndcapParameters set ") ;
272 
273  return *_hcalEndcapParameters ;
274 
275  }
276 
278 
279  if( _hcalRingParameters == 0 )
280  throw UnknownParameterException( "No HcalRingParameters set ") ;
281 
282  return *_hcalRingParameters ;
283 
284  }
285 
286 
288 
289  if( _lcalParameters == 0 )
290  throw UnknownParameterException( "No LcalParameters set ") ;
291 
292  return *_lcalParameters ;
293 
294  }
295 
297 
298  if( _lhcalParameters == 0 )
299  throw UnknownParameterException( "No LHcalParameters set ") ;
300 
301  return *_lhcalParameters ;
302 
303  }
304 
306 
307  if( _beamcalParameters == 0 )
308  throw UnknownParameterException( "No BeamCalParameters set ") ;
309 
310  return *_beamcalParameters ;
311 
312  }
313 
315 
316  if( _vxdParameters == 0 )
317  throw UnknownParameterException( "No VXDParameters set ") ;
318 
319  return *_vxdParameters ;
320 
321  }
322 
324 
325  if( _ftdParameters == 0 )
326  throw UnknownParameterException( "No FTDParameters set ") ;
327 
328  return *_ftdParameters ;
329 
330  }
331 
333 
334  if( _sitParameters == 0 )
335  throw UnknownParameterException( "No SITParameters set ") ;
336 
337  return *_sitParameters ;
338 
339  }
341 
342  if( _setParameters == 0 )
343  throw UnknownParameterException( "No SETParameters set ") ;
344 
345  return *_setParameters ;
346 
347  }
348 
350 
351  if( _trackerplanesParameters == 0 )
352  throw UnknownParameterException( "No TrackerPlanesParameters set ") ;
353 
354  return *_trackerplanesParameters ;
355 
356  }
357 
359 
360  if( _siplanesParameters == 0 )
361  throw UnknownParameterException( "No SiPlanesParameters set ") ;
362 
363  return *_siplanesParameters ;
364 
365  }
366 
368 
369  if( _pointProperties == 0 )
370  throw UnknownParameterException( "No PointProperties set or implemented ") ;
371 
372  return *_pointProperties ;
373  }
374 
375 
376 
378 
379  if( _distanceProperties == 0 )
380  throw UnknownParameterException( "No DistanceProperties set or implemented ") ;
381 
382  return *_distanceProperties ;
383 
384  }
385 
386  void GearMgrImpl::setGearParameters( const std::string & key, GearParameters* parameters ) {
387 
388  if( parameters == 0 ) // don't allow null pointers
389  return ;
390 
391  ParameterMap::iterator it = _map.find( key ) ;
392 
393  if( it != _map.end() ) {
394 
395  delete it->second ;
396  it->second = parameters ;
397 
398  } else {
399 
400  _map[ key ] = parameters ;
401 
402  }
403 
404 
405  }
406 
408 
409  if( _tpcParameters )
410  delete _tpcParameters ;
411 
412  _tpcParameters = tpcParameters ;
413  }
414 
416 
417  _bField = b ;
418  }
419 
421 
422  _ecalBarrelParameters = ecalBarrelParameters ;
423  }
425 
426  _ecalEndcapParameters = ecalEndcapParameters ;
427  }
428 
430 
431  _ecalPlugParameters = ecalPlugParameters ;
432  }
433 
435 
436  _yokeBarrelParameters = yokeBarrelParameters ;
437  }
439 
440  _yokeEndcapParameters = yokeEndcapParameters ;
441  }
442 
444 
445  _yokePlugParameters = yokePlugParameters ;
446  }
447 
448 
450 
451  _hcalBarrelParameters = hcalBarrelParameters ;
452  }
453 
455 
456  _hcalEndcapParameters = hcalEndcapParameters ;
457  }
458 
460 
461  _hcalRingParameters = hcalRingParameters ;
462  }
463 
465 
466  try {
467 
468  lcalParameters->getDoubleVal("beam_crossing_angle") ;
469 
470  }catch( UnknownParameterException ){
471 
472  std::cout << "WARNING GearMgrImpl::setLcalParameters: added "
473  " missing parameter beam_crossing_angle 0.0 ! " << std::endl ;
474 
475  GearParametersImpl* gp
476  = dynamic_cast<GearParametersImpl*>(lcalParameters) ;
477 
478  if( gp )
479  gp->setDoubleVal("beam_crossing_angle", 0.0 ) ;
480 
481  }
482  _lcalParameters = lcalParameters ;
483  }
484 
486 
487  try {
488 
489  lhcalParameters->getDoubleVal("beam_crossing_angle") ;
490 
491  }catch( UnknownParameterException ){
492 
493  std::cout << "WARNING GearMgrImpl::setLHcalParameters: added "
494  " missing parameter beam_crossing_angle 0.0 ! " << std::endl ;
495 
496  GearParametersImpl* gp
497  = dynamic_cast<GearParametersImpl*>(lhcalParameters) ;
498 
499  if( gp )
500  gp->setDoubleVal("beam_crossing_angle", 0.0 ) ;
501 
502  }
503  _lhcalParameters = lhcalParameters ;
504  }
505 
507 
508  try {
509 
510  beamcalParameters->getDoubleVal("beam_crossing_angle") ;
511 
512  }catch( UnknownParameterException ){
513 
514  std::cout << "WARNING GearMgrImpl::setBeamCalParameters: added "
515  " missing parameter beam_crossing_angle 0.0 ! " << std::endl ;
516 
517  GearParametersImpl* gp
518  = dynamic_cast<GearParametersImpl*>(beamcalParameters) ;
519 
520  if( gp )
521  gp->setDoubleVal("beam_crossing_angle", 0.0 ) ;
522 
523  }
524  _beamcalParameters = beamcalParameters ;
525  }
526 
528 
529  _vxdParameters = vxdParameters ;
530  }
531 
533 
534  _ftdParameters = ftdParameters ;
535  }
536 
538 
539  _sitParameters = sitParameters ;
540  }
541 
543 
544  _setParameters = setParameters ;
545  }
546 
548 
549  _trackerplanesParameters = trackerplanesParameters ;
550  }
551 
553 
554  _siplanesParameters = siplanesParameters ;
555  }
556 
558 
559  _pointProperties = pointProperties ;
560  }
561 
563 
564  _distanceProperties = distanceProperties ;
565  }
566 
567  const std::vector<std::string>& GearMgrImpl::getGearParameterKeys() const {
568 
569  _keys.clear() ;
570  _keys.reserve( _map.size() ) ;
571 
572  for( ParameterMap::const_iterator it = _map.begin() ; it != _map.end() ; ++it ){
573  _keys.push_back( it->first ) ;
574  }
575  return _keys ;
576  }
577 
578  const std::vector<std::string>& GearMgrImpl::getMaterialNames() const {
579 
580  _matNames.clear() ;
581  _matNames.reserve( _matMap.size() ) ;
582 
583  for( MatMap::const_iterator it = _matMap.begin() ; it != _matMap.end() ; ++it ){
584  _matNames.push_back( it->first ) ;
585  }
586  return _matNames ;
587 
588  }
589 
590 
591  const SimpleMaterial& GearMgrImpl::getSimpleMaterial( const std::string name ) const {
592 
593  MatMap::const_iterator it = _matMap.find( name ) ;
594 
595  if( it == _matMap.end() ){
596 
597  std::stringstream mess ;
598  mess << " GearMgrImpl::getSimpleMaterial - unknown material with name " << name << " ! " ;
599 
600  throw UnknownParameterException( mess.str() ) ;
601  }
602 
603  return *it->second ;
604  }
605 
606 
608 
609  MatMap::iterator it = _matMap.find( material->getName() ) ;
610 
611  if( it!= _matMap.end() ){
612 
613  std::stringstream mess ;
614  mess << " GearMgrImpl::registerSimpleMaterial - material with name " << material->getName() << " already registered ! " ;
615 
616  throw Exception( mess.str() ) ;
617  }
618 
619  _matMap[ material->getName() ] = material ;
620 
621  }
622 
623 
624 
625 }
virtual void setPointProperties(GearPointProperties *pointProperties)
Set the point properties object.
Definition: GearMgrImpl.cc:557
virtual void setHcalRingParameters(CalorimeterParameters *hcalRingParameters)
Set the HcalRingParameters.
Definition: GearMgrImpl.cc:459
Implementation of GearParameters - a set off parameters that can be used to describe the geometrical ...
virtual const std::vector< std::string > & getGearParameterKeys() const
Keys of all GearParameters.
Definition: GearMgrImpl.cc:567
Geometry properties of a vertex detector needed for reconstruction code.
Abstract interface for a class that returns the (material) properties along a given distance between ...
virtual const TPCParameters & getTPCParameters() const
Get the TPCParameters.
Definition: GearMgrImpl.cc:188
virtual void setYokeBarrelParameters(CalorimeterParameters *yokeBarrelParameters)
Set the YokeBarrelParameters.
Definition: GearMgrImpl.cc:434
Proposal for an abstract interface that defines the geometry properties of a TPC like detector needed...
Definition: TPCParameters.h:24
virtual void setHcalEndcapParameters(CalorimeterParameters *hcalEndcapParameters)
Set the HcalEndcapParameters.
Definition: GearMgrImpl.cc:454
virtual void setSITParameters(ZPlanarParameters *sitParameters)
Set the SITParameters.
Definition: GearMgrImpl.cc:537
virtual void setYokePlugParameters(CalorimeterParameters *yokePlugParameters)
Set the YokePlugParameters.
Definition: GearMgrImpl.cc:443
Base exception class for GEAR - all other exceptions extend this.
Definition: GEAR.h:41
Abstract interface for a simple material description tjhat hold s the following properties: A...
virtual const CalorimeterParameters & getHcalEndcapParameters() const
Get the Hcal endcap parameters.
Definition: GearMgrImpl.cc:268
virtual const ZPlanarParameters & getVXDParameters() const
Get the VXD parameters.
Definition: GearMgrImpl.cc:314
virtual const BField & getBField() const
Get the BField.
Definition: GearMgrImpl.cc:197
virtual const std::vector< std::string > & getMaterialNames() const
Names of registered materials.
Definition: GearMgrImpl.cc:578
Proposal for an abstract interface that defines geometry properties of a typical sampling calorimeter...
virtual const CalorimeterParameters & getYokePlugParameters() const
Get the Yoke plug parameters.
Definition: GearMgrImpl.cc:249
virtual void setLHcalParameters(CalorimeterParameters *lhcalParameters)
Set the LHcalParameters.
Definition: GearMgrImpl.cc:485
virtual const TrackerPlanesParameters & getTrackerPlanesParameters() const
Get the TrackerPlanes parameters.
Definition: GearMgrImpl.cc:349
virtual const CalorimeterParameters & getBeamCalParameters() const
Get the BeamCal parameters.
Definition: GearMgrImpl.cc:305
virtual void setEcalBarrelParameters(CalorimeterParameters *ecalBarrelParameters)
Set the EcalBarrelParameters.
Definition: GearMgrImpl.cc:420
virtual void setSiPlanesParameters(SiPlanesParameters *siplanesParameters)
Set the SiPlanesParameters.
Definition: GearMgrImpl.cc:552
virtual const GearPointProperties & getPointProperties() const
Get the point properties object.
Definition: GearMgrImpl.cc:367
virtual void setLcalParameters(CalorimeterParameters *lcalParameters)
Set the LcalParameters.
Definition: GearMgrImpl.cc:464
virtual void setEcalPlugParameters(CalorimeterParameters *ecalPlugParameters)
Set the EcalPlugParameters.
Definition: GearMgrImpl.cc:429
virtual void registerSimpleMaterial(const SimpleMaterial *material)
Register the SimpleMaterial with SimpleMaterial::getName() - throws Exception if a material of the gi...
Definition: GearMgrImpl.cc:607
virtual const std::string & getDetectorName() const
The unique detector name - typically the model name used in the simulation program.
Definition: GearMgrImpl.cc:169
virtual void setVXDParameters(ZPlanarParameters *vxdParameters)
Set the VXDParameters.
Definition: GearMgrImpl.cc:527
void cleanup()
function to copy all internal variables, incl.
Definition: GearMgrImpl.cc:121
virtual const FTDParameters & getFTDParameters() const
Get the FTD parameters.
Definition: GearMgrImpl.cc:323
virtual const std::string & getName() const =0
The material name.
virtual const CalorimeterParameters & getEcalPlugParameters() const
Get the Ecal plug parameters.
Definition: GearMgrImpl.cc:223
virtual const GearDistanceProperties & getDistanceProperties() const
Get the distance properties object.
Definition: GearMgrImpl.cc:377
Abstract interface for a set of parameters that can be used to describe the geometrical properties of...
virtual const CalorimeterParameters & getHcalBarrelParameters() const
Get the Hcal barrel parameters.
Definition: GearMgrImpl.cc:260
UnknownParameterException call Processor::end().
Definition: GEAR.h:99
virtual const CalorimeterParameters & getHcalRingParameters() const
Get the Hcal ring parameters.
Definition: GearMgrImpl.cc:277
virtual void setGearParameters(const std::string &key, GearParameters *parameters)
Set the GearParameters for the given key - overwrites any existing entries.
Definition: GearMgrImpl.cc:386
virtual const CalorimeterParameters & getLHcalParameters() const
Get the LHcal parameters.
Definition: GearMgrImpl.cc:296
virtual const CalorimeterParameters & getEcalEndcapParameters() const
Get the Ecal endcap parameters.
Definition: GearMgrImpl.cc:214
virtual const SiPlanesParameters & getSiPlanesParameters() const
Get the SiPlanes parameters.
Definition: GearMgrImpl.cc:358
virtual const CalorimeterParameters & getLcalParameters() const
Get the Lcal parameters.
Definition: GearMgrImpl.cc:287
virtual const ZPlanarParameters & getSITParameters() const
Get the SIT parameters.
Definition: GearMgrImpl.cc:332
virtual void setHcalBarrelParameters(CalorimeterParameters *hcalBarrelParameters)
Set the HcalBarrelParameters.
Definition: GearMgrImpl.cc:449
virtual const GearParameters & getGearParameters(const std::string &key) const
Get named parameters for key.
Definition: GearMgrImpl.cc:179
Geometry properties of a FTD detector needed for reconstruction code.
Definition: FTDParameters.h:29
virtual void setSETParameters(ZPlanarParameters *setParameters)
Set the SETParameters.
Definition: GearMgrImpl.cc:542
virtual void setTPCParameters(TPCParameters *tpcParameters)
Set the TPCParameters.
Definition: GearMgrImpl.cc:407
virtual void setEcalEndcapParameters(CalorimeterParameters *ecalEndcapParameters)
Set the EcalEndcapParameters.
Definition: GearMgrImpl.cc:424
virtual void setTrackerPlanesParameters(TrackerPlanesParameters *trackerplanesParameters)
Set the TrackerPlanesParameters.
Definition: GearMgrImpl.cc:547
virtual void setYokeEndcapParameters(CalorimeterParameters *yokeEndcapParameters)
Set the YokeEndcapParameters.
Definition: GearMgrImpl.cc:438
virtual void setFTDParameters(FTDParameters *ftdParameters)
Set the FTDParameters.
Definition: GearMgrImpl.cc:532
virtual const ZPlanarParameters & getSETParameters() const
Get the SET parameters.
Definition: GearMgrImpl.cc:340
virtual const SimpleMaterial & getSimpleMaterial(const std::string name) const
Return the SimpleMaterial for the given name throws UnknownParameterException if no material is unkno...
Definition: GearMgrImpl.cc:591
virtual void setDistanceProperties(GearDistanceProperties *distanceProperties)
Set the distance properties object.
Definition: GearMgrImpl.cc:562
virtual void setBeamCalParameters(CalorimeterParameters *beamcalParameters)
Set the BeamCalParameters.
Definition: GearMgrImpl.cc:506
Geometry properties of a pixel beam telescope needed for reconstruction code.
virtual const CalorimeterParameters & getYokeBarrelParameters() const
Get the Yoke barrel parameters.
Definition: GearMgrImpl.cc:232
Geometry properties of a pixel beam telescope needed for reconstruction code.
virtual void setBField(BField *bField)
Set the b field object.
Definition: GearMgrImpl.cc:415
virtual const CalorimeterParameters & getEcalBarrelParameters() const
Get the Ecal barrel parameters.
Definition: GearMgrImpl.cc:206
virtual ~GearMgrImpl()
Destructor.
Definition: GearMgrImpl.cc:116
virtual const CalorimeterParameters & getYokeEndcapParameters() const
Get the Yoke endcap parameters.
Definition: GearMgrImpl.cc:240
Abstract interface for a class that returns the (material) properties of a given point in in world co...
virtual void setDoubleVal(const std::string &key, double val)
Double value for key.
Global B field map.
Definition: BField.h:16
virtual double getDoubleVal(const std::string &key) const =0
Double value for key.