44 std::vector<double> scalarMesonMix,
45 std::vector<double> vectorMesonMix)
61 return Barion(black,white,spin);
67 return Meson(black,white,spin);
104 if (std::abs(charge) > 2 || std::abs(3.*charge - 3*
G4int(charge*1.001)) >
perCent )
107 G4cerr <<
" Invalid total charge found for on input: "
109 G4cerr <<
" PGDcode input quark1/quark2 : " <<
119 if ( std::abs(id1) < std::abs(id2) )
126 if (std::abs(id1) > 3 )
127 throw G4HadronicException(__FILE__, __LINE__,
"G4HadronBuilder::Meson : Illegal Quark content as input");
131 if (id1 + id2 == 0) {
133 G4int imix = 2*std::abs(id1) - 1;
144 PDGEncoding = 100 * std::abs(id1) + 10 * std::abs(id2) + theSpin;
145 G4bool IsUp = (std::abs(id1)&1) == 0;
147 if( (IsUp && IsAnti ) || (!IsUp && !IsAnti ) )
148 PDGEncoding = - PDGEncoding;
154 if (MesonDef == 0 ) {
155 G4cerr <<
" G4HadronBuilder - Warning: No particle for PDGcode= "
159 G4cerr <<
" G4HadronBuilder - Warning: Incorrect Charge : "
180 if (std::abs(charge) > 2 || std::abs(3.*charge - 3*
G4int(charge*1.001)) >
perCent )
183 G4cerr <<
" Invalid total charge found for on input: "
185 G4cerr <<
" PGDcode input quark1/quark2 : " <<
193 if ( std::abs(id1) < std::abs(id2) )
200 if (std::abs(id1) < 1000 || std::abs(id2) > 3 )
201 throw G4HadronicException(__FILE__, __LINE__,
"G4HadronBuilder::Barion: Illegal quark content as input");
203 G4int ifl1= std::abs(id1)/1000;
204 G4int ifl2 = (std::abs(id1) - ifl1 * 1000)/100;
205 G4int diquarkSpin = std::abs(id1)%10;
213 G4int kfla = std::abs(ifl1);
214 G4int kflb = std::abs(ifl2);
215 G4int kflc = std::abs(ifl3);
222 G4int kfle = kfla + kflb + kflc - kfld - kflf;
225 theSpin = (kfla == kflb && kflb == kflc)?
SpinThreeHalf : theSpin;
228 if(theSpin ==
SpinHalf && kfld > kfle && kfle > kflf) {
233 if(diquarkSpin == 1 ) {
240 if(diquarkSpin == 3 && kfla != kfld)
246 PDGEncoding = 1000 * kfld + 100 * kflf + 10 * kfle + theSpin;
248 PDGEncoding = 1000 * kfld + 100 * kfle + 10 * kflf + theSpin;
251 PDGEncoding = -PDGEncoding;
257 if (BarionDef == 0 ) {
258 G4cerr <<
" G4HadronBuilder - Warning: No particle for PDGcode= "
262 G4cerr <<
" G4HadronBuilder - Warning: Incorrect Charge : "
263 <<
" DiQuark/Quark = "
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4ParticleDefinition * Build(G4ParticleDefinition *black, G4ParticleDefinition *white)
G4ParticleDefinition * Barion(G4ParticleDefinition *black, G4ParticleDefinition *white, Spin spin)
static G4ParticleTable * GetParticleTable()
G4ParticleDefinition * BuildLowSpin(G4ParticleDefinition *black, G4ParticleDefinition *white)
std::vector< double > vectorMesonMixings
const G4String & GetParticleSubType() const
static constexpr double perCent
const G4String & GetParticleName() const
G4double GetPDGCharge() const
G4GLOB_DLL std::ostream G4cerr
G4ParticleDefinition * BuildHighSpin(G4ParticleDefinition *black, G4ParticleDefinition *white)
G4int GetPDGEncoding() const
G4ParticleDefinition * Meson(G4ParticleDefinition *black, G4ParticleDefinition *white, Spin spin)
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
std::vector< double > scalarMesonMixings