MAKETHIN and Magnet length in magnet definition
Dear all,
The length of the magnet is given inside the definition of magnet family as you can see bellow:
PR_MQNBCAWP : QUADRUPOLE , L := .23; ! Quadrupole magnet, type 407 - Magnetic length corresponds to the total mechanical length according to NORMA, as the magnetic length was not measured. Real mechanical length is estimated to be 0.25m, including the outer casing, as taken from 3D models.
[...]
PR.QTRTA41 : PR_MQNBCAWP , at = 1.4815 , slot_id = 2253976;
[...]
PR.QTRTA41, K1 :=-kPRQTRTA*0.47968*PR.QTRTA49->L/PR.QTRTA41->L;
This leads to errors if a user decide to use MAKETHIN in MadX as PR.QTRTA41->L
will be equal to 0 afterward.
I would recommand to use the same method as for the LHC, i.e. define and use family length as separate variables:
l.MQNBCAWP:= .23;
l.MQNCAAWP:= .25;
[...]
PR_MQNBCAWP : QUADRUPOLE , L := l.MQNBCAWP; ! Quadrupole magnet, type 407 - Magnetic length corresponds to the total mechanical length according to NORMA, as the magnetic length was not measured. Real mechanical length is estimated to be 0.25m, including the outer casing, as taken from 3D models.
[...]
PR.QTRTA41 : PR_MQNBCAWP , at = 1.4815 , slot_id = 2253976;
[...]
PR.QTRTA41, K1 :=-kPRQTRTA*0.47968*l.MQNCAAWP/l.MQNBCAWP;
I have made those changes manually so if you need a new .sep template file, I can send it to you. But I don't know how Layout DB works.
Cheers, Thomas PUGNAT