00001 #include "TrkExtAlg/ExtBesMdcConstruction.h" 00002 #include "G4LogicalVolume.hh" 00003 #include "G4PVPlacement.hh" 00004 #include "G4PVReplica.hh" 00005 00006 #include "G4UserLimits.hh" 00007 00008 #include "G4ios.hh" 00009 #include "G4Geo/MdcG4Geo.h" 00010 00011 ExtBesMdcConstruction::ExtBesMdcConstruction() {} 00012 00013 ExtBesMdcConstruction::~ExtBesMdcConstruction() {} 00014 00015 void ExtBesMdcConstruction::Construct(G4LogicalVolume* logicBes) 00016 { 00017 MdcG4Geo* aMdcG4Geo = new MdcG4Geo(); 00018 G4LogicalVolume* logicalMdc = aMdcG4Geo->GetTopVolume(); 00019 if(!logicalMdc){ 00020 G4cout<<"ExtBesMdcConstruction::Construct(), logicalMdc not found"<<G4endl; 00021 } 00022 else{//construct Mdc 00023 physicalMdc = new G4PVPlacement(0,G4ThreeVector(0,0,0),logicalMdc, "physicalMdc",logicBes, false, 0);} 00024 }