-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsoftpoint.cpp
1556 lines (1487 loc) · 53.7 KB
/
softpoint.cpp
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
/** \file softpoint.cpp
- Project: SOFTSUSY
- Authors: Ben Allanach, Markus Bernhardt
- Manual: hep-ph/0104145, Comp. Phys. Comm. 143 (2002) 305
- Webpage: http://hepforge.cedar.ac.uk/softsusy/
- Description: main calling program: command line interface. Reads Les
- Houches files and command-line inputs and drives the calculation of a point
- in parameter space.
*/
#include "softpoint.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
// Returns a string with all characters in upper case: very handy
string ToUpper(const string & s) {
string result;
unsigned int index;
for (index = 0; index < s.length(); index++) {
char a = s[index];
a = toupper(a);
result = result + a;
}
return result;
}
void errorCall() {
ostringstream ii;
ii << "SOFTSUSY" << PACKAGE_VERSION
<< " called with incorrect arguments. Need to put either:\n";
ii << "./softpoint.x leshouches < lesHouchesInput\n for SLHA/SLAH2 input, or\n";
ii << "./softpoint.x sugra [SUGRA parameters] [other options]\n";
ii << "./softpoint.x amsb [mAMSB parameters] [other options]\n";
ii << "./softpoint.x gmsb [mGMSB parameters] [other options]\n";
ii << "./softpoint.x nmssm sugra [NMSSM flags] [NMSSM parameters] [other options]\n\n";
ii << "[other options]: --decays calculates the decays for NMSSM/MSSM\n";
ii << "--mh0=<value> --mA0=<value> --mHpm=<value> --mH0=<value> sets the MSSM ";
ii << "Higgs pole masses.\n";
ii << "--minBR=<value> sets the minimum branching ratio printed\n";
ii << "--dontCalculateThreeBody switches the 3-body decay width calculations off\n";
ii << "--outputPartialWidths outputs the partial widths themselves in the comments\n";
ii << "--higgsUncertainties gives an estimate of Higgs mass uncertainties\n";
ii << "--mbmb=<value> --mt=<value> --alpha_s=<value> --QEWSB=<value>\n";
ii << "--alpha_inverse=<value> --tanBeta=<value> --sgnMu=<value> --tol=<value>\n";
ii << "--matching_scale=<value>\n";
#ifdef COMPILE_TWO_LOOP_GAUGE_YUKAWA
ii << "--two-loop-gauge-yukawa switches on leading 2-loop SUSY threshold corrections to third generation Yukawa couplings and g3.\n";
#endif ///< COMPILE_TWO_LOOP_GAUGE_YUKAWA
ii << "--three-loop-rges switches on 3-loop RGEs\n";
ii << "--two-loop-sparticle-masses switches on SUSYQCD two-loop corrections to squark\n and gluino pole masses.\n";
ii << "--two-loop-sparticle-mass-method=<n> chooses the expansion of these terms:\n";
ii << "1=expansion around gluino pole mass only or 2=expand around\ngluino and squark pole masses.\n";
ii << "--mgut=unified sets the scale at which SUSY breaking terms are set to the GUT\n";
ii << "scale where g1=g2. --mgut=<value> sets it to a fixed scale, ";
ii << "whereas --mgut=msusy\nsets it to MSUSY\n\n";
ii << "If you want the R-parity violating MSSM calculation, set any of the following:\n";
ii << "--lambda <i> <j> <k> <coupling>, the word lambda replaceable with lambdaP\nor lambdaPP for LLE, LQD, UDD coupling, respectively.\n\n";
ii << "[SUGRA parameters]: --m0=<value> --m12=<value> --a0=<value>\n";
ii << "[mAMSB parameters]: --m0=<value> --m32=<value>\n";
ii << "[mGMSB parameters]: --n5=<value> --mMess=<value> --LAMBDA=<value> --cgrav=<value>\n\n";
ii << "Bracketed entries are numerical values, in units of GeV if they are massive.\n";
ii << "Warning: entries left unspecified will be assumed to be zero for SUSY breaking\nterms, unified (for mgut) or at their default central values for Standard Model parameters\n";
ii << "\n"
"[NMSSM flags]:\n"
" --lambdaAtMsusy input lambda at renormalization scale Q = Msusy\n"
"\n"
"[NMSSM parameters]:\n"
" --m0= , --m12= , --a0= , --tanBeta= , --mHd2= , --mHu2= ,\n"
" --mu= , --m3SqrOverCosBetaSinBeta= , --lambda= , --kappa= ,\n"
" --Alambda= , --Akappa= , --lambdaS= , --xiF= , --xiS= ,\n"
" --muPrime= , --mPrimeS2= , --mS2=\n"
"\n"
" Unset NMSSM parameters are assumed to be zero\n"
"\n"
"NMSSM example:\n"
" ./softpoint.x nmssm sugra --m0=125 --m12=200 --tanBeta=10 --a0=-300 \\\n"
" --lambda=0.1 --lambdaAtMsusy\n";
throw ii.str();
}
int main(int argc, char *argv[]) {
vector<Particle> decayTable;
int mixing = 0; double qewsb = 1;
bool useThreeLoopRge = false;
/// Sets up exception handling
signal(SIGFPE, FPE_ExceptionHandler);
double lambdaW = 0., aCkm = 0., rhobar = 0., etabar = 0.;
NMSSM_input nmssm_input; // NMSSM input parameters
bool flavourViolation = false, gutScaleOutput = false,
higgsUncertainties = false;
int numPoints = 1;
double qMax = 0.;
// Sets format of output: 4 decimal places
outputCharacteristics(6);
void (*boundaryCondition)(MssmSoftsusy &, const DoubleVector &)
=extendedSugraBcs;
void (*nmssmBoundaryCondition)(NmssmSoftsusy&, const DoubleVector&)
=NmssmMsugraBcs;
QedQcd oneset;
MssmSoftsusy m; FlavourMssmSoftsusy k; NmssmSoftsusy nmssm;
nmssm.setGUTlambda(true);
nmssm.setGUTkappa(true);
nmssm.setGUTmuPrime(true);
nmssm.setGUTxiF(true);
nmssm.setGUTsVev(true);
k.setInitialData(oneset);
MssmSoftsusy * r = &m;
RpvNeutrino kw; bool RPVflag = false;
enum Model_t { MSSM, NMSSM } susy_model = MSSM; // susy model (MODSEL entry 3)
double m0 = 0., m12 = 0., a0 = 0., m32 = 0., mMess = 0., n5 = 0.,
LAMBDA = 0., cgrav = 1.;
try {
if (argc !=1 && strcmp(argv[1],"leshouches") != 0) {
cout << "# SOFTSUSY" << PACKAGE_VERSION << endl;
if (!strcmp(argv[1], "-v") || !strcmp(argv[1], "--version")) exit(0);
cout << "# B.C. Allanach, Comput. Phys. Commun. 143 (2002) 305-331,";
cout << " hep-ph/0104145\n";
cout << "# For RPV aspects, B.C. Allanach and M.A. Bernhardt, Comput. \n"
<< "# Phys. Commun. 181 (2010) 232, arXiv:0903.1805.\n";
cout << "# Low energy data in SOFTSUSY: mixing=" << mixing << " TOLERANCE="
<< TOLERANCE << endl;
cout << "# G_F=" << GMU << " GeV^2" << endl;
}
double mgutGuess = 2.0e16, tanb = 0., mScale = 0.;
int sgnMu = 1;
bool gaugeUnification = true, ewsbBCscale = false;
double desiredMh = 0.;
// If there are no arguments, give error message,
// or if none of the options are called, then go to error message
if (argc == 1 || ( (strcmp(argv[1], "sugra") &&
strcmp(argv[1], "amsb") &&
strcmp(argv[1], "gmsb") &&
strcmp(argv[1], "runto") &&
strcmp(argv[1], "leshouches") &&
strcmp(argv[1], "nmssm") &&
strcmp(argv[1], "-v") &&
strcmp(argv[1], "--version"))))
errorCall();
DoubleVector pars(3);
const char* modelIdent = "";
bool compilationProblem = false;
int badArg = 0;
/// Non model specific options
if (strcmp(argv[1], "leshouches")) {
for (int i = 2; i < argc; i++) { ///< cycle through arguments
badArg = 0;
if (starts_with(argv[i],"--mbmb=")) {
double mbIn = get_value(argv[i], "--mbmb=");
oneset.setMbMb(mbIn);
}
else if (starts_with(argv[i],"--mtau=")) {
double mtauIn = get_value(argv[i], "--mtau=");
oneset.setPoleMtau(mtauIn);
} else if (starts_with(argv[i],"--higgsUncertainties"))
higgsUncertainties = true;
else if (starts_with(argv[i],"--decays"))
calcDecays = true;
else if (starts_with(argv[i],"--outputPartialWidths"))
outputPartialWidths = true;
else if (starts_with(argv[i],"--minBR="))
minBR = get_value(argv[i], "--minBR=");
else if (starts_with(argv[i],"--dontCalculateThreeBody"))
threeBodyDecays = false;
else if (starts_with(argv[i],"--tol="))
TOLERANCE = get_value(argv[i], "--tol=");
else if (starts_with(argv[i],"--mt="))
oneset.setPoleMt(get_value(argv[i], "--mt="));
else if (starts_with(argv[i],"--alpha_s="))
oneset.setAlphaMz(ALPHAS, get_value(argv[i], "--alpha_s="));
else if (starts_with(argv[i],"--mh0=")) {
inputMhPole = true; fixMhPole = get_value(argv[i], "--mh0=");
}
else if (starts_with(argv[i],"--mA0=")) {
inputMA0Pole = true; fixMA0Pole = get_value(argv[i], "--mA0=");
}
else if (starts_with(argv[i],"--mH0=")) {
inputMH0Pole = true; fixMH0Pole = get_value(argv[i], "--mH0=");
}
else if (starts_with(argv[i],"--mHpm=")) {
inputMHpmPole = true; fixMHpmPole = get_value(argv[i], "--mHpm=");
}
else if (starts_with(argv[i],"--matching_scale="))
mScale = get_value(argv[i], "--matching_scale=");
else if (starts_with(argv[i],"--alpha_inverse="))
oneset.setAlphaMz(ALPHA, 1.0 / get_value(argv[i],"--alpha_inverse="));
else if (starts_with(argv[i],"--RPV"))
RPVflag = true;
else if (starts_with(argv[i], "--tanBeta="))
tanb = get_value(argv[i], "--tanBeta=");
else if (starts_with(argv[i], "--sgnMu="))
sgnMu = get_valuei(argv[i], "--sgnMu=");
else if (starts_with(argv[i], "--mgut="))
mgutGuess = mgutCheck(argv[i], gaugeUnification, ewsbBCscale);
else if (starts_with(argv[i], "--disable-two-loop-susy-thresholds")) {
#ifdef COMPILE_TWO_LOOP_GAUGE_YUKAWA
USE_TWO_LOOP_GAUGE_YUKAWA = false;
m.setAllTwoLoopThresholds(false);
#else
compilationProblem = true;
cout << "Two-loop thresholds not compiled.\n";
cout << "Please use the --two-loop-gauge-yukawa with the configure option.\n";
cout << "Make sure you install the CLN and GiNaC packages beforehand.\n";
#endif
}
else if (starts_with(argv[i], "--two-loop-gauge-yukawa")) {
#ifdef COMPILE_TWO_LOOP_GAUGE_YUKAWA
USE_TWO_LOOP_GAUGE_YUKAWA = true;
m.setAllTwoLoopThresholds(true);
#else
compilationProblem = true;
cout << "Two-loop thresholds not compiled.\n";
cout << "Please use the --enable-two-loop-susy-thresholds with the configure option.\n";
cout << "Make sure you install the CLN and GiNaC packages beforehand.\n";
#endif
}
else if (starts_with(argv[i], "--disable-three-loop-rges")) {
useThreeLoopRge = false;
}
else if (starts_with(argv[i], "--three-loop-rges")) {
useThreeLoopRge = true;
}
else if (starts_with(argv[i], "--disable-two-loop-sparticle-mass")) {
USE_TWO_LOOP_SPARTICLE_MASS = false;
}
else if (starts_with(argv[i], "--two-loop-sparticle-masses")) {
USE_TWO_LOOP_SPARTICLE_MASS = true;
}
else if (starts_with(argv[i], "--two-loop-sparticle-mass-method=")) {
#ifdef COMPILE_TWO_LOOP_SPARTICLE_MASS
expandAroundGluinoPole = get_value(argv[i], "--two-loop-sparticle-mass-method=");
#else
compilationProblem = true;
cout << "Two-loop sparticle masses not compiled.\n";
cout << "Please use the --enable-two-loop-sparticle-mass with ./configure\n";
#endif
}
else if (starts_with(argv[i], "--QEWSB="))
qewsb = get_value(argv[i], "--QEWSB=");
else if (starts_with(argv[i], "--m0="))
{ m0 = get_value(argv[i], "--m0="); }
else if (starts_with(argv[i], "--m12="))
{ m12 = get_value(argv[i], "--m12="); }
else if (starts_with(argv[i], "--a0="))
{ a0 = get_value(argv[i], "--a0="); }
else if (starts_with(argv[i], "--m32="))
{ m32 = get_value(argv[i], "--m32="); }
else if (starts_with(argv[i], "--n5="))
n5 = get_value(argv[i], "--n5=");
else if (starts_with(argv[i], "--mMess=")) {
gaugeUnification = false;
mMess = get_value(argv[i], "--mMess=");
mgutGuess = mMess;
}
else if (starts_with(argv[i], "--LAMBDA="))
{ LAMBDA = get_value(argv[i], "--LAMBDA="); }
else if (starts_with(argv[i], "--cgrav="))
{ cgrav = get_value(argv[i], "--cgrav="); }
else badArg = i;
if (badArg != 0 && strcmp(argv[1], "nmssm"))
cout << "Didn't understand argument " << argv[i] << endl;
} /// main arg loop
if (compilationProblem) exit(-1);
if (tanb < 1.5 || tanb > 70.) {
ostringstream ii;
ii << "tanBeta=" << tanb
<< " in SUGRA input. The point will not yield a sensible answer\n";
throw ii.str();
}
/// Pass through to see if there are any RPV options
if (strcmp(argv[1], "nmssm")) {
for (int i = 2; i < argc; i++) { ///< nmssm loop through args
if (starts_with(argv[i], "--lambda")) {
if (i + 4 >= argc) {
throw "ERROR: three indices and one value need to be provided"
" after --lambda or --lambdaP or --lambdaPP\n";
}
RPVflag = true;
int ii= int(atof(argv[i+1]));
int j = int(atof(argv[i+2]));
int k = int(atof(argv[i+3]));
double d = atof(argv[i+4]);
if (starts_with(argv[i], "--lambdaPP"))
{ kw.setLambda(LU, ii, j, k, d); }
else if (starts_with(argv[i], "--lambdaP"))
{ kw.setLambda(LD, k, ii, j, d); }
else if (starts_with(argv[i], "--lambda"))
{ kw.setLambda(LE, k, ii, j, d); }
}
if (starts_with(argv[i], "--kappa")) {
if (i + 2 >= argc) {
throw "ERROR: one index and one value need to be provided"
" after --kappa\n";
}
int ii = int(atof(argv[i+1]));
double d = atof(argv[i+2]);
kw.setKappa(ii, d);
RPVflag = true;
}
} ///< going through nmssm arguments
}
/// Model specific options
if (!strcmp(argv[1], "sugra")) {
cout << "# SOFTSUSY SUGRA calculation" << endl;
boundaryCondition = &sugraBcs;
modelIdent = "sugra";
pars(1) = m0; pars(2) = m12; pars(3) = a0;
if (m12 < MZ) {
ostringstream ii;
ii << "m12=" << m12
<< " in SUGRA input. The point will not yield a sensible answer\n";
throw ii.str();
}
r = &m;
}
if (!strcmp(argv[1], "amsb")) {
cout << "# SOFTSUSY mAMSB calculation" << endl;
boundaryCondition = &amsbBcs;
modelIdent = "amsb";
pars(1) = m32; pars(2) = m0;
if (m32 < 1.0e3) {
ostringstream ii;
ii << "m32=" << m32
<< " in SUGRA input (too low). The point will not yield a sensible answer\n";
throw ii.str();
}
r = &m;
}
if (!strcmp(argv[1], "gmsb")) {
cout << "# SOFTSUSY mGMSB calculation" << endl;
boundaryCondition = &gmsbBcs;
modelIdent = "gmsb";
pars.setEnd(4);
pars(1) = n5; pars(2) = mMess; pars(3) = LAMBDA; pars(4) = cgrav;
if (mMess < 1.0e3) {
ostringstream ii;
ii << " mMess=" << mMess
<< " in SUGRA input (too low). The point will not yield a sensible answer\n";
throw ii.str();
}
r = &m;
if (LAMBDA > mMess) {
ostringstream ii;
ii << "Input LAMBDA=" << LAMBDA << " should be less than mMess="
<< mMess << endl;
throw ii.str();
}
if (cgrav > 1.0) {
ostringstream ii;
ii << "Input cgrav=" << cgrav << " a real number bigger than or "
<< " equal to 1 (you can use 1 as a default value).\n";
throw ii.str();
}
}
} ///< not leshouches file
if (!strcmp(argv[1], "nmssm")) {
susy_model = NMSSM;
NMSSM_command_line_parser nmssm_parser(&nmssm_input);
nmssm_parser.parse(argc, argv);
modelIdent = nmssm_parser.get_modelIdent();
pars = nmssm_parser.get_pars();
badArg = 0; ///< Currently not checking NMSSM
}
if (!strcmp(argv[1], "leshouches")) {
/// SLHA option "leshouches" used.
outputCharacteristics(8);
if (argc == 2) {
string line, block;
int model;
while (getline(cin,line)) {
// mgutGuess = mgutCheck("unified", gaugeUnification);
// cout << line << endl;
istringstream input(line);
string word1, word2;
input >> word1;
if (word1.find("#") == string::npos &&
!contains_only_whitespace(word1)) {
// read in another word if there's no comment
input >> word2;
if (ToUpper(word1) == "BLOCK") {
block = ToUpper(word2);
} else { // ought to be data
istringstream kk(line);
if (block == "MODSEL") {
int i; kk >> i;
switch(i) {
case 1: kk >> model;
switch(model) {
case 0: boundaryCondition = &extendedSugraBcs;
modelIdent = "nonUniversal"; r=&m;
break;
case 1:
if (!flavourViolation) {
pars.setEnd(3);
boundaryCondition = &sugraBcs;
}
modelIdent = "sugra";
break;
case 2:
pars.setEnd(4);
boundaryCondition = &gmsbBcs;
modelIdent = "gmsb";
break;
case 3:
boundaryCondition = &amsbBcs;
pars.setEnd(2);
modelIdent = "amsb";
break;
case 4:
boundaryCondition = &splitGmsb;
pars.setEnd(7); sgnMu = 0;
modelIdent = "splitgmsb";
break;
default:
ostringstream ii;
ii << "SOFTSUSY" << PACKAGE_VERSION
<< " cannot yet do model "
<< model << ": terminal error\n";
throw ii.str();
}
break;
// reading entry 3: susy model (MSSM, NMSSM, ...)
case 3: { int i; kk >> i;
switch(i) {
case 0: susy_model = MSSM; // default
break;
case 1: susy_model = NMSSM;
if (flavourViolation) {
flavourViolation = false;
cout << "# Warning: flavour violation is currtently"
" not supported in the NMSSM\n";
}
break;
default:
ostringstream ii;
ii << "MODSEL 3 choosing silly model switch\n"
<< "(" << i << ") not a valid switch" << endl;
throw ii.str();
}
}
break;
case 4: int i; kk >> i;
switch(i) {
case 0: RPVflag = false;
break;
case 1: {
RPVflag = true;
r = &kw;
}
break;
default:
ostringstream ii;
ii << "MODSEL 4 choosing silly RPV switch\n"
<< "(" << i << ") not a valid switch" << endl;
throw ii.str();
}
break;
case 6: int j; kk >> j;
switch(j) {
case 0: flavourViolation = false; break;
default:
if (susy_model == NMSSM) {
flavourViolation = false;
cout << "# Warning: flavour violation is currtently"
" not supported in the NMSSM\n";
} else {
r = &k; flavourViolation = true;
if (boundaryCondition != & amsbBcs &&
boundaryCondition != & gmsbBcs) {
pars.setEnd(64); boundaryCondition = &flavourBcs;
}
}
}
break;
case 11: kk >> numPoints;
if (numPoints < 1) {
ostringstream ii;
ii << "MODSEL 11 selecting silly number of points"
<< "(" << numPoints << ") to output" << endl;
throw ii.str();
}
break;
case 12: double d; kk >> d;
if (d < MZ && d > 0.) {
ostringstream ii;
ii << "MODSEL 12 selecting silly scale Qmax"
<< "(" << d << ") < MZ to output" << endl;
throw ii.str();
}
if (close(d + 1., 0., EPSTOL)) gutScaleOutput = true;
qMax = d; break;
default:
cout << "# WARNING: don't understand first integer "
<< word1 << " " << word2 << " in block " << block
<< ": ignoring it\n";
break;
}
}
else if (block == "MINPAR") {
int i; double d; kk >> i >> d;
switch (i) {
case 3: tanb = d;
nmssm_input.set(NMSSM_input::tanBeta, d);
break;
case 4: sgnMu = int(d); break;
default:
switch(model) {
case 0:
// SUGRA inputs to fill out the pheno MSSM case
switch(i) {
case 1: pars(1) = d; break;
case 2: pars(2) = d; break;
case 5: pars(3) = d; break;
default:
ostringstream ii;
ii << "Didn't understand pheno MSSM input " << i << endl;
break;
} break;
case 1: // SUGRA inputs
switch(i) {
case 1:
if (flavourViolation) { pars.setEnd(77);
double m0 = sqr(d);
pars(4) = m0; pars(7) = m0; pars(9) = m0;
pars(10) = m0; pars(13) = m0; pars(15) = m0;
pars(16) = m0; pars(19) = m0; pars(21) = m0;
pars(22) = m0; pars(25) = m0; pars(27) = m0;
pars(28) = m0; pars(31) = m0; pars(33) = m0;
pars(63) = m0; pars(64) = m0;
} else pars(1) = d;
break;
case 2:
if (flavourViolation) {
pars(1) = d; pars(2) = d; pars(3) = d;
} else pars(2) = d;
break;
case 5:
if (flavourViolation) {
pars.setEnd(77);
pars(62) = d;
} else pars(3) = d;
break;
default:
ostringstream ii;
ii << "Didn't understand SUGRA input " << i << endl;
break;
} break;
case 2: // GMSB inputs
switch(i) {
case 1: pars(3) = d; break;
case 2: pars(2) = d; mgutGuess = d;
gaugeUnification = false; break;
case 5: pars(1) = d; break;
case 6: pars(4) = d; break;
default:
ostringstream ii;
ii << "Didn't understand GMSB input " << i << endl;
break;
} break;
case 3: ///< AMSB inputs
switch(i) {
case 1: pars(2) = d; break;
case 2: pars(1) = d; break;
default:
ostringstream ii;
ii << "Didn't understand AMSB input " << i << endl;
break;
} break;
case 4: ///< split GMSB inputs
switch(i) {
case 1: pars(2) = d; break;
case 2: pars(3) = d; break;
case 5: pars(1) = d; break;
case 6: pars(7) = d; break;
case 7: pars(4) = d; mgutGuess = d;
gaugeUnification = false; break;
case 8: pars(5) = d; break;
case 9: pars(6) = d; m.useAlternativeEwsb();
kw.useAlternativeEwsb();
break;
case 10: desiredMh = d; break;
default:
ostringstream ii;
ii << "Didn't understand GMSB input " << i << endl;
break;
} break;
default:
ostringstream ii;
ii << "Didn't understand model input " << model << endl;
break;
}
break;
}
}
// Adding non-minimal options.
else if (block == "EXTPAR") {
int i; double d; kk >> i >> d;
// read extra NMSSM input parameters from EXTPAR
// (skipping NMSSM parameters if the MSSM was selected)
if (susy_model == MSSM) {
switch (i) {
case 61:
case 62:
case 63:
case 64:
case 65:
case 66:
case 67:
case 68:
case 69:
case 70:
cout << "# Warning: NMSSM parameter EXTPAR " << i
<< " given but MSSM chosen -- ignoring it.\n";
continue;
}
} else if (susy_model == NMSSM) {
// read NMSSM susy parameters only and continue
switch (i) {
case 23: nmssm_input.set(NMSSM_input::mu , d);
continue;
case 61: nmssm_input.set(NMSSM_input::lambda , d);
continue;
case 62: nmssm_input.set(NMSSM_input::kappa , d);
continue;
case 65: nmssm_input.set(NMSSM_input::lambdaS, d);
continue;
case 66: nmssm_input.set(NMSSM_input::xiF , d);
continue;
case 68: nmssm_input.set(NMSSM_input::muPrime, d);
continue;
}
}
/// First, we want to convert our input to EXTPAR if we have
/// mSUGRA already
if (!strcmp(modelIdent, "sugra")) {
modelIdent = "nonUniversal";
if (!flavourViolation) {
/// We assume mSUGRA BCs with no flavour violation
r=&m;
boundaryCondition = &extendedSugraBcs;
double m0 = pars(1), m12 = pars(2), a0 = pars(3);
pars.setEnd(49);
int i; for (i=1; i<=3; i++) pars(i) = m12;
for (i=11; i<=13; i++) pars(i) = a0;
pars(21) = m0*m0; pars(22) = m0*m0;
for (i=31; i<=36; i++) pars(i) = m0;
for (i=41; i<=49; i++) pars(i) = m0;
kw.setNumRpcBcs(50);
if (susy_model == NMSSM) {
pars.setEnd(56);
pars(50) = a0; // Alambda
pars(51) = a0; // Akappa
pars(52) = 0.; // mS'^2
pars(53) = m0*m0; // mS^2
pars(54) = 0.; // mu
pars(55) = 0.; // Bmu
pars(56) = 0.; // xiS
}
} else {
/// This is flavour violation with EXTPAR: mSUGRA BCs
/// with flavour violation
boundaryCondition = &flavourBcs;
if (pars.displayEnd() == 3) {
double m0 = pars(1), m12 = pars(2), a0 = pars(3);
double msq = m0 * m0;
pars.setEnd(77);
int i; for (i=1; i<=3; i++) pars(i) = m12;
/// Fill in scalar mass squareds
for (i=1; i<=5; i++) {
int num = (i-1) * 6 + 4;
pars(num) = msq;
pars(num+3) = msq;
pars(num+5) = msq;
}
pars(62) = a0;
pars(63) = msq; pars(64) = msq;
}
kw.setNumRpcBcs(65);
}
}
if (!strcmp(modelIdent, "nonUniversal")) {
/// First, put parameters that depend not on
/// flavoured/unflavoured input
if (i == 0) {
mgutGuess = d;
gaugeUnification = false;
// setting Minput=-1 should yield MSSM BCs at MSUSY
if (fabs(d + 1.0) < EPSTOL) {
mgutGuess = 1.0e3;
ewsbBCscale = true;
if (gaugeUnification)
cout << "# Gauge unification ignored since pheno MSSM"
<< " assumes BC set at QEWSB\n";
gaugeUnification = false;
}
}
else if (i == 25) {
tanb = d;
if (!flavourViolation && pars.displayEnd() != 49)
pars.setEnd(49);
pars(i) = d;
r->setSetTbAtMX(true);
nmssm.setSetTbAtMX(true);
}
else if (i == 23 || i == 26) {
m.useAlternativeEwsb();
k.useAlternativeEwsb();
if (fixMA0Pole) {
r->setMaCond(fixMA0Pole);
k.setMaCond(fixMA0Pole);
}
if (i == 23) {
r->setMuCond(d); r->setSusyMu(d);
k.setMuCond(d); k.setSusyMu(d);
if (susy_model == NMSSM) {
if (pars.displayEnd() < 56) pars.setEnd(56);
nmssm_input.set(NMSSM_input::mu, d);
pars(54) = d;
}
}
if (i == 26) {
if (fixMA0Pole) {
cout << "# WARNING: MApole artificially set to " << fixMA0Pole << ", trumping setting it as " << d << endl << "# in EXTPAR 26\n";
d = fixMA0Pole;
}
r->setMaCond(d); k.setMaCond(d);
}
}
else if (!flavourViolation || RPVflag) {
if ((i > 0 && i <= 3) || (i >= 11 && i <= 13) ||
(i >= 21 && i <= 23) || (i == 26 || i == 25)
|| (i >= 31 && i <= 36) ||
(i >= 41 && i <= 49)) {
if (pars.displayEnd() < 49) pars.setEnd(49);
pars(i) = d;
if (susy_model == NMSSM) {
if (pars.displayEnd() < 56) pars.setEnd(56);
switch (i) {
case 21: nmssm_input.set(NMSSM_input::mHd2, d); break;
case 22: nmssm_input.set(NMSSM_input::mHu2, d); break;
case 23:
nmssm_input.set(NMSSM_input::mu, d);
pars(54) = d;
break;
}
}
} else if ((61 <= i && i <= 70) || i == 24) {
if (pars.displayEnd() < 56) pars.setEnd(56);
switch (i) {
case 24:
nmssm_input.set(NMSSM_input::BmuOverCosBetaSinBeta, d);
pars(55) = d;
break;
case 63:
nmssm_input.set(NMSSM_input::Alambda, d);
pars(50) = d;
break;
case 64:
nmssm_input.set(NMSSM_input::Akappa, d);
pars(51) = d;
break;
case 67:
nmssm_input.set(NMSSM_input::xiS, d);
pars(56) = d;
break;
case 69:
nmssm_input.set(NMSSM_input::mPrimeS2, d);
// setting pars(52) = B' = mS'^2 / mu'
if (nmssm_input.is_set(NMSSM_input::muPrime)) {
const double muPrime =
nmssm_input.get(NMSSM_input::muPrime);
if (!close(muPrime, 0.0, EPSTOL))
pars(52) = d / muPrime;
}
break;
case 70:
nmssm_input.set(NMSSM_input::mS2, d);
pars(53) = d;
break;
}
} else {
cout << "# WARNING: did not understand parameter "
<< i << " in non-flavoured EXTPAR inputs\n";
}
} else {
/// Have to translate the numbers from SLHA to your
/// convention with flavour violation
if ((i > 0 && i < 4)) pars(i) = d;
else if (i == 31) pars(22) = sqr(d);
else if (i == 32) pars(25) = sqr(d);
else if (i == 33) pars(27) = sqr(d);
else if (i == 34) pars(28) = sqr(d);
else if (i == 35) pars(31) = sqr(d);
else if (i == 36) pars(33) = sqr(d);
else if (i == 41) pars(4) = sqr(d);
else if (i == 42) pars(7) = sqr(d);
else if (i == 43) pars(9) = sqr(d);
else if (i == 44) pars(10) = sqr(d);
else if (i == 45) pars(13) = sqr(d);
else if (i == 46) pars(15) = sqr(d);
else if (i == 47) pars(16) = sqr(d);
else if (i == 48) pars(19) = sqr(d);
else if (i == 49) pars(21) = sqr(d);
else if (i == 21) pars(63) = d;
else if (i == 22) pars(64) = d;
else if (i > 10 && i < 14)
cout << "WARNING: At,Ab,Atau are for SLHA1 only. "
<< "Setting them to zero.\n"
<< "Please use blocks TUIN, TDIN, TEIN for "
<< "flavour violating SLHA input\n";
else {
cout << "WARNING: did not understand parameter "
<< i << " in flavoured EXTPAR inputs\n";
}
}
}
}
else if (block == "QEXTPAR") {
int i; double d; kk >> i >> d;
if (susy_model == NMSSM) {
switch (i) {
case 61: // scale where to input lambda
if (fabs(d + 1.0) < EPSTOL) {
nmssm.setGUTlambda(false);
} else {
cout << "# WARNING: cannot input NMSSM parameter lambda"
" (set in QEXTPAR " << i << ") at a scale "
"different from M_susy. Please set QEXTPAR "
<< i << " to -1 (M_susy) or remove the entry.\n";
}
break;
case 62: // scale where to input kappa
if (fabs(d + 1.0) < EPSTOL) {
nmssm.setGUTkappa(false);
} else {
cout << "# WARNING: cannot input NMSSM parameter kappa"
" (set in QEXTPAR " << i << ") at a scale "
"different from M_susy. Please set QEXTPAR "
<< i << " to -1 (M_susy) or remove the entry.\n";
}
break;
case 65: // scale where to input <S>
if (fabs(d + 1.0) < EPSTOL) {
nmssm.setGUTsVev(false);
} else {
cout << "# WARNING: cannot input NMSSM parameter <S>"
" (set in QEXTPAR " << i << ") at a scale "
"different from M_susy. Please set QEXTPAR "
<< i << " to -1 (M_susy) or remove the entry.\n";
}
break;
case 66: // scale where to input xiF
if (fabs(d + 1.0) < EPSTOL) {
nmssm.setGUTxiF(false);
} else {
cout << "# WARNING: cannot input NMSSM parameter xiF"
" (set in QEXTPAR " << i << ") at a scale "
"different from M_susy. Please set QEXTPAR "
<< i << " to -1 (M_susy) or remove the entry.\n";
}
break;
case 68: // scale where to input mu'
if (fabs(d + 1.0) < EPSTOL) {
nmssm.setGUTmuPrime(false);
} else {
cout << "# WARNING: cannot input NMSSM parameter mu'"
" (set in QEXTPAR " << i << ") at a scale "
"different from M_susy. Please set QEXTPAR "
<< i << " to -1 (M_susy) or remove the entry.\n";
}
break;
default:
cout << "# WARNING: cannot use parameter " << i <<
" (set in QEXTPAR) as input at a different"
" scale (in the NMSSM) -- ignoring the scale choice\n";
}
continue;
}
cout << "# WARNING: cannot use parameter " << i <<
" (set in QEXTPAR) as input at a different"
" scale -- ignoring the scale choice\n";
}
else if (block == "VCKMIN") {
int i; double d; kk >> i >> d;
switch(i) {
case 1: lambdaW = d; break;
case 2: aCkm = d; break;
case 3: rhobar = d; break;
case 4: etabar = d; break;
default:
cout << "# WARNING: Don't understand data input " << i
<< " " << d << " in block "
<< block << ": ignoring it\n";
break;
}
}
else if (block == "UMNSIN") {
int i; double d; kk >> i >> d;
switch(i) {
case 1: k.setThetaB12(asin(d)); break;
case 2: k.setThetaB23(asin(d)); break;
case 3: k.setThetaB13(asin(d)); break;
case 4: cout << "# Cannot yet do complex phases: ";
cout << "setting it to zero" << endl; break;
case 5: cout << "# Cannot yet do complex phases: ";
cout << "setting it to zero" << endl; break;
case 6: cout << "# Cannot yet do complex phases: ";
cout << "setting it to zero" << endl; break;
default:
cout << "# WARNING: Don't understand data input " << i
<< " " << d << " in block "
<< block << ": ignoring it\n";
break;
}
}
else if (block == "SMINPUTS") {
int i; double d; kk >> i >> d;
switch (i) {
case 1: oneset.setAlphaMz(ALPHA, 1.0 / d); break;
case 2: GMU = d; break;
case 3: oneset.setAlphaMz(ALPHAS, d); break;
case 4: oneset.setMu(d); m.setData(oneset); MZ = d; break;
case 5: oneset.setMass(mBottom, d);
oneset.setMbMb(d); break;
case 6: oneset.setPoleMt(d); break;
case 7: oneset.setMass(mTau, d);
oneset.setPoleMtau(d); break;
case 8: k.setMnuTau(d); break;
case 11: oneset.setMass(mElectron, d); k.setPoleMe(d); break;
case 12: k.setMnuMu(d); break;
case 13: oneset.setMass(mMuon, d); k.setPoleMmu(d); break;
case 14: k.setMnuTau(d); break;
case 21: oneset.setMass(mDown, d); k.setMd2GeV(d);
break;
case 22: oneset.setMass(mUp, d); k.setMu2GeV(d); break;
case 23: oneset.setMass(mStrange, d); k.setMs2GeV(d); break;
case 24: oneset.setMass(mCharm, d); k.setMcMc(d); break;
default:
cout << "# WARNING: Don't understand data input " << i
<< " " << d << " in block "
<< block << ": ignoring it\n"; break;
}
}
else if (block == "MSQ2IN") {
slha2setMassSq = true;
modelIdent = "nonUniversal";
int i, j; double d; kk >> i >> j >> d;
pars(positionOfSym(i, j) + 3) = d;
}
else if (block == "MSU2IN") {
slha2setMassSq = true;
modelIdent = "nonUniversal";
int i, j; double d; kk >> i >> j >> d;
pars(positionOfSym(i, j) + 9) = d;
}
else if (block == "MSD2IN") {
slha2setMassSq = true;
modelIdent = "nonUniversal";
int i, j; double d; kk >> i >> j >> d;