Project

General

Profile

Bug #344 » Multipole.dat

geometry/configuration file - Rogers, Chris, 23 February 2011 17:14

 
1
Configuration QuadrupoleEnge
2
{
3
  Module QuadrupoleEngeEndField
4
  {
5
    Volume None
6
    PropertyHep3Vector Position 0. 0. 0.1 m
7
    PropertyString FieldType Multipole
8
    PropertyDouble Height 0.5 m
9
    PropertyDouble Width  0.5 m
10
    PropertyDouble Length 1.8 m
11
    PropertyDouble FieldStrength 1. T/m //1. T at x-max
12
    PropertyInt Pole 2
13
    PropertyInt MaxEndPole 4
14
    PropertyString EndFieldType Enge
15
    PropertyDouble EndLength 0.07 m
16
    PropertyDouble CentreLength 1.0 m
17
    PropertyDouble Enge1  10.6549
18
    PropertyDouble Enge2  1.11459
19
  }
20
  //definitions for substitution into input files
21
  Substitution $NPart 6 //Number of particles (steps) in each plane 
22
  Substitution $TransStep 0.1 //Step size (change in x or y position) per step
23
  Substitution $LongStep  0.1 //Increment in virtual plane position
24
  Substitution $NVirt     20 //Number of virtual planes
25

    
26
  PropertyHep3Vector Dimensions 0.5 0.5 10. m
27
  PropertyDouble G4StepMax 10.0 mm
28
  PropertyString Material Galactic
29
  Module Ref
30
  {
31
    Volume None
32
    PropertyHep3Vector Position 0. 0. 0. m
33
    PropertyString BeamType Pencil
34
    PropertyInt    Pid      2112
35
    PropertyDouble Time     0.
36
    PropertyString LongitudinalVariable Momentum
37
    PropertyDouble Momentum 100.
38
    PropertyInt    NumberOfEvents 1
39
    PropertyBool   UseAsReference 1
40
  }
41
  Module Beam
42
  {
43
    Volume None
44
    PropertyHep3Vector Position -0.298+$TransStep*(@RepeatNumber) 0. 0. m
45
    PropertyString BeamType Pencil
46
    PropertyInt    Pid      2112
47
    PropertyDouble Time     0.
48
    PropertyString LongitudinalVariable Momentum
49
    PropertyDouble Momentum 100. 
50
    PropertyInt    NumberOfEvents 1
51
    PropertyBool   RepeatModule2 true
52
    PropertyInt    NumberOfRepeats $NPart
53
  }
54
  Module Virtual
55
  {
56
    Volume None
57
    PropertyHep3Vector Position 0. 0. $LongStep*@RepeatNumber m
58
    PropertyString SensitiveDetector Virtual
59
    PropertyString IndependentVariable Z
60
    PropertyBool   RepeatModule2 True
61
    PropertyInt    NumberOfRepeats $NVirt
62
  }
63

    
64

    
65
}
66

    
67

    
(2-2/2)