528 def findBranchingRatio(self, decayString):
529 """
530 Returns the branching ratio of the selected HNL decay channel
531
532 Inputs:
533 - decayString is a string describing the decay, in the form 'N -> stuff1 ... stuffN'
534 """
535 br = 0.0
536 totalWidth = self.NDecayWidth()
537
538 if (decayString not in self.decays) and (decayString not in ["N -> hadrons", "N -> charged hadrons"]):
539 print("findBranchingRatio ERROR: unknown decay %s" % decayString)
540 quit()
541
542 if decayString == "N -> nu nu nu":
543 br = self.Width_3nu() / totalWidth
544 if decayString == "N -> e- e+ nu_e":
545 br = self.Width_nu_f_fbar(1, 1) / totalWidth
546 if decayString == "N -> e- e+ nu_mu":
547 br = self.Width_nu_f_fbar(2, 1) / totalWidth
548 if decayString == "N -> e- e+ nu_tau":
549 br = self.Width_nu_f_fbar(3, 1) / totalWidth
550 if decayString == "N -> e- mu+ nu_mu":
551 br = self.Width_l1_l2_nu2(1, 2) / totalWidth
552 if decayString == "N -> mu- e+ nu_e":
553 br = self.Width_l1_l2_nu2(2, 1) / totalWidth
554 if decayString == "N -> pi0 nu_e":
555 br = self.Width_H0_nu("pi0", 1) / totalWidth
556 if decayString == "N -> pi0 nu_mu":
557 br = self.Width_H0_nu("pi0", 2) / totalWidth
558 if decayString == "N -> pi0 nu_tau":
559 br = self.Width_H0_nu("pi0", 3) / totalWidth
560 if decayString == "N -> pi+ e-":
561 br = self.Width_H_l("pi+", 1) / totalWidth
562 if decayString == "N -> mu- mu+ nu_e":
563 br = self.Width_nu_f_fbar(1, 2) / totalWidth
564 if decayString == "N -> mu- mu+ nu_mu":
565 br = self.Width_nu_f_fbar(2, 2) / totalWidth
566 if decayString == "N -> mu- mu+ nu_tau":
567 br = self.Width_nu_f_fbar(3, 2) / totalWidth
568 if decayString == "N -> pi+ mu-":
569 br = self.Width_H_l("pi+", 2) / totalWidth
570 if decayString == "N -> eta nu_e":
571 br = self.Width_H0_nu("eta", 1) / totalWidth
572 if decayString == "N -> eta nu_mu":
573 br = self.Width_H0_nu("eta", 2) / totalWidth
574 if decayString == "N -> eta nu_tau":
575 br = self.Width_H0_nu("eta", 3) / totalWidth
576 if decayString == "N -> rho0 nu_e":
577 br = self.Width_H0_nu("rho0", 1) / totalWidth
578 if decayString == "N -> rho0 nu_mu":
579 br = self.Width_H0_nu("rho0", 2) / totalWidth
580 if decayString == "N -> rho0 nu_tau":
581 br = self.Width_H0_nu("rho0", 3) / totalWidth
582 if decayString == "N -> rho+ e-":
583 br = self.Width_H_l("rho+", 1) / totalWidth
584 if decayString == "N -> omega nu_e":
585 br = self.Width_H0_nu("omega", 1) / totalWidth
586 if decayString == "N -> omega nu_mu":
587 br = self.Width_H0_nu("omega", 2) / totalWidth
588 if decayString == "N -> omega nu_tau":
589 br = self.Width_H0_nu("omega", 3) / totalWidth
590 if decayString == "N -> rho+ mu-":
591 br = self.Width_H_l("rho+", 2) / totalWidth
592 if decayString == "N -> eta1 nu_e":
593 br = self.Width_H0_nu("eta1", 1) / totalWidth
594 if decayString == "N -> eta1 nu_mu":
595 br = self.Width_H0_nu("eta1", 2) / totalWidth
596 if decayString == "N -> eta1 nu_tau":
597 br = self.Width_H0_nu("eta1", 3) / totalWidth
598 if decayString == "N -> phi nu_e":
599 br = self.Width_H0_nu("phi", 1) / totalWidth
600 if decayString == "N -> phi nu_mu":
601 br = self.Width_H0_nu("phi", 2) / totalWidth
602 if decayString == "N -> phi nu_tau":
603 br = self.Width_H0_nu("phi", 3) / totalWidth
604 if decayString == "N -> e- tau+ nu_tau":
605 br = self.Width_l1_l2_nu2(1, 3) / totalWidth
606 if decayString == "N -> tau- e+ nu_e":
607 br = self.Width_l1_l2_nu2(3, 1) / totalWidth
608 if decayString == "N -> mu- tau+ nu_tau":
609 br = self.Width_l1_l2_nu2(2, 3) / totalWidth
610 if decayString == "N -> tau- mu+ nu_mu":
611 br = self.Width_l1_l2_nu2(3, 2) / totalWidth
612 if decayString == "N -> D_s+ e-":
613 br = self.Width_H_l("D_s+", 1) / totalWidth
614 if decayString == "N -> D_s+ mu-":
615 br = self.Width_H_l("D_s+", 2) / totalWidth
616 if decayString == "N -> D*_s+ e-":
617 br = self.Width_H_l("D*_s+", 1) / totalWidth
618 if decayString == "N -> D*_s+ mu-":
619 br = self.Width_H_l("D*_s+", 2) / totalWidth
620 if decayString == "N -> eta_c nu_e":
621 br = self.Width_H0_nu("eta_c", 1) / totalWidth
622 if decayString == "N -> eta_c nu_mu":
623 br = self.Width_H0_nu("eta_c", 2) / totalWidth
624 if decayString == "N -> eta_c nu_tau":
625 br = self.Width_H0_nu("eta_c", 3) / totalWidth
626
627 if decayString == "N -> hadrons":
628 mesonWidth = self.Width_neutral_mesons() + self.Width_charged_mesons()
629 quarkWidth = self.Width_quarks_neutrino() + self.Width_quarks_lepton()
630 br = max([mesonWidth, quarkWidth]) / totalWidth
631 if decayString == "N -> charged hadrons":
632 br = max([self.Width_charged_mesons(), self.Width_quarks_lepton()]) / totalWidth
633 return br
634