|
||||
File indexing completed on 2025-01-18 09:17:09
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // 0027 // 0028 // Author: Elena Guardincerri (Elena.Guardincerri@ge.infn.it) 0029 // 0030 // History: 0031 // ----------- 0032 // 28 Nov 2001 Elena Guardincerri Created 0033 // 0034 // ------------------------------------------------------------------- 0035 0036 #include "XrayFluoEventActionMessenger.hh" 0037 0038 #include "XrayFluoEventAction.hh" 0039 #include "G4UIcmdWithAString.hh" 0040 #include "G4UIcmdWithAnInteger.hh" 0041 #include "globals.hh" 0042 #include "G4ios.hh" 0043 0044 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0045 0046 XrayFluoEventActionMessenger::XrayFluoEventActionMessenger(XrayFluoEventAction* EvAct) 0047 :eventAction(EvAct) 0048 { 0049 DrawCmd = new G4UIcmdWithAString("/event/drawTracks",this); 0050 DrawCmd->SetGuidance("Draw the tracks in the event"); 0051 DrawCmd->SetGuidance(" Choice : none, charged(default),neutral, all"); 0052 DrawCmd->SetParameterName("choice",true); 0053 DrawCmd->SetDefaultValue("all"); 0054 DrawCmd->SetCandidates("none charged neutral all"); 0055 DrawCmd->AvailableForStates(G4State_Idle); 0056 0057 PrintCmd = new G4UIcmdWithAnInteger("/event/printModulo",this); 0058 PrintCmd->SetGuidance("Print events modulo n"); 0059 PrintCmd->SetParameterName("EventNb",false); 0060 PrintCmd->SetRange("EventNb>0"); 0061 PrintCmd->AvailableForStates(G4State_Idle); 0062 } 0063 0064 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0065 0066 XrayFluoEventActionMessenger::~XrayFluoEventActionMessenger() 0067 { 0068 delete DrawCmd; 0069 delete PrintCmd; 0070 } 0071 0072 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0073 0074 void XrayFluoEventActionMessenger::SetNewValue(G4UIcommand * command,G4String newValue) 0075 { 0076 if(command == DrawCmd) 0077 {eventAction->SetDrawFlag(newValue);} 0078 0079 if(command == PrintCmd) 0080 {eventAction->SetPrintModulo(PrintCmd->GetNewIntValue(newValue));} 0081 } 0082 0083 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0084 0085 0086 0087 0088 0089 0090
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |