85{
86 if (SetCurrentParticle()== nullptr)
87 {
88 G4cout <<
"Particle is not selected yet !! Command ignored." <<
G4endl;
89 return;
90 }
91 if (currentDecayTable== nullptr)
92 {
93 G4cout <<
"The particle has no decay table !! Command ignored." <<
G4endl;
94 return;
95 }
96
97 if( command == dumpCmd )
98 {
99
101
102 }
103 else if ( command == selectCmd )
104 {
105
108 if ( currentChannel == nullptr )
109 {
111 }
112 else
113 {
114 idxCurrentChannel = index;
115 }
116
117 }
118 else
119 {
120 if ( currentChannel == nullptr )
121 {
122 G4cout <<
"Select a decay channel. Command ignored." <<
G4endl;
123 return;
124 }
125 if (command == brCmd)
126 {
127
129 if( (br<0.0) || (br>1.0) )
130 {
131 G4cout <<
"Invalid brancing ratio. Command ignored." <<
G4endl;
132 }
133 else
134 {
135 currentChannel->
SetBR(br);
136 }
137 }
138 }
139}
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)