X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TGeant4%2FTG4PhysicsConstructorSpecialControls.cxx;h=8b1637d89cb306fe101876a09c35665e3ea1cb49;hb=9754311559f405f3949bf48d6883dd02a93e7088;hp=7cb1aca24111eeca3b2427e933c94c065d2f287b;hpb=72095f7cc52685042c852d07c72c45a704812779;p=u%2Fmrichter%2FAliRoot.git diff --git a/TGeant4/TG4PhysicsConstructorSpecialControls.cxx b/TGeant4/TG4PhysicsConstructorSpecialControls.cxx index 7cb1aca2411..8b1637d89cb 100644 --- a/TGeant4/TG4PhysicsConstructorSpecialControls.cxx +++ b/TGeant4/TG4PhysicsConstructorSpecialControls.cxx @@ -1,6 +1,10 @@ // $Id$ // Category: physics // +// Author: I. Hrivnacova +// +// Class TG4PhysicsConstructorSpecialControls +// ------------------------------------------ // See the class description in the header file. #include "TG4PhysicsConstructorSpecialControls.h" @@ -15,10 +19,16 @@ //_____________________________________________________________________________ TG4PhysicsConstructorSpecialControls::TG4PhysicsConstructorSpecialControls( const G4String& name) - : G4VPhysicsConstructor(name) -{ + : TG4VPhysicsConstructor(name) { +// +} + +//_____________________________________________________________________________ +TG4PhysicsConstructorSpecialControls::TG4PhysicsConstructorSpecialControls( + G4int verboseLevel, + const G4String& name) + : TG4VPhysicsConstructor(name, verboseLevel) { // - SetVerboseLevel(1); } //_____________________________________________________________________________ @@ -46,9 +56,7 @@ void TG4PhysicsConstructorSpecialControls::ConstructProcess() TG4G3PhysicsManager* g3PhysicsManager = TG4G3PhysicsManager::Instance(); - if (g3PhysicsManager->IsSpecialControls()) - { - G4cout << "IsSpecialControls started" << G4endl; + if (g3PhysicsManager->IsSpecialControls()) { TG4boolVector* isControlVector = g3PhysicsManager->GetIsControlVector(); @@ -76,14 +84,13 @@ void TG4PhysicsConstructorSpecialControls::ConstructProcess() } } - if (verboseLevel>0) { - G4cout << "TG4PhysicsConstructorSpecialControls::ConstructProcess: " << G4endl; - G4cout << " Special controls process is defined for: " << G4endl - << " "; + if (VerboseLevel() > 0) { + G4cout << "### Special Controls constructed. " << G4endl; + G4cout << " Special controls process is defined for: " << G4endl + << " "; for (G4int i=0; iGetG3ParticleWSPName(i, name); - if ((*isControlVector)[i]) G4cout << name << " "; + if ((*isControlVector)[i]) + G4cout << g3PhysicsManager->GetG3ParticleWSPName(i) << " "; } G4cout << G4endl; }