// $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);
}
//_____________________________________________________________________________
TG4G3PhysicsManager* g3PhysicsManager
= TG4G3PhysicsManager::Instance();
- if (g3PhysicsManager->IsSpecialControls())
- {
- G4cout << "IsSpecialControls started" << G4endl;
+ if (g3PhysicsManager->IsSpecialControls()) {
TG4boolVector* isControlVector
= g3PhysicsManager->GetIsControlVector();
}
}
- 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;
}