#============================================================================= # Allpix: the CERN@school Timepix detector with a simple test beam #============================================================================= # (With visualisation.) # The laboratory # Simon Langton Grammar School for Boys, Canterbury, Kent, UK /allpix/lab/setLatitude 51.261015 deg /allpix/lab/setLongitude 1.084127 deg /allpix/lab/setAltitude 48.0 m /allpix/lab/setRollAngle 0.0 deg /allpix/lab/setPitchAngle 0.0 deg /allpix/lab/setYawAngle 0.0 deg # 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 # The test structure - the test beam attenuator /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 /tracking/verbose 0 ################################ # 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 /allpix/lab/setSourceId Test beam (proton 40 MeV) /gps/source/list ######################################################################## # Run the simulation with the number of events specified. /run/beamOn 1000 ########################################################################