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.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /track/include/G4StepPoint.hh (Version 11.3.0) and /track/include/G4StepPoint.hh (Version 7.1.p1)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                    <<   3 // * DISCLAIMER                                                       *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th <<   5 // * The following disclaimer summarizes all the specific disclaimers *
  6 // * the Geant4 Collaboration.  It is provided <<   6 // * of contributors to this software. The specific disclaimers,which *
  7 // * conditions of the Geant4 Software License <<   7 // * govern, are listed with their locations in:                      *
  8 // * LICENSE and available at  http://cern.ch/ <<   8 // *   http://cern.ch/geant4/license                                  *
  9 // * include a list of copyright holders.      << 
 10 // *                                                9 // *                                                                  *
 11 // * Neither the authors of this software syst     10 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     11 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     12 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     13 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file  <<  14 // * use.                                                             *
 16 // * for the full disclaimer and the limitatio << 
 17 // *                                               15 // *                                                                  *
 18 // * This  code  implementation is the result  <<  16 // * This  code  implementation is the  intellectual property  of the *
 19 // * technical work of the GEANT4 collaboratio <<  17 // * GEANT4 collaboration.                                            *
 20 // * By using,  copying,  modifying or  distri <<  18 // * By copying,  distributing  or modifying the Program (or any work *
 21 // * any work based  on the software)  you  ag <<  19 // * based  on  the Program)  you indicate  your  acceptance of  this *
 22 // * use  in  resulting  scientific  publicati <<  20 // * statement, and all its terms.                                    *
 23 // * acceptance of all terms of the Geant4 Sof << 
 24 // *******************************************     21 // ********************************************************************
 25 //                                                 22 //
 26 // G4StepPoint                                 << 
 27 //                                                 23 //
 28 // Class description:                          <<  24 // $Id: G4StepPoint.hh,v 1.15 2004/12/02 06:38:01 kurasige Exp $
                                                   >>  25 // GEANT4 tag $Name: geant4-07-00-patch-01 $
 29 //                                                 26 //
 30 // This class represents information associate <<  27 //
 31 // of a Step like the space/time data of the p <<  28 //---------------------------------------------------------------
 32                                                <<  29 //
 33 // Author: Hisaya Kurashige, 16 February 2000  <<  30 // G4StepPoint.hh
 34 // ------------------------------------------- <<  31 //
 35 #ifndef G4StepPoint_hh                         <<  32 // Class Description:
 36 #define G4StepPoint_hh 1                       <<  33 //   This class represents information associated with the
 37                                                <<  34 //   each end of a Step like the space/time data of the
 38 #include <cmath>  // Include from 'system'     <<  35 //   particle.
 39 #include <CLHEP/Units/PhysicalConstants.h>     <<  36 //
 40                                                <<  37 // Contact:
 41 #include "globals.hh"            // Include fr <<  38 //   Questions and comments to this code should be sent to
 42 #include "G4Allocator.hh"        // Include fr <<  39 //     Katsuya Amako  (e-mail: Katsuya.Amako@kek.jp)
 43 #include "G4ThreeVector.hh"      // Include fr <<  40 //     Takashi Sasaki (e-mail: Takashi.Sasaki@kek.jp)
 44 #include "G4VPhysicalVolume.hh"  // Include fr <<  41 //
                                                   >>  42 // ---------------------------------------------------------------
                                                   >>  43 //   Added fpMaterial                       16 FEb. 2000  H.Kurahige
                                                   >>  44 //   Added fpMaterialCutsCouple              8 Oct. 2002  H.Kurahige
                                                   >>  45 
                                                   >>  46 #ifndef G4StepPoint_h
                                                   >>  47 #define G4StepPoint_h 1
                                                   >>  48 
                                                   >>  49 #include "globals.hh"                // Include from 'global'
                                                   >>  50 #include <cmath>                    // Include from 'system'
                                                   >>  51 #include "G4Allocator.hh"            // Include from 'global'
                                                   >>  52 #include "G4ThreeVector.hh"          // Include from 'geometry'
                                                   >>  53 #include "G4VPhysicalVolume.hh"      // Include from 'geometry'
                                                   >>  54 class G4VProcess;
 45 #include "G4SteppingControl.hh"                    55 #include "G4SteppingControl.hh"
 46 #include "G4StepStatus.hh"       // Include fr <<  56 #include "G4StepStatus.hh"           // Include from 'track'
 47 #include "G4TouchableHandle.hh"  // Include fr <<  57 #include "G4TouchableHandle.hh"      // Include from 'geometry'
 48 #include "G4Material.hh"                           58 #include "G4Material.hh"
 49 #include "G4LogicalVolume.hh"                      59 #include "G4LogicalVolume.hh"
 50                                                    60 
 51 class G4VProcess;                              << 
 52 class G4MaterialCutsCouple;                        61 class G4MaterialCutsCouple;
 53 class G4VSensitiveDetector;                        62 class G4VSensitiveDetector;
 54                                                <<  63 /////////////////
 55 class G4StepPoint                                  64 class G4StepPoint
                                                   >>  65 ///////////////// 
 56 {                                                  66 {
 57   public:                                      << 
 58                                                    67 
 59     G4StepPoint() = default;                   <<  68 //--------
 60     ~G4StepPoint()= default;                   <<  69    public:
 61       // Constructor/Destructor                << 
 62                                                << 
 63     G4StepPoint(const G4StepPoint&) = default; << 
 64     G4StepPoint& operator=(const G4StepPoint&) << 
 65       // Copy Constructor and assignment opera << 
 66                                                << 
 67     inline const G4ThreeVector& GetPosition()  << 
 68     inline void SetPosition(const G4ThreeVecto << 
 69     inline void AddPosition(const G4ThreeVecto << 
 70       // Position                              << 
 71                                                << 
 72     inline G4double GetLocalTime() const;      << 
 73     inline void SetLocalTime(const G4double aV << 
 74     inline void AddLocalTime(const G4double aV << 
 75       // Time since the track is created       << 
 76                                                << 
 77     inline G4double GetGlobalTime() const;     << 
 78     inline void SetGlobalTime(const G4double a << 
 79     inline void AddGlobalTime(const G4double a << 
 80       // Time since the event in which the tra << 
 81                                                << 
 82     inline G4double GetProperTime() const;     << 
 83     inline void SetProperTime(const G4double a << 
 84     inline void AddProperTime(const G4double a << 
 85       // Proper time of the particle           << 
 86                                                << 
 87     inline const G4ThreeVector& GetMomentumDir << 
 88     inline void SetMomentumDirection(const G4T << 
 89     inline void AddMomentumDirection(const G4T << 
 90       // Direction of momentum  (should be an  << 
 91                                                    70 
 92     inline G4ThreeVector GetMomentum() const;  << 
 93       // Total momentum of the track           << 
 94                                                    71 
 95     inline G4double GetTotalEnergy() const;    <<  72 // Constructor/Destructor
 96       // Total energy of the track             <<  73    G4StepPoint();
 97                                                    74 
 98     inline G4double GetKineticEnergy() const;  <<  75    ~G4StepPoint(){};
 99     inline void SetKineticEnergy(const G4doubl << 
100     inline void AddKineticEnergy(const G4doubl << 
101       // Kinetic Energy of the track           << 
102                                                    76 
103     inline G4double GetVelocity() const;       <<  77 //--------
104     inline void SetVelocity(G4double v);       <<  78    
105       // Velocity                              <<  79   public: // with description 
                                                   >>  80 
                                                   >>  81 // Get/Set functions
                                                   >>  82   const G4ThreeVector& GetPosition() const;
                                                   >>  83   void SetPosition(const G4ThreeVector& aValue);
                                                   >>  84   void AddPosition(const G4ThreeVector& aValue);
                                                   >>  85 
                                                   >>  86   G4double GetLocalTime() const;
                                                   >>  87   void SetLocalTime(const G4double aValue);
                                                   >>  88   void AddLocalTime(const G4double aValue);
                                                   >>  89       // Time since the track is created.
                                                   >>  90      
                                                   >>  91   G4double GetGlobalTime() const;
                                                   >>  92   void SetGlobalTime(const G4double aValue);
                                                   >>  93   void AddGlobalTime(const G4double aValue);
                                                   >>  94       // Time since the event in which the track belongs is created.
                                                   >>  95      
                                                   >>  96   G4double GetProperTime() const;
                                                   >>  97   void SetProperTime(const G4double aValue);
                                                   >>  98   void AddProperTime(const G4double aValue);
                                                   >>  99       // Proper time of the particle.
                                                   >> 100      
                                                   >> 101   const G4ThreeVector& GetMomentumDirection() const;
                                                   >> 102   void SetMomentumDirection(const G4ThreeVector& aValue);
                                                   >> 103   void AddMomentumDirection(const G4ThreeVector& aValue);
                                                   >> 104      // Direction of momentum  (should be an unit vector)
                                                   >> 105     
                                                   >> 106   G4ThreeVector GetMomentum() const;
                                                   >> 107       // Total momentum of the track
106                                                   108 
107     inline G4double GetBeta() const;           << 109   
108       // Velocity of the track in unit of c(li << 110   G4double GetTotalEnergy() const;
                                                   >> 111      // Total energy of the track
109                                                   112 
110     inline G4double GetGamma() const;          << 113   G4double GetKineticEnergy() const;
111       // Gamma factor (1/sqrt[1-beta*beta]) of << 114   void SetKineticEnergy(const G4double aValue);
                                                   >> 115   void AddKineticEnergy(const G4double aValue);
                                                   >> 116      // Kinetic Energy of the track
112                                                   117 
113     inline G4VPhysicalVolume* GetPhysicalVolum << 118   G4double GetVelocity() const;
                                                   >> 119   void SetVelocity(G4double v);
                                                   >> 120    //
114                                                   121 
115     inline const G4VTouchable* GetTouchable()  << 122   G4double GetBeta() const;
116     inline const G4TouchableHandle& GetTouchab << 123     // Velocity of the track in unit of c(light velocity)
117     inline void SetTouchableHandle(const G4Tou << 
118                                                   124 
119     inline G4Material* GetMaterial() const;    << 125   G4double GetGamma() const;
120     inline void SetMaterial(G4Material*);      << 126      // Gamma factor (1/sqrt[1-beta*beta]) of the track    
121                                                   127 
122     inline const G4MaterialCutsCouple* GetMate << 128   G4VPhysicalVolume* GetPhysicalVolume() const;
123     inline void SetMaterialCutsCouple(const G4 << 
124                                                   129 
125     inline G4VSensitiveDetector* GetSensitiveD << 130   const G4VTouchable* GetTouchable() const;
126     inline void SetSensitiveDetector(G4VSensit << 131   const G4TouchableHandle& GetTouchableHandle() const;
                                                   >> 132   void  SetTouchableHandle(const G4TouchableHandle& apValue);
127                                                   133 
128     inline G4double GetSafety() const;         << 134   G4Material* GetMaterial() const;
129     inline void SetSafety(const G4double aValu << 135   void SetMaterial(G4Material*);
130                                                   136 
131     inline const G4ThreeVector& GetPolarizatio << 137   const G4MaterialCutsCouple* GetMaterialCutsCouple() const;
132     inline void SetPolarization(const G4ThreeV << 138   void SetMaterialCutsCouple(const G4MaterialCutsCouple*);
133     inline void AddPolarization(const G4ThreeV << 
134                                                   139 
135     inline G4StepStatus GetStepStatus() const; << 140   G4VSensitiveDetector* GetSensitiveDetector() const;
136     inline void SetStepStatus(const G4StepStat << 141   void SetSensitiveDetector(G4VSensitiveDetector*);
137                                                   142 
138     inline const G4VProcess* GetProcessDefined << 143   G4double GetSafety() const;
139       // If the pointer is 0, this means the S << 144   void SetSafety(const G4double aValue);
140       // by the user defined limit in the curr << 
141     inline void SetProcessDefinedStep(const G4 << 
142                                                   145 
143     inline G4double GetMass() const;           << 146   const G4ThreeVector& GetPolarization() const;
144     inline void SetMass(G4double value);       << 147   void SetPolarization(const G4ThreeVector& aValue);
                                                   >> 148   void AddPolarization(const G4ThreeVector& aValue);
145                                                   149 
146     inline G4double GetCharge() const;         << 150   G4StepStatus GetStepStatus() const;
147     inline void SetCharge(G4double value);     << 151   void SetStepStatus(const G4StepStatus aValue);
148                                                   152 
149     inline G4double GetMagneticMoment() const; << 153   const G4VProcess* GetProcessDefinedStep() const;
150     inline void SetMagneticMoment(G4double val << 154      // If the pointer is 0, this means the Step is defined
                                                   >> 155      // by the user defined limit in the current volume.
                                                   >> 156   void SetProcessDefinedStep(G4VProcess* aValue);
151                                                   157 
152     inline void SetWeight(G4double aValue);    << 158   
153     inline G4double GetWeight() const;         << 159   G4double GetMass() const;
                                                   >> 160   void SetMass(G4double value);
154                                                   161 
155   private:                                     << 162   G4double GetCharge() const;
                                                   >> 163   void SetCharge(G4double value);
156                                                   164 
157     G4ThreeVector fPosition;                   << 165   void SetWeight(G4double aValue);
158     G4double fGlobalTime = 0.0;                << 166   G4double GetWeight() const;
                                                   >> 167 
                                                   >> 168   public:
                                                   >> 169   // copy constructor and assignment operaor as protected
                                                   >> 170   G4StepPoint(const G4StepPoint &right);
                                                   >> 171   G4StepPoint & operator=(const G4StepPoint &right);
                                                   >> 172 
                                                   >> 173   
                                                   >> 174 
                                                   >> 175 //---------
                                                   >> 176    private:
                                                   >> 177 //---------
                                                   >> 178 
                                                   >> 179 // Member data
                                                   >> 180    G4ThreeVector fPosition;
                                                   >> 181    G4double fGlobalTime;         
159       // Time since event is created              182       // Time since event is created
160     G4double fLocalTime = 0.0;                 << 183    G4double fLocalTime;          
161       // Time since track is created              184       // Time since track is created
162     G4double fProperTime = 0.0;                << 185    G4double fProperTime;          
163       // Time since track is created (in rest     186       // Time since track is created (in rest frame of particle)
164     G4ThreeVector fMomentumDirection;          << 187    G4ThreeVector fMomentumDirection;
165     G4double fKineticEnergy = 0.0;             << 188    G4double fKineticEnergy;
166     G4double fVelocity = 0.0;                  << 189    G4double fVelocity; 
167       // Momentum,energy and velocity          << 190       //  Momentum,energy and velocity
168     G4TouchableHandle fpTouchable;             << 191    G4TouchableHandle fpTouchable;
169       // Touchable Handle                      << 192       //  Touchable Handle  
170     G4Material* fpMaterial = nullptr;          << 193    G4Material* fpMaterial;
171       // Material of the volmue                   194       // Material of the volmue
172     const G4MaterialCutsCouple* fpMaterialCuts << 195    const G4MaterialCutsCouple* fpMaterialCutsCouple;
173       // MaterialCutsCouple of the volmue         196       // MaterialCutsCouple of the volmue
174     G4VSensitiveDetector* fpSensitiveDetector  << 197    G4VSensitiveDetector* fpSensitiveDetector;
175     G4double fSafety = 0.0;                    << 198    G4double fSafety;
176     G4ThreeVector fPolarization;               << 199    G4ThreeVector fPolarization;
177     G4StepStatus fStepStatus = fUndefined;     << 200    G4StepStatus fStepStatus;
178       // DoIt type which defined the current S    201       // DoIt type which defined the current Step.
179     const G4VProcess* fpProcessDefinedStep = n << 202    G4VProcess* fpProcessDefinedStep;
180       // Process which defined the current Ste    203       // Process which defined the current Step.
181     G4double fMass = 0.0;                      << 204    G4double fMass;
182       // Dynamical mass of the particle           205       // Dynamical mass of the particle
183     G4double fCharge = 0.0;                    << 206    G4double fCharge;
184       // Dynamical Charge of the particle         207       // Dynamical Charge of the particle
185     G4double fMagneticMoment = 0.0;            << 208    G4double fWeight;
186       // Dynamical MagneticMoment of the parti << 
187     G4double fWeight = 0.0;                    << 
188       // Track Weight                             209       // Track Weight
189 };                                                210 };
190                                                   211 
191 #include "G4StepPoint.icc"                        212 #include "G4StepPoint.icc"
192                                                << 
193 #endif                                            213 #endif
                                                   >> 214 
194                                                   215