37 G4cout << G4endl <<
" ------ INF ------ from SToGS::LoadFromDetectorFactory::Construct " << fNameInFactory << G4endl;
40 if ( where_to_load ) {
41 physiWorld = where_to_load->
Get(fNameInFactory);
42 if ( physiWorld == 0x0 ) {
43 G4cout <<
"**** Cannot find setup " << fNameInFactory <<
" in Detector Factory " << where_to_load->
GetFactoryName() << G4endl;
46 else G4cout <<
"**** Cannot load setup " << fNameInFactory <<
" from Detector Factory " << G4endl;
48 G4cout <<
" ------ END ------ from SToGS::LoadFromDetectorFactory::Construct " << G4endl;
55 G4cout <<
" ------ INF ------ from SToGS::LoadFromDetectorFactory::ConstructSDandField " << fNameInFactory << G4endl;
58 if ( where_to_load ) {
62 G4cout <<
"**** Cannot load setup " << fNameInFactory <<
" from Detector Factory " << G4endl;
64 G4cout <<
" ------ END ------ from SToGS::LoadFromDetectorFactory::ConstructSDandField " << G4endl;
73 G4VPhysicalVolume *physiWorld = 0x0;
76 if ( where_to_load == 0x0 ) {
79 if ( where_to_load ) {
83 G4cout <<
"**** Cannot open file " << fInputFile <<
" Detector Factory " << G4endl;
virtual ~BuildFromDetectorFactory()
static DetectorFactory * GetFactory(G4String fullname)
get the specific factory for a full name to a file
virtual G4VPhysicalVolume * Construct()
it built only the detector part i.e. load the xml file and the dmap
virtual G4VPhysicalVolume * Get(G4String basename)
search for a detector in DetectorFactory
virtual G4VPhysicalVolume * MakeAnArrayFromFactory(G4String input_file)
built an array from the factory using the given input file
virtual G4VPhysicalVolume * Construct()
it built only the detector part i.e. load the xml file and the amap, dmap
virtual void GetAttributes(G4String basename, G4bool do_amap=true, G4bool do_dmap=false)
Read the amap file and apply atributes to the detector. if not found, it creates a deefault one from ...
Base Factory. This is a container of sub-factories.
G4String GetFactoryName() const
virtual void ConstructSDandField()
it set the sensitivity, colors and fields here
virtual ~LoadFromDetectorFactory()