92 G4Material* air = nistManager->FindOrBuildMaterial(
"G4_AIR");
93 G4Material* lead = nistManager->FindOrBuildMaterial(
"G4_Pb");
96 G4double
a, z, density;
98 density= 1.782e-03*g/cm3;
115 expHallLV-> SetVisAttributes(expHallVisAtt);
118 expHallLV, 0, FALSE, 0);
141 barrelCalLV-> SetVisAttributes(calVisAtt);
142 endcapCalLV-> SetVisAttributes(calVisAtt);
146 barrelCalLV, expHall, FALSE, 0);
148 G4ThreeVector posCal(0.,0.,6.*m);
151 endcapCalLV, expHall, FALSE, 0);
155 endcapCalLV, expHall, FALSE, 1);
173 barrelMuonLV-> SetVisAttributes(muonVisAtt);
174 endcapMuonLV-> SetVisAttributes(muonVisAtt);
176 const G4double dangle= 45.*deg;
178 G4RotationMatrix* rotM=
new G4RotationMatrix;
179 rotM->rotateZ(90.*deg);
181 for (G4int k=0; k<8; k++) {
182 G4Transform3D transformM(*rotM, posM);
184 barrelMuonLV, expHall, FALSE, k);
185 rotM->rotateZ(dangle);
186 posM.rotateZ(dangle);
189 G4ThreeVector posMuon(0.,0.,8.*m);
192 endcapMuonLV, expHall, FALSE, 0);
196 endcapMuonLV, expHall, FALSE, 1);
204 SDman-> AddNewDetector(muonSD);
205 barrelMuonLV-> SetSensitiveDetector(muonSD);
206 endcapMuonLV-> SetSensitiveDetector(muonSD);
211 G4TransportationManager::GetTransportationManager()-> GetFieldManager();
212 fieldMgr-> SetDetectorField(myfield);
213 fieldMgr-> CreateChordFinder(myfield);