Import Geant4 8.0.0 source tree
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include "CLHEP/Vector/LorentzVector.h"
|
||||
#include "G4LorentzVector.hh"
|
||||
|
||||
// ====================================================================
|
||||
//
|
||||
@@ -52,16 +52,16 @@ protected:
|
||||
int trackID;
|
||||
int parentTrackID;
|
||||
G4bool primaryFlag;
|
||||
HepLorentzVector momentumAtVertex;
|
||||
G4LorentzVector momentumAtVertex;
|
||||
G4MCTSimVertex* vertex;
|
||||
G4bool storeFlag;
|
||||
|
||||
public:
|
||||
G4MCTSimParticle();
|
||||
G4MCTSimParticle(std::string aname, int apcode, int atid, int ptid,
|
||||
const HepLorentzVector& p);
|
||||
const G4LorentzVector& p);
|
||||
G4MCTSimParticle(std::string aname, int apcode, int atid, int ptid,
|
||||
const HepLorentzVector& p, const G4MCTSimVertex* v);
|
||||
const G4LorentzVector& p, const G4MCTSimVertex* v);
|
||||
virtual ~G4MCTSimParticle();
|
||||
|
||||
// copy constructor and assignment operator
|
||||
@@ -87,8 +87,8 @@ public:
|
||||
void SetPrimaryFlag(G4bool q);
|
||||
G4bool GetPrimaryFlag() const;
|
||||
|
||||
void SetMomentumAtVertex(const HepLorentzVector& p);
|
||||
const HepLorentzVector& GetMomentumAtVertex() const;
|
||||
void SetMomentumAtVertex(const G4LorentzVector& p);
|
||||
const G4LorentzVector& GetMomentumAtVertex() const;
|
||||
|
||||
void SetVertex(const G4MCTSimVertex* v);
|
||||
G4MCTSimVertex* GetVertex() const;
|
||||
@@ -162,10 +162,10 @@ inline void G4MCTSimParticle::SetParentTrackID(int id)
|
||||
inline int G4MCTSimParticle::GetParentTrackID() const
|
||||
{ return parentTrackID; }
|
||||
|
||||
inline void G4MCTSimParticle::SetMomentumAtVertex(const HepLorentzVector& p)
|
||||
inline void G4MCTSimParticle::SetMomentumAtVertex(const G4LorentzVector& p)
|
||||
{ momentumAtVertex= p; }
|
||||
|
||||
inline const HepLorentzVector& G4MCTSimParticle::GetMomentumAtVertex() const
|
||||
inline const G4LorentzVector& G4MCTSimParticle::GetMomentumAtVertex() const
|
||||
{ return momentumAtVertex; }
|
||||
|
||||
inline void G4MCTSimParticle::SetVertex(const G4MCTSimVertex* v)
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include "CLHEP/Vector/ThreeVector.h"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4MCTSimParticle.hh"
|
||||
|
||||
// ====================================================================
|
||||
@@ -45,7 +45,7 @@ private:
|
||||
std::vector<int> outParticleTrackIDList;
|
||||
|
||||
int id; // assigned independently from G4
|
||||
Hep3Vector position;
|
||||
G4ThreeVector position;
|
||||
double time;
|
||||
std::string volumeName;
|
||||
int volumeNumber;
|
||||
@@ -54,8 +54,8 @@ private:
|
||||
|
||||
public:
|
||||
G4MCTSimVertex();
|
||||
G4MCTSimVertex(const Hep3Vector& x, double t);
|
||||
G4MCTSimVertex(const Hep3Vector& x, double t,
|
||||
G4MCTSimVertex(const G4ThreeVector& x, double t);
|
||||
G4MCTSimVertex(const G4ThreeVector& x, double t,
|
||||
std::string vname, int ncopy, std::string pname);
|
||||
~G4MCTSimVertex();
|
||||
|
||||
@@ -67,8 +67,8 @@ public:
|
||||
void SetID(int i);
|
||||
int GetID() const;
|
||||
|
||||
void SetPosition(const Hep3Vector& x);
|
||||
const Hep3Vector& GetPosition() const;
|
||||
void SetPosition(const G4ThreeVector& x);
|
||||
const G4ThreeVector& GetPosition() const;
|
||||
|
||||
void SetTime(double t);
|
||||
double GetTime() const;
|
||||
@@ -125,10 +125,10 @@ inline const G4MCTSimVertex&
|
||||
inline void G4MCTSimVertex::SetID(int i) { id= i; }
|
||||
inline int G4MCTSimVertex::GetID() const { return id; }
|
||||
|
||||
inline void G4MCTSimVertex::SetPosition(const Hep3Vector& x)
|
||||
inline void G4MCTSimVertex::SetPosition(const G4ThreeVector& x)
|
||||
{ position= x; }
|
||||
|
||||
inline const Hep3Vector& G4MCTSimVertex::GetPosition() const
|
||||
inline const G4ThreeVector& G4MCTSimVertex::GetPosition() const
|
||||
{ return position; }
|
||||
|
||||
inline void G4MCTSimVertex::SetTime(double t)
|
||||
|
||||
Reference in New Issue
Block a user