--------------------------------------------------------------------
| 376 | // -------------------------------------------------------------------- |
| 377 | // |
| 378 | G4ProcessTable::G4ProcTableVector* |
| 379 | G4ProcessTable::Find(const G4String& processName) |
| 380 | { |
| 381 | tmpTblVector->clear(); |
| 382 | |
| 383 | G4bool isFound = false; |
| 384 | G4ProcTblElement* anElement = nullptr; |
| 385 | for (auto itr=fProcTblVector->cbegin(); itr!=fProcTblVector->cend(); ++itr) |
| 386 | { |
| 387 | anElement = (*itr); |
| 388 | // check name |
| 389 | if ( anElement != nullptr && anElement->GetProcessName() == processName ) |
| 390 | { |
| 391 | isFound = true; |
| 392 | tmpTblVector->push_back(anElement); |
| 393 | } |
| 394 | } |
| 395 | |
| 396 | if (!isFound && verboseLevel>0) |
| 397 | { |
| 398 | #ifdef G4VERBOSE |
| 399 | G4cout << " G4ProcessTable::Find() -" ; |
| 400 | G4cout << " The Process[" << processName << "] is not found " << G4endl; |
| 401 | #endif |
| 402 | } |
| 403 | |
| 404 | return tmpTblVector; |
| 405 | } |
| 406 | |
| 407 | // -------------------------------------------------------------------- |
| 408 | // |
no test coverage detected