85{
86 if (SetCurrentParticle() == nullptr) {
87 G4cout <<
"Particle is not selected yet !! Command ignored." <<
G4endl;
88 return;
89 }
90 if (currentDecayTable == nullptr) {
91 G4cout <<
"The particle has no decay table !! Command ignored." <<
G4endl;
92 return;
93 }
94
95 if (command == dumpCmd) {
96
98 }
99 else if (command == selectCmd) {
100
103 if (currentChannel == nullptr) {
105 }
106 else {
107 idxCurrentChannel = index;
108 }
109 }
110 else {
111 if (currentChannel == nullptr) {
112 G4cout <<
"Select a decay channel. Command ignored." <<
G4endl;
113 return;
114 }
115 if (command == brCmd) {
116
118 if ((br < 0.0) || (br > 1.0)) {
119 G4cout <<
"Invalid brancing ratio. Command ignored." <<
G4endl;
120 }
121 else {
122 currentChannel->
SetBR(br);
123 }
124 }
125 }
126}
G4GLOB_DLL std::ostream G4cout
G4VDecayChannel * GetDecayChannel(G4int index) const
static G4double GetNewDoubleValue(const char *paramString)
static G4int GetNewIntValue(const char *paramString)
void SetBR(G4double value)