// Repeating pillbox configuration - place a pill box every metre and look for // nice output Configuration PillBox { Substitution $WindowThickness 0.1 Substitution $RFLength 500. Dimensions 10 10 1000 m PropertyString Material Galactic MiceModule Absorber { PropertyString Volume None //Cylinder PropertyHep3Vector Dimensions 600. 100. 0. mm PropertyHep3Vector Position 0.0 0.0 100.+1000.*@RepeatNumber mm // PropertyString Material Li PropertyBool RepeatModule2 1 PropertyInt NumberOfRepeats 100 } MiceModule PillBox { PropertyString Volume Cylinder PropertyHep3Vector Dimensions 600. $WindowThickness+$RFLength 0. mm PropertyHep3Vector Position 0.0 0.0 500.+1000.*@RepeatNumber mm PropertyString Material Galactic PropertyBool RepeatModule2 1 PropertyInt NumberOfRepeats 100 MiceModule RFWindowUS { PropertyString Volume Cylinder PropertyHep3Vector Dimensions 600. $WindowThickness 0. mm PropertyHep3Vector Position 0.0 0.0 -$RFLength/2. mm PropertyString Material Galactic } MiceModule Field { Volume None PropertyString FieldType PillBox PropertyDouble Length 500. mm PropertyString CavityMode Unphased PropertyString FieldDuringPhasing TimeVarying PropertyDouble Frequency 201.25 MHz PropertyDouble PeakEField 15 MV/m PropertyDouble ReferenceParticlePhase 30 degree } MiceModule RFWindowDS { PropertyString Volume Cylinder PropertyHep3Vector Dimensions 600. $WindowThickness 0. mm PropertyHep3Vector Position 0.0 0.0 +$RFLength/2. mm PropertyString Material Galactic } } MiceModule Virtuals { PropertyString Volume None PropertyString SensitiveDetector Virtual PropertyHep3Vector Position 0.0 0.0 200.*@RepeatNumber mm PropertyBool RepeatModule2 1 PropertyInt NumberOfRepeats 300 } }