// $Id$
// Category: global
//
+// Author: I. Hrivnacova
+//
+// Class TG4Globals
+// ----------------
// See the class description in the header file.
#include "TG4Globals.h"
s.append(q);
}
+//_____________________________________________________________________________
+G4bool TG4Globals::Compare(G4bool activation, TG4G3ControlValue controlValue)
+{
+// Compares the boolean value of the process activation
+// with the process control value.
+// Returns true if the values correspond, false otherwise.
+// ---
+
+ if (controlValue == kUnset) {
+ TG4Globals::Warning(
+ "TG4SpecialControls::Compare: control value = kUnset.");
+ return false;
+ }
+
+ if (controlValue == kActivate || controlValue == kActivate2)
+ return activation;
+ else
+ return !activation;
+}
+
+//_____________________________________________________________________________
+void TG4Globals::PrintStars(G4bool emptyLineFirst)
+{
+// Print stars.
+// ---
+
+
+ if (emptyLineFirst) G4cout << G4endl;
+
+ G4cout << "**********************************************" << G4endl;
+
+ if (!emptyLineFirst) G4cout << G4endl;
+}
+