[Go to BBS]
All articles in a thread
SubjectQuestion about PhotonList
Article No1112
Date: 2013/09/05(Thu) 22:25:35
ContributorZhe Duan
Hello,
When I turned PHOTONS on in the FFS level, I expected following a TrackParticles function, PhotonList will contain the information of synchrotron radiation photons, as suggested by the user guide. But the PhotonList I get is an empty list.

Can anyone give me an right example? Many thanks! The following is my script, and my SAD is Ver.1.0.10.5.5a43.

Zhe



MOMENTUM= 1 GEV;
ON ECHO;OFF CTIME;
;
DRIFT L1 = (L = 1)
;
BEND B = (L = 2)
;
QUAD QF = (L = 1 K1 = 0.1 )
QD = (L = 1 K1 = -0.1 )
QSF = (L = 1 K1 = 0.1 )
QSD = (L = 1 K1 = -0.1 )
QRF = (L = 1 K1 = 0.1 )
QRD = (L = 1 K1 = -0.1 )
;
SEXT SF =(L = 1 K2 = 0.1)
SD =(L = 1 K2 = -0.1)
;
MARK IP1 =(BETAX = 10 BETAY =10 EMIX = 4.0E-7
EMIY = 4.0E-7 DP = 0.01 )
;
CAVI CA1 = (L = 1 VOLT=1 MV HARM=100)
;

;
LINE CELL = (IP1 QF L1 SF L1 B 3*L1 QD L1 SD L1 B 3*L1)
;
FFS USE=CELL;
cell;calc;
PHOTONS;

b={{0.0001},{0},{0},{0},{0},{0.0},{1}};
TrackParticles[{1,b},3,1,2];
Print[PhotonList];
abort

SubjectRe: Question about PhotonList
Article No1113
Date: 2013/09/06(Fri) 01:25:45
ContributorAnonymous
> Hello,
> When I turned PHOTONS on in the FFS level, I expected following a TrackParticles function, PhotonList will contain the information of synchrotron radiation photons, as suggested by the user guide. But the PhotonList I get is an empty list.
>
> Can anyone give me an right example? Many thanks! The following is my script, and my SAD is Ver.1.0.10.5.5a43.
>
Apply TRPT or NORING flag to use realistic SR subroutine.
(Photon emittion simulation is handled by realistic SR subroutine.)

Note:
In TRPT(NORING) mode tracking, the nominal momentum is changed by both accelaration and SR.
You have to put CAVI element to keep beam energy for multi-turn tracking.