![]() |
|
|||
File indexing completed on 2025-04-10 08:06:46
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 /// \file scavenger/src/TimeStepAction.cc 0026 /// \brief Implementation of the scavenger::TimeStepAction class 0027 0028 #include "TimeStepAction.hh" 0029 0030 #include "G4SystemOfUnits.hh" 0031 #include "G4UnitsTable.hh" 0032 0033 namespace scavenger 0034 { 0035 0036 TimeStepAction::TimeStepAction() : G4UserTimeStepAction() 0037 { 0038 /** 0039 * Give to G4ITTimeStepper the user defined time steps 0040 * eg : from 1 picosecond to 10 picosecond, the minimum time 0041 * step that the TimeStepper can returned is 0.1 picosecond. 0042 * Those time steps are used for the chemistry of G4DNA 0043 * This method is not recommended for IRT method 0044 */ 0045 /* 0046 AddTimeStep(1*picosecond, 0.3*picosecond); 0047 AddTimeStep(10*picosecond, 1*picosecond); 0048 AddTimeStep(100*picosecond, 3*picosecond); 0049 AddTimeStep(1000*picosecond, 10*picosecond); 0050 AddTimeStep(10000*picosecond, 100*picosecond); 0051 */ 0052 } 0053 0054 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0055 0056 TimeStepAction::~TimeStepAction() {} 0057 0058 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0059 0060 TimeStepAction::TimeStepAction(const TimeStepAction& other) : G4UserTimeStepAction(other) {} 0061 0062 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0063 0064 TimeStepAction& TimeStepAction::operator=(const TimeStepAction& rhs) 0065 { 0066 if (this == &rhs) return *this; // handle self assignment 0067 // assignment operator 0068 return *this; 0069 } 0070 0071 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0072 void TimeStepAction::UserPreTimeStepAction() {} 0073 0074 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0075 0076 void TimeStepAction::UserPostTimeStepAction() {} 0077 0078 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0079 0080 void TimeStepAction::Clear() {} 0081 0082 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0083 0084 void TimeStepAction::UserReactionAction(const G4Track& /*trackA*/, const G4Track& /*trackB*/, 0085 const std::vector<G4Track*>* /*products*/) 0086 { 0087 // G4cout<<trackA.GetTrackID()<<" + "<<trackB.GetTrackID()<<'\n'; 0088 } 0089 0090 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0091 0092 } // namespace scavenger
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |