Import Geant4 11.0.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2021-06-25 16:12:29 +02:00
parent c968e26a39
commit 6399a014b6
4200 changed files with 207479 additions and 237366 deletions
@@ -43,91 +43,83 @@
#include "G4Vector3D.hh"
#include "G4ErrorTrajErr.hh"
enum G4eTSType{ G4eTS_FREE, G4eTS_OS };
enum G4eTSType
{
G4eTS_FREE,
G4eTS_OS
};
class G4ErrorTrajState
{
public: // with description
G4ErrorTrajState()
: fCharge(0.)
, theG4Track(0)
, iverbose(0)
{}
G4ErrorTrajState() : fCharge(0.), theG4Track(0), iverbose(0) {}
G4ErrorTrajState( const G4String& partType, const G4Point3D& pos,
const G4Vector3D& mom,
const G4ErrorTrajErr& errmat = G4ErrorTrajErr(5,0) );
// Constructor by providing particle, position and momentum
G4ErrorTrajState(const G4String& partType, const G4Point3D& pos,
const G4Vector3D& mom,
const G4ErrorTrajErr& errmat = G4ErrorTrajErr(5, 0));
// Constructor by providing particle, position and momentum
G4ErrorTrajState(const G4ErrorTrajState&);
G4ErrorTrajState(G4ErrorTrajState&&);
// The copy and move constructors
// The copy and move constructors
virtual ~G4ErrorTrajState(){}
virtual ~G4ErrorTrajState() {}
G4ErrorTrajState& operator = (const G4ErrorTrajState&);
G4ErrorTrajState& operator = (G4ErrorTrajState&&);
// The copy and move assignment operators
G4ErrorTrajState& operator=(const G4ErrorTrajState&);
G4ErrorTrajState& operator=(G4ErrorTrajState&&);
// The copy and move assignment operators
void SetData( const G4String& partType, const G4Point3D& pos,
const G4Vector3D& mom );
// Set particle, position and momentum
void SetData(const G4String& partType, const G4Point3D& pos,
const G4Vector3D& mom);
// Set particle, position and momentum
void BuildCharge();
// Build charge based on particle type
// Build charge based on particle type
friend
std::ostream& operator<<(std::ostream&, const G4ErrorTrajState& ts);
friend std::ostream& operator<<(std::ostream&, const G4ErrorTrajState& ts);
virtual G4int PropagateError( const G4Track* );
// Propagate the error along the step
virtual G4int PropagateError(const G4Track*);
// Propagate the error along the step
virtual G4int Update( const G4Track* ){ return -1; }
// Update parameters from G4Track
void UpdatePosMom( const G4Point3D& pos, const G4Vector3D& mom );
// Update position and momentum
virtual G4int Update(const G4Track*) { return -1; }
// Update parameters from G4Track
void DumpPosMomError( std::ostream& out = G4cout ) const;
// Dump position, momentum and error
void UpdatePosMom(const G4Point3D& pos, const G4Vector3D& mom);
// Update position and momentum
virtual void Dump( std::ostream& out = G4cout ) const = 0;
// Abstract method to dump all TrajState parameters
// Set and Get methods
void DumpPosMomError(std::ostream& out = G4cout) const;
// Dump position, momentum and error
const G4String& GetParticleType() const
{ return fParticleType;}
void SetParticleType( const G4String& partType )
{ fParticleType = partType;}
virtual void Dump(std::ostream& out = G4cout) const = 0;
// Abstract method to dump all TrajState parameters
G4Point3D GetPosition() const
{ return fPosition; }
virtual void SetPosition( const G4Point3D pos )
{ fPosition = pos; }
// Set and Get methods
G4Vector3D GetMomentum() const
{ return fMomentum; }
virtual void SetMomentum( const G4Vector3D& mom )
{ fMomentum = mom; }
const G4String& GetParticleType() const { return fParticleType; }
void SetParticleType(const G4String& partType) { fParticleType = partType; }
G4ErrorTrajErr GetError() const
{ return fError; }
virtual void SetError( G4ErrorTrajErr em )
{ fError = em; }
G4Point3D GetPosition() const { return fPosition; }
virtual void SetPosition(const G4Point3D pos) { fPosition = pos; }
G4Track* GetG4Track() const
{ return theG4Track; }
void SetG4Track( G4Track* trk )
{ theG4Track = trk; }
G4Vector3D GetMomentum() const { return fMomentum; }
virtual void SetMomentum(const G4Vector3D& mom) { fMomentum = mom; }
G4double GetCharge() const
{ return fCharge; }
void SetCharge( G4double ch )
{ fCharge = ch; }
G4ErrorTrajErr GetError() const { return fError; }
virtual void SetError(G4ErrorTrajErr em) { fError = em; }
virtual G4eTSType GetTSType() const
{ return theTSType; }
G4Track* GetG4Track() const { return theG4Track; }
void SetG4Track(G4Track* trk) { theG4Track = trk; }
G4double GetCharge() const { return fCharge; }
void SetCharge(G4double ch) { fCharge = ch; }
virtual G4eTSType GetTSType() const { return theTSType; }
protected:
G4String fParticleType;
G4Point3D fPosition;
G4Vector3D fMomentum;