-
Notifications
You must be signed in to change notification settings - Fork 0
/
Boundaries_331v3.f90
2029 lines (1833 loc) · 72.1 KB
/
Boundaries_331v3.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
! -----------------------------------------------------------------------------
! This file was automatically created by SARAH version 4.14.3
! SARAH References: arXiv:0806.0538, 0909.2863, 1002.0840, 1207.0906, 1309.7223
! (c) Florian Staub, 2013
! ------------------------------------------------------------------------------
! File created at 16:44 on 3.7.2020
! ----------------------------------------------------------------------
Module Boundaries_331v3
Use Control
Use Settings
Use LoopCouplings_331v3
Use LoopMasses_331v3
Use LoopFunctions
Use Mathematics
Use Model_Data_331v3
Use RGEs_331v3
Use RunSM_331v3
Use Tadpoles_331v3
Use RGEs_SM_HC
Use LoopMasses_SM_HC
Use CouplingsForDecays_331v3
Use StandardModel
Integer, save :: YukScen
Real(dp), save :: Lambda, MlambdaS,F_GMSB
Real(dp),save::mGUT_save,sinW2_Q_mZ&
&, mf_l_Q_SM(3),mf_d_Q_SM(3),mf_u_Q_SM(3) &
&, mf_l_MS_SM(3),mf_d_MS_SM(3),mf_u_MS_SM(3)
Complex(dp),save::Yl_mZ(3,3),Yu_mZ(3,3),Yd_mZ(3,3),Yl_Q(3,3),Yu_Q(3,3),Yd_Q(3,3)
Real(dp),Save::vevs_DR_save(2), vSM_save
Contains
Subroutine BoundarySM(i_run,Lambda_SM,delta0,g_SM,kont)
Implicit None
Real(dp), Intent(out)::g_SM(62)
Integer, Intent(in) :: i_run
Real(dp) :: mHiggs
Real(dp), Intent(in) :: delta0
Integer, Intent(inout) :: kont
Integer :: i1,i2,i3,i4
Real(dp)::mW2_run,mZ2_run,test, D_mat(3,3)
Real(dp)::alphaMZ,alpha3,gSU2,rho,delta_rho,delta_rho0,sinW2_Q,vev2&
&,vevs_Q(2),mZ2_mZ,CosW2SinW2,gauge(3),delta,sinW2_old,delta_r&
&,p2,gSU3,tanb,xt2,fac(2),SigQCD,delta_rw,sinW2,cosW2,cosW
Real(dp),Dimension(3)::mf_d_Q,mf_l_Q,mf_u_Q
Real(dp) :: g1SM, g2SM, g3SM, vSM
Complex(dp) :: dmZ2,dmW2,dmW2_0,yuk_tau,yuk_t,yuk_b
Complex(dp) ::uU_L(3,3),uU_R(3,3),uD_L(3,3),uD_R(3,3), NoMatrix(3,3) &
&,uL_L(3,3),uL_R(3,3)
Complex(dp) ::uU_L_T(3,3),uU_R_T(3,3),uD_L_T(3,3),uD_R_T(3,3),uL_L_T(3,3),uL_R_T(3,3)
Complex(dp) :: SigSR_u(3,3),SigSL_u(3,3),sigR_u(3,3),SigL_u(3,3)
Complex(dp) :: SigSR_d(3,3),SigSL_d(3,3),SigR_d(3,3),SigL_d(3,3)
Complex(dp) :: SigSR_l(3,3),SigSL_l(3,3),sigR_l(3,3),SigL_l(3,3)
Complex(dp) :: YuSM(3,3),YdSM(3,3),YeSM(3,3), MuSM, adCKM(3,3),Y_l_old(3,3),Y_d_old(3,3),Y_u_old(3,3)
Complex(dp), Intent(in) :: Lambda_SM
Logical::converge
Integer :: i_loop, i_loop_max
Real(dp),Parameter::&
& as2loop=1._dp/24._dp+2011._dp*oo32Pi2/12._dp&
&+Log2/12._dp-oo8Pi2*Zeta3&
&,log2loop_a=123._dp*oo32Pi2,log2loop_b=33._dp*oo32Pi2
Real(dp) :: Q2, logQ
Real(dp) :: VEVSM1,VEVSM2,VEVSM1MZ,VEVSM2MZ
Complex(dp) ::MassFu(3,3),MassFd(3,3),MassFe(3,3)
Iname=Iname+1
NameOfUnit(Iname)='BoundarySM'
sinW2 = 1 - mW**2/mZ**2
test = SetRenormalizationScale(mZ2)
!-----------------
!sin(theta_W)^2
!-----------------
If (i_run.Eq.1) Then
vSM = 246._dp
sinW2_Q=sinW2
sinW2_old=sinW2_Q
Y_l=0._dp
Do i1=1,3
y_l(i1,i1)=sqrt2*mf_l_mZ(i1)/vevSM(1)
yl_MZ(i1,i1)=sqrt2*mf_l_mZ(i1)/vSM
yd_MZ(i1,i1)=sqrt2*mf_d_mZ(i1)/vSM
yu_MZ(i1,i1)=sqrt2*mf_u_mZ(i1)/vSM
End Do
mf_l2=mf_l_mZ**2
mf_d2=mf_d_mZ**2
mf_u2=mf_u_mZ**2
Else
vSM = vSM_save
sinW2_Q=sinW2_Q_mZ
sinW2_old=sinW2_Q
Y_l=Yl_mZ
Call FermionMass(Yd_mZ,vSM,mf_d2,uD_L_T,uD_R_T,kont)
Call FermionMass(Yl_mZ,vSM,mf_l2,uL_L_T,uL_R_T,kont)
Call FermionMass(Yu_mZ,vSM,mf_u2,uU_L_T,uU_R_T,kont)
mf_l2=mf_l2**2
mf_d2=mf_d2**2
mf_u2=mf_u2**2
End If
mHiggs= sqrt(Lambda_SM)*vSM
MuSM = 0.5_dp*Lambda_SM*vSM**2
alphaMZ = AlphaEW_MS_SM(mZ,mf_d,mf_u,mf_l)
alpha3 = AlphaS_MS_SM(mZ,mf_d,mf_u)
If (.not.OneLoopMatching) alpha3= AlphaS_mZ
If (.not.OneLoopMatching) alphaMZ = Alpha_MZ_MS
gSU3 = Sqrt(4._dp*pi*alpha3)
g3SM = Sqrt(4._dp*pi*alpha3)
!--------------------
!for 2-loop parts
!--------------------
xt2=3._dp*(G_F*mf_u(3)**2*oo8pi2*oosqrt2)**2&
&*rho_2(mHiggs/mf_u(3))
fac(1)=alphaMZ*alphaS_mZ*oo4pi&
&*(2.145_dp*mf_u(3)**2/mZ2+0.575*Log(mf_u(3)/mZ)-0.224_dp&
&-0.144_dp*mZ2/mf_u(3)**2)/Pi
fac(2)=alphamZ*alphaS_mZ*oo4pi&
&*(-2.145_dp*mf_u(3)**2/mW2+1.262*Log(mf_u(3)/mZ)-2.24_dp&
&-0.85_dp*mZ2/mf_u(3)**2)/Pi
Do i1=1,100
gSU2 = Sqrt( 4._dp*pi*alphamZ/sinW2_Q)
g1SM =gSU2*Sqrt(sinW2_Q/(1._dp-sinW2_Q))
g2SM =gSU2
YeSM=Yl_MZ
YdSM=Yd_MZ
YuSM=Yu_MZ
TW= Asin(Sqrt(sinw2_Q))
mHiggs= sqrt(Lambda_SM)*vSM
MuSM = 0.5_dp*Lambda_SM*vSM**2
Yu_MZ(3,3)=mf_u(3)/vSM*Sqrt(2._dp)
YuSM=Yu_MZ
Call OneLoop_Z_W_SM(vSM,g1SM,g2SM,g3SM,Lambda_SM,-YuSM,YdSM,YeSM,kont,dmZ2, &
& dmW2,dmW2_0)
If (.not.OneLoopMatching) dmZ2= 0._dp
If (.not.OneLoopMatching) dmW2= 0._dp
If (.not.OneLoopMatching) dmW2_0= 0._dp
mZ2_mZ = Real(dmZ2 + mZ2,dp)
If (mZ2_mZ.Lt.0._dp) Then
Iname=Iname-1
kont=-402
Call AddError(402)
Write(*,*) " MZ getting negative at EW scale"
Call TerminateProgram
End If
mZ2_run=mZ2_mZ
mW2_run=mZ2_mZ*(1._dp-sinW2_Q) +0
CosW2SinW2=(1._dp-sinW2_Q)*sinW2_Q
vev2=mZ2_mZ*CosW2SinW2/(pi*alphamZ) -(0)
vSM=Sqrt(vev2)
MuSM = 0.5_dp*Lambda_SM*vSM**2
Yu_MZ(3,3)=mf_u(3)/vSM*Sqrt(2._dp)
YuSM=Yu_MZ
Call OneLoop_Z_W_SM(vSM,g1SM,g2SM,g3SM,Lambda_SM,-YuSM,YdSM,YeSM,kont,dmZ2, &
& dmW2,dmW2_0)
If (.not.OneLoopMatching) dmZ2= 0._dp
If (.not.OneLoopMatching) dmW2= 0._dp
If (.not.OneLoopMatching) dmW2_0= 0._dp
mZ2_mZ = Real(dmZ2 + mZ2,dp)
If (mZ2_mZ.Lt.0._dp) Then
Iname=Iname-1
kont=-402
Call AddError(402)
Write(*,*) " MZ getting negative at EW scale"
Call TerminateProgram
End If
mZ2_run=mZ2_mZ
mW2_run=mZ2_mZ*(1._dp-sinW2_Q)
CosW2SinW2=(1._dp-sinW2_Q)*sinW2_Q
vev2=mZ2_mZ *CosW2SinW2/(pi*alphamZ)
vSM=sqrt(vev2)
mHiggs= sqrt(Lambda_SM)*vSM
MuSM = 0.5_dp*Lambda_SM*vSM**2
Yu_MZ(3,3)=mf_u(3)/vSM*Sqrt(2._dp)
YuSM=Yu_MZ
Call OneLoop_Z_W_SM(vSM,g1SM,g2SM,g3SM,Lambda_SM,-YuSM,YdSM,YeSM,kont,dmZ2, &
& dmW2,dmW2_0)
If (.not.OneLoopMatching) dmZ2= 0._dp
If (.not.OneLoopMatching) dmW2= 0._dp
If (.not.OneLoopMatching) dmW2_0= 0._dp
rho=(1._dp+Real(dmZ2,dp)/mZ2)/(1._dp+Real(dmW2,dp)/mW2)
delta_rho=1._dp-1._dp/rho
rho=1._dp/(1._dp-delta_rho)
CosW2SinW2=(1._dp-sinW2_Q)*sinW2_Q
If (IncludeDeltaVB) Then
Call DeltaVB_SM(sinW2,sinW2_Q,g2SM,rho,delta)
Else
delta = 0._dp
End if
If (.not.OneLoopMatching) delta= 0._dp
delta_rho0=0._dp
delta_r=rho*Real(dmW2_0,dp)/mW2-Real(dmZ2,dp)/mZ2+delta
rho=1._dp/(1._dp-delta_rho-delta_rho0-fac(2)/sinW2_Q-xt2)
delta_r=rho*Real(dmW2_0,dp)/mW2-Real(dmZ2,dp)/mZ2+delta&
&+fac(1)/CosW2SinW2-xt2*(1-delta_r)*rho
CosW2SinW2=pi*alphamZ/(sqrt2*mZ2*G_F*(1-delta_r))
sinW2_Q=0.5_dp-Sqrt(0.25_dp-CosW2SinW2)
If (sinW2_Q.Lt.0._dp) Then
kont=-403
Call AddError(403)
Iname=Iname-1
Write(*,*) " sinW2 getting negtive at EW scale "
Call TerminateProgram
End If
If (Abs(sinW2_Q-sinW2_old).Lt.0.1_dp*delta0) Exit
sinW2_old=sinW2_Q
delta_rw=(delta_rho+fac(2)/sinW2_Q+xt2)*(1._dp-delta_r)+delta_r
If ((0.25_dp-alphamz*pi/(sqrt2*G_F*mz2*rho*(1._dp-delta_rw))).Lt.0._dp) Then
kont=-404
Call AddError(404)
Iname=Iname-1
Return
End If
mW2=mZ2*rho*(0.5_dp&
&+Sqrt(0.25_dp-alphamz*pi/(sqrt2*G_F*mz2*rho*(1._dp-delta_rw))))
cosW2=mW2/mZ2
cosW=Sqrt(cosW2)
sinW2=1._dp-cosW2
End Do
delta_rw=(delta_rho+fac(2)/sinW2_Q+xt2)*(1._dp-delta_r)+delta_r
mW2=mZ2*rho*(0.5_dp&
&+Sqrt(0.25_dp-alphamz*pi/(sqrt2*G_F*mz2*rho*(1._dp-delta_rw))))
mW=Sqrt(mW2)
cosW2=mW2/mZ2
cosW=Sqrt(cosW2)
sinW2=1._dp-cosW2
g1SM=Sqrt(4._dp*pi*alphamZ/(1._dp-sinW2_Q))
g2SM=Sqrt(4._dp*pi*alphamZ/sinW2_Q)
g3SM=Sqrt(4._dp*pi*alpha3)
vev2=mZ2_mZ*CosW2SinW2/(pi*alphamZ)
vSM=sqrt(vev2)
! -------------------------
! Calculate Yukawas
! -------------------------
uU_L=id3C
uU_R=id3C
uD_L=id3C
uD_R=id3C
uL_L=id3C
uL_R=id3C
If (GenerationMixing) Then
Call Adjungate(CKM,adCKM)
If (YukawaScheme.Eq.1) Then
uU_L(1:3,1:3)=CKM
Else
uD_L(1:3,1:3)=adCKM
End If
End If
If (i_run.Eq.1) Then
mf_l_MS_SM=mf_l_MZ
mf_d_MS_SM=mf_d_MZ
mf_u_MS_SM=mf_u_MZ
mf_l_Q=mf_l_MS_SM
mf_d_Q=mf_d_MS_SM
mf_u_Q=mf_u_MS_SM
YdSM=0._dp
YuSM=0._dp
YeSM=0._dp
Do i1=1,3
YuSM(i1,i1)=sqrt2*mf_u_MS_SM(i1)/vSM
YeSM(i1,i1)=sqrt2*mf_l_MS_SM(i1)/vSM
YdSM(i1,i1)=sqrt2*mf_d_MS_SM(i1)/vSM
End Do
If (GenerationMixing) Then
If (YukawaScheme.Eq.1) Then
YuSM=Matmul(Transpose(uU_L(1:3,1:3)),YuSM)
Else
YdSM=Matmul(Transpose(uD_L(1:3,1:3)),YdSM)
End If
End If
Else
YeSM=Yl_MZ
YdSM=Yd_MZ
YuSM=Yu_MZ
End If! i_run.eq.1
converge= .False.
Y_l_old=YeSM
Y_d_old=YdSM
Y_u_old=YuSM
! -------------------------
! Main Loop
! -------------------------
if (FermionMassResummation) then
i_loop_max=100! this should be sufficient
else
i_loop_max=1
end if
Do i_loop=1,i_loop_max
p2=0._dp! for off-diagonal elements
! Full one-loop corrections
Call OneLoop_d_u_e_SM(vSM,g1SM,g2SM,g3SM,Lambda_SM,-YuSM,YdSM,YeSM,sigR_d, &
& sigL_d,sigSR_d,sigSL_d,sigR_u,sigL_u,sigSR_u,sigSL_u,sigR_l,sigL_l,sigSR_l, &
& sigSL_l,kont)
If (.not.OneLoopMatching) Then
sigR_l = 0._dp
sigL_l = 0._dp
sigSR_l = 0._dp
sigSL_l = 0._dp
sigR_d = 0._dp
sigL_d = 0._dp
sigSR_d = 0._dp
sigSL_d = 0._dp
sigR_u = 0._dp
sigL_u = 0._dp
sigSR_u = 0._dp
sigSL_u = 0._dp
End if
! SM two-loop corrections
! Two-loop Non-SUSY from hep-ph/9803493
Q2=GetRenormalizationScale()
logQ=Log(Q2/MFu(3)**2)
If (OneLoopMatching) Then
SigQCD=-4._dp/3._dp*gSU3**2*MFu(3)*(4._dp+3._dp*LogQ) &
&-MFu(3)*(-2._dp/3._dp*gSU2)**2*sinW2_Q*(4+3._dp*LogQ)
Else
SigQCD=0._dp
End if
If (TwoLoopMatching) Then
SigQCD=-4._dp/3._dp*gSU3**2*MFu(3)*(4._dp+3._dp*LogQ) &
& -oo16pi2*MFu(3)*((2821._dp + 2028._dp*LogQ + 396._dp*LogQ**2 + 16._dp*Pi**2*(1._dp + 2._dp*log2) - 48._dp*Zeta3)*gSU3**4/18._dp) &
&-MFu(3)*(-2._dp/3._dp*gSU2)**2*sinW2_Q*(4+3._dp*LogQ)
End if
SigQCD=oo16pi2*SigQCD
mf_u_MS_SM(3)=mf_u(3)+SigQCD
! Obtain Yukawas
Call Yukawas(mf_u_MS_SM,vSM,uU_L,uU_R,SigSL_u,SigL_u,SigR_u&
&,YuSM, FermionMassResummation,kont)
If (kont.Ne.0) Then
Iname=Iname-1
Write(*,*) " Fit of Yukawa couplings at EW scale failed"
Call TerminateProgram
End If
Call Yukawas(mf_d_MS_SM,vSM,uD_L,uD_R,SigSL_d,SigL_d,SigR_d&
&,YdSM,FermionMassResummation,kont)
If (kont.Ne.0) Then
Iname=Iname-1
Write(*,*) " Fit of Yukawa couplings at EW scale failed"
Call TerminateProgram
End If
Call Yukawas(mf_l_MS_SM,vSM,uL_L,uL_R,SigSL_l,SigL_l,SigR_l&
&,YeSM,.False.,kont)
If (kont.Ne.0) Then
Iname=Iname-1
Write(*,*) " Fit of Yukawa couplings at EW scale failed"
Call TerminateProgram
End If
Call FermionMass(YdSM,vSM,mf_d_Q,uD_L_T,uD_R_T,kont)
Call FermionMass(YeSM,vSM,mf_l_Q,uL_L_T,uL_R_T,kont)
Call FermionMass(YuSM,vSM,mf_u_Q,uU_L_T,uU_R_T,kont)
! Check convergence
converge= .True.
D_mat=Abs(Abs(YeSM)-Abs(Y_l_old))
Where (Abs(YeSM).Ne.0._dp) D_mat=D_mat/Abs(YeSM)
Do i1=1,3
If (D_mat(i1,i1).Gt.0.1_dp*delta0) converge= .False.
Do i2=i1+1,3
If (D_mat(i1,i2).Gt.delta0) converge= .False.
If (D_mat(i2,i1).Gt.delta0) converge= .False.
End Do
End Do
D_mat=Abs(Abs(YdSM)-Abs(Y_d_old))
Where (Abs(YdSM).Ne.0._dp) D_mat=D_mat/Abs(YdSM)
Do i1=1,3
If (D_mat(i1,i1).Gt.0.1_dp*delta0) converge= .False.
Do i2=i1+1,3
If (D_mat(i1,i2).Gt.10._dp*delta0) converge= .False.
If (D_mat(i2,i1).Gt.10._dp*delta0) converge= .False.
End Do
End Do
D_mat=Abs(Abs(YuSM)-Abs(Y_u_old))
Where (Abs(YuSM).Ne.0._dp) D_mat=D_mat/Abs(YuSM)
Do i1=1,3
If (D_mat(i1,i1).Gt.0.1_dp*delta0) converge= .False.
Do i2=i1+1,3
If (D_mat(i1,i2).Gt.10._dp*delta0) converge= .False.
If (D_mat(i2,i1).Gt.10._dp*delta0) converge= .False.
End Do
End Do
If (converge) Exit
Y_l_old=YeSM
Y_u_old=YuSM
Y_d_old=YdSM
!--------------------------------------------------
!Either we have run into a numerical problem or
!perturbation theory breaks down
!--------------------------------------------------
If ((Minval(Abs(mf_l_Q/mf_l)).Lt.0.1_dp)&
&.Or.(Maxval(Abs(mf_l_Q/mf_l)).Gt.10._dp)) Then
Iname=Iname-1
kont=-405
Call AddError(405)
Write(*,*) " Loop corrections to Yukawa couplings at EW scale too large!"
Call TerminateProgram
Else If ((Minval(Abs(mf_d_Q/mf_d)).Lt.0.1_dp)&
&.Or.(Minval(Abs(mf_d_Q/mf_d)).Gt.10._dp)) Then
Iname=Iname-1
kont=-406
Call AddError(406)
Write(*,*) " Loop corrections to Yukawa couplings at EW scale too large!"
Call TerminateProgram
Else If ((Minval(Abs(mf_u_Q/mf_u)).Lt.0.1_dp)&
&.Or.(Minval(Abs(mf_u_Q/mf_u)).Gt.10._dp)) Then
Iname=Iname-1
kont=-407
Call AddError(407)
Write(*,*) " Loop corrections to Yukawa couplings at EW scale too large!"
Call TerminateProgram
End If
End Do! i_loop
If ((.Not.converge).and.FermionMassResummation) Then
Write (ErrCan,*)'Problem in subroutine BoundaryEW!!'
Write (ErrCan,*) "After-1 + (i_loop)iterations no convergence of Yukawas"
End If
Yl_MZ=YeSM
Yd_MZ=YdSM
Yu_MZ=YuSM
sinW2_Q_mZ=sinW2_Q
vSM_save=vSM
gauge_mZ=gauge
Call ParametersToG62_SM(g1SM,g2SM,g3SM,Lambda_SM,YuSM,YdSM,YeSM,MuSM,vSM,g_SM)
test=SetRenormalizationScale(test)
Iname=Iname-1
Contains
Real(dp) Function rho_2(r)
Implicit None
Real(dp),Intent(in)::r
Real(dp)::r2,r3
r2=r*r
r3=r2*r
rho_2=19._dp-16.5_dp*r+43._dp*r2/12._dp&
&+7._dp*r3/120._dp&
&-Pi*Sqrt(r)*(4._dp-1.5_dp*r+3._dp*r2/32._dp&
&+r3/256._dp)&
&-Pi2*(2._dp-2._dp*r+0.5_dp*r2)&
&-Log(r)*(3._dp*r-0.5_dp*r2)
End Function rho_2
Subroutine Yukawas(mf,vev,uL,uR,SigS,SigL,SigR,Y,ReSum,kont)
Implicit None
Integer,Intent(inout)::kont
Real(dp),Intent(in)::mf(3),vev
Complex(dp),Dimension(3,3),Intent(in)::uL,uR,SigS,SigL,SigR
Logical,Intent(in)::ReSum
Complex(dp),Intent(inout)::Y(3,3)
Integer::i1
Complex(dp),Dimension(3,3)::mass,uLa,uRa,f,invf,invY
Call Adjungate(uL,uLa)
Call Adjungate(uR,uRa)
mass=ZeroC
Do i1=1,3
mass(i1,i1)=mf(i1)
End Do
mass=Matmul(Transpose(uL),Matmul(mass,uR))
Y=Y*vev*oosqrt2
If (ReSum) Then
kont=0
Call chop(Y)
invY=Y
Call gaussj(kont,invY,3,3)
If (kont.Ne.0) Return
f=id3C-Matmul(SigS,invY)-Transpose(SigL)-Matmul(Y,Matmul(SigR,invY))
invf=f
Call gaussj(kont,invf,3,3)
If (kont.Ne.0) Return
Y=Matmul(invf,mass)
Else
Y=mass+SigS+Matmul(Transpose(SigL),Y)+Matmul(Y,SigR)
End If
Y=sqrt2*Y/vev
Call chop(y)
End Subroutine Yukawas
End Subroutine BoundarySM
Subroutine BoundaryBSM(i_run,g_SM,MAh,MAh2,MDpm,MDpm2,MFd,MFd2,MFe,MFe2, &
& MFu,MFu2,Mhh,Mhh2,MHpm,MHpm2,MVWp,MVWp2,MVXp,MVXp2,MVZ,MVZ2,MVZp,MVZp2,TW, &
& Ud,Ue,Uu,Vd,Ve,Vu,ZA,ZH,ZP,ZW,zy,ZZ,Vn,v1,v2,g1,g2,g3,l1,l12,l13,l12t,l13t, &
& l2,l23,l23t,l3,hll1,hdp11,hd1,hdtp11,hdt1,hup11,hUp1,hdp1,hd2,hdtp1,hdt2, &
& hup21,hUp2,hd3,hdt3,hu11,h12,hU1,hU2,ftri,mu12,mu22,mu32,delta0,gMZ,kont)
Implicit None
Real(dp),Intent(out)::gMZ(:)
Real(dp),Intent(in) :: g_SM(62)
Real(dp),Intent(inout) :: g1,g2,g3,ftri,mu12,mu22,mu32
Complex(dp),Intent(inout) :: l1,l12,l13,l12t,l13t,l2,l23,l23t,l3,hll1(3,3),hdp11(3),hd1(3),hdtp11(2), &
& hdt1(2),hup11(3),hUp1,hdp1(3),hd2(3),hdtp1(2),hdt2(2),hup21(3),hUp2,hd3(3), &
& hdt3(2),hu11(3),h12(3),hU1,hU2
Real(dp),Intent(inout) :: MAh(3),MAh2(3),MDpm(2),MDpm2(2),MFd(5),MFd2(5),MFe(3),MFe2(3),MFu(4),MFu2(4), &
& Mhh(3),Mhh2(3),MHpm(4),MHpm2(4),MVWp,MVWp2,MVXp,MVXp2,MVZ,MVZ2,MVZp,MVZp2,TW
Complex(dp),Intent(inout) :: Ud(5,5),Ue(3,3),Uu(4,4),Vd(5,5),Ve(3,3),Vu(4,4),ZA(3,3),ZH(3,3),ZP(4,4), &
& ZW(4,4),zy(2,2),ZZ(3,3)
Real(dp),Intent(inout) :: Vn,v1,v2
Complex(dp) :: cplAhhhVP(3,3),cplDpmcDpmVP(2,2),cplcFdFdVPL(5,5),cplcFdFdVPR(5,5),cplcFeFeVPL(3,3), &
& cplcFeFeVPR(3,3),cplcFuFuVPL(4,4),cplcFuFuVPR(4,4),cplcFv1Fv1VPL(3,3),cplcFv1Fv1VPR(3,3),&
& cplcgWpgWpVP,cplcgWCgWCVP,cplcgXp1gXp1VP,cplcgXp2gXp2VP,cplhhVPVZ(3),cplhhVPVZp(3), &
& cplHpmcHpmVP(4,4),cplHpmVPVWp(4),cplHpmVPVXp(4),cplcVWpVPVWp,cplcVXpVPVXp, &
& cplAhAhVPVP(3,3),cplDpmcDpmVPVP(2,2),cplhhhhVPVP(3,3),cplHpmcHpmVPVP(4,4), &
& cplcVWpVPVPVWp1,cplcVWpVPVPVWp2,cplcVWpVPVPVWp3,cplcVXpVPVPVXp1,cplcVXpVPVPVXp2, &
& cplcVXpVPVPVXp3,cplAhhhVZ(3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cplcVWpcVXpVWpVXp3, &
& cplcHpmcVXpVP(4),cplcDpmcVXpVWp(2),cplcHpmcVXpVZ(4),cplAhAhVPVZ(3,3),cplDpmcDpmVPVZ(2,2),&
& cplhhhhVPVZ(3,3),cplHpmcHpmVPVZ(4,4),cplcVWpVPVWpVZ1,cplcVWpVPVWpVZ2,cplcVWpVPVWpVZ3, &
& cplcVXpVPVXpVZ1,cplcVXpVPVXpVZ2,cplcVXpVPVXpVZ3,cplAhAhVPVZp(3,3),cplDpmcDpmVPVZp(2,2),&
& cplhhhhVPVZp(3,3),cplHpmcHpmVPVZp(4,4),cplcVWpVPVWpVZp1,cplcVWpVPVWpVZp2, &
& cplcVWpVPVWpVZp3,cplcVXpVPVXpVZp1,cplcVXpVPVXpVZp2,cplcVXpVPVXpVZp3,cplAhAhVZVZp(3,3), &
& cplDpmcDpmVZVZp(2,2),cplhhhhVZVZp(3,3),cplHpmcHpmVZVZp(4,4),cplcVWpVWpVZVZp1, &
& cplcVWpVWpVZVZp2,cplcVWpVWpVZVZp3,cplcVXpVXpVZVZp1,cplcVXpVXpVZVZp2,cplcVXpVXpVZVZp3, &
& cplAhHpmVWp(3,4),cplcFuFdVWpL(4,5),cplcFuFdVWpR(4,5),cplhhHpmVWp(3,4),cplHpmcHpmcVXpVWp(4,4)
Complex(dp) :: cplcUFdFdAhL(5,5,3),cplcUFdFdAhR(5,5,3),cplcUFdFdDpmL(5,5,2),cplcUFdFdDpmR(5,5,2), &
& cplcUFdFdhhL(5,5,3),cplcUFdFdhhR(5,5,3),cplcUFdFdVGL(5,5),cplcUFdFdVGR(5,5), &
& cplcUFdFdVPL(5,5),cplcUFdFdVPR(5,5),cplcUFdFdVZL(5,5),cplcUFdFdVZR(5,5), &
& cplcUFdFdVZpL(5,5),cplcUFdFdVZpR(5,5),cplcUFdFucVWpL(5,4),cplcUFdFucVWpR(5,4), &
& cplcUFdFucVXpL(5,4),cplcUFdFucVXpR(5,4),cplcUFdFuHpmL(5,4,4),cplcUFdFuHpmR(5,4,4), &
& cplcUFuFuAhL(4,4,3),cplcUFuFuAhR(4,4,3),cplcUFuFuDpmL(4,4,2),cplcUFuFuDpmR(4,4,2), &
& cplcUFuFdcHpmL(4,5,4),cplcUFuFdcHpmR(4,5,4),cplcUFuFdVWpL(4,5),cplcUFuFdVWpR(4,5), &
& cplcUFuFdVXpL(4,5),cplcUFuFdVXpR(4,5),cplcUFuFuhhL(4,4,3),cplcUFuFuhhR(4,4,3), &
& cplcUFuFuVGL(4,4),cplcUFuFuVGR(4,4),cplcUFuFuVPL(4,4),cplcUFuFuVPR(4,4), &
& cplcUFuFuVZL(4,4),cplcUFuFuVZR(4,4),cplcUFuFuVZpL(4,4),cplcUFuFuVZpR(4,4), &
& cplcUFeFeAhL(3,3,3),cplcUFeFeAhR(3,3,3),cplcUFeFehhL(3,3,3),cplcUFeFehhR(3,3,3), &
& cplcUFeFeVPL(3,3),cplcUFeFeVPR(3,3),cplcUFeFeVZL(3,3),cplcUFeFeVZR(3,3), &
& cplcUFeFeVZpL(3,3),cplcUFeFeVZpR(3,3),cplcUFeFv1cVWpL(3,3),cplcUFeFv1cVWpR(3,3), &
& cplcUFeFv1HpmL(3,3,4),cplcUFeFv1HpmR(3,3,4),cplcUFecFv1HpmL(3,3,4),cplcUFecFv1HpmR(3,3,4)
Integer, Intent(in) :: i_run
Real(dp), Intent(in) :: delta0
Integer, Intent(inout) :: kont
Integer :: i1,i2,i3,i4
Complex(dp) ::uU_L(4,4),uU_R(4,4),uD_L(5,5),uD_R(5,5), NoMatrix(3,3) &
&,uL_L(3,3),uL_R(3,3)
Real(dp)::mW2_run,mZ2_run,test, D_mat(3,3)
Real(dp)::alphaQ,alpha3,gSU2,rho,delta_rho,delta_rho0,sinW2_Q,vev2&
&,vevs_Q(2),mZ2_Q,CosW2SinW2,gauge(3),delta,delta_SM,sinW2_old,delta_r&
&,p2,gSU3,tanb,xt2,fac(2),SigQCD,delta_rw,sinW2,cosW2,cosW
Real(dp),Dimension(3)::mf_d_Q,mf_l_Q,mf_u_Q
Real(dp) :: g1SM, g2SM, g3SM, vSM
Complex(dp) :: dMZ2_SM, dMW2_SM, dMW2_0_SM
Complex(dp) :: dmZ2,dmW2,dmW2_0,yuk_tau,yuk_t,yuk_b
Complex(dp) :: SigSR_u(4,4),SigSL_u(4,4),sigR_u(4,4),SigL_u(4,4)
Complex(dp) :: SigSR_d(5,5),SigSL_d(5,5),SigR_d(5,5),SigL_d(5,5)
Complex(dp) :: SigSR_l(3,3),SigSL_l(3,3),sigR_l(3,3),SigL_l(3,3)
Complex(dp) :: SigSR_u_SM(3,3),SigSL_u_SM(3,3),sigR_u_SM(3,3),SigL_u_SM(3,3)
Complex(dp) :: SigSR_d_SM(3,3),SigSL_d_SM(3,3),SigR_d_SM(3,3),SigL_d_SM(3,3)
Complex(dp) :: SigSR_l_SM(3,3),SigSL_l_SM(3,3),sigR_l_SM(3,3),SigL_l_SM(3,3)
Complex(dp) :: YuSM(3,3),YdSM(3,3),YeSM(3,3), adCKM(3,3),Y_l_old(3,3),Y_d_old(3,3),Y_u_old(3,3)
Real(dp) :: g1_MS, g2_MS,g3_MS,v_MS, mf_d_MS(3), mf_u_MS(3), mf_e_MS(3)
Complex(dp) :: Yu_MS(3,3),Yd_MS(3,3),Ye_MS(3,3), Mu_MS, Lam_MS, MuSM
Complex(dp) :: uU_L_MS(3,3),uU_R_MS(3,3)&
&,uD_L_MS(3,3),uD_R_MS(3,3),uL_L_MS(3,3),uL_R_MS(3,3), CKM_MS(3,3), delta_r_SM
Complex(dp) :: uU_L_T(4,4),uU_R_T(4,4)&
&,uD_L_T(5,5),uD_R_T(5,5),uL_L_T(3,3),uL_R_T(3,3)
Logical::converge
Integer :: i_loop, i_loop_max
Real(dp),Parameter::&
& as2loop=1._dp/24._dp+2011._dp*oo32Pi2/12._dp&
&+Log2/12._dp-oo8Pi2*Zeta3&
&,log2loop_a=123._dp*oo32Pi2,log2loop_b=33._dp*oo32Pi2
Real(dp)::Q2,logQ, sinTW_MS, alphaEW_MS, alphaS_MS, mudim, mz2_MS, mw2_MS
Real(dp) :: VEVSM1,VEVSM2,VEVSM1MZ,VEVSM2MZ
Complex(dp) ::MassFu(4,4),MassFd(5,5),MassFe(3,3)
Real(dp),Parameter::id5R(5,5)=&
& Reshape(Source=(/&
& 1,0,0,0,0,&
&0,1,0,0,0,&
&0,0,1,0,0,&
&0,0,0,1,0,&
&0,0,0,0,1&
&/),shape=(/5,5/))
Complex(dp),Parameter::id5C(5,5)=&
& Reshape(Source=(/&
& 1,0,0,0,0,&
&0,1,0,0,0,&
&0,0,1,0,0,&
&0,0,0,1,0,&
&0,0,0,0,1&
&/),shape=(/5,5/))
Iname=Iname+1
NameOfUnit(Iname)='BoundaryBSM'
rMS_SM = rMS
tanb = tanbetaMZ
sinW2 = 1 - mW**2/mZ**2
mudim = GetRenormalizationScale()
mudim = sqrt(mudim)
Call GToParameters62_SM(g_SM,g1_MS,g2_MS,g3_MS,Lam_MS,Yu_MS,Yd_MS,Ye_MS,Mu_MS,v_MS)
sinTW_MS = g1_MS/sqrt(g1_MS**2+g2_MS**2)
sinW2_Q = sinTW_MS**2
alphaEW_MS = (sinTW_MS*g2_MS)**2/(4._dp*Pi)
alphaS_MS = g3_MS**2/(4._dp*Pi)
mz2_MS = (g1_MS**2+g2_MS**2)/(4._dp)*(v_MS**2)
delta_r_SM = 1._dp - alphaEW_MS*Pi/(G_F*mz2*sqrt2*sinW2_Q*(1-sinW2_Q))
Call FermionMass(Yd_MS,v_MS,mf_d_MS,uD_L_MS,uD_R_MS,kont)
Call FermionMass(Ye_MS,v_MS,mf_e_MS,uL_L_MS,uL_R_MS,kont)
Call FermionMass(Yu_MS,v_MS,mf_u_MS,uU_L_MS,uU_R_MS,kont)
CKM_MS = MatMul(uU_R_MS,Transpose(Conjg(uD_R_MS)))
!-----------------
!sin(theta_W)^2
!-----------------
vSM = v_MS
sinW2_old=sinW2_Q
mf_l2=mf_e_MS**2
mf_d2=mf_d_MS**2
mf_u2=mf_u_MS**2
MFe2(1:3) = mf_l**2
MFd2(1:3) = mf_d**2
MFu2(1:3) = mf_u**2
MFe = sqrt(MFe2)
MFd = sqrt(MFd2)
MFu = sqrt(MFu2)
alphaQ = AlphaEw_T(alphaEW_MS,mudim,Abs(MVWp),Abs(MVXp),Abs(MHpm),Abs(MDpm),Abs(MFd),Abs(MFu),Abs(MFe))
MFe2(1:3) = mf_l2
MFd2(1:3) = mf_d2
MFu2(1:3) = mf_u2
MFe = sqrt(MFe2)
MFd = sqrt(MFd2)
MFu = sqrt(MFu2)
alpha3 = AlphaS_T(alphaS_MS,mudim,Abs(MFd),Abs(MFu))
If (.not.OneLoopMatching) alpha3 = alphaS_MS
gSU3 = Sqrt(4._dp*pi*alpha3)
g3SM = Sqrt(4._dp*pi*alpha3)
Do i1=1,100
gSU2 = Sqrt( 4._dp*pi*alphaQ/sinW2_Q)
g1SM =gSU2*Sqrt(sinW2_Q/(1._dp-sinW2_Q))
g2SM =gSU2
If (i_run.eq.1) Then
YeSM=Yl_MZ
YdSM=Yd_MZ
YuSM=Yu_MZ
Else
YeSM=Yl_Q
YdSM=Yd_Q
YuSM=Yu_Q
End if
Call SetMatchingConditions(g1SM,g2SM,g3SM,YuSM,YdSM,YeSM,vSM,Vn,v1,v2,g1, &
& g2,g3,l1,l12,l13,l12t,l13t,l2,l23,l23t,l3,hll1,hdp11,hd1,hdtp11,hdt1,hup11, &
& hUp1,hdp1,hd2,hdtp1,hdt2,hup21,hUp2,hd3,hdt3,hu11,h12,hU1,hU2,ftri,mu12, &
& mu22,mu32,.False.)
Call TreeMasses(MAh,MAh2,MDpm,MDpm2,MFd,MFd2,MFe,MFe2,MFu,MFu2,Mhh,Mhh2, &
& MHpm,MHpm2,MVWp,MVWp2,MVXp,MVXp2,MVZ,MVZ2,MVZp,MVZp2,TW,Ud,Ue,Uu,Vd,Ve,Vu, &
& ZA,ZH,ZP,ZW,zy,ZZ,Vn,v1,v2,g1,g2,g3,l1,l12,l13,l12t,l13t,l2,l23,l23t,l3, &
& hll1,hdp11,hd1,hdtp11,hdt1,hup11,hUp1,hdp1,hd2,hdtp1,hdt2,hup21,hUp2,hd3, &
& hdt3,hu11,h12,hU1,hU2,ftri,mu12,mu22,mu32,GenerationMixing,kont)
TW= Asin(Sqrt(sinw2_Q))
! --- Boundary conditions at EW-scale ---
Select Case(BoundaryCondition)
End Select
! -----------------------
MVZ2 = mZ2
MVZ= Sqrt(MVZ2)
MVWp2 = mW2
MVWp= Sqrt(MVWp2)
MAh(1)=MVZ
MAh2(1)=MVZ2
MAh(2)=MVZp
MAh2(2)=MVZp2
MHpm(1)=MVWp
MHpm2(1)=MVWp2
MHpm(2)=MVXp
MHpm2(2)=MVXp2
If (.not.MatchZWpoleMasses) Then
Call CouplingsForVectorBosons(g1,g2,ZZ,ZH,ZA,zy,Vd,Vu,Uu,Vn,v1,v2,ZP,Ve, &
& cplAhhhVP,cplDpmcDpmVP,cplcFdFdVPL,cplcFdFdVPR,cplcFeFeVPL,cplcFeFeVPR,cplcFuFuVPL, &
& cplcFuFuVPR,cplcFv1Fv1VPL,cplcFv1Fv1VPR,cplcgWpgWpVP,cplcgWCgWCVP,cplcgXp1gXp1VP, &
& cplcgXp2gXp2VP,cplhhVPVZ,cplhhVPVZp,cplHpmcHpmVP,cplHpmVPVWp,cplHpmVPVXp, &
& cplcVWpVPVWp,cplcVXpVPVXp,cplAhAhVPVP,cplDpmcDpmVPVP,cplhhhhVPVP,cplHpmcHpmVPVP, &
& cplcVWpVPVPVWp1,cplcVWpVPVPVWp2,cplcVWpVPVPVWp3,cplcVXpVPVPVXp1,cplcVXpVPVPVXp2, &
& cplcVXpVPVPVXp3,cplAhhhVZ,cplDpmcDpmVZ,cplcFdFdVZL,cplcFdFdVZR,cplcFeFeVZL, &
& cplcFeFeVZR,cplcFuFuVZL,cplcFuFuVZR,cplcFv1Fv1VZL,cplcFv1Fv1VZR,cplcgWpgWpVZ, &
& cplcgWCgWCVZ,cplcgXp1gXp1VZ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Z2 = 0._dp
mZ2_Q = Real(dmZ2 + mZ2_MS,dp)
If (mZ2_Q.Lt.0._dp) Then
Iname=Iname-1
kont=-402
Call AddError(402)
Write(*,*) " MZ getting negative at renormalisation scale"
Call TerminateProgram
End If
mZ2_run=mZ2_Q
mW2_run=mZ2_Q*(1._dp-sinW2_Q) +0
MVZ2 = mZ2_run
MVZ= Sqrt(MVZ2)
MVWp2 = mW2_run
MVWp= Sqrt(MVWp2)
MAh(1)=MVZ
MAh2(1)=MVZ2
MAh(2)=MVZp
MAh2(2)=MVZp2
MHpm(1)=MVWp
MHpm2(1)=MVWp2
MHpm(2)=MVXp
MHpm2(2)=MVXp2
CosW2SinW2=(1._dp-sinW2_Q)*sinW2_Q
vev2=mZ2_Q*CosW2SinW2/(pi*alphaQ) -(0)
vSM=Sqrt(vev2)
Call SetMatchingConditions(g1SM,g2SM,g3SM,YuSM,YdSM,YeSM,vSM,Vn,v1,v2,g1, &
& g2,g3,l1,l12,l13,l12t,l13t,l2,l23,l23t,l3,hll1,hdp11,hd1,hdtp11,hdt1,hup11, &
& hUp1,hdp1,hd2,hdtp1,hdt2,hup21,hUp2,hd3,hdt3,hu11,h12,hU1,hU2,ftri,mu12, &
& mu22,mu32,.False.)
Call CouplingsForVectorBosons(g1,g2,ZZ,ZH,ZA,zy,Vd,Vu,Uu,Vn,v1,v2,ZP,Ve, &
& cplAhhhVP,cplDpmcDpmVP,cplcFdFdVPL,cplcFdFdVPR,cplcFeFeVPL,cplcFeFeVPR,cplcFuFuVPL, &
& cplcFuFuVPR,cplcFv1Fv1VPL,cplcFv1Fv1VPR,cplcgWpgWpVP,cplcgWCgWCVP,cplcgXp1gXp1VP, &
& cplcgXp2gXp2VP,cplhhVPVZ,cplhhVPVZp,cplHpmcHpmVP,cplHpmVPVWp,cplHpmVPVXp, &
& cplcVWpVPVWp,cplcVXpVPVXp,cplAhAhVPVP,cplDpmcDpmVPVP,cplhhhhVPVP,cplHpmcHpmVPVP, &
& cplcVWpVPVP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Z,cplcVWpVWpVZVZ1, &
& cplcVWpVWpVZVZ2,cplcVWpVWpVZVZ3,cplcVXpVXpVZVZ1,cplcVXpVXpVZVZ2,cplcVXpVXpVZVZ3, &
& kont,dmZ2)
Call OneLoop_Z_W_SM(vSM,g1SM,g2SM,g3SM,Lam_MS,-YuSM,YdSM,YeSM,kont,dmZ2_SM, &
& dmW2_SM,dmW2_0_SM)
dmZ2 = dmZ2 - dmZ2_SM
If (.not.OneLoopMatching) dmZ2 = 0._dp
mZ2_Q = Real(dmZ2 + mZ2_MS,dp)
If (mZ2_Q.Lt.0._dp) Then
Iname=Iname-1
kont=-402
Call AddError(402)
Write(*,*) " MZ getting negative at renormalisation scale"
Call TerminateProgram
End If
mZ2_run=mZ2_Q
mW2_run=mZ2_Q*(1._dp-sinW2_Q) +0
MVZ2 = mZ2_run
MVZ= Sqrt(MVZ2)
MVWp2 = mW2_run
MVWp= Sqrt(MVWp2)
MAh(1)=MVZ
MAh2(1)=MVZ2
MAh(2)=MVZp
MAh2(2)=MVZp2
MHpm(1)=MVWp
MHpm2(1)=MVWp2
MHpm(2)=MVXp
MHpm2(2)=MVXp2
CosW2SinW2=(1._dp-sinW2_Q)*sinW2_Q
vev2=mZ2_Q *CosW2SinW2/(pi*alphaQ) -(0)
vSM=sqrt(vev2)
Call SetMatchingConditions(g1SM,g2SM,g3SM,YuSM,YdSM,YeSM,vSM,Vn,v1,v2,g1, &
& g2,g3,l1,l12,l13,l12t,l13t,l2,l23,l23t,l3,hll1,hdp11,hd1,hdtp11,hdt1,hup11, &
& hUp1,hdp1,hd2,hdtp1,hdt2,hup21,hUp2,hd3,hdt3,hu11,h12,hU1,hU2,ftri,mu12, &
& mu22,mu32,.False.)
Call CouplingsForVectorBosons(g1,g2,ZZ,ZH,ZA,zy,Vd,Vu,Uu,Vn,v1,v2,ZP,Ve, &
& cplAhhhVP,cplDpmcDpmVP,cplcFdFdVPL,cplcFdFdVPR,cplcFeFeVPL,cplcFeFeVPR,cplcFuFu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,cplcVWpVPVPVWp3,cplcVWpVPVPVWp1,cplcVWpVPVPVWp2, &
& cplcVWpcVWpVWpVWp2,cplcVWpcVWpVWpVWp3,cplcVWpcVWpVWpVWp1,cplcVWpcVXpVWpVXp2, &
& cplcVWpcVXpVWpVXp3,cplcVWpcVXpVWpVXp1,cplcVWpVWpVZVZ1,cplcVWpVWpVZVZ2,cplcVWpVWpVZVZ3, &
& cplcVWpVWpVZpVZp1,cplcVWpVWpVZpVZp2,cplcVWpVWpVZpVZp3,kont,dmW2_0)
Call OneLoop_Z_W_SM(vSM,g1SM,g2SM,g3SM,Lam_MS,-YuSM,YdSM,YeSM,kont,dmZ2_SM, &
& dmW2_SM,dmW2_0_SM)
dmW2 = dmW2 - dmW2_SM
dmW2_0 = dmW2_0 - dmW2_0_SM
If (.not.OneLoopMatching) dmW2 = 0._dp
If (.not.OneLoopMatching) dmW2_0 = 0._dp
rho=(1._dp+Real(dmZ2,dp)/mZ2)/(1._dp+Real(dmW2,dp)/mW2)
delta_rho=1._dp-1._dp/rho
delta_rho0=0
rho=1._dp/(1._dp-delta_rho-delta_rho0)
CosW2SinW2=(1._dp-sinW2_Q)*sinW2_Q
If (IncludeDeltaVB) Then
Call DeltaVB(sinW2,sinW2_Q,rho,MAh,MFe,Mhh,MHpm,MVZp,g1,g2,h12l,hll1,Ue, &
& Ve,ZA,ZH,ZP,ZZ,delta)
Call DeltaVB_SM(sinW2,sinW2_Q,g2SM,rho,delta_SM)
delta=delta-delta_SM
Else
delta = 0._dp
End if
If (.not.OneLoopMatching) delta = 0._dp
delta_r=rho*Real(dmW2_0,dp)/mW2-Real(dmZ2,dp)/mZ2+delta
delta_rho0=0
rho=1._dp/(1._dp-delta_rho-delta_rho0)
delta_r=rho*Real(dmW2_0,dp)/mW2-Real(dmZ2,dp)/mZ2+delta
CosW2SinW2=pi*alphaQ/(sqrt2*mZ2*G_F*(1-delta_r_SM - delta_r))
sinW2_Q=0.5_dp-Sqrt(0.25_dp-CosW2SinW2)
If (sinW2_Q.Lt.0._dp) Then
kont=-403
Call AddError(403)
Iname=Iname-1
Write(*,*) " sinW2 getting negtive at renormalisation scale "
Call TerminateProgram
End If
If (Abs(sinW2_Q-sinW2_old).Lt.0.1_dp*delta0) Exit
sinW2_old=sinW2_Q
delta_rw=delta_rho*(1._dp-delta_r_SM - delta_r)+delta_r_SM + delta_r
If ((0.25_dp-alphaQ*pi/(sqrt2*G_F*mz2*rho*(1._dp-delta_rw))).Lt.0._dp) Then
kont=-404
Call AddError(404)
Iname=Iname-1
Return
End If
mW2=mZ2*rho*(0.5_dp&
&+Sqrt(0.25_dp-alphaQ*pi/(sqrt2*G_F*mz2*rho*(1._dp-delta_rw))))
MAh(1)=MVZ
MAh2(1)=MVZ2
MAh(2)=MVZp
MAh2(2)=MVZp2
MHpm(1)=MVWp
MHpm2(1)=MVWp2
MHpm(2)=MVXp
MHpm2(2)=MVXp2
cosW2=mW2/mZ2
cosW=Sqrt(cosW2)
sinW2=1._dp-cosW2
Else
Call CouplingsForVectorBosons(g1,g2,ZZ,ZH,ZA,zy,Vd,Vu,Uu,Vn,v1,v2,ZP,Ve, &
& cplAhhhVP,cplDpmcDpmVP,cplcFdFdVPL,cplcFdFdVPR,cplcFeFeVPL,cplcFeFeVPR,cplcFuFuVPL, &
& cplcFuFuVPR,cplcFv1Fv1VPL,cplcFv1Fv1VPR,cplcgWpgWpVP,cplcgWCgWCVP,cplcgXp1gXp1VP, &
& cplcgXp2gXp2VP,cplhhVPVZ,cplhhVPVZp,cplHpmcHpmVP,cplHpmVPVWp,cplHpmVPVXp, &
& cplcVWpVPVWp,cplcVXpVPVXp,cplAhAhVPVP,cplDpmcDpmVPVP,cplhhhhVPVP,cplHpmcHpmVPVP, &
& cplcVWpVPVPVWp1,cplcVWpVPVPVWp2,cplcVWpVPVPVWp3,cplcVXpVPVPVXp1,cplcVXpVPVPVXp2, &
& cplcVXpVPVPVXp3,cplAhhhVZ,cplDpmcDpmVZ,cplcFdFdVZL,cplcFdF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