125 throw G4HadronicException(__FILE__, __LINE__,
"G4VLongitudinalStringDecay::operator== forbidden");
133 throw G4HadronicException(__FILE__, __LINE__,
"G4VLongitudinalStringDecay::operator!= forbidden");
163 if ( hadrons.second ==0 ) {
166 #ifdef debug_VStringDecay
167 G4cout <<
"VlongSF Warning replacing string by single hadron (G4VLongitudinalStringDecay)" <<
G4endl;
168 G4cout << hadrons.first->GetParticleName()<<G4endl
169 <<
"string .. " <<
string->Get4Momentum() <<
" "
170 <<
string->Get4Momentum().m() <<
G4endl;
179 #ifdef debug_VStringDecay
180 G4cout <<
"VlongSF Warning replacing qq-qqbar string by TWO hadrons (G4VLongitudinalStringDecay)"
181 << hadrons.first->GetParticleName() <<
" / "
182 << hadrons.second->GetParticleName()
183 <<
"string .. " <<
string->Get4Momentum() <<
" "
184 <<
string->Get4Momentum().m() <<
G4endl;
188 Sample4Momentum(&Mom1, hadrons.first->GetPDGMass(), &Mom2,hadrons.second->GetPDGMass(),
189 string->Get4Momentum().
mag());
194 G4ThreeVector Velocity =
string->Get4Momentum().boostVector();
195 result->
Boost(Velocity);
208 static G4ThreadLocal std::vector<double> *nomix_G4MT_TLS_ = 0 ;
209 if (!nomix_G4MT_TLS_) nomix_G4MT_TLS_ =
new std::vector<double>;
210 std::vector<double> &nomix = *nomix_G4MT_TLS_;
216 for (
G4int i=0; i<6 ; i++ ) nomix[i]=0;
230 Hadron1 = (minMassHadronizer->*build)(string->
GetLeftParton(),
string->GetRightParton());
232 #ifdef debug_VStringDecay
233 G4cout<<
"Quarks at the string ends "<<
string->GetLeftParton()->GetParticleName()
234 <<
" "<<
string->GetRightParton()->GetParticleName()<<
G4endl;
238 mass= (Hadron1)->GetPDGMass();
248 mass = (Hadron1)->GetPDGMass() + (Hadron2)->GetPDGMass();
253 pdefs->first = Hadron1;
254 pdefs->second = Hadron2;
267 G4cout <<
"Particle with encoding "<<Encoding<<
" does not exist!!!"<<
G4endl;
302 #ifdef debug_VStringDecay
304 G4cout<<
"Start SplitUP (G4VLongitudinalStringDecay) ========================="<<
G4endl;
305 G4cout<<
"String partons: " <<
string->GetLeftParton()->GetPDGEncoding()<<
" "
306 <<
string->GetRightParton()->GetPDGEncoding()<<
" "
307 <<
"Direction " <<
string->GetDecayDirection()<<
G4endl;
314 string->SetLeftPartonStable();
316 string->SetRightPartonStable();
328 #ifdef debug_VStringDecay
329 G4cout<<
"The parton "<<
string->GetDecayParton()->GetPDGEncoding()<<
" "
332 G4cout<<
"The side of the string decay Left/Right (1/-1) "<<SideOfDecay<<
G4endl;
338 #ifdef debug_VStringDecay
339 G4cout<<
"An attempt to determine its energy (SplitEandP)"<<
G4endl;
344 delete newString; newString=0;
347 if ( HadronMomentum != 0 ) {
349 #ifdef debug_VStringDecay
354 Hadron =
new G4KineticTrack(HadronDefinition, 0,Pos, *HadronMomentum);
358 delete HadronMomentum;
361 #ifdef debug_VStringDecay
366 #ifdef debug_VStringDecay
367 G4cout<<
"End SplitUP (G4VLongitudinalStringDecay) ====================="<<
G4endl;
382 created = QuarkPair.second;
481 return G4ThreeVector(Pt * std::cos(phi),Pt * std::sin(phi),0);
492 for(
size_t c1 = 0; c1 < Hadrons->size(); c1++)
496 for(
size_t c2 = 0; c2 < c1; c2++)
498 SumPz += Hadrons->operator[](c2)->Get4Momentum().pz();
499 SumE += Hadrons->operator[](c2)->Get4Momentum().e();
501 G4double HadronE = Hadrons->operator[](c1)->Get4Momentum().e();
502 G4double HadronPz = Hadrons->operator[](c1)->Get4Momentum().pz();
503 Hadrons->operator[](c1)->SetFormationTime(
504 (theInitialStringMass - 2.*SumPz + HadronE - HadronPz)/(2.*kappa)/
c_light );
506 G4ThreeVector aPosition(0, 0, (theInitialStringMass - 2.*SumE - HadronE + HadronPz)/(2.*kappa));
507 Hadrons->operator[](c1)->SetPosition(aPosition);
518 "4VLongitudinalStringDecay::SetSigmaTransverseMomentum after FragmentString() not allowed");
530 "4VLongitudinalStringDecay::SetStrangenessSuppression after FragmentString() not allowed");
542 "4VLongitudinalStringDecay::SetDiquarkSuppression after FragmentString() not allowed");
554 "4VLongitudinalStringDecay::SetDiquarkBreakProbability after FragmentString() not allowed");
566 "G4VLongitudinalStringDecay::SetVectorMesonProbability after FragmentString() not allowed");
580 "G4VLongitudinalStringDecay::SetSpinThreeHalfBarionProbability after FragmentString() not allowed");
594 "G4VLongitudinalStringDecay::SetScalarMesonMixings after FragmentString() not allowed");
596 if ( aVector.size() < 6 )
598 "G4VLongitudinalStringDecay::SetScalarMesonMixings( argument Vector too small");
616 "G4VLongitudinalStringDecay::SetVectorMesonMixings after FragmentString() not allowed");
618 if ( aVector.size() < 6 )
620 "G4VLongitudinalStringDecay::SetVectorMesonMixings( argument Vector too small");
G4double G4ParticleHPJENDLHEData::G4double result
G4ParticleDefinition * GetRightParton(void) const
ThreeVector shoot(const G4int Ap, const G4int Af)
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4ParticleDefinition * QuarkSplitup(G4ParticleDefinition *decay, G4ParticleDefinition *&created)
CLHEP::Hep3Vector G4ThreeVector
G4ParticleDefinition * BuildLowSpin(G4ParticleDefinition *black, G4ParticleDefinition *white)
G4ExcitedString * CPExcited(const G4ExcitedString &string)
void SetStrangenessSuppression(G4double aValue)
G4ParticleDefinition * Build(G4ParticleDefinition *black, G4ParticleDefinition *white)
G4int StringLoopInterrupt
G4Parton * GetLeftParton(void) const
G4int ClusterLoopInterrupt
G4int GetPDGEncoding() const
G4ThreeVector SampleQuarkPt(G4double ptMax=-1.)
std::vector< G4double > vectorMesonMix
G4double FragmentationMass(const G4FragmentingString *const string, Pcreate build=0, pDefPair *pdefs=0)
virtual void SetMassCut(G4double aValue)
G4VLongitudinalStringDecay()
G4int SampleQuarkFlavor(void)
const G4String & GetParticleName() const
virtual ~G4VLongitudinalStringDecay()
G4ParticleDefinition * GetDecayParton() const
pDefPair CreatePartonPair(G4int NeedParticle, G4bool AllowDiquarks=true)
void SetStringTensionParameter(G4double aValue)
const G4ThreeVector & GetPosition() const
G4ParticleDefinition * GetLeftParton(void) const
void SetDiquarkBreakProbability(G4double aValue)
G4GLOB_DLL std::ostream G4cout
ParticleList decay(Cluster *const c)
Carries out a cluster decay.
G4KineticTrackVector * LightFragmentationTest(const G4ExcitedString *const theString)
std::pair< G4ParticleDefinition *, G4ParticleDefinition * > pDefPair
G4ParticleDefinition * FindParticle(G4int Encoding)
virtual void Sample4Momentum(G4LorentzVector *Mom, G4double Mass, G4LorentzVector *AntiMom, G4double AntiMass, G4double InitialMass)=0
void Boost(G4ThreeVector &Velocity)
G4bool FourQuarkString(void) const
std::vector< G4double > scalarMesonMix
G4double G4Log(G4double x)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
void SetVectorMesonProbability(G4double aValue)
G4Parton * GetRightParton(void) const
G4double GetStringTensionParameter()
G4double GetPDGMass() const
G4HadronBuilder * hadronizer
static G4ParticleTable * GetParticleTable()
T max(const T t1, const T t2)
brief Return the largest of the two arguments
void SetVectorMesonMixings(std::vector< G4double > aVector)
static constexpr double c_light
void SetSpinThreeHalfBarionProbability(G4double aValue)
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
static constexpr double GeV
G4double DiquarkBreakProb
void SetSigmaTransverseMomentum(G4double aQT)
G4int GetDirection(void) const
static constexpr double pi
virtual G4ParticleDefinition * DiQuarkSplitup(G4ParticleDefinition *decay, G4ParticleDefinition *&created)=0
void SetScalarMesonMixings(std::vector< G4double > aVector)
static constexpr double fermi
void CalculateHadronTimePosition(G4double theInitialStringMass, G4KineticTrackVector *)
virtual G4LorentzVector * SplitEandP(G4ParticleDefinition *pHadron, G4FragmentingString *string, G4FragmentingString *newString)=0
G4KineticTrack * Splitup(G4FragmentingString *string, G4FragmentingString *&newString)
void SetDiquarkSuppression(G4double aValue)