Import Geant4 3.0.0 source tree
This commit is contained in:
@@ -1,13 +1,64 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Conic.cc,v 1.5 2000/11/20 17:54:39 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// GEANT 4 class source file
|
||||
//
|
||||
// G4conic.cc
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
#include "G4Conic.hh"
|
||||
// G4Conic
|
||||
|
||||
G4Conic::G4Conic (): pShift(0) {}
|
||||
G4Conic::~G4Conic() {}
|
||||
G4Conic::G4Conic () : pShift(0)
|
||||
{
|
||||
}
|
||||
|
||||
G4Conic::~G4Conic()
|
||||
{
|
||||
}
|
||||
|
||||
G4Conic::G4Conic(const G4Conic& right)
|
||||
: position(right.position), pShift(right.pShift)
|
||||
{
|
||||
bBox = right.bBox;
|
||||
start = right.start;
|
||||
end = right.end;
|
||||
pStart = right.pStart;
|
||||
pEnd = right.pEnd;
|
||||
pRange = right.pRange;
|
||||
bounded = right.bounded;
|
||||
sameSense = right.sameSense;
|
||||
}
|
||||
|
||||
G4Conic& G4Conic::operator=(const G4Conic& right)
|
||||
{
|
||||
if (&right == this) return *this;
|
||||
|
||||
pShift = right.pShift;
|
||||
position = right.position;
|
||||
bBox = right.bBox;
|
||||
start = right.start;
|
||||
end = right.end;
|
||||
pStart = right.pStart;
|
||||
pEnd = right.pEnd;
|
||||
pRange = right.pRange;
|
||||
bounded = right.bounded;
|
||||
sameSense = right.sameSense;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
/*
|
||||
void G4ConicalCurve::ProjectCurve(const G4Plane& Pl1, const G4Plane& Pl2)
|
||||
void
|
||||
G4ConicalCurve::ProjectCurve(const G4Plane& Pl1, const G4Plane& Pl2)
|
||||
{
|
||||
// Curve start
|
||||
Project(ProjStart, Start, Pl1, Pl2);
|
||||
@@ -17,7 +68,9 @@ void G4ConicalCurve::ProjectCurve(const G4Plane& Pl1, const G4Plane& Pl2)
|
||||
Position.ProjectPlacement(Pl1,Pl2);
|
||||
}
|
||||
|
||||
int G4ConicalCurve::HitPartOfCurve(G4double Angle, G4double Solution, const G4Point2d& ProjHit)
|
||||
G4int
|
||||
G4ConicalCurve::HitPartOfCurve(G4double Angle, G4double Solution,
|
||||
const G4Point2d& ProjHit)
|
||||
{
|
||||
// Check if Solution1 is part of the curve i.e. in the "pie"
|
||||
G4double TmpSol1 = Solution - ProjHit.X();
|
||||
|
||||
Reference in New Issue
Block a user