// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // #include "G4AtomicTransitionManager.hh" #include "globals.hh" #include "G4ios.hh" #include int main() { G4int Z; G4int subShell; G4cout << "Enter Z " << G4endl; G4cin >> Z; G4AtomicTransitionManager* transManager = G4AtomicTransitionManager::Instance(); G4cout << "Number of shells: " << transManager->NumberOfShells(Z)<NumberOfReachableShells(Z)<> subShell; G4cout << "Primary Shell: " << transManager->Shell(Z,subShell)->ShellId() << G4endl; G4cout << "SubShell binding energy: " << transManager->Shell(Z,subShell)->BindingEnergy() << G4endl; G4cout << "Testing G4AtomicShell" << G4endl; G4int shellIndex; G4cout <<" Select the index of the Fluo vacancy "<> shellIndex; G4cout << "Testing G4FluoTransition "< transEnergies = transManager->ReachableShell(Z,shellIndex)->TransitionEnergies(); std::vector transIds = transManager->ReachableShell(Z,shellIndex)->OriginatingShellIds(); std::vector transProbs = transManager->ReachableShell(Z,shellIndex)->TransitionProbabilities(); for (G4int trans=0; transReachableShell(Z,shellIndex)->OriginatingShellId(trans) << G4endl; G4cout << " Transition energy: " << transEnergies[trans] << G4endl; G4cout << "Transition energy: " << transManager->ReachableShell(Z,shellIndex)->TransitionEnergy(trans) << G4endl; G4cout << "Transition probability: " << transProbs[trans] << G4endl; G4cout << "Transition probability: " << transManager->ReachableShell(Z,shellIndex)->TransitionProbability(trans) << G4endl; } /* ===Atention=== the data given out by the following code usually doesn't corespond to the data of the preceding one, I.E. the vacancy used for the testing of auger effect isn't the same of that used for Fluorescence. */ G4cout<< "Number of Auger vacancies: "<NumberOfReachableAugerShells(Z)<> augerVacancyIndex; G4cout << "Testing G4AugerTransition "<ReachableAugerShell(Z, augerVacancyIndex); const std::vector augerTransIds = *(augerTransition->TransitionOriginatingShellIds()); for (G4int transIndex = 0; transIndex<(augerTransIds.size() ); transIndex++) { G4cout << "Questo e' augerTransIds[transIndex]: "<< augerTransIds[transIndex] << G4endl; std::vector augerProbs = *augerTransition->AugerTransitionProbabilities(augerTransIds[transIndex]); std::vector augerIds = *augerTransition->AugerOriginatingShellIds(augerTransIds[transIndex]); std::vector augerEnergies = *augerTransition->AugerTransitionEnergies(augerTransIds[transIndex]); // we r comparing the vectors elements given by G4AugerTransition with the values of the single functions. G4cout << "The transition starts from the shell: " << augerTransIds[transIndex] << G4endl; G4int transId = augerTransition->TransitionOriginatingShellId(transIndex); G4cout << "The transition starts from the shell: " << transId << G4endl; for (G4int trans=0; transAugerOriginatingShellId(trans, transId) << G4endl; G4cout << " Transition energy: " << augerEnergies[trans] << G4endl; G4cout << "Transition energy: " << augerTransition->AugerTransitionEnergy(trans, transId) << G4endl; G4cout << "Transition probability: " << augerProbs[trans] << G4endl; G4cout << "Transition probability: " << augerTransition->AugerTransitionProbability(trans, transId) << G4endl; } } G4cout << "Testing G4AtomicTransitionManager" << G4endl; G4cout << "Total number of SubShells: " << transManager->NumberOfShells(Z) <NumberOfReachableShells(Z); G4cout << "Total Probability that a radiative transition occurs: " << transManager->TotalRadiativeTransitionProbability(Z,shellIndex) <TotalNonRadiativeTransitionProbability(Z,shellIndex) <