1
* JAN08-Stage0.in January 29, 2008; TJR
3
# This file is intended to be included from the specific input file;
4
# this file does not define parameters that vary with beam momentum
7
# Command-line parameters (optional - default as follows):
8
# first=0 Protons=6900 viewer=none
11
# include default_values
12
include $WRKDIR/defaults/default_values.in
14
# HistoScope filename from first event #
15
param histoFile=$first.root histoUpdate=1000000000 FIRST=$first
17
physics QGSP_BIC doStochastics=$STOCHASTICS
18
trackcuts keep=$keep kineticEnergyCut=5 maxTime=100000000
20
particlecolor proton=1,0,0 pi+=0,1,0 mu+=0,0,1 plus=1,0,1 minus=1,1,0 \
21
neutral=0,1,1 reference=1,1,1
23
particlecolor proton=1,0,0 pi-=0,1,0 mu-=0,0,1 plus=1,0,1 minus=1,1,0 \
24
neutral=0,1,1 reference=1,1,1
28
include $WRKDIR/defaults/materials.in
30
# The MICE TargetBox -- assumed a cube, not actual size but correct along
31
# MICE beamline; assumed normal to MICE beam, not actual orientation, but
32
# correct for the window; ignore rounded corners of window.
33
# Window for MICE beam is 2 mm of SS304.
34
include $WRKDIR/defaults/mice_tgt_box.in
37
include $WRKDIR/defaults/magnets.in
39
# The Beamline Vacuum Components
40
include $WRKDIR/defaults/vacuum.in
43
include $WRKDIR/defaults/pid.in
46
### Lay out the beamline
49
# reference particle for tuning B1
50
#reference referenceMomentum=$piMomentumRef particle=proton beamZ=0
51
reference referenceMomentum=$piMomentumRef particle=pi$C beamZ=0
52
#tune B1Field z0=3500 z1=9595 initial=$B1 step=0.01 maxIter=100 expr="Px1/Pz1" \
56
### beam - TargetModel for positives
57
### NOTE: set Protons to determine the # events, and particle params for content
60
randomseed Now $random_seed
61
include $WRKDIR/TargetModel/beam_secondaries.in
62
#beam rectangular particle=211 firstEvent=$first lastEvent=$last beamHeight=50 beamWidth=50 \
63
meanMomentum=$piMomentumRef
66
#beam gaussian particle=proton meanMomentum=$piMomentumRef \
67
# firstEvent=$first lastEvent=$last sigmaXp=$sigmaXp sigmaYp=$sigmaYp \
70
###beam gaussian sigmaX=-2.55 sigmaY=-1.0 sigmaXp=-0.033 sigmaYp=-0.014 \
71
### particle=pi+ meanMomentum=$piMomentumRef sigmaP=15.0 \
72
### firstEvent=$first lastEvent=$last \
76
place vacuumWindow z=239.4
78
place TargetShield z=250
80
#place TargetDet2 z=1000 parent=vacuum1
81
place vacuum1 z=1391.5
84
#place Q1Det z=2542.25 rename=Q1USDet
86
place QuadTypeIV rename=Q1 gradient=$q_1 z=3000
88
#place DummyDet z=3200. rename=Dum3
89
#place Q1Det z=3457.5 rename=Q1DSDet
94
place QuadTypeIV rename=Q2 gradient=$q_2 z=4400 ironColor=0,0,.6
99
place QuadTypeIV rename=Q3 gradient=$q_3 z=5800
101
place vacuum3 z=7078.5
103
place BendTypeI6inIron rename=B1 z=7979.1 x=200 rotation=Y30 By=0 \
104
fieldMaterial=$USAirOrVacuum
105
place TypeI6inTaperedField z=7979.1 x=200 rotation=Y30 \
107
cornerarc z=7495.28 angle=60 centerRadius=1038 radiusCut=1000
109
############place Foil z=8720
110
//virtualdetector AfterB1Det length=.01 height=500 width=500
111
//place AfterB1Det z=8718
112
place vacuumWindow z=9641.7
113
############place Counter rename=Count1 z=9545.45
115
############place vacuumWindow z=9595.45
116
place DecaySolenoid z=12210.7
117
place vacuumWindow z=14779.7
120
box ProtonAbsorber width=400 height=400 length=$proton_absorber_thickness material=polyethylene \
122
place ProtonAbsorber z=14880
124
#first Geneva Counter
125
place GenevaBeamCounter rename=GVA1 z=15050
127
# reference particle for tuning B2 and RF
128
# omit if pi = mu momentum (so pi is tuned to the end)
129
#if $piMomentumRef!=$muMomentumRef
130
#reference referenceMomentum=$muMomentumRef particle=mu$C beamZ=12164.7
131
#tune B2Field z0=12370 z1=17053 initial=$B2 step=0.002 \
132
start="PDGid0==-13" expr="Px1/Pz1" tolerance=0.000001
133
###start="PDGid0==-($C 13)"
135
#tune B2Field z0=12370 z1=17053 initial=$B2 step=0.002 \
136
expr="Px1/Pz1" tolerance=0.000001
139
zntuple z=15050 format=ascii file=G4BLoutput.txt
140
#ntuple TriggerParticles category=NTuples detectors=*
142
#place BendTypeI6inIron rename=B2 z=15808.1 x=100 rotation=Y15 By=0 \
144
#place TypeI6inTaperedField z=15808.1 x=100 rotation=Y15 \
146
#cornerarc z=15298.3 angle=30 centerRadius=2005.2 radiusCut=1000
148
#place BeamMonitor rename=BM1 z=16992