###### THIS IS A FLAIR FILE. YOU CAN OPEN IT WITH FLAIR PROGRAM ######
# flair project file
Version: 300
Mode: fluka
Title: White Beam - Mogno A template
md5: 65ce5539b452475155683a02ec079f5a
Input:
TITLE
	White Beam - Mogno A template
* ----------------------------  General parameters  -----------------------------------
GLOBAL , 2000.,,, 1. 1.
DEFAULTS PRECISIO
* ----------------------------  Beam parameter  ---------------------------------------
*Photon Beam parameter: maximum energy (E), type of particle, divergence, and shape.
BEAM PHOTON =-400*keV,, 0.43 =-22.1*um*fwhm =-8.5*um*fwhm 1.0
*Photon position in positive z-axis direction
BEAMPOS , 0.0 0.0 -2294.3023 0.0 0.0 0.0
*Inicializate the source routine
SOURCE , 1.
* ----------------------------  Materials  --------------------------------------------
MATERIAL HYDROGEN 1.0 1.00794 0.0000838,,, 1.
MATERIAL POTASSIU 19. 39.10 0.862
MATERIAL OXYGEN 8.0 15.9994 0.00133
MATERIAL IRON 26.0 55.845 7.874
MATERIAL ZINC 30.,, 7.133
MATERIAL STRONTIU 38.,, 2.54
MATERIAL ZIRCONIU 40.,, 6.506
MATERIAL DIAMOND 6.,, 3.52
LOW-MAT CARBON DIAMOND 6. -2. 296.
MATERIAL WATER,,, 1.
COMPOUND WATER 2. HYDROGEN 1. OXYGEN
MATERIAL OXISOL,,, 2.7
COMPOUND OXISOL 56.9092 OXYGEN 0.006 ZINC 0.056 POTASSIU 0.064 MAGNESIU 5.3 IRON \
	 3.0 TITANIUM 12.2 ALUMINUM 22.3 SILICON 0.0028 STRONTIU 0.032 ZIRCONIU \
	 0.13 CALCIUM
MATERIAL SOIL,,, 2.0402
COMPOUND SOIL 70.0 OXISOL 15.0 AIR 15.0 WATER
* ----------------------------  Geometry  ---------------------------------------
GEOBEGIN COMBNAME 0.0
	LABORDE
*
*  BODY DEFINITIONS
*  ----------------
*Black body
SPH blkbody 0.0 0.0 0.0 100000.
RPP void -5.0 5.0 -5.0 5.0 -2295.0 20.0
RPP wall -7.5 7.5 101. 103. -200. 230.
RPP spec1 -0.5 0.5 -0.5 0.5 -2294.0 -2293.95
RPP spec2 -0.5 0.5 -0.5 0.5 -2293.95 -2293.9
RPP filter -5. 5. -5. 5. -129.0225 -128.9865
RCC vac 0. 0. -2295.0 0.0 0.0 2148.8 5.0
RPP window -5. 5. -5. 5. -146.2 -146.18
RPP aluminum -5. 5. -5. 5. 8.040000000000001 20.04
RPP slitout -5. 5. -5. 5. -577.302 -571.302
RPP slitin -0.11 0.11 -0.11 0.11 -577.302 -571.302
TRC soil 0 -0.8 -2.8 0 2.5 0 0.057 0.32
RPP fov -0.145 0.145 -0.145 0.145 -2.945 -2.655
	@select=8
RCC root 0.0422618261741 -0.025 -2.8906307787037 0 0.525 0 0.03
RCC root03 0.0422618261741 0.075 -2.8906307787037 0 0.05 0 0.03
	@select=8
RCC root02 0.0422618261741 0.025 -2.8906307787037 0 0.05 0 0.03
	@select=8
RCC root01 0.0422618261741 -0.025 -2.8906307787037 0 0.05 0 0.03
	@select=8
RCC root00 0.0422618261741 -0.00385 -2.8906307787037 0 0.0077 0 0.03
	@select=8
END
*Black hole
REGION BLKBODY 5
	-void +blkbody
*Void around
REGION VOID 5
	+void -spec1 -spec2 -filter -vac   -window  -aluminum     -soil
REGION SPECT1 5
	+spec1
REGION SPECT2 5
	+spec2
REGION FILTER 5
	+filter
REGION VAC 5
	+vac +void -spec1 -spec2 -slitout
	| +slitin
REGION WINDOW 5
	+void +window
REGION ALBOX 5
	+void +aluminum
REGION SLIT 5
	+void +vac +slitout  -slitin
REGION SOIL 5
	+soil -root
REGION ROOT 5
	+root +void  -root03 -root02 -root01
REGION ROOT0
	+void +root +root00
REGION ROOT1 5
	+void +root +root01 -root00
REGION ROOT2 5
	+root +void +root02
REGION ROOT3 5
	+root +void +root03
END
GEOEND
*..+....1....+....2....+....3....+....4....+....5....+....6....+....7..
ASSIGNMA , BLCKHOLE BLKBODY
ASSIGNMA , AIR VOID
ASSIGNMA , VACUUM SPECT1
ASSIGNMA , VACUUM SPECT2
ASSIGNMA , SILICON FILTER
ASSIGNMA , VACUUM VAC
ASSIGNMA , DIAMOND WINDOW
ASSIGNMA , ALUMINUM ALBOX
ASSIGNMA , COPPER SLIT
ASSIGNMA , SOIL SOIL
ASSIGNMA , WATER ROOT
ASSIGNMA , WATER ROOT3
ASSIGNMA , WATER ROOT2
ASSIGNMA , WATER ROOT1
ASSIGNMA , WATER ROOT0
* ----------------------------  Thresholds  ---------------------------------------
*Transport cutoff 1 keV for electrons and 100 eV for photons everywhere
EMFCUT , =-1*keV =100*eV 0.0 VOID @LASTREG
EMFCUT PROD-CUT =-1*keV =100*eV 1.E-05 VACUUM @LASTMAT
* ----------------------------  Tracks  ----------------------------------------
*Only active it for few primaries (ex.: 10000) to reduce the output size
!USERDUMP dump 100. 41. 0.
* ----------------------------  Spectra  ---------------------------------------
*Spectrum - input
USRBDX SpecIn 99. PHOTON -51. SPECT1 SPECT2,, 0.0004 0.000001 500.,,, 1.
*Spectrum - reaching the soil
USRBDX SpecSoil 99. PHOTON -52. VOID SOIL,, 0.0004 0.000001 500.,,, 1.
*Spectrum - reaching the root
USRBDX SpecSoil 99. PHOTON -53 SOIL ROOT1,, 0.0004 0.000001 500.,,, 1.
* ----------------------------  Rotation cards  -------------------------------------
ROT-DEFI rot90,, 90. 90.
ROT-DEFI rot90,,,, -2.8 0. 0.
* ----------------------------  Cylindrical  ----------------------------------------
USRBIN MapCyl1 11 DOSE -21 0.145 0 0.00385 0 0 -0.00385 20 180 1
USRBIN MapCyl2 11 DOSE -22 0.145 0 0.025 0 0 -0.025 20 180 1
ROTPRBIN ,, rot90,, MapCyl1 MapCyl2
* ----------------------------  Cartesian  ------------------------------------------
USRBIN Map1 10. DOSE -23 0.15 0.00385 -2.6 -0.15 -0.00385 -3. 120. 1. 160.
USRBIN Map2 10. DOSE -24 0.15 0.025 -2.6 -0.15 -0.025 -3. 120. 1. 160.
* ----------------------------  Integrated Dose  ------------------------------------
USRBIN DoseRoot 12 DOSE -25 ROOT3,,, SOIL,,, 1
* ----------------------------  RUN  -----------------------------------------------
RANDOMIZ , 1. 1.
*Number of photons in the initialization (primaries) which depends on the computational
*resources available
START , 100000
STOP
EndInput

Page: Run
Calculator:
	|2148.1023 + 24.7 + 121.5
	|> ans1 = 2294.3023
	|24.7 + 121.5
	|> ans4 = 146.2
	|
	|
	|46122726642807.9 * 1.602176462E-7
	|> ans2 = 7389674.699036709
	|Gy/s/mA
	|> Error: unsupported operand type(s) for /: 'float' and 'str'
	|
	|1*um
	|> ans5 = 0.0001
	|1*fwhm
	|> ans3 = 2.354820045030949
	|
	|# Sample Position
	|2294.3 - 2291.5
	|> ans6 = 2.800000000000182
	|
	|#Si Filter Position
	|2294.3 - 2165.4
	|> ans8 = 128.9000000000001
	|
	|#Detector Position
	|2294.3 - 2303.2
	|> ans9 = -8.89999999999964
	|
	|
	|#FOV
	|2.9/(2294.3-574.3)*(2294.3-21.4)
	|> ans10 = 3.83221511627907
	|
	|#Abertura
	|2.9/(2294.3-2.8)*(2294.3-574.3)
	|> ans13 = 2.176740126554659
plotengine: Gnuplot

# Run information
Run: <default>
End
Run: Mogno_Sync_01
	Rnd:      2
	StartRun: 1669232692
	Parent:   <default>
End
Geometry: Geometry
	Layer: 3D
		3D: 1
		3D._visible: 1
		3D.edgedetect: 1
		3D.xray: 141
		Options.viewport: 0
		Show: 0
		Show.lattice: 1
		Show.voxel: 1
	End
	Layer: BIASING
		3D._visible: 1
		3D.edgedetect: 1
		3D.skip1stblack: 1
		Palette: 1
		Palette._visible: 1
		Palette.cpd: 0
		Palette.inv: 1
		Palette.max: 100.0
		Palette.min: 0.001
		Palette.palette: gray
		Palette.smooth: 1
		Show.color: Importance-E
		Show.lattice: 1
		Show.voxel: 1
		Usrbin.alpha: 51
		Usrbin.file: Mogno_Sync_23.bnn
		Usrbin.input: 1
		Usrbin.norm: 1.602176462E-7 * 4.61e13
		Usrbin.rotdefi: rot90
		Usrbin.xofs: 0.0
		Usrbin.yofs: 0.0
	End
	Layer: USRDUMP
		Userdump: 1
		Userdump.PHOTON: 1
		Userdump._visible: 1
		Userdump.file: Mogno_Sync_01001_dump
		Userdump.n: 10000000
		Usrbin.alpha: 100
		Usrbin.file: Mogno_Sync_23.bnn
		Usrbin.input: 1
		Usrbin.norm: 4.61E+13  * 1.602176462E-7 * 1e-3 * 40 * 30
		Usrbin.rotdefi: rot90
		Usrbin.xofs: 0.0
		Usrbin.yofs: 0.0
	End
End

# Plots information
Plot: Red
	Type: Geometry
	basisu: 0 0 1
	basisv: 1 0 0
	coord: Z-X
	extends: 188.115 148.146
	grid: 0
	layer: Media
	origin: -51.5651 0 1957.07
End
Plot: Green
	Type: Geometry
	basisu: 0.833979 -0.0293729 -0.551013
	basisv: -0.170817 0.935787 -0.308422
	extends: 1.25791 1.48123
	layer: 3D
	origin: 0.598531 0.903523 -1.64539
End
Plot: Blue
	Type: Geometry
	basisu: 0 0 1
	coord: Z-Y
	extends: 50.8015 59.8206
	layer: Media
	origin: 0.05 -8.01521 -0.0474611
End
Plot: Magenta
	Type: Geometry
	coord: X-Y
	extends: 0.203161 0.239229
	grid: 0
	layer: USRBIN
	origin: 0.0219886 0.0464719 -2.89
End
Plot: histogram
	Type: USRBIN
	cblog: 1
	cbtics: 1
	datafile: Mogno_Sync_25.bnn
	grid: 0
	hist: 2D Projection
	int: 1.4355326978729257E-007
	max: 6.92124877E-06
	min: 2.51629673E-09
	norm: 4.61E+13  * 1.602176462E-7
	title: USRBIN Mogno Sync 25
	ylabel: Gy/s/mA*volume
End
Plot: spectra
	Type: USR-1D
	file.0: Mogno_Sync_51_tab.lis
	file.1: Mogno_Sync_52_tab.lis
	file.2: Mogno_Sync_53_tab.lis
	grid: 0
	lc.0: black
	lc.1: black
	lc.2: black
	lw.0: 2
	lw.1: 2
	lw.2: 2
	name.0: input
	name.1: soil
	name.2: root
	ndetectors: 3
	norm.0: 4.61E+13  * 1.602176462E-7
	norm.1: 4.61E+13  * 1.602176462E-7
	norm.2: 4.61E+13  * 1.602176462E-7
	pt.0: 7
	pt.1: 7
	pt.2: 7
	title: USR-1D Mogno Sync 51
	x.0: 2
	x.1: 2
	x.2: 2
	xlabel: Energy [keV]
	xlog: 1
	xnorm.0: 1/keV
	xnorm.1: 1/keV
	xnorm.2: 1/keV
	y.0: 1
	y.1: 1
	y.2: 1
	ylabel: Flux [photons/s/mA]
	ylog: 1
End
