Back to home page

EIC code displayed by LXR

 
 

    


Warning, /epic/scripts/view4/generate_eps is written in an unsupported language. File is not indexed.

0001 #!/usr/bin/env bash
0002 
0003 # this is a detector slice
0004 
0005 # units are mm
0006 dawncut 0 0 -1 -1500 $1 out1.prim
0007 dawncut 0 0 1 1600 out1.prim view4.prim
0008 dawn -d view4.prim
0009 ps2pdf view4.eps view4.pdf
0010 pdftoppm view4.pdf view4 -png -singlefile
0011 
0012 #https://geant4.kek.jp/~tanaka/DAWN/About_DAWNCUT.html
0013 # % dawncut a b c d input-file [output-file]
0014 #
0015 #       input-file : Source DAWN-format file describing a 3D scene.
0016 #
0017 #       output-file: Output DAWN-format file describing a plane-clipped
0018 #                    3D scene.  The default output stream is stdout.
0019 #
0020 #       a, b, c, d : Parameters  a, b, c, and d  are double values to
0021 #                    define a clipping plane described with the following
0022 #                    equation:
0023 #
0024 #                       ax + by + cz + d = 0.
0025 #
0026 #                    Vector (a,b,c) defines the normal vector of
0027 #                    the clipping plane.
0028 #                    3D scene data in the half space at the front side
0029 #                    of the clipping plane are clipped out and erased.
0030 #                    The normal vector (a,b,c) needs not be a unit vector.
0031 #                    If it is a unit vector, parameter "d" gives distance
0032 #                    between the clipping plane and origin (0,0,0).