Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4MuonicAtomHelper Class Reference

#include <G4MuonicAtomHelper.hh>

Static Public Member Functions

static G4MuonicAtomConstructMuonicAtom (G4String name, G4int encoding, G4Ions const *baseion)
 

Detailed Description

Definition at line 41 of file G4MuonicAtomHelper.hh.

Member Function Documentation

G4MuonicAtom * G4MuonicAtomHelper::ConstructMuonicAtom ( G4String  name,
G4int  encoding,
G4Ions const *  baseion 
)
static

Definition at line 39 of file G4MuonicAtomHelper.cc.

39  {
40 
41  // mass calculation is missing binding energy correction
42  //auto const mass = G4MuonMinus::Definition()->GetPDGMass() + baseion->GetPDGMass();
43  auto const mass = 0.1056583715*CLHEP::GeV + baseion->GetPDGMass();
44  // what should static charge be? for G4Ions, it is Z ... should it
45  // be Z-1 here (since there will always be a muon attached), or Z?
46  auto const charge = baseion->GetPDGCharge();
47 
48  auto muatom = new G4MuonicAtom(name, mass, 0.0, charge,
49  baseion->GetPDGiSpin(),
50  baseion->GetPDGiParity(),
51  baseion->GetPDGiConjugation(),
52  baseion->GetPDGiIsospin(),
53  baseion->GetPDGiIsospin3(),
54  baseion->GetPDGiGParity(),
55  baseion->GetParticleType(),
56  baseion->GetLeptonNumber(),
57  baseion->GetBaryonNumber(),
58  encoding,
59  baseion->GetPDGStable(),
60  // TODO: this is wrong ... need to
61  // get correct muonic atom lifetime.
62  // but see next comment
63  baseion->GetPDGLifeTime(),
64  // TODO: this is _definitely_ wrong:
65  // we need to add muonic atom decay
66  // channels ... do we try to support
67  // other modes of decay, or do we
68  // just assume for now that we don't
69  // need to worry about radioactive
70  // decay and the like?
71  baseion->GetDecayTable(),
72  baseion->IsShortLived(),
73  baseion->GetParticleSubType());
74 
75  muatom->SetPDGMagneticMoment(baseion->GetPDGMagneticMoment());
76  return muatom;
77 }
const XML_Char const XML_Char * encoding
Definition: expat.h:187
static constexpr double GeV
void SetPDGMagneticMoment(G4double mageticMoment)

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: