// N16SourceGen.cc // Contact person: Matt Mottram and Phil Jones // See N16SourceGen.hh for more details //———————————————————————// #include #include #include namespace RAT { void N16SourceGen::SetState(G4String state) { if (state != "") { warn << "Warning: parameter '" << state << "' given for /generator/add n16source has no effect.\n"; } DecayChain_Gen::SetState("16N:fill:poisson"); Log::Assert( Detector::FindPhysicalVolume(fActiveVolumeName) != NULL, "N16SourceGen: Did not find physical volume '" + fActiveVolumeName + "'. Please load the N16Source geometry."); DecayChain_Gen::SetPosState(fActiveVolumeName); } void N16SourceGen::SetPosState(G4String /*state*/) { warn << "Warning: /generator/set/pos has no effect for the n16source generator.\n"; } } // namespace RAT