Import Geant4 5.0.0 source tree
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
#
|
||||
# ********************************************************************
|
||||
# * DISCLAIMER *
|
||||
# * *
|
||||
# * The following disclaimer summarizes all the specific disclaimers *
|
||||
# * of contributors to this software. The specific disclaimers,which *
|
||||
# * govern, are listed with their locations in: *
|
||||
# * http://cern.ch/geant4/license *
|
||||
# * *
|
||||
# * Neither the authors of this software system, nor their employing *
|
||||
# * institutes,nor the agencies providing financial support for this *
|
||||
# * work make any representation or warranty, express or implied, *
|
||||
# * regarding this software system or assume any liability for its *
|
||||
# * use. *
|
||||
# * *
|
||||
# * This code implementation is the intellectual property of the *
|
||||
# * GEANT4 collaboration. *
|
||||
# * By copying, distributing or modifying the Program (or any work *
|
||||
# * based on the Program) you indicate your acceptance of this *
|
||||
# * statement, and all its terms. *
|
||||
# ********************************************************************
|
||||
#
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
delete v
|
||||
#
|
||||
# Get a SWIG handler over the current viewer :
|
||||
IViewer v -this [ui getCurrentViewer]
|
||||
v reset page
|
||||
#
|
||||
# 2x2 regions :
|
||||
v set page "1 2"
|
||||
v set pageTitle "Xray telescope"
|
||||
#
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
#delete storage
|
||||
#
|
||||
#RioStorage storage g4osc.root READ
|
||||
#storage ls
|
||||
#
|
||||
#delete hEnteringEnergy
|
||||
#
|
||||
# Get some histograms with the H1Get
|
||||
# builtin procedure defined in Lab/user/init.tcl :
|
||||
# H1DGet <variable> <storage> <SID>
|
||||
#H1DGet hEnteringEnergy storage "Entering energy"
|
||||
#
|
||||
# Plot the histo :
|
||||
#hEnteringEnergy vis
|
||||
#
|
||||
#v set textContext "color black fontName TTF/couri"
|
||||
#v set histogramContext "color red modeling solid"
|
||||
#
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
delete s2
|
||||
delete tuple
|
||||
delete t_energy
|
||||
#
|
||||
v set region 1
|
||||
#
|
||||
RioStorage s2 XrayTel.root READ
|
||||
RioTuple tuple [& s2] "XrayTel"
|
||||
tuple print
|
||||
#
|
||||
H1D t_energy "Entering energy" 100 0 0.002
|
||||
set cuts ""
|
||||
t_energy project [& tuple] EnteringEnergy $cuts
|
||||
t_energy vis
|
||||
unset cuts
|
||||
#
|
||||
# Fitting :
|
||||
#delete fitGauss
|
||||
#
|
||||
#Gaussian fitGauss 100 0.0008 0.0012
|
||||
#fitGauss fit [& t_energy]
|
||||
#
|
||||
#fitGauss vis
|
||||
#
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
delete yz
|
||||
#
|
||||
v set region 2
|
||||
#
|
||||
Cloud2D yz YZ
|
||||
set cuts ""
|
||||
yz project [& tuple] y z $cuts
|
||||
yz vis
|
||||
unset cuts
|
||||
#
|
||||
v set cloudContext "modeling cloud color blue markerStyle plus markerSize 10"
|
||||
#
|
||||
@@ -0,0 +1,364 @@
|
||||
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!!!!
|
||||
!!!! A X11 resource file to customize G4UI sessions and
|
||||
!!!! visualization viewers based over Xt. You use it by
|
||||
!!!! setting the XENVIRONMENT environment variable to point
|
||||
!!!! to this file, for example :
|
||||
!!!! csh> setenv XENVIRONMENT g4Xt.xrm
|
||||
!!!! sh> XENVIRONMENT=g4Xt.xrm;export XENVIRONMENT
|
||||
!!!!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
*topShadowColor :white
|
||||
*bottomShadowColor :black
|
||||
*foreground :black
|
||||
*background :lightgrey
|
||||
*borderColor :lightgrey
|
||||
*fontList :-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-1
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!!!! G4UIXm
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
*text.background :white
|
||||
*text.fontList :*courier*-r-*--14-*
|
||||
*text.maxLength :8000
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!!!! OPACS/Xo/XoCamera widget
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
*XoCamera.width:400
|
||||
*XoCamera.height:400
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
! OpenInventor resources, copied from file :
|
||||
! OpenInventor2.4.1/app-defaults/Inventor
|
||||
!
|
||||
!#################################################
|
||||
! RESSOURCE FILE FOR OPEN INVENTOR !
|
||||
!#################################################
|
||||
!
|
||||
! You must put this file in
|
||||
! /usr/lib/X11/app-defaults
|
||||
! or set up XAPPLRESDIR (see X window documentation)
|
||||
!
|
||||
!#################################################
|
||||
!!################################################
|
||||
!! POPUP MENU
|
||||
!!------------------------------------------------
|
||||
!! FUNCTIONS MENU
|
||||
!!------------------------------------------------
|
||||
*IvMenu.IvFunctions1.labelString: Functions
|
||||
*IvFunctions2.IvHelp.labelString: Help
|
||||
*IvFunctions2.IvHome.labelString: Home
|
||||
*IvFunctions2.IvSetHome.labelString: Set Home
|
||||
*IvFunctions2.IvViewAll.labelString: View All
|
||||
*IvFunctions2.IvSeek.labelString: Seek
|
||||
*IvFunctions2.IvCopyView.labelString: Copy View
|
||||
*IvFunctions2.IvPasteView.labelString: Paste View
|
||||
!!------------------------------------------------
|
||||
!! DRAW STYLE MENU
|
||||
!!------------------------------------------------
|
||||
*IvMenu.IvDrawStyle1.labelString: Draw Style
|
||||
*IvDrawStyle2.IvAsIs.labelString: as is
|
||||
*IvDrawStyle2.IvHiddenLine.labelString: hidden line
|
||||
*IvDrawStyle2.IvNoTexture.labelString: no texture
|
||||
*IvDrawStyle2.IvLowResolution.labelString: low resolution
|
||||
*IvDrawStyle2.IvWireFrame.labelString: wireframe
|
||||
*IvDrawStyle2.IvPoints.labelString: points
|
||||
*IvDrawStyle2.IvBoundingBoxNoDepth.labelString: bounding box ( no depth )
|
||||
*IvDrawStyle2.IvMoveSameAsStill.labelString: move same as still
|
||||
*IvDrawStyle2.IvMoveNoTexture.labelString: move no texture.
|
||||
*IvDrawStyle2.IvMoveLowRes.labelString: move low res
|
||||
*IvDrawStyle2.IvMoveWireFrame.labelString: move wireframe
|
||||
*IvDrawStyle2.IvMoveLowResWireFrameNoDepth.labelString: move low res wire frame ( no depth )
|
||||
*IvDrawStyle2.IvMovePoints.labelString: move points
|
||||
*IvDrawStyle2.IvMoveLowResPointsNoDepth.labelString: move low res points ( no depth )
|
||||
*IvDrawStyle2.IvMoveBoundingBoxNoDepth.labelString: move bounding box ( no depth )
|
||||
*IvDrawStyle2.IvSingleBuffer.labelString: single buffer
|
||||
*IvDrawStyle2.IvDoubleBuffer.labelString: Double buffer
|
||||
*IvDrawStyle2.IvInteractiveBuffer.labelString: interactive buffer
|
||||
!!------------------------------------------------
|
||||
*IvMenu.IvViewing.labelString: Viewing
|
||||
!!------------------------------------------------
|
||||
*IvMenu.IvDecoration.labelString: Decoration
|
||||
!!------------------------------------------------
|
||||
*IvMenu.IvHeadlight.labelString: Headlight
|
||||
!!------------------------------------------------
|
||||
*IvMenu.IvPreferences.labelString: Preferences ...
|
||||
|
||||
!!------------------------------------------------
|
||||
!! PREFERENCES
|
||||
!!------------------------------------------------
|
||||
*IvFormPreference1.IvSeekAnimationTime.labelString: Seek animation time
|
||||
*IvFormPreference1.IvSeconds.labelString: seconds
|
||||
*IvFormPreference1.IvSeekTo.labelString: Seek to:
|
||||
*IvFormPreference1.IvPoint.labelString: point
|
||||
*IvFormPreference1.IvObject.labelString: object
|
||||
*IvFormPreference2.IvSeekDistance.labelString: Seek distance:
|
||||
*IvFormPreference2.IvPercentage.labelString: percentage
|
||||
*IvFormPreference2.IvAbsolute.labelString: absolute
|
||||
*IvZoomForm.IvCameraZoom.labelString: Camera zoom
|
||||
*IvZoomForm.IvZoomSliderRangesFrom.labelString: Zoom slider ranges from:
|
||||
*IvZoomForm.IvTo.labelString: to:
|
||||
*IvZoomForm.IvZoomSlider.labelString: Zoom slider
|
||||
*IvZoomForm.IvZoomField.labelString: Zoom field
|
||||
*IvZoomForm.IvZoomFrom.labelString: Zoom from
|
||||
*IvZoomForm.IvZoomTo.labelString: Zoom to
|
||||
*IvFormPreference3.IvAutoClippingPlanes.labelString: Auto clipping planes
|
||||
*IvFormPreference4.IvStereoViewing.labelString: Stereo Viewing
|
||||
*IvFormPreference6.IvNearPlane.labelString: near plane
|
||||
*IvFormPreference6.IvFarPlane.labelString: far plane
|
||||
*IvStereoThumbForm.IvCameraRotation.labelString: Camera rotation
|
||||
|
||||
!!------------------------------------------------
|
||||
!! Preferences for Examiner Viewer
|
||||
!!------------------------------------------------
|
||||
*IvFormExaminer1.IvEnableSpinAnimation.labelString: Enable spin animation
|
||||
*IvFormExaminer1.IvShowPointOfRotationAxes.labelString: Show point of rotation axes
|
||||
*IvFormExaminer1.IvAxesSize.labelString: axes size
|
||||
*IvFormExaminer1.IvPixels.labelString: pixels
|
||||
!!------------------------------------------------
|
||||
!! Decorations for Examiner Viewer !!
|
||||
!!------------------------------------------------
|
||||
*IvExamTitle.labelString: Examiner Viewer
|
||||
*IvExamPrefTitle.labelString: Examiner Viewer Preference Sheet
|
||||
*IvExamPopupTitle.labelString: Examiner Viewer
|
||||
*IvExamIconTitle.labelString: Examiner Viewer
|
||||
*IvExamRotx.labelString: Rotx
|
||||
*IvExamRoty.labelString: Roty
|
||||
*IvExamZoom.labelString: Zoom
|
||||
*IvExamDolly.labelString: Dolly
|
||||
!!------------------------------------------------
|
||||
!! Decorations for Plane Viewer !!
|
||||
!!------------------------------------------------
|
||||
*IvPlaneTitle.labelString: Plane Viewer
|
||||
*IvPlanePrefTitle.labelString: Plane Viewer Preference Sheet
|
||||
*IvPlanePopupTitle.labelString: Plane Viewer
|
||||
*IvPlaneIconTitle.labelString: Plane Viewer
|
||||
*IvPlaneTransx.labelString: transX
|
||||
*IvPlaneTransy.labelString: transY
|
||||
*IvPlaneZoom.labelString: Zoom
|
||||
*IvPlaneDolly.labelString: Dolly
|
||||
!!------------------------------------------------
|
||||
!! Decorations for Fly Viewer !!
|
||||
!!------------------------------------------------
|
||||
*IvFlyTitle.labelString: Fly Viewer
|
||||
*IvFlyPrefTitle.labelString: Fly Viewer Preference Sheet
|
||||
*IvFlyPopupTitle.labelString: Fly Viewer
|
||||
*IvFlyIconTitle.labelString: Fly Viewer
|
||||
!! Same for Walk Viewer !!
|
||||
*IvFlyWalkRotate.labelString: Rotate
|
||||
!! Same for Walk Viewer !!
|
||||
*IvFlyWalkTilt.labelString: Tilt
|
||||
!! Same for Walk Viewer !!
|
||||
*IvFlyWalkDolly.labelString: Dolly
|
||||
!!------------------------------------------------
|
||||
!! Preferences for Fly Viewer !!
|
||||
!!------------------------------------------------
|
||||
*FlyPreference.FlyingSpeed.labelString: Flying speed:
|
||||
*FlyPreference.Increase.labelString: increase
|
||||
*FlyPreference.Decrease.labelString: decrease
|
||||
!!------------------------------------------------
|
||||
!! Decorations for Walk Viewer !!
|
||||
!!------------------------------------------------
|
||||
*IvWalkTitle.labelString: Walk Viewer
|
||||
*IvWalkPrefTitle.labelString: Walk Viewer Preference Sheet
|
||||
*IvWalkPopupTitle.labelString: Walk Viewer
|
||||
*IvWalkIconTitle.labelString: Walk Viewer
|
||||
*IvLeftTrimForm.IvH.labelString: H
|
||||
!!------------------------------------------------
|
||||
!! Preferences for Walk Viewer !!
|
||||
!!------------------------------------------------
|
||||
*IvFormPreference5.IvViewerSpeed.labelString: Viewer speed
|
||||
*IvFormPreference5.IvIncrease.labelString: increase
|
||||
*IvFormPreference5.IvDecrease.labelString: decrease
|
||||
!!------------------------------------------------
|
||||
!! EDITORS
|
||||
!!------------------------------------------------
|
||||
!! Drectional Light Editor !!
|
||||
!!------------------------------------------------
|
||||
*IvDirectLightTitle.labelString: Dir Light Editor
|
||||
*IvDirectLightIconTitle.labelString: Dir Light Ed
|
||||
*IvDirectLightInten.labelString: Inten
|
||||
*IvDirectLightColorEditor.labelString: Directional Light Color
|
||||
*IvDLMenuBar.IvEdit.labelString: Edit
|
||||
*IvDLMenuBar*IvControlPullDown*IvColorEditor.labelString: Color Editor
|
||||
*IvDLMenuBar*IvControlPullDown*IvCopy.labelString: Copy
|
||||
*IvDLMenuBar*IvControlPullDown*IvPaste.labelString: Paste
|
||||
*IvDLMenuBar*IvControlPullDown*IvHelp.labelString: Help
|
||||
!!------------------------------------------------
|
||||
!! Color Editor !!
|
||||
!!------------------------------------------------
|
||||
*IvColorEditorTitle.labelString: Color Editor
|
||||
*IvColorEditorIconTitle.labelString: Color Editor
|
||||
*IvColorEditorR.labelString: R
|
||||
*IvColorEditorG.labelString: G
|
||||
*IvColorEditorB.labelString: B
|
||||
*IvColorEditorH.labelString: H
|
||||
*IvColorEditorS.labelString: S
|
||||
*IvColorEditorV.labelString: V
|
||||
*IvColorEditorRight.labelString: Right
|
||||
*IvColorEditorSwitch.labelString: Switch
|
||||
*IvColorEditorCont.labelString: Continuous
|
||||
*IvColorEditorManu.labelString: Manual
|
||||
*IvColorEditorWysi.labelString: WYSIWYG
|
||||
*IvColorEditorCopy.labelString: Copy
|
||||
*IvColorEditorPaste.labelString: Paste
|
||||
*IvColorEditorHelp.labelString: Help
|
||||
*IvColorEditorNone.labelString: None
|
||||
*IvColorEditorValue.labelString: Value
|
||||
*IvColorEditorRGB.labelString: RGB
|
||||
*IvColorEditorHSV.labelString: HSV
|
||||
*IvColorEditorRGBV.labelString: RGB V
|
||||
*IvColorEditorRGBHSV.labelString: RGB HSV
|
||||
|
||||
*IvCEMenuBar.IvEdit.labelString: Edit
|
||||
*IvCEMenuBar.IvSliders.labelString: Sliders
|
||||
*IvButtonsForm.IvAccept.labelString: Accept
|
||||
!!------------------------------------------------
|
||||
!! Material Editor !!
|
||||
!!------------------------------------------------
|
||||
*IvMaterialEditorTitle.labelString: Material Editor
|
||||
*IvMaterialEditorIconTitle.labelString: Mat Editor
|
||||
*IvMaterialAmbientTitle.labelString: Material Ambient Color
|
||||
*IvMaterialDiffuseTitle.labelString: Material Diffuse Color
|
||||
*IvMaterialSpecularTitle.labelString: Material Specular Color
|
||||
*IvMaterialEmissiveTitle.labelString: -Material Emissive Color
|
||||
*IvMaterialEditorMaterial.labelString: Material /
|
||||
*IvMaterialEditorAmb.labelString: Amb /
|
||||
*IvMaterialEditorDiff.labelString: Diff /
|
||||
*IvMaterialEditorSpec.labelString: Spec /
|
||||
*IvMaterialEditorEmis.labelString: Emis /
|
||||
*IvMaterialEditorColor.labelString: Color
|
||||
*IvMEMenuBar.IvEdit.labelString: Edit
|
||||
*IvMEMenuBar*IvEditPullDown.IvMaterialList.labelString: Material List
|
||||
*IvMEMenuBar*IvEditPullDown.IvContinuous.labelString: Continuous
|
||||
*IvMEMenuBar*IvEditPullDown.IvManual.labelString: Manual
|
||||
*IvMEMenuBar*IvEditPullDown.IvCopy.labelString: Copy
|
||||
*IvMEMenuBar*IvEditPullDown.IvPaste.labelString: Paste
|
||||
*IvMEMenuBar*IvEditPullDown.IvHelp.labelString: Help
|
||||
*IvControls.IvEditColor.labelString: Edit Color
|
||||
*IvsliderForm.IvtextForm.IvAmb.labelString: Amb:
|
||||
*IvsliderForm.IvtextForm.IvDiff.labelString: Diff
|
||||
*IvsliderForm.IvtextForm.IvSpec.labelString: Spec
|
||||
*IvsliderForm.IvtextForm.IvEmis.labelString: Emis
|
||||
*IvsliderForm.IvtextForm.IvShininess.labelString: Shininess
|
||||
*IvsliderForm.IvtextForm.IvTransp.labelString: Transp:
|
||||
*IvMETop.IvAccept.labelString: Accept
|
||||
!!------------------------------------------------
|
||||
!! Material List !!
|
||||
!!------------------------------------------------
|
||||
*IvMaterialListTitle.labelString: Material List
|
||||
*IvMaterialListeIconTitle.labelString: Mat List
|
||||
*IvMLMenuBar*IvPalettes.labelString: Palettes
|
||||
!!------------------------------------------------
|
||||
!! Print Dialog
|
||||
!!------------------------------------------------
|
||||
*IvPrintDialTitle.labelString: Print Dialog
|
||||
*IvPrintDialIconTitle.labelString: -rint Dialog
|
||||
*IvPrintDialPrinter.labelString: Printer:
|
||||
*IvPrintDialPageOut.labelString: Page Output:
|
||||
*IvPrintDialToPrinter.labelString: To Printer
|
||||
*IvPrintDialToFile.labelString: To File
|
||||
*IvPrintDialQuit.labelString: Quit
|
||||
*IvPrintDialPrint.labelString: Print
|
||||
*IvPrintDialMessage.labelString: Message:
|
||||
*IvPrintDialFileFormat.labelString: File Format:
|
||||
*IvPrintDialPostScript.labelString: PostScript
|
||||
*IvPrintDialRGB.labelString: RGB
|
||||
*IvPrintDialPrintQuality.labelString: Print Quality:
|
||||
*IvPrintDialHigh.labelString: High
|
||||
*IvPrintDialDraft.labelString: Draft
|
||||
*IvPrintDialPageFormat.labelString: Page Format
|
||||
*IvPrintDialPortrait.labelString: Portrait
|
||||
*IvPrintDialLandscape.labelString: Landscape
|
||||
*IvPrintDialPrintSize.labelString: Print Size (inches):
|
||||
*IvPrintDialFileName.labelString: File Name:
|
||||
*IvPrintDialResolution.labelString: Resolution
|
||||
*IvPrintDialBy.labelString: by
|
||||
*IvPrintDialDpi.labelString: DPI:
|
||||
*IvPrintDialMess1.labelString: Printing in progress...
|
||||
*IvPrintDialMess2.labelString: ERROR: Empty database.
|
||||
*IvPrintDialMess3.labelString: ERROR: Exceeds
|
||||
*IvPrintDialMess4.labelString: ERROR: Could not execute print.
|
||||
*IvPrintDialMess5.labelString: ERROR: Could not execute print.
|
||||
*IvPrintDialMess6.labelString: ERROR: No printer.
|
||||
*IvPrintDialMess7.labelString: ERROR: Couldn't open
|
||||
*IvPrintDialMess8.labelString: ERROR: No file name.
|
||||
*IvPrintDialMess9.labelString: ERROR: Could not open file.
|
||||
*IvPrintDialMess10.labelString: ERROR: Could not get data.
|
||||
*IvPrintDialMess11.labelString: ERROR: Could not get data.
|
||||
*IvPrintDialMess12.labelString: Printing completed.
|
||||
|
||||
!!------------------------------------------------
|
||||
!! Xt Component ( For Light and Material Sliders Set )
|
||||
!!------------------------------------------------
|
||||
*IvXtComponentTitle.labelString: Xt Component
|
||||
*IvTGSXtComponentTitle.labelString: TGS: Xt Component
|
||||
!!------------------------------------------------
|
||||
!! For All Sliders
|
||||
!!------------------------------------------------
|
||||
*IvSlidersMin.labelString: min
|
||||
*IvSlidersMax.labelString: max
|
||||
*IvSlidersStyle.labelString: style
|
||||
!!------------------------------------------------
|
||||
!! Light Slider Set
|
||||
!!------------------------------------------------
|
||||
*IvLightSliderColor.labelString: COLOR
|
||||
*IvLightSliderRed.labelString: Red
|
||||
*IvLightSliderGreen.labelString: Green
|
||||
*IvLightSliderBlue.labelString: Blue
|
||||
*IvLightSliderIntensity1.labelString: INTENSITY
|
||||
*IvLightSliderIntensity2.labelString: Intensity
|
||||
!!------------------------------------------------
|
||||
!! Material Slider Set
|
||||
!!------------------------------------------------
|
||||
*IvMaterialSliderAmbient.labelString: AMBIENT
|
||||
*IvMaterialSliderAmbientRed.labelString: Ambient Red
|
||||
*IvMaterialSliderAmbientGreen.labelString: Ambient Green
|
||||
*IvMaterialSliderAmbientBleu.labelString: Ambient Blue
|
||||
*IvMaterialSliderDiffuse.labelString: DIFFUSE
|
||||
*IvMaterialSliderDiffuseRed.labelString: Diffuse Red
|
||||
*IvMaterialSliderDiffuseGreen.labelString: Diffuse Green
|
||||
*IvMaterialSliderDiffuseBleu.labelString: Diffuse Blue
|
||||
*IvMaterialSliderSpecular.labelString: SPECULAR
|
||||
*IvMaterialSliderSpecularRed.labelString: Specular Red
|
||||
*IvMaterialSliderSpecularGreen.labelString: Specular Green
|
||||
*IvMaterialSliderSpecularBleu.labelString: Specular Blue
|
||||
*IvMaterialSliderEmissive.labelString: EMISSIVE
|
||||
*IvMaterialSliderEmissiveRed.labelString: Emissive Red
|
||||
*IvMaterialSliderEmissiveGreen.labelString: Emissive Green
|
||||
*IvMaterialSliderEmissiveBlue.labelString: Emissive Blue
|
||||
*IvMaterialSliderShininess.labelString: SHININESS
|
||||
*IvMaterialSliderShininessShininess.labelString: shininess
|
||||
*IvMaterialSliderTransparency.labelString: TRANSPARENCY
|
||||
*IvMaterialSliderTransparencyTransparency.labelString: transparency
|
||||
!!------------------------------------------------
|
||||
!! Transform Slider Set
|
||||
!!------------------------------------------------
|
||||
*IvTransformSliderTrans.labelString: TRANSLATIONS
|
||||
*IvTransformSliderTransX.labelString: X Translation
|
||||
*IvTransformSliderTransY.labelString: Y Translation
|
||||
*IvTransformSliderTransZ.labelString: Z Translation
|
||||
*IvTransformSliderScale.labelString: SCALES
|
||||
*IvTransformSliderScaleX.labelString: X Scale
|
||||
*IvTransformSliderScaleY.labelString: Y Scale
|
||||
*IvTransformSliderScaleZ.labelString: Z Scale
|
||||
*IvTransformSliderRotate.labelString: ROTATIONS
|
||||
*IvTransformSliderRotateX.labelString: X Rotate
|
||||
*IvTransformSliderRotateY.labelString: Y Rotate
|
||||
*IvTransformSliderRotateZ.labelString: Z Rotate
|
||||
*IvTransformSliderScaleOrient.labelString: SCALE ORIENTATION
|
||||
*IvTransformSliderScaleOrientX.labelString: X Rotate
|
||||
*IvTransformSliderScaleOrientY.labelString: Y Rotate
|
||||
*IvTransformSliderScaleOrientZ.labelString: Z Rotate
|
||||
*IvTransformSliderCenter.labelString: CENTER
|
||||
*IvTransformSliderCenterX.labelString: X Center
|
||||
*IvTransformSliderCenterY.labelString: Y Center
|
||||
*IvTransformSliderCenterZ.labelString: Z Center
|
||||
*IvTransformSliderTitle.labelString: Transform Editor
|
||||
*IvTransformSliderIconTitle.labelString: Xf Editor
|
||||
|
||||
|
||||
!!------------------- THE END --------------------
|
||||
@@ -0,0 +1,21 @@
|
||||
#
|
||||
# This file permits to customize, with commands,
|
||||
# the menu bar of the G4UIXm, G4UIWin32 sessions.
|
||||
# It has no effect with G4UIterminal.
|
||||
#
|
||||
# File :
|
||||
/gui/addMenu file File
|
||||
/gui/addButton file Continue continue
|
||||
/gui/addButton file Exit "exit"
|
||||
#
|
||||
# Run menu :
|
||||
/gui/addMenu run Run
|
||||
/gui/addButton run run "/control/execute run.mac"
|
||||
/gui/addButton run "Long Section" "/control/execute longsection.macro"
|
||||
#
|
||||
# Analysis :
|
||||
/gui/addMenu analysis Analysis
|
||||
/gui/addButton analysis "Lab/oxm" "/gui/system oxm&"
|
||||
/gui/addButton analysis "Lab/ogtk" "/gui/system ogtk&"
|
||||
/gui/addButton analysis "jas" "/gui/system jas&"
|
||||
#
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh -f
|
||||
cd /lal/jas/2.0alpha4/release
|
||||
./jas
|
||||
+380
@@ -0,0 +1,380 @@
|
||||
<gui>
|
||||
<create exec="tcl">
|
||||
source $env(ONXHOME)/user/init.tcl;
|
||||
source $env(ONXHOME)/user/ui.tcl;
|
||||
source $env(LABHOME)/user/init.tcl;
|
||||
delete v;
|
||||
IViewer v -this [ui getCurrentViewer];
|
||||
v set pageTitle "XrayTel";
|
||||
v set page "2 1";
|
||||
v set region 2;
|
||||
v set cloudContext "modeling cloud color blue markerStyle cross markerSize 10";
|
||||
v set region 1;
|
||||
ui synchronize;
|
||||
#out disable;
|
||||
</create>
|
||||
|
||||
<widget>
|
||||
<class>Window</class>
|
||||
<name>consoleWindow</name>
|
||||
<geometry>500x300-0+0</geometry>
|
||||
<title>OnX/Console</title>
|
||||
<show>no</show>
|
||||
<widget>
|
||||
<class>VBox</class>
|
||||
<widget>
|
||||
<class>ScrolledText</class>
|
||||
<name>consoleText</name>
|
||||
</widget>
|
||||
<widget>
|
||||
<class>Entry</class>
|
||||
<name>consoleEntry</name>
|
||||
<prompt>tcl></prompt>
|
||||
<activate exec="tcl">ui execute "[ui getResource consoleEntry prompt] [ui getValue consoleEntry]"</activate>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>Window</class>
|
||||
<geometry>500x500+0+0</geometry>
|
||||
<title>Lab/Main</title>
|
||||
<!-- //////////////////////////////////// -->
|
||||
<widget>
|
||||
<class>VBox</class>
|
||||
<widget>
|
||||
<class>MenuBar</class>
|
||||
<name>menuBar</name>
|
||||
<widget> <!-- /////////// File /////////// -->
|
||||
<class>CascadeButton</class>
|
||||
<label>File</label>
|
||||
<widget>
|
||||
<class>Menu</class>
|
||||
<widget> <!-- File / Console -->
|
||||
<class>MenuItem</class>
|
||||
<label>Console</label>
|
||||
<activate exec="tcl"> ui show consoleWindow </activate>
|
||||
</widget>
|
||||
<widget> <!-- File / Exec tcl... -->
|
||||
<class>MenuItem</class>
|
||||
<label>Exec tcl...</label>
|
||||
<activate exec="tcl"> setTclFileChooser;ui show fileChooser </activate>
|
||||
</widget>
|
||||
<widget> <!-- File / session.tcl... -->
|
||||
<class>MenuItem</class>
|
||||
<label>session.tcl</label>
|
||||
<activate exec="tcl"> source session.tcl </activate>
|
||||
</widget>
|
||||
<widget> <!-- File / Exec cint... -->
|
||||
<class>MenuItem</class>
|
||||
<label>Exec cint...</label>
|
||||
<activate exec="tcl"> setCintFileChooser;ui show fileChooser </activate>
|
||||
</widget>
|
||||
<widget> <!-- File / Exec kumac... -->
|
||||
<class>MenuItem</class>
|
||||
<label>Exec kumac...</label>
|
||||
<activate exec="tcl"> setKuipFileChooser;ui show fileChooser </activate>
|
||||
</widget>
|
||||
<widget> <!-- File / session.kumac... -->
|
||||
<class>MenuItem</class>
|
||||
<label>session.kumac</label>
|
||||
<create exec="kuip"> /LIB/LOAD LABLIBLABKUIPWRAP LabKuip </create>
|
||||
<activate exec="kuip"> exec session </activate>
|
||||
</widget>
|
||||
<widget> <!-- File / Out -->
|
||||
<class>MenuItem</class>
|
||||
<label>stdout</label>
|
||||
<activate exec="tcl"> out disable </activate>
|
||||
</widget>
|
||||
<widget> <!-- File / Continue -->
|
||||
<class>MenuItem</class>
|
||||
<label>Continue</label>
|
||||
<!-- set a create callback to restore a tcl prompt
|
||||
changed to kuip by the previous one -->
|
||||
<create exec="tcl"> ui setPrompt tcl> </create>
|
||||
<activate exec="tcl"> ui exit </activate>
|
||||
</widget>
|
||||
<widget> <!-- File / Exit -->
|
||||
<class>MenuItem</class>
|
||||
<label>Exit</label>
|
||||
<activate exec="tcl"> ui exit </activate>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget> <!-- /////////// Viewer /////////// -->
|
||||
<class>CascadeButton</class>
|
||||
<label>Viewer</label>
|
||||
<widget>
|
||||
<class>Menu</class>
|
||||
<widget> <!-- Viewer / next -->
|
||||
<class>MenuItem</class>
|
||||
<label>next</label>
|
||||
<activate exec="tcl"> Do3 set region next </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / 1x1 -->
|
||||
<class>MenuItem</class>
|
||||
<label>1x1</label>
|
||||
<activate exec="tcl"> Do3 page 1 1</activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / 2x2 -->
|
||||
<class>MenuItem</class>
|
||||
<label>2x2</label>
|
||||
<activate exec="tcl"> Do3 page 2 2</activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / 1x2 -->
|
||||
<class>MenuItem</class>
|
||||
<label>1x2</label>
|
||||
<activate exec="tcl"> Do3 page 1 2</activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / 2x1 -->
|
||||
<class>MenuItem</class>
|
||||
<label>2x1</label>
|
||||
<activate exec="tcl"> Do3 page 2 1</activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / region page -->
|
||||
<class>MenuItem</class>
|
||||
<label>Region page</label>
|
||||
<activate exec="tcl"> Do3 set region page</activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / 2D -->
|
||||
<class>MenuItem</class>
|
||||
<label>2D</label>
|
||||
<activate exec="tcl"> Do3 set viewing 2D </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / 3D -->
|
||||
<class>MenuItem</class>
|
||||
<label>3D</label>
|
||||
<activate exec="tcl"> Do3 set viewing 3D </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / black -->
|
||||
<class>MenuItem</class>
|
||||
<label>Black back</label>
|
||||
<activate exec="tcl"> Do3 set regionColor "0 0 0" </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / white -->
|
||||
<class>MenuItem</class>
|
||||
<label>White back</label>
|
||||
<activate exec="tcl"> Do3 set regionColor "1 1 1" </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / grey -->
|
||||
<class>MenuItem</class>
|
||||
<label>Grey back</label>
|
||||
<activate exec="tcl"> Do3 set regionColor "0.8 0.8 0.8" </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / viewAll -->
|
||||
<class>MenuItem</class>
|
||||
<label>view all</label>
|
||||
<activate exec="tcl"> Do1 viewAll </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / PS vec -->
|
||||
<class>MenuItem</class>
|
||||
<label>PS vec</label>
|
||||
<activate exec="tcl"> Do2 producePS out.ps </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / PS pix -->
|
||||
<class>MenuItem</class>
|
||||
<label>PS pix</label>
|
||||
<activate exec="tcl"> Do3 writeImage out.ps PostScript </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / gv -->
|
||||
<class>MenuItem</class>
|
||||
<label>gv</label>
|
||||
<activate exec="tcl"> exec ghostview out.ps </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / GIF -->
|
||||
<class>MenuItem</class>
|
||||
<label>GIF</label>
|
||||
<activate exec="tcl"> Do3 writeImage out.gif GIF </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / xv -->
|
||||
<class>MenuItem</class>
|
||||
<label>xv</label>
|
||||
<activate exec="tcl"> exec xv out.gif </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / reset page-->
|
||||
<class>MenuItem</class>
|
||||
<label>reset page</label>
|
||||
<activate exec="tcl"> Do2 reset page </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / erase page-->
|
||||
<class>MenuItem</class>
|
||||
<label>erase page</label>
|
||||
<activate exec="tcl"> Do2 erase page </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / reset region -->
|
||||
<class>MenuItem</class>
|
||||
<label>reset region</label>
|
||||
<activate exec="tcl"> Do2 reset region </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / erase region -->
|
||||
<class>MenuItem</class>
|
||||
<label>erase region</label>
|
||||
<activate exec="tcl"> Do2 erase region </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / erase static -->
|
||||
<class>MenuItem</class>
|
||||
<label>erase static</label>
|
||||
<activate exec="tcl"> Do2 erase static </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / erase dynamic -->
|
||||
<class>MenuItem</class>
|
||||
<label>erase dynamic</label>
|
||||
<activate exec="tcl"> Do2 erase dynamic </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / title -->
|
||||
<class>MenuItem</class>
|
||||
<label>Page title on/off</label>
|
||||
<activate exec="tcl"> Do2 toggle pageTitleVisible</activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / autoClipping -->
|
||||
<class>MenuItem</class>
|
||||
<label>auto clip on/off</label>
|
||||
<activate exec="tcl"> Do2 toggle autoClipping </activate>
|
||||
</widget>
|
||||
<widget> <!-- Viewer / New -->
|
||||
<class>MenuItem</class>
|
||||
<label>New</label>
|
||||
<activate exec="tcl"> ui createViewer "" examiner</activate>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget> <!-- /////////// Plotter /////////// -->
|
||||
<class>CascadeButton</class>
|
||||
<label>Plotter</label>
|
||||
<widget>
|
||||
<class>Menu</class>
|
||||
<widget> <!-- Plotter / v log -->
|
||||
<class>MenuItem</class>
|
||||
<label>v log</label>
|
||||
<activate exec="tcl"> Do2 toggle vAxisLogScale </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / log -->
|
||||
<class>MenuItem</class>
|
||||
<label>x log</label>
|
||||
<activate exec="tcl"> Do2 toggle xAxisLogScale </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / wall -->
|
||||
<class>MenuItem</class>
|
||||
<label>wall</label>
|
||||
<activate exec="tcl"> Do2 toggle wallVisible </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / grid -->
|
||||
<class>MenuItem</class>
|
||||
<label>grid</label>
|
||||
<activate exec="tcl"> Do2 toggle gridVisible </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / innerFrame -->
|
||||
<class>MenuItem</class>
|
||||
<label>innerFrame</label>
|
||||
<activate exec="tcl"> Do2 toggle innerFrameVisible </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / infos -->
|
||||
<class>MenuItem</class>
|
||||
<label>infos</label>
|
||||
<activate exec="tcl"> Do2 toggle infosVisible </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / title -->
|
||||
<class>MenuItem</class>
|
||||
<label>title</label>
|
||||
<activate exec="tcl"> Do2 toggle titleVisible </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / title pos -->
|
||||
<class>MenuItem</class>
|
||||
<label>title pos</label>
|
||||
<activate exec="tcl"> Do2 toggle titleUp </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / errors -->
|
||||
<class>MenuItem</class>
|
||||
<label>errors</label>
|
||||
<activate exec="tcl"> Do2 toggle errorsVisible </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / superpose -->
|
||||
<class>MenuItem</class>
|
||||
<label>superpose</label>
|
||||
<activate exec="tcl"> Do2 toggle superposeHistograms </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / xy RAND -->
|
||||
<class>MenuItem</class>
|
||||
<label>xy RAND</label>
|
||||
<activate exec="tcl"> Do3 set xyModeling RANDOM </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / xy BOX -->
|
||||
<class>MenuItem</class>
|
||||
<label>xy BOX</label>
|
||||
<activate exec="tcl"> Do3 set xyModeling BOX </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / xy TEXT -->
|
||||
<class>MenuItem</class>
|
||||
<label>xy TEXT</label>
|
||||
<activate exec="tcl"> Do3 set xyModeling TEXT </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / xy COLOR -->
|
||||
<class>MenuItem</class>
|
||||
<label>xy COLOR</label>
|
||||
<activate exec="tcl"> Do3 set xyModeling COLOR </activate>
|
||||
</widget>
|
||||
<widget> <!-- Plotter / lego -->
|
||||
<class>MenuItem</class>
|
||||
<label>lego</label>
|
||||
<activate exec="tcl"> Lego </activate>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget> <!-- /////////// Cint /////////// -->
|
||||
<class>CascadeButton</class>
|
||||
<label>Cint</label>
|
||||
<widget>
|
||||
<class>Menu</class>
|
||||
<widget>
|
||||
<class>MenuItem</class>
|
||||
<label>gauss.cint</label>
|
||||
<activate exec="cint">x $LABHOME/examples/cint/gauss.cint</activate>
|
||||
</widget>
|
||||
<widget>
|
||||
<class>MenuItem</class>
|
||||
<label>Gauss dump</label>
|
||||
<create exec="tcl">session load LABLIBLABCINTWRAP LabCint </create>
|
||||
<activate exec="cint">{
|
||||
ISession* session = OnXCintGetSession();
|
||||
/* If on the stack, I have a crash at exit. */
|
||||
HCL_Histogram1D* hclHisto = new HCL_Histogram1D("",10,-5.,5.);
|
||||
Lib_RandomGauss randomGauss;
|
||||
for(int count=0;count < 1000;count++) {
|
||||
hclHisto->fill(randomGauss.shoot());
|
||||
}
|
||||
hclHisto->dump(session->out());
|
||||
}</activate>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget> <!-- /////////// Viewers /////////// -->
|
||||
<class>CascadeButton</class>
|
||||
<label>Viewers</label>
|
||||
<widget>
|
||||
<class>Menu</class>
|
||||
<name>viewers</name>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
</widget>
|
||||
<widget>
|
||||
<class>Viewer</class>
|
||||
<name>OnX/Main/Viewer</name>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>FileSelection</class>
|
||||
<name>fileChooser</name>
|
||||
<title>File selection</title>
|
||||
<show>no</show>
|
||||
</widget>
|
||||
|
||||
</widget>
|
||||
|
||||
</gui>
|
||||
@@ -0,0 +1,9 @@
|
||||
/run/verbose 2
|
||||
/run/particle/dumpCutValues
|
||||
/tracking/storeTrajectory 1
|
||||
/gun/random aperture
|
||||
/gun/particle proton
|
||||
/gun/energy 0.5 MeV
|
||||
#/run/beamOn 1000
|
||||
/run/beamOn 1000000
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
#
|
||||
# ********************************************************************
|
||||
# * DISCLAIMER *
|
||||
# * *
|
||||
# * The following disclaimer summarizes all the specific disclaimers *
|
||||
# * of contributors to this software. The specific disclaimers,which *
|
||||
# * govern, are listed with their locations in: *
|
||||
# * http://cern.ch/geant4/license *
|
||||
# * *
|
||||
# * Neither the authors of this software system, nor their employing *
|
||||
# * institutes,nor the agencies providing financial support for this *
|
||||
# * work make any representation or warranty, express or implied, *
|
||||
# * regarding this software system or assume any liability for its *
|
||||
# * use. *
|
||||
# * *
|
||||
# * This code implementation is the intellectual property of the *
|
||||
# * GEANT4 collaboration. *
|
||||
# * By copying, distributing or modifying the Program (or any work *
|
||||
# * based on the Program) you indicate your acceptance of this *
|
||||
# * statement, and all its terms. *
|
||||
# ********************************************************************
|
||||
#
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
delete v
|
||||
#
|
||||
# Get a SWIG handler over the current viewer :
|
||||
IViewer v -this [ui getCurrentViewer]
|
||||
v reset page
|
||||
#
|
||||
# 2x2 regions :
|
||||
v set page "1 2"
|
||||
v set pageTitle "Xray telescope"
|
||||
#
|
||||
#/////////////////////////////////////////////////////////////////////////////
|
||||
delete storage
|
||||
#
|
||||
RioStorage storage g4osc.root READ
|
||||
storage ls
|
||||
#
|
||||
delete hEnteringEnergy
|
||||
delete hYZ
|
||||
#
|
||||
# Get some histograms with the H1Get
|
||||
# builtin procedure defined in Lab/user/init.tcl :
|
||||
# H1DGet <variable> <storage> <SID>
|
||||
H1DGet hEnteringEnergy storage "Entering energy"
|
||||
#
|
||||
# Plot the histo :
|
||||
hEnteringEnergy vis
|
||||
#
|
||||
v set textContext "color black fontName TTF/couri"
|
||||
v set histogramContext "color red modeling solid"
|
||||
#
|
||||
delete hYZ
|
||||
H2DGet hYZ storage "YZ"
|
||||
v set region 2
|
||||
hYZ vis
|
||||
Reference in New Issue
Block a user