Print

Print


Commit in slic on MAIN
src/GeneratorMessenger.cc+4-41.12 -> 1.13
   /PrimaryGeneratorAction.cc+1-21.31 -> 1.32
include/GeneratorMessenger.hh+3-31.8 -> 1.9
+8-9
3 modified files
JM: add units to Lorentz transform command

slic/src
GeneratorMessenger.cc 1.12 -> 1.13
diff -u -r1.12 -r1.13
--- GeneratorMessenger.cc	3 Sep 2008 18:53:17 -0000	1.12
+++ GeneratorMessenger.cc	10 Sep 2008 00:04:34 -0000	1.13
@@ -1,4 +1,4 @@
-// $Header: /cvs/lcd/slic/src/GeneratorMessenger.cc,v 1.12 2008/09/03 18:53:17 jeremy Exp $
+// $Header: /cvs/lcd/slic/src/GeneratorMessenger.cc,v 1.13 2008/09/10 00:04:34 jeremy Exp $
 #include "GeneratorMessenger.hh"
 
 // slic
@@ -11,7 +11,7 @@
 #include "G4UIcommand.hh"
 #include "G4UIdirectory.hh"
 #include "G4UIcmdWithAnInteger.hh"
-#include "G4UIcmdWithADouble.hh"
+#include "G4UIcmdWithADoubleAndUnit.hh"
 
 // clhep
 #include "CLHEP/Random/Random.h"
@@ -86,7 +86,7 @@
         }
         // Lorentz transformation angle
         else if ( cmd == m_setLorentzTransformationAngleCmd ) {
-            EventSourceManager::instance()->setLorentzTransformationAngle( G4UIcmdWithADouble::GetNewDoubleValue( newVals ) ); 
+            EventSourceManager::instance()->setLorentzTransformationAngle( G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(newVals));
         }
         else {
             G4Exception("Unknown cmd for this messenger.");
@@ -137,7 +137,7 @@
         m_randomSeedCmd->SetParameter( p );
 
         // Lorentz transformation
-        m_setLorentzTransformationAngleCmd = new G4UIcmdWithADouble("/generator/setLorentzTransformationAngle",this);
+        m_setLorentzTransformationAngleCmd = new G4UIcmdWithADoubleAndUnit("/generator/setLorentzTransformationAngle",this);
         m_setLorentzTransformationAngleCmd->SetGuidance( "Set the Lorentz transformation angle to boost generated events." );
     }
 }

slic/src
PrimaryGeneratorAction.cc 1.31 -> 1.32
diff -u -r1.31 -r1.32
--- PrimaryGeneratorAction.cc	14 May 2008 03:24:11 -0000	1.31
+++ PrimaryGeneratorAction.cc	10 Sep 2008 00:04:34 -0000	1.32
@@ -1,4 +1,4 @@
-// $Header: /cvs/lcd/slic/src/PrimaryGeneratorAction.cc,v 1.31 2008/05/14 03:24:11 jeremy Exp $
+// $Header: /cvs/lcd/slic/src/PrimaryGeneratorAction.cc,v 1.32 2008/09/10 00:04:34 jeremy Exp $
 
 #include "PrimaryGeneratorAction.hh"
 
@@ -57,7 +57,6 @@
 
     void PrimaryGeneratorAction::applyLorentzTransformation(G4Event *evt)
     {
-        //const G4double alpha = Control::LorentzTransformationAngle;
         const G4double alpha = EventSourceManager::instance()->getLorentzTransformationAngle();
  
         if (alpha == 0) return; // nothing to do

slic/include
GeneratorMessenger.hh 1.8 -> 1.9
diff -u -r1.8 -r1.9
--- GeneratorMessenger.hh	14 May 2008 22:04:03 -0000	1.8
+++ GeneratorMessenger.hh	10 Sep 2008 00:04:34 -0000	1.9
@@ -1,4 +1,4 @@
-// $Header: /cvs/lcd/slic/include/GeneratorMessenger.hh,v 1.8 2008/05/14 22:04:03 jeremy Exp $
+// $Header: /cvs/lcd/slic/include/GeneratorMessenger.hh,v 1.9 2008/09/10 00:04:34 jeremy Exp $
 
 #ifndef SLIC_GENERATORMESSENGER_HH
 #define SLIC_GENERATORMESSENGER_HH 1
@@ -9,7 +9,7 @@
 class G4UIcommand;
 class G4UIdirectory;
 class G4UIcmdWithAnInteger;
-class G4UIcmdWithADouble;
+class G4UIcmdWithADoubleAndUnit;
 
 namespace slic
 {
@@ -43,7 +43,7 @@
             G4UIcommand* m_filenameCmd;
             G4UIcommand* m_dumpCurrentEventCmd;
             G4UIcommand* m_printNumEventsGeneratedCmd;
-            G4UIcmdWithADouble* m_setLorentzTransformationAngleCmd;
+            G4UIcmdWithADoubleAndUnit* m_setLorentzTransformationAngleCmd;
     };
 }
 
CVSspam 0.2.8