#============================================================================= # Allpix: the CERN@school Timepix detector with a simple test beam #============================================================================= # (Batch mode.) # The CERN@school Mk1 detector /allpix/det/setId 900 /allpix/det/setPosition 0.0 -1.305 0.0 mm /allpix/det/setRotation -90.0 45.0 0.0 deg /allpix/det/setFoilThickness 0.0174 mm /allpix/det/setLowTHL 13. keV # The test structure - the test beam. /allpix/extras/setTestStructure TestBeam /allpix/extras/setTestStructurePosition -30.0 0.0 23.075 mm /allpix/extras/setTestStructureRotation 0.0 0.0 0.0 deg /allpix/extras/setTestStructureShieldingThickness 1.0 mm # Max step lenght. Applies only to the sensor /allpix/det/setMaxStepLengthSensor 10 um # Initialize the simulation. /run/initialize # Build the detectors. /allpix/det/update ################################ # General Particle Source (GPS) ################################ /gps/particle proton /gps/ene/type Mono /gps/energy 40 MeV /gps/pos/type Point /gps/pos/centre -35.0 0.0 23.075 mm /gps/direction 1 0 0 /gps/source/list ############################################################################## # Run the simulation with the number of events specified. /run/beamOn 1000 ##############################################################################