source: trunk/source/particles/management/include/G4KL3DecayChannel.hh @ 1340

Last change on this file since 1340 was 1340, checked in by garnier, 14 years ago

update ti head

File size: 4.1 KB
Line 
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//
27// $Id: G4KL3DecayChannel.hh,v 1.6 2010/10/30 07:55:00 kurasige Exp $
28// GEANT4 tag $Name: particles-V09-03-15 $
29//
30//
31// ------------------------------------------------------------
32//      GEANT 4 class header file
33//
34//      History: first implementation, based on object model of
35//       7 June 1997 H.Kurashige
36// ------------------------------------------------------------
37#ifndef G4KL3DecayChannel_h
38#define G4KL3DecayChannel_h 1
39
40#include "G4ios.hh"
41#include "globals.hh"
42#include "G4VDecayChannel.hh"
43
44class G4KL3DecayChannel :public G4VDecayChannel
45{
46  public:  // With Description
47    //Constructors
48      G4KL3DecayChannel(const G4String& theParentName,
49                        G4double        theBR,
50                        const G4String& thePionName,
51                        const G4String& theLeptonName,
52                        const G4String& theNutrinoName);
53    //  Destructor
54      virtual ~G4KL3DecayChannel();
55
56  public:  // With Description
57     virtual G4DecayProducts *DecayIt(G4double);     
58
59  protected:
60     // assignment of daughter particles for arrays of daughters[] etc.
61     enum{idPi=0, idLepton=1, idNutrino=2}; 
62     G4double daughterM[3];
63
64  protected:
65     // calcurate momentum of daughters
66     //     results will be stored in Edaughter[3] and Pdaughter[3]
67     void PhaseSpace(G4double Mparent,
68                     const G4double* Mdaughter,
69                     G4double*       Edaughter,
70                     G4double*       Pdaughter);
71
72  protected:
73     // Dalitz Plot Density
74     // KL3 decay   Dalitz Plot Density
75     //               see Chounet et al Phys. Rep. 4, 201
76     //  arguments
77     //    Epi: kinetic enregy of pion
78     //    El:  kinetic enregy of lepton (e or mu)
79     //    Enu: kinetic energy of nutrino
80     //  constants
81     //    pLambda : linear energy dependence of f+
82     //    pXi0    : = f+(0)/f-
83     //    pNorm   : normalization factor
84     G4double   DalitzDensity(G4double Epi, G4double El,  G4double Enu); 
85  private:
86     // constants used in DalitzDensity()
87     //   Kon mass
88     G4double massK;
89     //   coefficients
90     G4double   pLambda;
91     G4double   pXi0;
92
93  public:
94     void SetDalitzParameter(G4double aLambda, G4double aXi );
95     G4double GetDalitzParameterLambda() const;
96     G4double GetDalitzParameterXi() const;
97}; 
98
99inline 
100 void G4KL3DecayChannel::SetDalitzParameter(G4double aLambda, G4double aXi)
101{
102   pLambda  = aLambda;
103   pXi0      = aXi;
104}
105
106inline 
107 G4double G4KL3DecayChannel::GetDalitzParameterLambda() const
108{
109  return  pLambda;
110}
111
112inline 
113 G4double G4KL3DecayChannel::GetDalitzParameterXi() const
114{
115  return  pXi0;
116}
117
118
119#endif
120
121
122
123
Note: See TracBrowser for help on using the repository browser.