44:verboseLevel(0),trackID(0),unknown(0),unknownParticleDefined(false)
67 for(
size_t ii=0; ii<
TV.size();ii++)
74 nextVertex = nextVertex->
GetNext();
89 primaryVertex->
Print();
91 G4cout <<
"G4PrimaryTransformer::PrimaryVertex ("
95 << T0 / nanosecond <<
"(nsec))" <<
G4endl;
100 while( primaryParticle != 0 )
103 primaryParticle = primaryParticle->
GetNext();
112 static G4int nWarn = 0;
123 <<
") --- Ignored" <<
G4endl;
130 daughter = daughter->
GetNext();
142 <<
") --- Transfered with momentum " << primaryParticle->
GetMomentum()
155 "Polarization of the optical photon is null. Random polarization is assumed.");
156 G4cerr <<
"This warning message is issued up to 10 times." <<
G4endl;
167 if (modul2 > 0.) e_perpend = (1./std::sqrt(modul2))*product;
170 G4ThreeVector polar = std::cos(angle)*e_paralle + std::sin(angle)*e_perpend;
225 TV.push_back( track );
234 if(!daughter)
return;
250 <<
") --- Ignored" <<
G4endl;
261 <<
") --- Attached with momentum " << daughter->
GetMomentum()
287 daughter = daughter->
GetNext();
295 {
G4cerr <<
"unknownParticleDefined cannot be set true because G4UnknownParticle is not defined in the physics list."
305 if(decayProducts && decayProducts->
entries()>0)
return true;
307 <<
"G4PrimaryTransformer: a shortlived primary particle is found" <<
G4endl
308 <<
" without any valid decay table nor pre-assigned decay mode." <<
G4endl;
310 "This primary particle will be ignored.");
CLHEP::Hep3Vector G4ThreeVector
std::vector< G4Track * > G4TrackVector
G4DLLIMPORT std::ostream G4cerr
G4DLLIMPORT std::ostream G4cout
Hep3Vector cross(const Hep3Vector &) const
G4int PushProducts(G4DynamicParticle *aParticle)
void SetPreAssignedDecayProducts(G4DecayProducts *aDecayProducts)
void SetCharge(G4double charge)
const G4ThreeVector & GetMomentumDirection() const
void SetPolarization(G4double polX, G4double polY, G4double polZ)
void SetMass(G4double mass)
const G4DecayProducts * GetPreAssignedDecayProducts() const
G4ParticleDefinition * GetDefinition() const
void SetPrimaryParticle(G4PrimaryParticle *p)
void SetPreAssignedDecayProperTime(G4double)
void AddElectron(G4int orbit, G4int number=1)
G4PrimaryVertex * GetPrimaryVertex(G4int i=0) const
G4int GetAtomicNumber() const
G4bool IsShortLived() const
G4int GetPDGEncoding() const
G4DecayTable * GetDecayTable() const
const G4String & GetParticleName() const
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
G4double GetWeight() const
G4double GetCharge() const
G4double GetKineticEnergy() const
G4double GetProperTime() const
const G4ThreeVector & GetMomentumDirection() const
void SetTrackID(G4int id)
G4ThreeVector GetPolarization() const
G4PrimaryParticle * GetNext() const
G4ThreeVector GetMomentum() const
G4PrimaryParticle * GetDaughter() const
G4PrimaryVertex * GetNext() const
G4double GetWeight() const
G4PrimaryParticle * GetPrimary(G4int i=0) const
void SetWeight(G4double aValue)
void SetTrackID(const G4int aValue)
void SetParentID(const G4int aValue)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)