00001 #include "TrkExtAlg/ExtBesTofConstruction.h" 00002 #include "G4LogicalVolume.hh" 00003 #include "G4UnitsTable.hh" 00004 #include "G4ios.hh" 00005 #include "G4Geo/TofG4Geo.h" 00006 #include "G4Geo/MRPCG4Geo.h" 00007 00008 #include "GaudiKernel/MsgStream.h" 00009 #include "GaudiKernel/AlgFactory.h" 00010 #include "GaudiKernel/SmartIF.h" 00011 #include "GaudiKernel/Property.h" 00012 #include "GaudiKernel/ISvcLocator.h" 00013 00014 00015 ExtBesTofConstruction::ExtBesTofConstruction() 00016 00017 { 00018 } 00019 00020 ExtBesTofConstruction::~ExtBesTofConstruction() {} 00021 00022 void ExtBesTofConstruction::Construct(G4LogicalVolume* logicBes) 00023 { 00024 00025 TofG4Geo* aTofG4Geo = new TofG4Geo(); 00026 logicalTof = aTofG4Geo->GetTopVolume(); 00027 if(!logicalTof) G4cout<<"ExtBesTofConstruction::Construct(), logicalTof not found"<<G4endl; 00028 physicalTof = new G4PVPlacement(0,G4ThreeVector(0,0,0),logicalTof,"physicalTof",logicBes,false,0); 00029 } 00030 00031 00032 void ExtBesTofConstruction::ConstructETF(G4LogicalVolume* logicBes) { 00033 00034 MRPCG4Geo* aTofG4Geo = new MRPCG4Geo(); 00035 logicalTof = aTofG4Geo->GetTopVolume(); 00036 if(!logicalTof) G4cout<<"ExtBesTofConstruction::Construct(), logicalTof not found"<<G4endl; 00037 physicalTof = new G4PVPlacement(0,G4ThreeVector(0,0,0),logicalTof,"physicalTof",logicBes,false,0); 00038 }