Import Geant4 1.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ProcessTable.cc,v 1.3.8.1 1999/12/07 20:52:49 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4ProcessTable.cc,v 1.3.8.1.2.1 1999/12/08 17:35:13 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -26,7 +26,7 @@ G4ProcessTable::G4ProcessTable():verboseLevel(1)
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>1){
|
||||
G4cout << "-- G4ProcessTable constructor --" << endl;
|
||||
G4cout << "-- G4ProcessTable constructor --" << G4endl;
|
||||
}
|
||||
#endif
|
||||
fProcTblVector = new G4ProcTableVector();
|
||||
@@ -40,7 +40,7 @@ G4ProcessTable::G4ProcessTable(const G4ProcessTable &right)
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>0){
|
||||
G4cout << "-- G4ProcessTable copy constructor --" << endl;
|
||||
G4cout << "-- G4ProcessTable copy constructor --" << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -50,7 +50,7 @@ G4ProcessTable::~G4ProcessTable()
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>1){
|
||||
G4cout << "-- G4ProcessTable destructor --" << endl;
|
||||
G4cout << "-- G4ProcessTable destructor --" << G4endl;
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -96,7 +96,7 @@ G4ProcessTable & G4ProcessTable::operator=(const G4ProcessTable &right)
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>0){
|
||||
G4cout << "-- G4ProcessTable assignment operator --" << endl;
|
||||
G4cout << "-- G4ProcessTable assignment operator --" << G4endl;
|
||||
}
|
||||
#endif
|
||||
if (&right == this) return *this;
|
||||
@@ -136,7 +136,7 @@ G4int G4ProcessTable::Insert(G4VProcess* aProcess,
|
||||
if ( (aProcess == 0) || ( aProcMgr == 0 ) ){
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>0){
|
||||
G4cout << "G4ProcessTable::Insert : arguments are 0 pointer "<<endl;
|
||||
G4cout << "G4ProcessTable::Insert : arguments are 0 pointer "<<G4endl;
|
||||
}
|
||||
#endif
|
||||
return -1;
|
||||
@@ -147,7 +147,7 @@ G4int G4ProcessTable::Insert(G4VProcess* aProcess,
|
||||
G4cout << "G4ProcessTable::Insert ";
|
||||
G4cout << " Process[" << aProcess->GetProcessName() << "]";
|
||||
G4cout << " Particle[" << aProcMgr->GetParticleType()->GetParticleName() << "]";
|
||||
G4cout << endl;
|
||||
G4cout << G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -163,7 +163,7 @@ G4int G4ProcessTable::Insert(G4VProcess* aProcess,
|
||||
isFoundInTbl = true;
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>2){
|
||||
G4cout << " This Process has been already registered !! " << endl;
|
||||
G4cout << " This Process has been already registered !! " << G4endl;
|
||||
}
|
||||
#endif
|
||||
//
|
||||
@@ -174,7 +174,7 @@ G4int G4ProcessTable::Insert(G4VProcess* aProcess,
|
||||
isFound = true;
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>1){
|
||||
G4cout << " This Process Manager has been already registered !! " << endl;
|
||||
G4cout << " This Process Manager has been already registered !! " << G4endl;
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
@@ -185,7 +185,7 @@ G4int G4ProcessTable::Insert(G4VProcess* aProcess,
|
||||
anElement->Insert(aProcMgr);
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>2){
|
||||
G4cout << " This Process Manager is registered !! " << endl;
|
||||
G4cout << " This Process Manager is registered !! " << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -203,7 +203,7 @@ G4int G4ProcessTable::Insert(G4VProcess* aProcess,
|
||||
}
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>2){
|
||||
G4cout << " This Process is registered !! " << endl;
|
||||
G4cout << " This Process is registered !! " << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -217,7 +217,7 @@ G4int G4ProcessTable::Remove( G4VProcess* aProcess,
|
||||
if ( (aProcess == 0) || ( aProcMgr == 0 ) ){
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>0){
|
||||
G4cout << "G4ProcessTable::Remove : arguments are 0 pointer "<< endl;
|
||||
G4cout << "G4ProcessTable::Remove : arguments are 0 pointer "<< G4endl;
|
||||
}
|
||||
#endif
|
||||
return -1;
|
||||
@@ -227,7 +227,7 @@ G4int G4ProcessTable::Remove( G4VProcess* aProcess,
|
||||
if (verboseLevel>1){
|
||||
G4cout << "G4ProcessTable::Remove ";
|
||||
G4cout << " Process[" << aProcess->GetProcessName() << "]";
|
||||
G4cout << " Particle[" << aProcMgr->GetParticleType()->GetParticleName() << "]" << endl;
|
||||
G4cout << " Particle[" << aProcMgr->GetParticleType()->GetParticleName() << "]" << G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -255,7 +255,7 @@ G4int G4ProcessTable::Remove( G4VProcess* aProcess,
|
||||
anElement->Remove(aProcMgr);
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>2){
|
||||
G4cout << " This Process Manager is removed !! " << endl;
|
||||
G4cout << " This Process Manager is removed !! " << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -281,7 +281,7 @@ G4int G4ProcessTable::Remove( G4VProcess* aProcess,
|
||||
}
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>1){
|
||||
G4cout << " This Process is removed !! " << endl;
|
||||
G4cout << " This Process is removed !! " << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -289,7 +289,7 @@ G4int G4ProcessTable::Remove( G4VProcess* aProcess,
|
||||
} else {
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>0){
|
||||
G4cout << " This Process is not registered !! " << endl;
|
||||
G4cout << " This Process is not registered !! " << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -319,7 +319,7 @@ G4VProcess* G4ProcessTable::FindProcess(const G4String& processName,
|
||||
if (!isFound && verboseLevel>1){
|
||||
G4cout << " G4ProcessTable::FindProcess :" ;
|
||||
G4cout << " The Process[" << processName << "] is not found ";
|
||||
G4cout << " for " << processManager->GetParticleType()->GetParticleName() << endl;
|
||||
G4cout << " for " << processManager->GetParticleType()->GetParticleName() << G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -349,7 +349,7 @@ G4ProcessTable::G4ProcTableVector* G4ProcessTable::Find(
|
||||
#ifdef G4VERBOSE
|
||||
if (!isFound && verboseLevel>0){
|
||||
G4cout << " G4ProcessTable::Find :" ;
|
||||
G4cout << " The Process[" << processName << "] is not found " << endl;
|
||||
G4cout << " The Process[" << processName << "] is not found " << G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -378,7 +378,7 @@ G4ProcessTable::G4ProcTableVector* G4ProcessTable::Find(
|
||||
#ifdef G4VERBOSE
|
||||
if (!isFound && verboseLevel>0){
|
||||
G4cout << " G4ProcessTable::Find :" ;
|
||||
G4cout << " The Process[" << anElement->GetProcessName() << "] is not found " << endl;
|
||||
G4cout << " The Process[" << anElement->GetProcessName() << "] is not found " << G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -432,7 +432,7 @@ void G4ProcessTable::SetProcessActivation( const G4String& processName,
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>1){
|
||||
G4cout << " G4ProcessTable::SetProcessActivation:" ;
|
||||
G4cout << " The Process[" << processName << "] "<< endl;
|
||||
G4cout << " The Process[" << processName << "] "<< G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -449,7 +449,7 @@ void G4ProcessTable::SetProcessActivation( const G4String& processName,
|
||||
if (verboseLevel>1){
|
||||
G4cout << " for " << manager->GetParticleType()->GetParticleName();
|
||||
G4cout << " Index = " << manager->GetProcessIndex(process);
|
||||
G4cout << endl;
|
||||
G4cout << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -465,7 +465,7 @@ void G4ProcessTable::SetProcessActivation(
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>1){
|
||||
G4cout << " G4ProcessTable::SetProcessActivation:" ;
|
||||
G4cout << " The Process[" << processName << "] "<< endl;
|
||||
G4cout << " The Process[" << processName << "] "<< G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -475,7 +475,7 @@ void G4ProcessTable::SetProcessActivation(
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>1){
|
||||
G4cout << " for " << processManager->GetParticleType()->GetParticleName();
|
||||
G4cout << " Index = " << processManager->GetProcessIndex(process) << endl;
|
||||
G4cout << " Index = " << processManager->GetProcessIndex(process) << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -489,7 +489,7 @@ void G4ProcessTable::SetProcessActivation( G4ProcessType processType,
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>1){
|
||||
G4cout << " G4ProcessTable::SetProcessActivation:" ;
|
||||
G4cout << " The ProcessType[" << processType << "] "<< endl;
|
||||
G4cout << " The ProcessType[" << processType << "] "<< G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -501,7 +501,7 @@ void G4ProcessTable::SetProcessActivation( G4ProcessType processType,
|
||||
G4VProcess* process = anElement->GetProcess();
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>1){
|
||||
G4cout << " The Process[" << process->GetProcessName()<< "] "<< endl;
|
||||
G4cout << " The Process[" << process->GetProcessName()<< "] "<< G4endl;
|
||||
}
|
||||
#endif
|
||||
for (G4int idx = 0 ; idx < anElement->Length(); idx++) {
|
||||
@@ -510,7 +510,7 @@ void G4ProcessTable::SetProcessActivation( G4ProcessType processType,
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>1){
|
||||
G4cout << " for " << manager->GetParticleType()->GetParticleName();
|
||||
G4cout << " Index = " << manager->GetProcessIndex(process) << endl;
|
||||
G4cout << " Index = " << manager->GetProcessIndex(process) << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -526,7 +526,7 @@ void G4ProcessTable::SetProcessActivation(
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>1){
|
||||
G4cout << " G4ProcessTable::SetProcessActivation:" ;
|
||||
G4cout << " The ProcessType[" << processType << "] "<< endl;
|
||||
G4cout << " The ProcessType[" << processType << "] "<< G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -537,9 +537,9 @@ void G4ProcessTable::SetProcessActivation(
|
||||
processManager->SetProcessActivation(process, fActive);
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>1){
|
||||
G4cout << " The Process[" << process->GetProcessName()<< "] "<< endl;
|
||||
G4cout << " The Process[" << process->GetProcessName()<< "] "<< G4endl;
|
||||
G4cout << " for " << processManager->GetParticleType()->GetParticleName();
|
||||
G4cout << " Index = " << idx << endl;
|
||||
G4cout << " Index = " << idx << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -584,12 +584,12 @@ void G4ProcessTable::DumpInfo(G4VProcess* process,
|
||||
for (idx=0; idx<anElement->Length(); idx++){
|
||||
manager = anElement->GetProcessManager(idx);
|
||||
G4cout << " for " << manager->GetParticleType()->GetParticleName();
|
||||
G4cout << endl;
|
||||
G4cout << G4endl;
|
||||
if (verboseLevel >2) manager->DumpInfo();
|
||||
}
|
||||
} else {
|
||||
G4cout << " for " << manager->GetParticleType()->GetParticleName();
|
||||
G4cout << endl;
|
||||
G4cout << G4endl;
|
||||
if (verboseLevel >2) manager->DumpInfo();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user