/home/cern/BDSIM_new/src/BDSEventActionMessenger.cc

00001 /* BDSIM code.    Version 1.0
00002    Author: Grahame A. Blair, Royal Holloway, Univ. of London.
00003    Last modified 24.7.2002
00004    Copyright (c) 2002 by G.A.Blair.  ALL RIGHTS RESERVED. 
00005 */
00006 
00007 // This code implementation is the intellectual property of
00008 // the GEANT4 collaboration.
00009 //
00010 // By copying, distributing or modifying the Program (or any work
00011 // based on the Program) you indicate your acceptance of this statement,
00012 // and all its terms.
00013 //
00014 // $Id: BDSEventActionMessenger.cc,v 1.1 2005/01/22 16:42:31 agapov Exp $
00015 // GEANT4 tag $Name:  $
00016 //
00017 // 
00018 
00019 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00020 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00021 
00022 #include "BDSEventActionMessenger.hh"
00023 
00024 #include "BDSEventAction.hh"
00025 #include "G4UIcmdWithAString.hh"
00026 #include "G4UIcmdWithAnInteger.hh"
00027 #include "globals.hh"
00028 
00029 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00030 
00031 BDSEventActionMessenger::BDSEventActionMessenger(BDSEventAction* EvAct)
00032 :eventAction(EvAct)
00033 { 
00034   /*
00035   DrawCmd = new G4UIcmdWithAString("/event/drawTracks",this);
00036   DrawCmd->SetGuidance("Draw the tracks in the event");
00037   DrawCmd->SetGuidance("  Choice : none, charged(default), all");
00038   DrawCmd->SetParameterName("choice",true);
00039   DrawCmd->SetDefaultValue("charged");
00040   DrawCmd->SetCandidates("none charged all");
00041   DrawCmd->AvailableForStates(Idle);
00042   
00043   PrintCmd = new G4UIcmdWithAnInteger("/event/printModulo",this);
00044   PrintCmd->SetGuidance("Print events modulo n");
00045   PrintCmd->SetParameterName("EventNb",false);
00046   PrintCmd->SetRange("EventNb>0");
00047   PrintCmd->AvailableForStates(Idle);     
00048   */
00049 }
00050 
00051 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00052 
00053 BDSEventActionMessenger::~BDSEventActionMessenger()
00054 {
00055   /*
00056   delete DrawCmd;
00057   delete PrintCmd;   
00058   */
00059 }
00060 
00061 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00062 
00063 void BDSEventActionMessenger::SetNewValue(G4UIcommand * command,G4String newValue)
00064 { 
00065   /*
00066   if(command == DrawCmd)
00067     {eventAction->SetDrawFlag(newValue);}
00068        
00069   if(command == PrintCmd)
00070     {eventAction->SetPrintModulo(PrintCmd->GetNewIntValue(newValue));}              
00071   */
00072 }
00073 
00074 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....

Generated on Wed Mar 5 17:25:22 2008 for BDSIM by  doxygen 1.5.3