G4StepPoint.cc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 //
00030 //---------------------------------------------------------------
00031 //
00032 //  G4StepPoint.cc
00033 //
00034 //  Description:
00035 //    This class represents information associated with the
00036 //    each end of a Step like the space/time data of the
00037 //    particle.
00038 //
00039 // Contact:
00040 //   Questions and comments to this code should be sent to
00041 //     Hisaya Kurashige  
00042 //
00043 // ---------------------------------------------------------------
00044 
00045 #include "G4StepPoint.hh"
00046 
00048 G4StepPoint::G4StepPoint()
00050   : fGlobalTime(0.), fLocalTime(0.), fProperTime(0.),
00051     fKineticEnergy(0.), fVelocity(0.), fpTouchable(0), fpMaterial(0),
00052     fpMaterialCutsCouple(0), fpSensitiveDetector(0), fSafety(0.),
00053     fStepStatus(fUndefined),fpProcessDefinedStep(0), 
00054     fMass(0.), fCharge(0.), fMagneticMoment(0.),
00055     fWeight(0.)
00056 {
00057 }
00058 
00060 G4StepPoint::G4StepPoint(const G4StepPoint &right) :
00062   fPosition(right.fPosition),
00063   fGlobalTime(right.fGlobalTime),
00064   fLocalTime(right.fLocalTime),
00065   fProperTime(right.fProperTime),
00066   fMomentumDirection(right.fMomentumDirection),
00067   fKineticEnergy(right.fKineticEnergy),
00068   fVelocity(right.fVelocity),
00069   fpTouchable(right.fpTouchable),
00070   fpMaterial(right.fpMaterial),
00071   fpMaterialCutsCouple(right.fpMaterialCutsCouple),
00072   fpSensitiveDetector(right.fpSensitiveDetector),
00073   fSafety(right.fSafety),
00074   fPolarization(right.fPolarization),
00075   fStepStatus(right.fStepStatus),
00076   fpProcessDefinedStep(right.fpProcessDefinedStep),
00077   fMass(right.fMass),
00078   fCharge(right.fCharge),
00079   fMagneticMoment(right.fMagneticMoment),
00080   fWeight(right.fWeight)
00081 {
00082 }
00083 
00085 G4StepPoint & G4StepPoint::operator=(const G4StepPoint &right)
00086 {
00087   if (this != &right) {
00088     fPosition     = right.fPosition;
00089     fGlobalTime   = right.fGlobalTime;
00090     fLocalTime    = right.fLocalTime;
00091     fProperTime   = right.fProperTime;
00092     fMomentumDirection = right.fMomentumDirection;
00093     fKineticEnergy = right.fKineticEnergy;
00094     fVelocity     = right.fVelocity;
00095     fpTouchable   = right.fpTouchable;
00096     fpMaterial    = right.fpMaterial;
00097     fpMaterialCutsCouple = right.fpMaterialCutsCouple;
00098     fpSensitiveDetector  = right.fpSensitiveDetector;
00099     fSafety       = right.fSafety;
00100     fPolarization = right.fPolarization;
00101     fStepStatus   = right.fStepStatus;
00102     fpProcessDefinedStep = right.fpProcessDefinedStep;
00103     fMass         = right.fMass;
00104     fCharge       = right.fCharge;
00105     fMagneticMoment = right.fMagneticMoment;
00106     fWeight       = right.fWeight;
00107   }
00108   return *this;
00109 }

Generated on Mon May 27 17:49:54 2013 for Geant4 by  doxygen 1.4.7