ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4PolarizationTransition.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4PolarizationTransition.hh
1 // ********************************************************************
2 // * License and Disclaimer *
3 // * *
4 // * The Geant4 software is copyright of the Copyright Holders of *
5 // * the Geant4 Collaboration. It is provided under the terms and *
6 // * conditions of the Geant4 Software License, included in the file *
7 // * LICENSE and available at http://cern.ch/geant4/license . These *
8 // * include a list of copyright holders. *
9 // * *
10 // * Neither the authors of this software system, nor their employing *
11 // * institutes,nor the agencies providing financial support for this *
12 // * work make any representation or warranty, express or implied, *
13 // * regarding this software system or assume any liability for its *
14 // * use. Please see the license in the file LICENSE and URL above *
15 // * for the full disclaimer and the limitation of liability. *
16 // * *
17 // * This code implementation is the result of the scientific and *
18 // * technical work of the GEANT4 collaboration. *
19 // * By using, copying, modifying or distributing the software (or *
20 // * any work based on the software) you agree to acknowledge its *
21 // * use in resulting scientific publications, and indicate your *
22 // * acceptance of all terms of the Geant4 Software license. *
23 // ********************************************************************
24 //
25 //
26 // -------------------------------------------------------------------
27 // GEANT4 Class file
28 //
29 // File name: G4PolarizationTransition
30 //
31 // Author: Jason Detwiler (jasondet@gmail.com)
32 //
33 // Creation date: Aug 2012
34 //
35 // Description:
36 // Stores and manipulates the statistical tensor describing the nuclear
37 // polarization (see Alder and Winther, "Electromagnetic Excitation" (1975),
38 // Appendix F). Functions are implemented for generating angular correlations
39 // in gamma decays, following Alder and Winther, Appendix G.
40 // This code assumes no polarization will be detected and uses eqs (17-20).
41 // Adding polarization would require using instead (13) and the more generic
42 // form of the statstical tensor after decay described by equation (6)
43 // Could be expanded to also generate e.g. gamma-beta and other
44 // correlations as well.
45 //
46 // -------------------------------------------------------------------
47 
48 #ifndef G4POLARIZATIONTRANSITION_HH
49 #define G4POLARIZATIONTRANSITION_HH
50 
51 #include "globals.hh"
52 #include "G4LegendrePolynomial.hh"
53 #include "G4PolynomialPDF.hh"
54 #include "G4Pow.hh"
55 
57 
59 {
60  typedef std::vector< std::vector<G4complex> > POLAR;
61 
62  public:
63  explicit G4PolarizationTransition();
65 
67  G4int twoJ1, G4int twoJ2,
68  G4int L0, G4int Lp, G4double mpRatio,
69  G4double& cosTheta, G4double& phi);
70 
71  // generic static functions
72  G4double FCoefficient(G4int K, G4int L, G4int Lprime,
73  G4int twoJ2, G4int twoJ1) const;
75  G4int Lprime, G4int twoJ2, G4int twoJ1) const;
76 
77  // transition-specific functions
80 
81  void DumpTransitionData(const POLAR& pol) const;
82 
83  inline void SetVerbose(G4int val) { fVerbose = val; };
84 
85  private:
86 
89 
90  // Gamma angle generation and decay: call these functions in this order!
91  // All angles are in the same coordinate system: user may choose any axis
93  G4double GenerateGammaPhi(G4double& cosTheta, const POLAR&);
94 
95  inline G4double LnFactorial(int k) const { return G4Pow::GetInstance()->logfactorial(k); }
96 
104 };
105 
106 
107 #endif