Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions
G4ExcitedDeltaConstructor Class Reference

#include <G4ExcitedDeltaConstructor.hh>

Inheritance diagram for G4ExcitedDeltaConstructor:
G4ExcitedBaryonConstructor

Public Types

enum  { NStates = 9 }
 
enum  { NumberOfDecayModes = 5 }
 

Public Member Functions

 G4ExcitedDeltaConstructor ()
 
virtual ~G4ExcitedDeltaConstructor ()
 
- Public Member Functions inherited from G4ExcitedBaryonConstructor
 G4ExcitedBaryonConstructor (G4int nStates=0, G4int isoSpin=0)
 
virtual ~G4ExcitedBaryonConstructor ()
 
virtual void Construct (G4int indexOfState=-1)
 

Protected Member Functions

virtual G4int GetEncoding (G4int iIsoSpin3, G4int idxState)
 
virtual G4bool Exist (G4int)
 
virtual G4int GetQuarkContents (G4int, G4int)
 
virtual G4String GetName (G4int iIso3, G4int iState)
 
virtual G4String GetMultipletName (G4int iState)
 
virtual G4double GetMass (G4int state, G4int iso)
 
virtual G4double GetWidth (G4int state, G4int iso)
 
virtual G4int GetiSpin (G4int iState)
 
virtual G4int GetiParity (G4int iState)
 
virtual G4int GetEncodingOffset (G4int iState)
 
virtual G4DecayTableCreateDecayTable (const G4String &name, G4int iIso3, G4int iState, G4bool fAnti=false)
 
- Protected Member Functions inherited from G4ExcitedBaryonConstructor
virtual void ConstructParticle (G4int indexOfState)
 
virtual void ConstructAntiParticle (G4int indexOfState)
 
virtual G4double GetCharge (G4int iIsoSpin3)
 

Additional Inherited Members

- Protected Attributes inherited from G4ExcitedBaryonConstructor
G4int NumberOfStates
 
G4int iIsoSpin
 
const G4String type
 
const G4int iConjugation
 
const G4int iGParity
 
const G4int leptonNumber
 
const G4int baryonNumber
 

Detailed Description

Definition at line 43 of file G4ExcitedDeltaConstructor.hh.

Member Enumeration Documentation

anonymous enum
Enumerator
NStates 

Definition at line 84 of file G4ExcitedDeltaConstructor.hh.

anonymous enum
Enumerator
NumberOfDecayModes 

Definition at line 97 of file G4ExcitedDeltaConstructor.hh.

Constructor & Destructor Documentation

G4ExcitedDeltaConstructor::G4ExcitedDeltaConstructor ( )

Definition at line 48 of file G4ExcitedDeltaConstructor.cc.

48  :
49  G4ExcitedBaryonConstructor(NStates, DeltaIsoSpin)
50 {
51 
52 }
G4ExcitedBaryonConstructor(G4int nStates=0, G4int isoSpin=0)
G4ExcitedDeltaConstructor::~G4ExcitedDeltaConstructor ( )
virtual

Definition at line 54 of file G4ExcitedDeltaConstructor.cc.

55 {
56 }

Member Function Documentation

G4DecayTable * G4ExcitedDeltaConstructor::CreateDecayTable ( const G4String name,
G4int  iIso3,
G4int  iState,
G4bool  fAnti = false 
)
protectedvirtual

Implements G4ExcitedBaryonConstructor.

Definition at line 86 of file G4ExcitedDeltaConstructor.cc.

91 {
92  // create decay table
93  G4DecayTable* decayTable = new G4DecayTable();
94 
95  G4double br;
96  if ( (br=bRatio[iState][NGamma]) >0.0) {
97  AddNGammaMode( decayTable, parentName, br, iIso3, fAnti);
98  }
99 
100  if ( (br=bRatio[iState][NPi]) >0.0) {
101  AddNPiMode( decayTable, parentName, br, iIso3, fAnti);
102  }
103 
104  if ( (br=bRatio[iState][NRho]) >0.0) {
105  AddNRhoMode( decayTable, parentName, br, iIso3, fAnti);
106  }
107 
108  if ( (br=bRatio[iState][DeltaPi]) >0.0) {
109  AddDeltaPiMode( decayTable, parentName, br, iIso3, fAnti);
110  }
111 
112  if ( (br=bRatio[iState][NStarPi]) >0.0) {
113  AddNStarPiMode( decayTable, parentName, br, iIso3, fAnti);
114  }
115 
116  return decayTable;
117 }
double G4double
Definition: G4Types.hh:76
virtual G4bool G4ExcitedDeltaConstructor::Exist ( G4int  )
inlineprotectedvirtual

Implements G4ExcitedBaryonConstructor.

Definition at line 56 of file G4ExcitedDeltaConstructor.hh.

56 {return true;}
G4int G4ExcitedDeltaConstructor::GetEncoding ( G4int  iIsoSpin3,
G4int  idxState 
)
protectedvirtual

Reimplemented from G4ExcitedBaryonConstructor.

Definition at line 58 of file G4ExcitedDeltaConstructor.cc.

References encoding, G4ExcitedBaryonConstructor::GetEncoding(), GetEncodingOffset(), GetiSpin(), and GetQuarkContents().

59 {
61  // Delta has exceptinal encoding
62  if ((idxState==1)||(idxState==3)||(idxState==4)||(idxState==5)||(idxState==7)) {
63  encoding = GetEncodingOffset(idxState);
64  if ((iIsoSpin3==3)||(iIsoSpin3==-3)) {
65  // normal encoding
66  encoding += 1000*GetQuarkContents(0, iIsoSpin3);
67  encoding += 100*GetQuarkContents(1, iIsoSpin3);
68  encoding += 10*GetQuarkContents(2, iIsoSpin3);
69  } else if (iIsoSpin3== +1){
70  // 1st <--> 2nd quark
71  encoding += 1000*GetQuarkContents(0, iIsoSpin3);
72  encoding += 10*GetQuarkContents(1, iIsoSpin3);
73  encoding += 100*GetQuarkContents(2, iIsoSpin3);
74  } else if (iIsoSpin3== -1){
75  // 1st <--> 0th quark
76  encoding += 100*GetQuarkContents(0, iIsoSpin3);
77  encoding += 1000*GetQuarkContents(1, iIsoSpin3);
78  encoding += 10*GetQuarkContents(2, iIsoSpin3);
79  }
80  encoding += GetiSpin(idxState) +1;
81  } else {
82  encoding = G4ExcitedBaryonConstructor::GetEncoding(iIsoSpin3, idxState);
83  }
84  return encoding;
85 }
virtual G4int GetiSpin(G4int iState)
int G4int
Definition: G4Types.hh:78
virtual G4int GetEncodingOffset(G4int iState)
#define encoding
Definition: xmlparse.cc:588
virtual G4int GetEncoding(G4int iIsoSpin3, G4int idxState)
virtual G4int GetQuarkContents(G4int, G4int)
G4int G4ExcitedDeltaConstructor::GetEncodingOffset ( G4int  iState)
inlineprotectedvirtual

Implements G4ExcitedBaryonConstructor.

Definition at line 129 of file G4ExcitedDeltaConstructor.hh.

Referenced by GetEncoding().

130 {
131  return encodingOffset[iState];
132 }
G4int G4ExcitedDeltaConstructor::GetiParity ( G4int  iState)
inlineprotectedvirtual

Implements G4ExcitedBaryonConstructor.

Definition at line 123 of file G4ExcitedDeltaConstructor.hh.

124 {
125  return iParity[iState];
126 }
G4int G4ExcitedDeltaConstructor::GetiSpin ( G4int  iState)
inlineprotectedvirtual

Implements G4ExcitedBaryonConstructor.

Definition at line 117 of file G4ExcitedDeltaConstructor.hh.

Referenced by GetEncoding().

118 {
119  return iSpin[iState];
120 }
G4double G4ExcitedDeltaConstructor::GetMass ( G4int  state,
G4int  iso 
)
inlineprotectedvirtual

Implements G4ExcitedBaryonConstructor.

Definition at line 105 of file G4ExcitedDeltaConstructor.hh.

106 {
107  return mass[iState];
108 }
G4String G4ExcitedDeltaConstructor::GetMultipletName ( G4int  iState)
inlineprotectedvirtual

Implements G4ExcitedBaryonConstructor.

Definition at line 172 of file G4ExcitedDeltaConstructor.hh.

173 {
174  return name[iState];
175 }
const XML_Char * name
G4String G4ExcitedDeltaConstructor::GetName ( G4int  iIso3,
G4int  iState 
)
inlineprotectedvirtual

Implements G4ExcitedBaryonConstructor.

Definition at line 178 of file G4ExcitedDeltaConstructor.hh.

179 {
180  G4String particle = name[iState];
181  if ( iIso3 == -3 ){
182  particle += "-";
183  } else if ( iIso3 == -1 ){
184  particle += "0";
185  } else if ( iIso3 == +1 ){
186  particle += "+";
187  } else {
188  particle += "++";
189  }
190  return particle;
191 }
const XML_Char * name
G4int G4ExcitedDeltaConstructor::GetQuarkContents ( G4int  iQ,
G4int  iIso3 
)
inlineprotectedvirtual

Implements G4ExcitedBaryonConstructor.

Definition at line 135 of file G4ExcitedDeltaConstructor.hh.

Referenced by GetEncoding().

136 {
137  // Quark contents
138  // iIso3 = +3 : uuu
139  // iIso3 = +1 : uud
140  // iIso3 = -1 : udd
141  // iIso3 = -3 : ddd
142  G4int quark=0;
143  if ( iQ == 0 ){
144  if ( iIso3 == -3 ){
145  // d-quark
146  quark = 1;
147  } else {
148  // u-quark
149  quark = 2;
150  }
151  } else if ( iQ == 2 ){
152  if ( iIso3 == +3 ){
153  // u-quark
154  quark = 2;
155  } else {
156  // d-quark
157  quark = 1;
158  }
159  } else {
160  if (( iIso3 == -1 )||( iIso3 == -3 )) {
161  // d-quark
162  quark = 1;
163  } else {
164  // u-quark
165  quark = 2;
166  }
167  }
168  return quark;
169 }
int G4int
Definition: G4Types.hh:78
G4double G4ExcitedDeltaConstructor::GetWidth ( G4int  state,
G4int  iso 
)
inlineprotectedvirtual

Implements G4ExcitedBaryonConstructor.

Definition at line 111 of file G4ExcitedDeltaConstructor.hh.

112 {
113  return width[iState];
114 }

The documentation for this class was generated from the following files: