Changeset 850 for trunk/source/particles/management/src/G4ParticleTable.cc
- Timestamp:
- Sep 10, 2008, 5:40:37 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.