Import Geant4 11.0.0.beta source tree
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
|
||||
// History:
|
||||
//
|
||||
// - Created: P. Arce
|
||||
// - Created: P. Arce
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
#ifndef G4ErrorSurfaceTrajState_hh
|
||||
@@ -54,80 +54,77 @@
|
||||
|
||||
class G4ErrorSurfaceTrajState : public G4ErrorTrajState
|
||||
{
|
||||
|
||||
public: // with description
|
||||
G4ErrorSurfaceTrajState(const G4String& partType, const G4Point3D& pos,
|
||||
const G4Vector3D& mom, const G4Plane3D& plane,
|
||||
const G4ErrorTrajErr& errmat = G4ErrorTrajErr(5, 0));
|
||||
// Constructor by providing particle, position, momentum and
|
||||
// G4Plane3D surface
|
||||
|
||||
G4ErrorSurfaceTrajState( const G4String& partType, const G4Point3D& pos,
|
||||
const G4Vector3D& mom, const G4Plane3D& plane,
|
||||
const G4ErrorTrajErr& errmat = G4ErrorTrajErr(5,0) );
|
||||
// Constructor by providing particle, position, momentum and
|
||||
// G4Plane3D surface
|
||||
G4ErrorSurfaceTrajState(const G4String& partType, const G4Point3D& pos,
|
||||
const G4Vector3D& mom, const G4Vector3D& vecV,
|
||||
const G4Vector3D& vecW,
|
||||
const G4ErrorTrajErr& errmat = G4ErrorTrajErr(5, 0));
|
||||
// Constructor by providing particle, position, momentum and
|
||||
// two vectors on surface
|
||||
|
||||
G4ErrorSurfaceTrajState( const G4String& partType, const G4Point3D& pos,
|
||||
const G4Vector3D& mom, const G4Vector3D& vecV,
|
||||
const G4Vector3D& vecW,
|
||||
const G4ErrorTrajErr& errmat = G4ErrorTrajErr(5,0) );
|
||||
// Constructor by providing particle, position, momentum and
|
||||
// two vectors on surface
|
||||
G4ErrorSurfaceTrajState(G4ErrorFreeTrajState& tpSC, const G4Plane3D& plane);
|
||||
// Constructor by providing G4ErrorFreeTrajState and G4Plane3D surface
|
||||
|
||||
G4ErrorSurfaceTrajState( G4ErrorFreeTrajState& tpSC, const G4Plane3D& plane );
|
||||
// Constructor by providing G4ErrorFreeTrajState and G4Plane3D surface
|
||||
G4ErrorSurfaceTrajState(G4ErrorFreeTrajState& tpSC, const G4Vector3D& vecV,
|
||||
const G4Vector3D& vecW, G4ErrorMatrix& transfM);
|
||||
// Constructor by providing G4ErrorFreeTrajState and two vectors on surface
|
||||
|
||||
G4ErrorSurfaceTrajState( G4ErrorFreeTrajState& tpSC, const G4Vector3D& vecV,
|
||||
const G4Vector3D& vecW , G4ErrorMatrix &transfM);
|
||||
// Constructor by providing G4ErrorFreeTrajState and two vectors on surface
|
||||
~G4ErrorSurfaceTrajState() {}
|
||||
G4ErrorMatrix BuildErrorMatrix(G4ErrorFreeTrajState& tpSC,
|
||||
const G4Vector3D& vecV,
|
||||
const G4Vector3D& vecW);
|
||||
// Build the error matrix from a free state plus the vectors of the surface
|
||||
|
||||
~G4ErrorSurfaceTrajState(){}
|
||||
G4ErrorMatrix BuildErrorMatrix( G4ErrorFreeTrajState& tpSC, const G4Vector3D& vecV,
|
||||
const G4Vector3D& vecW );
|
||||
// Build the error matrix from a free state plus the vectors of the surface
|
||||
virtual void Dump(std::ostream& out = G4cout) const;
|
||||
|
||||
virtual void Dump( std::ostream& out = G4cout ) const;
|
||||
friend std::ostream& operator<<(std::ostream&,
|
||||
const G4ErrorSurfaceTrajState& ts);
|
||||
|
||||
friend
|
||||
std::ostream& operator<<(std::ostream&, const G4ErrorSurfaceTrajState& ts);
|
||||
// Set and Get methods
|
||||
|
||||
// Set and Get methods
|
||||
G4ErrorSurfaceTrajParam GetParameters() const { return fTrajParam; }
|
||||
void SetParameters(const G4Point3D& pos, const G4Vector3D& mom,
|
||||
const G4Vector3D& vecV, const G4Vector3D& vecW)
|
||||
{
|
||||
fPosition = pos;
|
||||
fMomentum = mom;
|
||||
fTrajParam.SetParameters(pos, mom, vecV, vecW);
|
||||
}
|
||||
|
||||
G4ErrorSurfaceTrajParam GetParameters() const
|
||||
{ return fTrajParam; }
|
||||
void SetParameters( const G4Point3D& pos, const G4Vector3D& mom,
|
||||
const G4Vector3D& vecV, const G4Vector3D& vecW )
|
||||
{
|
||||
fPosition = pos;
|
||||
fMomentum = mom;
|
||||
fTrajParam.SetParameters( pos, mom, vecV, vecW );
|
||||
}
|
||||
void SetParameters(const G4Point3D& pos, const G4Vector3D& mom,
|
||||
const G4Plane3D& plane)
|
||||
{
|
||||
fPosition = pos;
|
||||
fMomentum = mom;
|
||||
fTrajParam.SetParameters(pos, mom, plane);
|
||||
}
|
||||
|
||||
void SetParameters( const G4Point3D& pos, const G4Vector3D& mom,
|
||||
const G4Plane3D& plane )
|
||||
{
|
||||
fPosition = pos;
|
||||
fMomentum = mom;
|
||||
fTrajParam.SetParameters( pos, mom, plane );
|
||||
}
|
||||
G4Vector3D GetVectorV() const { return fTrajParam.GetVectorV(); }
|
||||
|
||||
G4Vector3D GetVectorV() const
|
||||
{ return fTrajParam.GetVectorV(); }
|
||||
G4Vector3D GetVectorW() const { return fTrajParam.GetVectorW(); }
|
||||
|
||||
G4Vector3D GetVectorW() const
|
||||
{ return fTrajParam.GetVectorW(); }
|
||||
virtual void SetPosition(const G4Point3D pos)
|
||||
{
|
||||
SetParameters(pos, fMomentum, GetVectorV(), GetVectorW());
|
||||
}
|
||||
|
||||
virtual void SetPosition( const G4Point3D pos )
|
||||
{ SetParameters( pos, fMomentum, GetVectorV(), GetVectorW() ); }
|
||||
virtual void SetMomentum(const G4Vector3D& mom)
|
||||
{
|
||||
SetParameters(fPosition, mom, GetVectorV(), GetVectorW());
|
||||
}
|
||||
|
||||
virtual void SetMomentum( const G4Vector3D& mom )
|
||||
{ SetParameters( fPosition, mom, GetVectorV(), GetVectorW() ); }
|
||||
|
||||
private:
|
||||
|
||||
void Init();
|
||||
// Define Trajectory State type and build charge
|
||||
// Define Trajectory State type and build charge
|
||||
|
||||
private:
|
||||
|
||||
G4ErrorSurfaceTrajParam fTrajParam;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user