]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TGeant4/TG4PhysicsConstructorSpecialControls.cxx
Bugfix in AliPoints2Memory
[u/mrichter/AliRoot.git] / TGeant4 / TG4PhysicsConstructorSpecialControls.cxx
index 7cb1aca24111eeca3b2427e933c94c065d2f287b..8b1637d89cb306fe101876a09c35665e3ea1cb49 100644 (file)
@@ -1,6 +1,10 @@
 // $Id$
 // Category: physics
 //
+// Author: I. Hrivnacova
+//
+// Class TG4PhysicsConstructorSpecialControls
+// ------------------------------------------
 // See the class description in the header file.
 
 #include "TG4PhysicsConstructorSpecialControls.h"
 //_____________________________________________________________________________
 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; i<kNofParticlesWSP; i++) {
-        G4String name;
-        g3PhysicsManager->GetG3ParticleWSPName(i, name);
-        if ((*isControlVector)[i]) G4cout << name << " ";
+        if ((*isControlVector)[i]) 
+         G4cout << g3PhysicsManager->GetG3ParticleWSPName(i) << " ";
       }  
       G4cout << G4endl;
     }