53 G4cout<<
"....G4QParton::DefConstructer: PDG = "<<PGGCode<<
", Type="<<theType<<
G4endl;
57 if(theColour>3) theColour = 3;
77 PGGCode = right.PGGCode;
79 theType = right.theType;
80 theMomentum = right.theMomentum;
81 thePosition = right.thePosition;
83 theColour = right.theColour;
84 theSpinZ = right.theSpinZ;
86 G4cout<<
"G4QParton::RCopyConstructer: PDG="<<PGGCode<<
", Col="<<theColour<<
", Sz="
93 PGGCode = right->PGGCode;
95 theType = right->theType;
96 theMomentum = right->theMomentum;
97 thePosition = right->thePosition;
99 theColour = right->theColour;
100 theSpinZ = right->theSpinZ;
102 G4cout<<
"G4QParton::PCopyConstructer: PDG="<<PGGCode<<
", Col="<<theColour<<
", Sz="
117 theColour = right.theColour;
118 theSpinZ = right.theSpinZ;
120 G4cout<<
"G4QParton::=Constructer: PDG="<<PGGCode<<
", Col="<<theColour<<
", Sz="
133 G4int aPDG=std::abs(PDG);
134 if(aPDG < 3304 && aPDG > 1100 && aPDG%100 < 4)
141 else if(cPDG==21) QCont=
G4QContent(1,1,0,0,0,0);
142 else if(cPDG==22) QCont=
G4QContent(0,2,0,0,0,0);
143 else if(cPDG==31) QCont=
G4QContent(1,0,1,0,0,0);
144 else if(cPDG==32) QCont=
G4QContent(0,1,1,0,0,0);
145 else if(cPDG==33) QCont=
G4QContent(0,0,2,0,0,0);
148 G4cerr<<
"***G4QParton::SetPDGCode: bad di-quark PDG="<<PDG<<
G4endl;
155 else if(cPDG==21) QCont=
G4QContent(0,0,0,1,1,0);
156 else if(cPDG==22) QCont=
G4QContent(0,0,0,0,2,0);
157 else if(cPDG==31) QCont=
G4QContent(0,0,0,1,0,1);
158 else if(cPDG==32) QCont=
G4QContent(0,0,0,0,1,1);
159 else if(cPDG==33) QCont=
G4QContent(0,0,0,0,0,2);
162 G4cerr<<
"***G4QParton::SetPDGCode: bad anti-di-quark PDG="<<PDG<<
G4endl;
167 else if(aPDG && aPDG<4)
173 else if(PDG==2) QCont=
G4QContent(0,1,0,0,0,0);
174 else if(PDG==3) QCont=
G4QContent(0,0,1,0,0,0);
177 G4cerr<<
"***G4QParton::SetPDGCode: bad quark PDG="<<PDG<<
G4endl;
184 else if(PDG==-2) QCont=
G4QContent(0,0,0,0,1,0);
185 else if(PDG==-3) QCont=
G4QContent(0,0,0,0,0,1);
188 G4cerr<<
"***G4QParton::SetPDGCode: bad anti-quark PDG="<<PDG<<
G4endl;
193 else if(aPDG==9 || aPDG==21)
200 G4cerr<<
"***G4QParton::SetPDGCode: wrong gluon/quark/diquark PDG="<<PDG<<
G4endl;
204 G4cout<<
"....G4QParton::SetPDGCode: PDG = "<<PDG<<
", Type="<<theType<<
G4endl;
212 if(PDG>0) theColour = RGB;
213 else theColour =-RGB;
219 if(PDG>0) theColour =-RGB;
220 else theColour = RGB;
228 if (theType==0) dPDGSpin=2.;
229 else if(theType==2) dPDGSpin=aPDG%10-1;
237 aLightConeMomentum*=theX;
239 a4Momentum.
setPz(0.5*(aLightConeMomentum - TransverseMass2/aLightConeMomentum) *
240 (aDirection? 1: -1));
241 a4Momentum.
setE( 0.5*(aLightConeMomentum + TransverseMass2/aLightConeMomentum));
252 G4cout<<
"G4QParton::ReduceDiQADiQ: **Called** LPDG="<<sPDG<<
", RPDG="<<nPDG<<
G4endl;
255 if(qPDG<-99) qPDG=(-qPDG)/100;
258 if(dPDG<-99) dPDG=(-dPDG)/100;
264 if(L1==R1 || L1==R2 || L2==R1 || L2==R2)
273 G4cout<<
"G4QParton::ReDiQADiQ:L2="<<L2<<
",R2="<<R2<<
",L="<<sPDG<<
",R="<<nPDG<<
G4endl;
283 G4cout<<
"G4QParton::ReDiQADiQ:L2="<<L2<<
",R1="<<R1<<
",L="<<sPDG<<
",R="<<nPDG<<
G4endl;
293 G4cout<<
"G4QParton::ReDiQADiQ:L1="<<L1<<
",R2="<<R2<<
",L="<<sPDG<<
",R="<<nPDG<<
G4endl;
303 G4cout<<
"G4QParton::ReDiQADiQ:L1="<<L1<<
",R1="<<R1<<
",L="<<sPDG<<
",R="<<nPDG<<
G4endl;
310 G4cout<<
"G4QParton::ReduceDiQADiQ:AfterReduction,L="<<sPDG<<
",R="<<nPDG<<
G4endl;
314 else G4cout<<
"-Warning-G4QParton::ReduceDiQADiQ:DQ-aDQ reduction to Q-aQ Failed"<<
G4endl;
CLHEP::HepLorentzVector G4LorentzVector
CLHEP::Hep3Vector G4ThreeVector
G4DLLIMPORT std::ostream G4cerr
G4DLLIMPORT std::ostream G4cout
void SetPDGCode(G4int aPDG)
void DefineMomentumInZ(G4double aLightConeMomentum, G4bool aDirection)
const G4QParton & operator=(const G4QParton &right)
const G4ThreeVector & GetPosition() const
const G4int & GetType() const
const G4LorentzVector & Get4Momentum() const
void Set4Momentum(const G4LorentzVector &aMomentum)
G4bool ReduceDiQADiQ(G4QParton *d1, G4QParton *d2)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)