T=T*ABS(POL(JJ))*NB_SPIN_STATE(JJ)/2D0 ! NB_SPIN_STATE(JJ)/2d0 is added for polarised beam
129
T=T*ABS(POL(JJ))
129
130
ELSE IF(POL(JJ).NE.1D0)THEN
130
T=T*(2D0-ABS(POL(JJ)))*NB_SPIN_STATE(JJ)/2D0
131
T=T*(2D0-ABS(POL(JJ)))
131
132
ENDIF
132
133
ENDDO
134
133
135
IF (ISUM_HEL.NE.0) THEN
134
136
CALL DS_ADD_ENTRY('Helicity',I,T)
135
137
ENDIF
141
143
CALL RESET_CUMULATIVE_VARIABLE() ! avoid biais of the initialization
142
144
ENDIF
143
145
IF (ISUM_HEL.NE.0) THEN
144
! We set HEL_PICKED to -1 here so that later on, the call to DS_add_point in dsample.f does not add anything to the grid since it was already done here.
145
HEL_PICKED = -1
146
! We set HEL_PICKED to -HEL_PICKED here so that later on, the call to DS_add_point in dsample.f does not add anything to the grid since it was already done here.
147
HEL_PICKED = -IABS(HEL_PICKED)
146
148
! For safety, hardset the helicity sampling jacobian to 0.0d0 to make sure it is not .