|
|
|||
File indexing completed on 2026-03-31 07:50:34
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 // 0026 /// \file TimeStepAction.cc 0027 /// \brief Implementation of the scavenger::TimeStepAction class 0028 0029 #include "TimeStepAction.hh" 0030 0031 #include "G4SystemOfUnits.hh" 0032 #include "G4UnitsTable.hh" 0033 0034 namespace scavenger 0035 { 0036 0037 TimeStepAction::TimeStepAction() : G4UserTimeStepAction() 0038 { 0039 /** 0040 * Give to G4ITTimeStepper the user defined time steps 0041 * eg : from 1 picosecond to 10 picosecond, the minimum time 0042 * step that the TimeStepper can returned is 0.1 picosecond. 0043 * Those time steps are used for the chemistry of G4DNA 0044 * This method is not recommended for IRT method 0045 */ 0046 /* 0047 AddTimeStep(1*picosecond, 0.3*picosecond); 0048 AddTimeStep(10*picosecond, 1*picosecond); 0049 AddTimeStep(100*picosecond, 3*picosecond); 0050 AddTimeStep(1000*picosecond, 10*picosecond); 0051 AddTimeStep(10000*picosecond, 100*picosecond); 0052 */ 0053 } 0054 0055 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0056 0057 TimeStepAction::~TimeStepAction() {} 0058 0059 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0060 0061 TimeStepAction::TimeStepAction(const TimeStepAction& other) : G4UserTimeStepAction(other) {} 0062 0063 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0064 0065 TimeStepAction& TimeStepAction::operator=(const TimeStepAction& rhs) 0066 { 0067 if (this == &rhs) return *this; // handle self assignment 0068 // assignment operator 0069 return *this; 0070 } 0071 0072 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0073 void TimeStepAction::UserPreTimeStepAction() {} 0074 0075 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0076 0077 void TimeStepAction::UserPostTimeStepAction() {} 0078 0079 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0080 0081 void TimeStepAction::Clear() {} 0082 0083 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0084 0085 void TimeStepAction::UserReactionAction(const G4Track& /*trackA*/, const G4Track& /*trackB*/, 0086 const std::vector<G4Track*>* /*products*/) 0087 { 0088 // G4cout<<trackA.GetTrackID()<<" + "<<trackB.GetTrackID()<<'\n'; 0089 } 0090 0091 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 0092 0093 } // 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 |
|