GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
TGeoMaterialProperties.cc
1 
2 #include "TGeoMaterialProperties.h"
3 
4 
5 #include "geartgeo/TGeoGeometryInitializer.h"
6 #include "geartgeo/TGeoGearPointProperties.h"
7 #include "geartgeo/TGeoGearDistanceProperties.h"
8 
9 namespace gear{
10 
11 
12 
14  }
15 
17 
18  delete _tgeoInit ;
19  }
20 
22 
23  std::string gdmlFileName = _cfg[ "GDMLFileName" ] ;
24 
25  _tgeoInit = new TGeoGeometryInitializer( gdmlFileName ) ;
26 
27  }
28 
30 
31  return ( _tgeoInit ? new TGeoGearPointProperties( _tgeoInit->getGeoManager() ) : 0 ) ;
32  }
33 
35 
36  return ( _tgeoInit ? new TGeoGearDistanceProperties( _tgeoInit->getGeoManager() ) : 0 ) ;
37  }
38 
39 
40  // have a global instance of the factory:
41  TGeoMaterialPropertiesFactory _global_TGeoMaterialPropertiesFactory ;
42 
43 
45 
46 // std::cout << " TGeoMaterialPropertiesFactory::TGeoMaterialPropertiesFactory() +++++++++++++++++ "
47 // << GearMaterialPropertiesFactory::me()
48 // << std::endl ;
49 
50  GearMaterialPropertiesFactory::me() = this ;
51  }
52 
54 
55  return new TGeoMaterialProperties ;
56  }
57 
58 
59 }
void initialize()
Initialize a concrete implemetaiton of the detailed material properties - after the configuration...
Abstract interface for a class that returns the (material) properties along a given distance between ...
TGeo Implementation of the abstract interface that returns the (material) properties along a given di...
TGeoMaterialPropertiesFactory()
C&#39;tor - will register with GearMaterialPropertiesFactory as the one instance.
Implementation of Factory &#39;singleton&#39; class.
virtual GearDistanceProperties * getGearDistanceProperties() const
Get an instance of the GearDistanceProperties - 0 if not initialized.
TGeoMaterialProperties * create() const
Create a new object of the TGeoMaterialProperties.
virtual GearPointProperties * getGearPointProperties() const
Get an instance of the GearPointProperties - 0 if not initialized.
Concrete implemetation for TGeo.
TGeo implementation of the abstract interface that returns the (material) properties of a given point...
Abstract interface for a class that returns the (material) properties of a given point in in world co...
TGeo Geometry Initializer class.