Changeset 850 for trunk/source/particles/management/src
- Timestamp:
- Sep 10, 2008, 5:40:37 PM (16 years ago)
- Location:
- trunk/source/particles/management/src
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/particles/management/src/G4DalitzDecayChannel.cc
r824 r850 26 26 // 27 27 // $Id: G4DalitzDecayChannel.cc,v 1.8 2006/06/29 19:24:58 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4DecayProducts.cc
r824 r850 26 26 // 27 27 // $Id: G4DecayProducts.cc,v 1.16 2007/10/06 06:49:29 kurasige Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4DecayTable.cc
r824 r850 26 26 // 27 27 // $Id: G4DecayTable.cc,v 1.8 2006/06/29 19:25:02 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4DecayTableMessenger.cc
r824 r850 26 26 // 27 27 // $Id: G4DecayTableMessenger.cc,v 1.6 2006/06/29 19:25:04 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4DynamicParticle.cc
r824 r850 26 26 // 27 27 // $Id: G4DynamicParticle.cc,v 1.25 2007/03/11 07:17:35 kurasige Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4ElectronOccupancy.cc
r824 r850 26 26 // 27 27 // $Id: G4ElectronOccupancy.cc,v 1.9 2006/06/29 19:25:24 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4HyperNucleiProperties.cc
r824 r850 25 25 // 26 26 // $Id: G4HyperNucleiProperties.cc,v 1.3 2007/12/10 16:30:47 gunter Exp $ 27 // GEANT4 tag $Name: $27 // GEANT4 tag $Name: HEAD $ 28 28 // 29 29 // ------------------------------------------------------------ -
trunk/source/particles/management/src/G4IonTable.cc
r824 r850 25 25 // 26 26 // 27 // $Id: G4IonTable.cc,v 1. 48.2.1 2008/04/25 12:21:52kurasige Exp $28 // GEANT4 tag $Name: geant4-09-01-patch-02$27 // $Id: G4IonTable.cc,v 1.51 2008/06/08 12:55:45 kurasige Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // … … 81 81 } 82 82 fIsotopeTableList->clear(); 83 }84 delete fIsotopeTableList;83 delete fIsotopeTableList; 84 } 85 85 fIsotopeTableList =0; 86 86 … … 686 686 if (IsIon(particle)) { 687 687 fIonList->push_back(particle); 688 } else {689 //#ifdef G4VERBOSE690 //if (GetVerboseLevel()>1) {691 // G4cout << "G4IonTable::Insert :" << particle->GetParticleName() ;692 // G4cout << " is not ions" << G4endl;693 //}694 //#endif695 688 } 696 689 } … … 709 702 } else { 710 703 #ifdef G4VERBOSE 711 if (GetVerboseLevel()> 0) {704 if (GetVerboseLevel()>1) { 712 705 G4cout << "G4IonTable::Remove :" << particle->GetParticleName() ; 713 706 G4cout << " is not ions" << G4endl; … … 715 708 #endif 716 709 } 717 710 718 711 } 719 712 -
trunk/source/particles/management/src/G4Ions.cc
r824 r850 25 25 // 26 26 // 27 // $Id: G4Ions.cc,v 1.1 2 2007/03/11 07:17:35kurasige Exp $28 // GEANT4 tag $Name: $27 // $Id: G4Ions.cc,v 1.13 2008/06/08 12:43:19 kurasige Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // … … 68 68 SetAtomicNumber( G4int(GetPDGCharge()/eplus) ); 69 69 SetAtomicMass( GetBaryonNumber() ); 70 71 //G4cout << "G4Ions::" << GetParticleName() << G4endl; 70 72 } 73 74 75 G4Ions::~G4Ions() 76 { 77 78 //G4cout << "G4Ions::" << GetParticleName() << G4endl; 79 } 80 71 81 72 82 G4Ions* G4Ions::IonsDefinition() -
trunk/source/particles/management/src/G4IsotopeProperty.cc
r824 r850 26 26 // 27 27 // $Id: G4IsotopeProperty.cc,v 1.7 2007/03/16 05:25:08 kurasige Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4KL3DecayChannel.cc
r824 r850 26 26 // 27 27 // $Id: G4KL3DecayChannel.cc,v 1.8 2006/06/29 19:25:32 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4MuonDecayChannel.cc
r824 r850 26 26 // 27 27 // $Id: G4MuonDecayChannel.cc,v 1.17 2006/06/29 19:25:34 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4NeutronBetaDecayChannel.cc
r824 r850 26 26 // 27 27 // $Id: G4NeutronBetaDecayChannel.cc,v 1.7 2006/06/29 19:25:38 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4NucleiProperties.cc
r824 r850 26 26 // 27 27 // $Id: G4NucleiProperties.cc,v 1.13 2007/09/14 07:04:09 kurasige Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4NucleiPropertiesTableA.cc
r824 r850 26 26 // 27 27 // $Id: G4NucleiPropertiesTableA.cc,v 1.10 2006/06/29 19:25:42 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // ------------------------------------------------------------------- -
trunk/source/particles/management/src/G4NucleiPropertiesTableB.cc
r824 r850 26 26 // 27 27 // $Id: G4NucleiPropertiesTableB.cc,v 1.9 2006/06/29 19:25:44 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // ------------------------------------------------------------------- -
trunk/source/particles/management/src/G4NucleiPropertiesTheoreticalTableA.cc
r824 r850 26 26 // 27 27 // $Id: G4NucleiPropertiesTheoreticalTableA.cc,v 1.8 2006/06/29 19:25:46 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4PDGCodeChecker.cc
r824 r850 25 25 // 26 26 // 27 // $Id: G4PDGCodeChecker.cc,v 1.1 0 2007/11/14 02:22:08kurasige Exp $28 // GEANT4 tag $Name: $27 // $Id: G4PDGCodeChecker.cc,v 1.11 2008/06/08 12:43:19 kurasige Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // … … 45 45 { 46 46 code = 0; 47 verboseLevel = 3;47 verboseLevel = 1; 48 48 } 49 49 … … 101 101 if ((quark1==0)||(quark2==0)||(quark3==0)){ 102 102 #ifdef G4VERBOSE 103 if (verboseLevel> 1) {103 if (verboseLevel>0) { 104 104 G4cout << " G4PDGCodeChecker::CheckPDGCode : "; 105 105 G4cout << " meson has three quark "; … … 161 161 if ((quark1<quark2)||(quark2<quark3)||(quark1<quark3)) { 162 162 #ifdef G4VERBOSE 163 if (verboseLevel> 1) {163 if (verboseLevel>0) { 164 164 G4cout << " G4PDGCodeChecker::CheckPDGCode : "; 165 165 G4cout << " illegal code for baryon "; … … 171 171 if (quark1> NumberOfQuarkFlavor) { 172 172 #ifdef G4VERBOSE 173 if (verboseLevel> 1) {173 if (verboseLevel>0) { 174 174 G4cout << " G4PDGCodeChecker::CheckPDGCode : "; 175 175 G4cout << " ??? unknown quark "; … … 211 211 if ((quark1 !=0)||(quark2==0)||(quark3==0)){ 212 212 #ifdef G4VERBOSE 213 if (verboseLevel> 1) {213 if (verboseLevel>0) { 214 214 G4cout << " G4PDGCodeChecker::CheckPDGCode : "; 215 215 G4cout << " meson has only quark and anti-quark pair"; … … 221 221 if (quark2<quark3) { 222 222 #ifdef G4VERBOSE 223 if (verboseLevel> 1) {223 if (verboseLevel>0) { 224 224 G4cout << " G4PDGCodeChecker::CheckPDGCode : "; 225 225 G4cout << " illegal code for meson "; … … 233 233 if (quark2> NumberOfQuarkFlavor){ 234 234 #ifdef G4VERBOSE 235 if (verboseLevel> 1) {235 if (verboseLevel>0) { 236 236 G4cout << " G4PDGCodeChecker::CheckPDGCode : "; 237 237 G4cout << " ??? unknown quark "; … … 282 282 } else if (quark2>NumberOfQuarkFlavor){ 283 283 #ifdef G4VERBOSE 284 if (verboseLevel> 1) {284 if (verboseLevel>0) { 285 285 G4cout << " G4PDGCodeChecker::CheckPDGCode : "; 286 286 G4cout << " ??? unknown quark "; … … 309 309 if ( std::abs(quark1)>NumberOfQuarkFlavor ) { 310 310 #ifdef G4VERBOSE 311 if (verboseLevel> 1) {311 if (verboseLevel>0) { 312 312 G4cout << " G4PDGCodeChecker::CheckPDGCode : "; 313 313 G4cout << " ??? unknown quark "; … … 345 345 if (std::abs(totalCharge-thePDGCharge)>0.1*eplus) { 346 346 #ifdef G4VERBOSE 347 if (verboseLevel> 1) {347 if (verboseLevel>0) { 348 348 G4cout << " G4PDGCodeChecker::CheckCharge : "; 349 349 G4cout << " illegal electric charge " << thePDGCharge/eplus; … … 374 374 if (A < 2 || Z > A-L || L>A || Z<=0 ) { 375 375 #ifdef G4VERBOSE 376 if (verboseLevel> 1) {376 if (verboseLevel>0) { 377 377 G4cout << " G4PDGCodeChecker::CheckPDGCode : "; 378 378 G4cout << " ??? Illegal PDG encoding for nucleus "; -
trunk/source/particles/management/src/G4ParticleDefinition.cc
r824 r850 25 25 // 26 26 // 27 // $Id: G4ParticleDefinition.cc,v 1.3 0 2007/11/14 02:22:08kurasige Exp $28 // GEANT4 tag $Name: $27 // $Id: G4ParticleDefinition.cc,v 1.31 2008/06/08 12:43:19 kurasige Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // … … 113 113 theParticleTable = G4ParticleTable::GetParticleTable(); 114 114 theParticleTable->Insert(this); 115 116 //set verboseLevel equal to ParticleTable 117 verboseLevel = theParticleTable->GetVerboseLevel(); 115 118 116 119 if (anti_encoding !=0) theAntiPDGEncoding = anti_encoding; … … 180 183 181 184 G4PDGCodeChecker checker; 185 checker.SetVerboseLevel(verboseLevel); 182 186 183 187 G4int temp = checker.CheckPDGCode(thePDGEncoding, theParticleType); … … 193 197 temp = 0; 194 198 #ifdef G4VERBOSE 195 if (verboseLevel> 1) {199 if (verboseLevel>0) { 196 200 G4cout << "G4ParticleDefinition::FillQuarkContents : "; 197 201 G4cout << " illegal charge (" << thePDGCharge/eplus; … … 204 208 temp=0; 205 209 #ifdef G4VERBOSE 206 if (verboseLevel> 1) {210 if (verboseLevel>0) { 207 211 G4cout << "G4ParticleDefinition::FillQuarkContents : "; 208 212 G4cout << " illegal SPIN (" << thePDGiSpin << "/2"; -
trunk/source/particles/management/src/G4ParticleMessenger.cc
r824 r850 25 25 // 26 26 // 27 // $Id: G4ParticleMessenger.cc,v 1. 9 2007/03/15 06:53:27kurasige Exp $28 // GEANT4 tag $Name: $27 // $Id: G4ParticleMessenger.cc,v 1.10 2008/06/08 12:43:19 kurasige Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // … … 90 90 findCmd->SetParameterName("encoding", false); 91 91 92 // -- particle/property/Verbose --- 93 verboseCmd = new G4UIcmdWithAnInteger("/particle/verbose",this); 94 verboseCmd->SetGuidance("Set Verbose level of particle table."); 95 verboseCmd->SetGuidance(" 0 : Silent (default)"); 96 verboseCmd->SetGuidance(" 1 : Display warning messages"); 97 verboseCmd->SetGuidance(" 2 : Display more"); 98 verboseCmd->SetParameterName("verbose_level",true); 99 verboseCmd->SetDefaultValue(0); 100 verboseCmd->SetRange("verbose_level >=0"); 101 92 102 currentParticle = 0; 93 103 … … 100 110 { 101 111 delete fParticlePropertyMessenger; 112 102 113 delete listCmd; 103 114 delete selectCmd; 115 delete findCmd; 116 delete verboseCmd; 117 104 118 delete thisDirectory; 105 delete findCmd;106 119 } 107 120 … … 154 167 tmp->DumpTable(); 155 168 } 169 } else if( command==verboseCmd ) { 170 //Commnad /particle/verbose 171 theParticleTable->SetVerboseLevel(verboseCmd->GetNewIntValue(newValues)); 156 172 } 157 173 } … … 179 195 return currentParticle->GetParticleName(); 180 196 } 197 } else if( command==verboseCmd ){ 198 //Commnad /particle/verbose 199 return verboseCmd->ConvertToString(theParticleTable->GetVerboseLevel()); 181 200 } 182 201 return ""; -
trunk/source/particles/management/src/G4ParticlePropertyMessenger.cc
r824 r850 26 26 // 27 27 // $Id: G4ParticlePropertyMessenger.cc,v 1.7 2006/06/29 19:25:59 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4ParticleTable.cc
r824 r850 25 25 // 26 26 // 27 // $Id: G4ParticleTable.cc,v 1. 29.2.1 2008/04/25 12:21:52kurasige Exp $28 // GEANT4 tag $Name: geant4-09-01-patch-02$27 // $Id: G4ParticleTable.cc,v 1.33 2008/06/08 12:55:45 kurasige Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4ParticleTable … … 59 59 //////////////////// 60 60 G4ParticleTable::G4ParticleTable() 61 :verboseLevel( 0),fParticleMessenger(0),61 :verboseLevel(1),fParticleMessenger(0), 62 62 noName(" "), 63 63 readyToUse(false) … … 174 174 piter -> reset(); 175 175 while( (*piter)() ){ 176 #ifdef G4VERBOSE 177 if (verboseLevel>2){ 178 G4cout << "Delete " << (piter->value())->GetParticleName() 179 << " " << (piter->value()) << G4endl; 180 } 181 #endif 176 182 delete (piter->value()); 177 183 } … … 259 265 fShortLivedTable->Insert(particle); 260 266 } 267 268 // set Verbose Level same as ParticleTable 269 particle->SetVerboseLevel(verboseLevel); 270 271 #ifdef G4VERBOSE 272 if (verboseLevel>3){ 273 G4cout << "The particle "<< particle->GetParticleName() 274 << " is inserted in the ParticleTable " << G4endl; 275 } 276 #endif 261 277 262 278 return particle; … … 291 307 } 292 308 309 #ifdef G4VERBOSE 310 if (verboseLevel>3){ 311 G4cout << "The particle "<< particle->GetParticleName() 312 << " is removed from the ParticleTable " << G4endl; 313 } 314 #endif 315 293 316 return particle; 294 317 } … … 357 380 counter++; 358 381 } 359 } 360 #ifdef G4VERBOSE 361 if (verboseLevel> 0){382 } 383 #ifdef G4VERBOSE 384 if (verboseLevel>1){ 362 385 G4cout << " G4ParticleTable::GetParticle"; 363 386 G4cout << " invalid index (=" << index << ")" << G4endl; … … 370 393 G4ParticleDefinition* G4ParticleTable::FindParticle(const G4ParticleDefinition *particle) 371 394 { 372 395 CheckReadiness(); 373 396 G4String key = GetKey(particle); 374 397 return FindParticle(key); … … 382 405 if (aPDGEncoding == 0){ 383 406 #ifdef G4VERBOSE 384 if (verboseLevel> 0){407 if (verboseLevel>1){ 385 408 G4cout << "PDGEncoding [" << aPDGEncoding << "] is not valid " << G4endl; 386 409 } … … 388 411 return 0; 389 412 } 390 413 391 414 G4PTblEncodingDictionary *pedic = fEncodingDictionary; 392 415 G4ParticleDefinition* particle =0; … … 398 421 399 422 #ifdef G4VERBOSE 400 if ((particle == 0) && (verboseLevel> 0) ){423 if ((particle == 0) && (verboseLevel>1) ){ 401 424 G4cout << "CODE:" << aPDGEncoding << " does not exist in ParticleTable " << G4endl; 402 425 } … … 451 474 452 475 476 -
trunk/source/particles/management/src/G4PhaseSpaceDecayChannel.cc
r824 r850 26 26 // 27 27 // $Id: G4PhaseSpaceDecayChannel.cc,v 1.13 2007/10/06 06:49:29 kurasige Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4PrimaryParticle.cc
r824 r850 26 26 // 27 27 // $Id: G4PrimaryParticle.cc,v 1.5 2007/10/06 06:49:29 kurasige Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 -
trunk/source/particles/management/src/G4PrimaryVertex.cc
r824 r850 26 26 // 27 27 // $Id: G4PrimaryVertex.cc,v 1.4 2007/10/06 06:49:29 kurasige Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 -
trunk/source/particles/management/src/G4ShortLivedTable.cc
r824 r850 25 25 // 26 26 // 27 // $Id: G4ShortLivedTable.cc,v 1.1 4.2.1 2008/04/25 12:21:52kurasige Exp $28 // GEANT4 tag $Name: geant4-09-01-patch-02$27 // $Id: G4ShortLivedTable.cc,v 1.16 2008/06/08 12:55:45 kurasige Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // … … 94 94 } else { 95 95 #ifdef G4VERBOSE 96 if (GetVerboseLevel()> 0) {96 if (GetVerboseLevel()>1) { 97 97 G4cout << "G4ShortLivedTable::Remove :" << particle->GetParticleName() ; 98 98 G4cout << " is not short lived" << G4endl; -
trunk/source/particles/management/src/G4TauLeptonicDecayChannel.cc
r824 r850 26 26 // 27 27 // $Id: G4TauLeptonicDecayChannel.cc,v 1.5 2006/06/29 19:26:18 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4VDecayChannel.cc
r824 r850 26 26 // 27 27 // $Id: G4VDecayChannel.cc,v 1.18 2006/06/29 19:26:20 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/particles/management/src/G4VUserPrimaryParticleInformation.cc
r824 r850 26 26 // 27 27 // $Id: G4VUserPrimaryParticleInformation.cc,v 1.2 2006/06/29 19:26:22 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 #include "G4VUserPrimaryParticleInformation.hh" -
trunk/source/particles/management/src/G4VUserPrimaryVertexInformation.cc
r824 r850 26 26 // 27 27 // $Id: G4VUserPrimaryVertexInformation.cc,v 1.2 2006/06/29 19:26:24 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 //
Note: See TracChangeset
for help on using the changeset viewer.