~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to bin/examples/simulate_particles_in_grid/simulate_particles_in_grid_configuration.py

  • Committer: Durga Rajaram
  • Date: 2013-11-19 02:09:06 UTC
  • mfrom: (659.1.77 rc)
  • Revision ID: durga@fnal.gov-20131119020906-t2vxx4h2yr0f09tj
Tags: MAUS-v0.7.4
MAUS-v0.7.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
#  This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
 
4
#
 
5
#  MAUS is free software: you can redistribute it and/or modify
 
6
#  it under the terms of the GNU General Public License as published by
 
7
#  the Free Software Foundation, either version 3 of the License, or
 
8
#  (at your option) any later version.
 
9
#
 
10
#  MAUS is distributed in the hope that it will be useful,
 
11
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
#  GNU General Public License for more details.
 
14
#
 
15
#  You should have received a copy of the GNU General Public License
 
16
#  along with MAUS.  If not, see <http://www.gnu.org/licenses/>.
 
17
 
1
18
"""
2
19
Configuration file for simulate particles in grid configuration. Fires particles
3
20
in a (x, y) grid and looks to see how they are imaged on the far side of a
4
21
single solenoid.
5
22
"""
6
23
 
 
24
import os
 
25
 
7
26
def get_beam_def(x, y):
8
27
    """
9
28
    Makes a "pencil" beam definition i.e. no transverse or longitudinal