64 if(Pprojectile.
z() < 0.)
70 G4bool PutOnMassShell(
false);
73 if(M0projectile < projectile->GetDefinition()->GetPDGMass())
79 G4double Mprojectile2 = M0projectile * M0projectile;
89 if(M0target < target->GetDefinition()->GetPDGMass())
95 G4double Mtarget2 = M0target * M0target;
100 Psum=Pprojectile+Ptarget;
106 if ( Ptmp.
pz() <= 0. )
128 PZcms2=(S*S+Mprojectile2*Mprojectile2+Mtarget2*Mtarget2-
129 2*S*Mprojectile2-2*S*Mtarget2-2*Mprojectile2*Mtarget2)/4./S;
137 Mprojectile2=M0projectile*M0projectile;
138 PZcms2=(S*S+Mprojectile2*Mprojectile2+Mtarget2*Mtarget2-
139 2*S*Mprojectile2 - 2*S*Mtarget2 - 2*Mprojectile2*Mtarget2)
142 if(PZcms2 < 0.){
return false;}
153 PZcms = std::sqrt(PZcms2);
157 if(Pprojectile.
z() > 0.)
159 Pprojectile.
setPz( PZcms);
160 Ptarget.
setPz( -PZcms);
164 Pprojectile.
setPz(-PZcms);
165 Ptarget.
setPz( PZcms);
168 Pprojectile.
setE(std::sqrt(Mprojectile2+
169 Pprojectile.
x()*Pprojectile.
x()+
170 Pprojectile.
y()*Pprojectile.
y()+
172 Ptarget.
setE(std::sqrt( Mtarget2 +
173 Ptarget.
x()*Ptarget.
x()+
174 Ptarget.
y()*Ptarget.
y()+
190 ProjMassT2=Mprojectile2+Pt2;
193 TargMassT2=Mtarget2+Pt2;
196 PZcms2=(S*S+ProjMassT2*ProjMassT2+
197 TargMassT2*TargMassT2-
198 2.*S*ProjMassT2-2.*S*TargMassT2-
199 2.*ProjMassT2*TargMassT2)/4./S;
200 if(PZcms2 < 0 ) {PZcms2=0;};
201 PZcms =std::sqrt(PZcms2);
203 Pprojectile.
setPz( PZcms);
204 Ptarget.
setPz( -PZcms);
206 Pprojectile += Qmomentum;
207 Ptarget -= Qmomentum;
241 if(AveragePt2 <= 0.) {Pt2=0.;}
245 (std::exp(-maxPtSquare/AveragePt2)-1.));
250 return G4ThreeVector (Pt*std::cos(phi), Pt*std::sin(phi), 0.);
255 throw G4HadronicException(__FILE__, __LINE__,
"G4ElasticHNScattering copy contructor not meant to be called");
266 throw G4HadronicException(__FILE__, __LINE__,
"G4ElasticHNScattering = operator not meant to be called");
273 throw G4HadronicException(__FILE__, __LINE__,
"G4ElasticHNScattering == operator not meant to be called");
279 throw G4HadronicException(__FILE__, __LINE__,
"G4ElasticHNScattering != operator not meant to be called");
CLHEP::HepLorentzVector G4LorentzVector
CLHEP::Hep3Vector G4ThreeVector
HepLorentzRotation & rotateY(double delta)
HepLorentzRotation & rotateZ(double delta)
HepLorentzRotation inverse() const
Hep3Vector boostVector() const
HepLorentzVector & transform(const HepRotation &)
virtual ~G4ElasticHNScattering()
virtual G4bool ElasticScattering(G4VSplitableHadron *aPartner, G4VSplitableHadron *bPartner, G4FTFParameters *theParameters) const
G4double GetAvaragePt2ofElasticScattering()
G4double GetPDGMass() const
void SetTimeOfCreation(G4double aTime)
void SetStatus(const G4int aStatus)
G4ParticleDefinition * GetDefinition() const
G4double GetTimeOfCreation()
void Set4Momentum(const G4LorentzVector &a4Momentum)
const G4LorentzVector & Get4Momentum() const
const G4ThreeVector & GetPosition() const
void IncrementCollisionCount(G4int aCount)
void SetPosition(const G4ThreeVector &aPosition)