]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TGeant4/TG4Globals.cxx
Updated class description: added class title, author;
[u/mrichter/AliRoot.git] / TGeant4 / TG4Globals.cxx
index 08d09a8d17ac1a249c1aa5538ddcc48fa9b34826..d7077aab615dade343200cae79cb6b2ff2515794 100644 (file)
@@ -1,6 +1,10 @@
 // $Id$
 // Category: global
 //
+// Author: I. Hrivnacova
+//
+// Class TG4Globals
+// ----------------
 // See the class description in the header file.
 
 #include "TG4Globals.h"
@@ -62,3 +66,37 @@ void TG4Globals::AppendNumberToString(G4String& s, G4int a)
   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;
+}
+