Import Geant4 11.4.0.beta source tree
This commit is contained in:
@@ -100,7 +100,8 @@ G4RichTrajectory::G4RichTrajectory(const G4Track* aTrack)
|
||||
fpRichPointContainer->push_back(new G4RichTrajectoryPoint(aTrack));
|
||||
}
|
||||
|
||||
G4RichTrajectory::G4RichTrajectory(G4RichTrajectory& right)
|
||||
G4RichTrajectory::G4RichTrajectory(G4RichTrajectory& right)
|
||||
: G4VTrajectory()
|
||||
{
|
||||
ParticleName = right.ParticleName;
|
||||
PDGCharge = right.PDGCharge;
|
||||
|
||||
@@ -82,6 +82,7 @@ G4SmoothTrajectory::G4SmoothTrajectory(const G4Track* aTrack)
|
||||
}
|
||||
|
||||
G4SmoothTrajectory::G4SmoothTrajectory(G4SmoothTrajectory& right)
|
||||
: G4VTrajectory()
|
||||
{
|
||||
ParticleName = right.ParticleName;
|
||||
PDGCharge = right.PDGCharge;
|
||||
|
||||
@@ -58,7 +58,8 @@ G4SmoothTrajectoryPoint::G4SmoothTrajectoryPoint(
|
||||
{}
|
||||
|
||||
G4SmoothTrajectoryPoint::G4SmoothTrajectoryPoint(const G4SmoothTrajectoryPoint& right)
|
||||
: fPosition(right.fPosition), fAuxiliaryPointVector(right.fAuxiliaryPointVector)
|
||||
: G4VTrajectoryPoint(),
|
||||
fPosition(right.fPosition), fAuxiliaryPointVector(right.fAuxiliaryPointVector)
|
||||
{}
|
||||
|
||||
G4SmoothTrajectoryPoint::~G4SmoothTrajectoryPoint() { delete fAuxiliaryPointVector; }
|
||||
|
||||
@@ -76,6 +76,7 @@ G4Trajectory::G4Trajectory(const G4Track* aTrack)
|
||||
}
|
||||
|
||||
G4Trajectory::G4Trajectory(G4Trajectory& right)
|
||||
: G4VTrajectory()
|
||||
{
|
||||
ParticleName = right.ParticleName;
|
||||
PDGCharge = right.PDGCharge;
|
||||
|
||||
@@ -57,7 +57,9 @@ G4Allocator<G4TrajectoryPoint>*& masterTrajectoryPointAllocator()
|
||||
|
||||
G4TrajectoryPoint::G4TrajectoryPoint(G4ThreeVector pos) { fPosition = pos; }
|
||||
|
||||
G4TrajectoryPoint::G4TrajectoryPoint(const G4TrajectoryPoint& right) : fPosition(right.fPosition) {}
|
||||
G4TrajectoryPoint::G4TrajectoryPoint(const G4TrajectoryPoint& right)
|
||||
: G4VTrajectoryPoint(),
|
||||
fPosition(right.fPosition) {}
|
||||
|
||||
G4TrajectoryPoint::~G4TrajectoryPoint() = default;
|
||||
|
||||
|
||||
@@ -113,3 +113,10 @@ void G4VTrajectory::DrawTrajectory() const
|
||||
pVVisManager->DispatchToModel(*this);
|
||||
}
|
||||
}
|
||||
|
||||
std::shared_ptr<std::vector<G4AttValue>> G4VTrajectory::GetAttValues() const {
|
||||
if (!fpAttValues) {
|
||||
fpAttValues = std::make_shared<std::vector<G4AttValue>>(*CreateAttValues());
|
||||
}
|
||||
return fpAttValues;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// G4VTrajectoryPoint class implementation
|
||||
//
|
||||
// Contact:
|
||||
// Questions and comments to this code should be sent to
|
||||
// Katsuya Amako (e-mail: Katsuya.Amako@kek.jp)
|
||||
// Makoto Asai (e-mail: asai@slac.stanford.edu)
|
||||
// Takashi Sasaki (e-mail: Takashi.Sasaki@kek.jp)
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
#include "G4VTrajectoryPoint.hh"
|
||||
|
||||
#include "G4AttValue.hh"
|
||||
|
||||
std::shared_ptr<std::vector<G4AttValue>> G4VTrajectoryPoint::GetAttValues() const {
|
||||
if (!fpAttValues) {
|
||||
fpAttValues = std::make_shared<std::vector<G4AttValue>>(*CreateAttValues());
|
||||
}
|
||||
return fpAttValues;
|
||||
}
|
||||
Reference in New Issue
Block a user