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] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

  1 //
  2 // ********************************************************************
  3 // * License and Disclaimer                                           *
  4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
  6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
  7 // * conditions of the Geant4 Software License,  included in the file *
  8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
  9 // * include a list of copyright holders.                             *
 10 // *                                                                  *
 11 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file  LICENSE  and URL above *
 16 // * for the full disclaimer and the limitation of liability.         *
 17 // *                                                                  *
 18 // * This  code  implementation is the result of  the  scientific and *
 19 // * technical work of the GEANT4 collaboration.                      *
 20 // * By using,  copying,  modifying or  distributing the software (or *
 21 // * any work based  on the software)  you  agree  to acknowledge its *
 22 // * use  in  resulting  scientific  publications,  and indicate your *
 23 // * acceptance of all terms of the Geant4 Software license.          *
 24 // ********************************************************************
 25 //
 26 // G4KL3DecayChannel
 27 
 28 // Author: H.Kurashige, 30 May 1997
 29 // --------------------------------------------------------------------
 30 #ifndef G4KL3DecayChannel_hh
 31 #define G4KL3DecayChannel_hh 1
 32 
 33 #include "G4VDecayChannel.hh"
 34 #include "G4ios.hh"
 35 #include "globals.hh"
 36 
 37 class G4KL3DecayChannel : public G4VDecayChannel
 38 {
 39   public:
 40     // Constructor & destructor
 41     G4KL3DecayChannel(const G4String& theParentName, G4double theBR, const G4String& thePionName,
 42                       const G4String& theLeptonName, const G4String& theNutrinoName);
 43     ~G4KL3DecayChannel() override = default;
 44 
 45     G4DecayProducts* DecayIt(G4double) override;
 46 
 47     inline void SetDalitzParameter(G4double aLambda, G4double aXi);
 48     inline G4double GetDalitzParameterLambda() const;
 49     inline G4double GetDalitzParameterXi() const;
 50 
 51   protected:
 52     // Copy constructor and assignment operator
 53     G4KL3DecayChannel(const G4KL3DecayChannel&) = default;
 54     G4KL3DecayChannel& operator=(const G4KL3DecayChannel&);
 55 
 56     // Assignment of daughter particles for arrays of daughters[] etc.
 57     enum
 58     {
 59       idPi = 0,
 60       idLepton = 1,
 61       idNutrino = 2
 62     };
 63 
 64     // Calculate momentum of daughters
 65     void PhaseSpace(G4double Mparent, const G4double* Mdaughter, G4double* Edaughter,
 66                     G4double* Pdaughter);
 67 
 68     // Dalitz Plot Density
 69     // KL3 decay   Dalitz Plot Density, see Chounet et al Phys. Rep. 4, 201
 70     //  Arguments
 71     //    Epi: kinetic enregy of pion
 72     //    El:  kinetic enregy of lepton (e or mu)
 73     //    Enu: kinetic energy of nutrino
 74     //  Constants
 75     //    pLambda : linear energy dependence of f+
 76     //    pXi0    : = f+(0)/f-
 77     //    pNorm   : normalization factor
 78     G4double DalitzDensity(G4double parentmass, G4double Epi, G4double El, G4double Enu,
 79                            G4double massPi, G4double massL, G4double massNu);
 80 
 81   private:
 82     G4KL3DecayChannel() = default;
 83 
 84   private:
 85     // Used in DalitzDensity() coefficients
 86     G4double pLambda = 0.0;
 87     G4double pXi0 = 0.0;
 88 };
 89 
 90 // ------------------------
 91 // Inline methods
 92 // ------------------------
 93 
 94 inline void G4KL3DecayChannel::SetDalitzParameter(G4double aLambda, G4double aXi)
 95 {
 96   pLambda = aLambda;
 97   pXi0 = aXi;
 98 }
 99 
100 inline G4double G4KL3DecayChannel::GetDalitzParameterLambda() const
101 {
102   return pLambda;
103 }
104 
105 inline G4double G4KL3DecayChannel::GetDalitzParameterXi() const
106 {
107   return pXi0;
108 }
109 
110 #endif
111