GEAR  1.6.1
 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  throw (UnknownParameterException, std::exception ) {
172 
173  if( _detectorName.size() == 0 )
174  throw UnknownParameterException( "No DetectorName set ") ;
175 
176 
177  return _detectorName ;
178  }
179 
180 
181  const GearParameters & GearMgrImpl::getGearParameters(const std::string & key) const
182 
183  throw (UnknownParameterException, std::exception ) {
184 
185  ParameterMap::const_iterator it = _map.find( key ) ;
186  if( it == _map.end() || it->second == 0 )
187  throw UnknownParameterException( "No parameters set for : " + key ) ;
188  return * it->second ;
189 
190  }
191 
193  throw (UnknownParameterException, std::exception ) {
194 
195  if( _tpcParameters == 0 )
196  throw UnknownParameterException( "No TPCParameters set ") ;
197 
198  return *_tpcParameters ;
199 
200  }
201 
203  throw (UnknownParameterException, std::exception ) {
204 
205  if( _bField == 0 )
206  throw UnknownParameterException( "No BField set ") ;
207 
208  return *_bField ;
209 
210  }
211 
213  throw (UnknownParameterException, std::exception ) {
214 
215  if( _ecalBarrelParameters == 0 )
216  throw UnknownParameterException( "No EcalBarrelParameters set ") ;
217 
218  return *_ecalBarrelParameters ;
219 
220  }
222  throw (UnknownParameterException, std::exception ) {
223 
224  if( _ecalEndcapParameters == 0 )
225  throw UnknownParameterException( "No EcalEndcapParameters set ") ;
226 
227  return *_ecalEndcapParameters ;
228 
229  }
230 
232  throw (UnknownParameterException, std::exception ) {
233 
234  if( _ecalPlugParameters == 0 )
235  throw UnknownParameterException( "No EcalPlugParameters set ") ;
236 
237  return *_ecalPlugParameters ;
238 
239  }
240 
242  throw (UnknownParameterException, std::exception ) {
243 
244  if( _yokeBarrelParameters == 0 )
245  throw UnknownParameterException( "No YokeBarrelParameters set ") ;
246 
247  return *_yokeBarrelParameters ;
248 
249  }
251  throw (UnknownParameterException, std::exception ) {
252 
253  if( _yokeEndcapParameters == 0 )
254  throw UnknownParameterException( "No YokeEndcapParameters set ") ;
255 
256  return *_yokeEndcapParameters ;
257 
258  }
259 
261  throw (UnknownParameterException, std::exception ) {
262 
263  if( _yokePlugParameters == 0 )
264  throw UnknownParameterException( "No YokePlugParameters set ") ;
265 
266  return *_yokePlugParameters ;
267 
268  }
269 
270 
271 
273  throw (UnknownParameterException, std::exception ) {
274 
275  if( _hcalBarrelParameters == 0 )
276  throw UnknownParameterException( "No HcalBarrelParameters set ") ;
277 
278  return *_hcalBarrelParameters ;
279 
280  }
282  throw (UnknownParameterException, std::exception ) {
283 
284  if( _hcalEndcapParameters == 0 )
285  throw UnknownParameterException( "No HcalEndcapParameters set ") ;
286 
287  return *_hcalEndcapParameters ;
288 
289  }
290 
292  throw (UnknownParameterException, std::exception ) {
293 
294  if( _hcalRingParameters == 0 )
295  throw UnknownParameterException( "No HcalRingParameters set ") ;
296 
297  return *_hcalRingParameters ;
298 
299  }
300 
301 
303  throw (UnknownParameterException, std::exception ) {
304 
305  if( _lcalParameters == 0 )
306  throw UnknownParameterException( "No LcalParameters set ") ;
307 
308  return *_lcalParameters ;
309 
310  }
311 
313  throw (UnknownParameterException, std::exception ) {
314 
315  if( _lhcalParameters == 0 )
316  throw UnknownParameterException( "No LHcalParameters set ") ;
317 
318  return *_lhcalParameters ;
319 
320  }
321 
323  throw (UnknownParameterException, std::exception ) {
324 
325  if( _beamcalParameters == 0 )
326  throw UnknownParameterException( "No BeamCalParameters set ") ;
327 
328  return *_beamcalParameters ;
329 
330  }
331 
333  throw (UnknownParameterException, std::exception ) {
334 
335  if( _vxdParameters == 0 )
336  throw UnknownParameterException( "No VXDParameters set ") ;
337 
338  return *_vxdParameters ;
339 
340  }
341 
343  throw (UnknownParameterException, std::exception ) {
344 
345  if( _ftdParameters == 0 )
346  throw UnknownParameterException( "No FTDParameters set ") ;
347 
348  return *_ftdParameters ;
349 
350  }
351 
353  throw (UnknownParameterException, std::exception ) {
354 
355  if( _sitParameters == 0 )
356  throw UnknownParameterException( "No SITParameters set ") ;
357 
358  return *_sitParameters ;
359 
360  }
362  throw (UnknownParameterException, std::exception ) {
363 
364  if( _setParameters == 0 )
365  throw UnknownParameterException( "No SETParameters set ") ;
366 
367  return *_setParameters ;
368 
369  }
370 
372  throw (UnknownParameterException, std::exception ) {
373 
374  if( _trackerplanesParameters == 0 )
375  throw UnknownParameterException( "No TrackerPlanesParameters set ") ;
376 
377  return *_trackerplanesParameters ;
378 
379  }
380 
382  throw (UnknownParameterException, std::exception ) {
383 
384  if( _siplanesParameters == 0 )
385  throw UnknownParameterException( "No SiPlanesParameters set ") ;
386 
387  return *_siplanesParameters ;
388 
389  }
390 
392  throw (NotImplementedException, std::exception ) {
393 
394  if( _pointProperties == 0 )
395  throw UnknownParameterException( "No PointProperties set or implemented ") ;
396 
397  return *_pointProperties ;
398  }
399 
400 
401 
403  throw (NotImplementedException, std::exception ) {
404 
405  if( _distanceProperties == 0 )
406  throw UnknownParameterException( "No DistanceProperties set or implemented ") ;
407 
408  return *_distanceProperties ;
409 
410  }
411 
412  void GearMgrImpl::setGearParameters( const std::string & key, GearParameters* parameters ) {
413 
414  if( parameters == 0 ) // don't allow null pointers
415  return ;
416 
417  ParameterMap::iterator it = _map.find( key ) ;
418 
419  if( it != _map.end() ) {
420 
421  delete it->second ;
422  it->second = parameters ;
423 
424  } else {
425 
426  _map[ key ] = parameters ;
427 
428  }
429 
430 
431  }
432 
434 
435  if( _tpcParameters )
436  delete _tpcParameters ;
437 
438  _tpcParameters = tpcParameters ;
439  }
440 
442 
443  _bField = b ;
444  }
445 
447 
448  _ecalBarrelParameters = ecalBarrelParameters ;
449  }
451 
452  _ecalEndcapParameters = ecalEndcapParameters ;
453  }
454 
456 
457  _ecalPlugParameters = ecalPlugParameters ;
458  }
459 
461 
462  _yokeBarrelParameters = yokeBarrelParameters ;
463  }
465 
466  _yokeEndcapParameters = yokeEndcapParameters ;
467  }
468 
470 
471  _yokePlugParameters = yokePlugParameters ;
472  }
473 
474 
476 
477  _hcalBarrelParameters = hcalBarrelParameters ;
478  }
479 
481 
482  _hcalEndcapParameters = hcalEndcapParameters ;
483  }
484 
486 
487  _hcalRingParameters = hcalRingParameters ;
488  }
489 
491 
492  try {
493 
494  lcalParameters->getDoubleVal("beam_crossing_angle") ;
495 
496  }catch( UnknownParameterException ){
497 
498  std::cout << "WARNING GearMgrImpl::setLcalParameters: added "
499  " missing parameter beam_crossing_angle 0.0 ! " << std::endl ;
500 
501  GearParametersImpl* gp
502  = dynamic_cast<GearParametersImpl*>(lcalParameters) ;
503 
504  if( gp )
505  gp->setDoubleVal("beam_crossing_angle", 0.0 ) ;
506 
507  }
508  _lcalParameters = lcalParameters ;
509  }
510 
512 
513  try {
514 
515  lhcalParameters->getDoubleVal("beam_crossing_angle") ;
516 
517  }catch( UnknownParameterException ){
518 
519  std::cout << "WARNING GearMgrImpl::setLHcalParameters: added "
520  " missing parameter beam_crossing_angle 0.0 ! " << std::endl ;
521 
522  GearParametersImpl* gp
523  = dynamic_cast<GearParametersImpl*>(lhcalParameters) ;
524 
525  if( gp )
526  gp->setDoubleVal("beam_crossing_angle", 0.0 ) ;
527 
528  }
529  _lhcalParameters = lhcalParameters ;
530  }
531 
533 
534  try {
535 
536  beamcalParameters->getDoubleVal("beam_crossing_angle") ;
537 
538  }catch( UnknownParameterException ){
539 
540  std::cout << "WARNING GearMgrImpl::setBeamCalParameters: added "
541  " missing parameter beam_crossing_angle 0.0 ! " << std::endl ;
542 
543  GearParametersImpl* gp
544  = dynamic_cast<GearParametersImpl*>(beamcalParameters) ;
545 
546  if( gp )
547  gp->setDoubleVal("beam_crossing_angle", 0.0 ) ;
548 
549  }
550  _beamcalParameters = beamcalParameters ;
551  }
552 
554 
555  _vxdParameters = vxdParameters ;
556  }
557 
559 
560  _ftdParameters = ftdParameters ;
561  }
562 
564 
565  _sitParameters = sitParameters ;
566  }
567 
569 
570  _setParameters = setParameters ;
571  }
572 
574 
575  _trackerplanesParameters = trackerplanesParameters ;
576  }
577 
579 
580  _siplanesParameters = siplanesParameters ;
581  }
582 
584 
585  _pointProperties = pointProperties ;
586  }
587 
589 
590  _distanceProperties = distanceProperties ;
591  }
592 
593  const std::vector<std::string>& GearMgrImpl::getGearParameterKeys() const {
594 
595  _keys.clear() ;
596  _keys.reserve( _map.size() ) ;
597 
598  for( ParameterMap::const_iterator it = _map.begin() ; it != _map.end() ; ++it ){
599  _keys.push_back( it->first ) ;
600  }
601  return _keys ;
602  }
603 
604  const std::vector<std::string>& GearMgrImpl::getMaterialNames() const {
605 
606  _matNames.clear() ;
607  _matNames.reserve( _matMap.size() ) ;
608 
609  for( MatMap::const_iterator it = _matMap.begin() ; it != _matMap.end() ; ++it ){
610  _matNames.push_back( it->first ) ;
611  }
612  return _matNames ;
613 
614  }
615 
616 
617  const SimpleMaterial& GearMgrImpl::getSimpleMaterial( const std::string name ) const
618  throw (UnknownParameterException, std::exception ) {
619 
620  MatMap::const_iterator it = _matMap.find( name ) ;
621 
622  if( it == _matMap.end() ){
623 
624  std::stringstream mess ;
625  mess << " GearMgrImpl::getSimpleMaterial - unknown material with name " << name << " ! " ;
626 
627  throw UnknownParameterException( mess.str() ) ;
628  }
629 
630  return *it->second ;
631  }
632 
633 
635  throw(Exception , std::exception ) {
636 
637  MatMap::iterator it = _matMap.find( material->getName() ) ;
638 
639  if( it!= _matMap.end() ){
640 
641  std::stringstream mess ;
642  mess << " GearMgrImpl::registerSimpleMaterial - material with name " << material->getName() << " already registered ! " ;
643 
644  throw Exception( mess.str() ) ;
645  }
646 
647  _matMap[ material->getName() ] = material ;
648 
649  }
650 
651 
652 
653 }
virtual void setPointProperties(GearPointProperties *pointProperties)
Set the point properties object.
Definition: GearMgrImpl.cc:583
virtual void setHcalRingParameters(CalorimeterParameters *hcalRingParameters)
Set the HcalRingParameters.
Definition: GearMgrImpl.cc:485
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:593
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:192
virtual void setYokeBarrelParameters(CalorimeterParameters *yokeBarrelParameters)
Set the YokeBarrelParameters.
Definition: GearMgrImpl.cc:460
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:480
virtual void setSITParameters(ZPlanarParameters *sitParameters)
Set the SITParameters.
Definition: GearMgrImpl.cc:563
virtual void setYokePlugParameters(CalorimeterParameters *yokePlugParameters)
Set the YokePlugParameters.
Definition: GearMgrImpl.cc:469
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:281
virtual const ZPlanarParameters & getVXDParameters() const
Get the VXD parameters.
Definition: GearMgrImpl.cc:332
virtual const BField & getBField() const
Get the BField.
Definition: GearMgrImpl.cc:202
virtual const std::vector< std::string > & getMaterialNames() const
Names of registered materials.
Definition: GearMgrImpl.cc:604
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:260
virtual void setLHcalParameters(CalorimeterParameters *lhcalParameters)
Set the LHcalParameters.
Definition: GearMgrImpl.cc:511
virtual const TrackerPlanesParameters & getTrackerPlanesParameters() const
Get the TrackerPlanes parameters.
Definition: GearMgrImpl.cc:371
virtual const CalorimeterParameters & getBeamCalParameters() const
Get the BeamCal parameters.
Definition: GearMgrImpl.cc:322
virtual void setEcalBarrelParameters(CalorimeterParameters *ecalBarrelParameters)
Set the EcalBarrelParameters.
Definition: GearMgrImpl.cc:446
virtual void setSiPlanesParameters(SiPlanesParameters *siplanesParameters)
Set the SiPlanesParameters.
Definition: GearMgrImpl.cc:578
virtual const GearPointProperties & getPointProperties() const
Get the point properties object.
Definition: GearMgrImpl.cc:391
virtual void setLcalParameters(CalorimeterParameters *lcalParameters)
Set the LcalParameters.
Definition: GearMgrImpl.cc:490
virtual void setEcalPlugParameters(CalorimeterParameters *ecalPlugParameters)
Set the EcalPlugParameters.
Definition: GearMgrImpl.cc:455
virtual void registerSimpleMaterial(const SimpleMaterial *material)
Register the SimpleMaterial with SimpleMaterial::getName() - throws Exception if a material of the gi...
Definition: GearMgrImpl.cc:634
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:553
void cleanup()
function to copy all internal variables, incl.
Definition: GearMgrImpl.cc:121
NotImplementedException used for features that are not implemented.
Definition: GEAR.h:81
virtual const FTDParameters & getFTDParameters() const
Get the FTD parameters.
Definition: GearMgrImpl.cc:342
virtual const CalorimeterParameters & getEcalPlugParameters() const
Get the Ecal plug parameters.
Definition: GearMgrImpl.cc:231
virtual const GearDistanceProperties & getDistanceProperties() const
Get the distance properties object.
Definition: GearMgrImpl.cc:402
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:272
UnknownParameterException call Processor::end().
Definition: GEAR.h:99
virtual const CalorimeterParameters & getHcalRingParameters() const
Get the Hcal ring parameters.
Definition: GearMgrImpl.cc:291
virtual void setGearParameters(const std::string &key, GearParameters *parameters)
Set the GearParameters for the given key - overwrites any existing entries.
Definition: GearMgrImpl.cc:412
virtual const CalorimeterParameters & getLHcalParameters() const
Get the LHcal parameters.
Definition: GearMgrImpl.cc:312
virtual const CalorimeterParameters & getEcalEndcapParameters() const
Get the Ecal endcap parameters.
Definition: GearMgrImpl.cc:221
virtual const SiPlanesParameters & getSiPlanesParameters() const
Get the SiPlanes parameters.
Definition: GearMgrImpl.cc:381
virtual const CalorimeterParameters & getLcalParameters() const
Get the Lcal parameters.
Definition: GearMgrImpl.cc:302
virtual const ZPlanarParameters & getSITParameters() const
Get the SIT parameters.
Definition: GearMgrImpl.cc:352
virtual void setHcalBarrelParameters(CalorimeterParameters *hcalBarrelParameters)
Set the HcalBarrelParameters.
Definition: GearMgrImpl.cc:475
virtual const GearParameters & getGearParameters(const std::string &key) const
Get named parameters for key.
Definition: GearMgrImpl.cc:181
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:568
virtual void setTPCParameters(TPCParameters *tpcParameters)
Set the TPCParameters.
Definition: GearMgrImpl.cc:433
virtual void setEcalEndcapParameters(CalorimeterParameters *ecalEndcapParameters)
Set the EcalEndcapParameters.
Definition: GearMgrImpl.cc:450
virtual void setTrackerPlanesParameters(TrackerPlanesParameters *trackerplanesParameters)
Set the TrackerPlanesParameters.
Definition: GearMgrImpl.cc:573
virtual void setYokeEndcapParameters(CalorimeterParameters *yokeEndcapParameters)
Set the YokeEndcapParameters.
Definition: GearMgrImpl.cc:464
virtual void setFTDParameters(FTDParameters *ftdParameters)
Set the FTDParameters.
Definition: GearMgrImpl.cc:558
virtual const ZPlanarParameters & getSETParameters() const
Get the SET parameters.
Definition: GearMgrImpl.cc:361
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:617
virtual void setDistanceProperties(GearDistanceProperties *distanceProperties)
Set the distance properties object.
Definition: GearMgrImpl.cc:588
virtual void setBeamCalParameters(CalorimeterParameters *beamcalParameters)
Set the BeamCalParameters.
Definition: GearMgrImpl.cc:532
Geometry properties of a pixel beam telescope needed for reconstruction code.
virtual const CalorimeterParameters & getYokeBarrelParameters() const
Get the Yoke barrel parameters.
Definition: GearMgrImpl.cc:241
Geometry properties of a pixel beam telescope needed for reconstruction code.
virtual void setBField(BField *bField)
Set the b field object.
Definition: GearMgrImpl.cc:441
virtual const CalorimeterParameters & getEcalBarrelParameters() const
Get the Ecal barrel parameters.
Definition: GearMgrImpl.cc:212
virtual ~GearMgrImpl()
Destructor.
Definition: GearMgrImpl.cc:116
virtual const CalorimeterParameters & getYokeEndcapParameters() const
Get the Yoke endcap parameters.
Definition: GearMgrImpl.cc:250
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.