Import Geant4 11.0.0 source tree
This commit is contained in:
committed by
Ben Morgan
parent
6399a014b6
commit
80e2389dd8
@@ -16,6 +16,52 @@ committal in the CVS repository !
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
- 02 November 2021 Gabriele Cosmo (particles-V10-07-10)
|
||||
- Fix for potential null pointer dereference in G4ParticleTable::FindParticle().
|
||||
Based on GitHub PR#30 (https://github.com/Geant4/geant4/pull/30).
|
||||
|
||||
- 29 October 2021 Vladimir Ivanchenko (particles-V10-07-09)
|
||||
- G4IonConstructor - added hyper-nuclei
|
||||
|
||||
- 25th October 2021 B.Morgan (particles-V10-07-08)
|
||||
- Use G4StrUtil functions replacing deprecated G4String member functions
|
||||
|
||||
- 21 October 2021 Jonas Hahnfeld (particles-V10-07-07)
|
||||
- Store custom tracking manager per particle definition
|
||||
|
||||
- 18 October 2021 Ben Morgan (particles-V10-07-06)
|
||||
- Use std::string member functions from G4String in place of synonyms
|
||||
|
||||
- 17 October 2021 Alberto Ribon (particles-V10-07-05)
|
||||
- Introduced 6 light hypernuclei and their corresponding antiparticles,
|
||||
as requested by the ALICE Collaboration: G4HyperTriton, G4AntiHyperTriton,
|
||||
G4HyperAlpha, G4AntiHyperAlpha, G4HyperH4, G4AntiHyperH4,
|
||||
G4DoubleHyperH4, G4AntiDoubleHyperH4, G4HyperHe5, G4AntiHyperHe5,
|
||||
G4DoubleHyperDoubleNeutron, G4AntiDoubleHyperDoubleNeutron.
|
||||
The following simplifying assumptions have been made:
|
||||
- No hyper-deuteron, no hyper-He3
|
||||
- The masses of these hyperons have been computed using the existing
|
||||
method (by M. Kossov): G4HyperNucleiProperties::GetNuclearMass
|
||||
- The lifetimes are all assumed to be the same as the Lambda's lifetime
|
||||
- The decays are obtained from the two decays of the (anti-)Lambda
|
||||
(with the same branching ratios as for a free Lambda), assuming,
|
||||
whenever possible, that 50% of the emitted (anti-)nucleon will be
|
||||
captured by the (anti-)nucleus where the decay of the (anti-)Lambda
|
||||
occurs. In the case of double-hyperon, only one of the two Lambdas
|
||||
is assumed to decay.
|
||||
- Added a few methods in G4ParticleDefinition, useful for dealing with
|
||||
hypernuclei and anti-hypernuclei.
|
||||
- Extended the max number of decay secondaries, from 4 to 5, in the
|
||||
classes G4VDecayChannel and G4PhaseSpaceDecayChannel, needed for
|
||||
a decay channel of G4DoubleHyperDoubleNeutron.
|
||||
|
||||
- 30 June 2021 Gabriele Cosmo (particles-V10-07-04)
|
||||
- Fixed compilation error in G4IonTable occurring if c++20 enabled.
|
||||
|
||||
- 24 June 2021 Ivana Hrivnacova (particles-V10-07-03)
|
||||
- Fixed retrieving selected particle in G4ParticlePropertyMessenger,
|
||||
which was failing
|
||||
|
||||
- 21 June 2021 Gabriele Cosmo (particles-V10-07-02)
|
||||
- Fixed shadowing compilation warning in G4Triton.
|
||||
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4AntiDoubleHyperDoubleNeutron_h
|
||||
#define G4AntiDoubleHyperDoubleNeutron_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Ions.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ANTI DOUBLEHYPERDOUBLENEUTRON ###
|
||||
// ######################################################################
|
||||
|
||||
class G4AntiDoubleHyperDoubleNeutron : public G4Ions {
|
||||
public:
|
||||
static G4AntiDoubleHyperDoubleNeutron* Definition();
|
||||
static G4AntiDoubleHyperDoubleNeutron* AntiDoubleHyperDoubleNeutronDefinition();
|
||||
static G4AntiDoubleHyperDoubleNeutron* AntiDoubleHyperDoubleNeutron();
|
||||
private:
|
||||
static G4AntiDoubleHyperDoubleNeutron* theInstance;
|
||||
G4AntiDoubleHyperDoubleNeutron() {}
|
||||
~G4AntiDoubleHyperDoubleNeutron() {}
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4AntiDoubleHyperH4_h
|
||||
#define G4AntiDoubleHyperH4_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Ions.hh"
|
||||
|
||||
// ###############################################################
|
||||
// ### ANTI DOUBLEHYPERH4 ###
|
||||
// ###############################################################
|
||||
|
||||
class G4AntiDoubleHyperH4 : public G4Ions {
|
||||
public:
|
||||
static G4AntiDoubleHyperH4* Definition();
|
||||
static G4AntiDoubleHyperH4* AntiDoubleHyperH4Definition();
|
||||
static G4AntiDoubleHyperH4* AntiDoubleHyperH4();
|
||||
private:
|
||||
static G4AntiDoubleHyperH4* theInstance;
|
||||
G4AntiDoubleHyperH4() {}
|
||||
~G4AntiDoubleHyperH4() {}
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4AntiHyperAlpha_h
|
||||
#define G4AntiHyperAlpha_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Ions.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ANTI HYPERALPHA ###
|
||||
// ######################################################################
|
||||
|
||||
class G4AntiHyperAlpha : public G4Ions {
|
||||
public:
|
||||
static G4AntiHyperAlpha* Definition();
|
||||
static G4AntiHyperAlpha* AntiHyperAlphaDefinition();
|
||||
static G4AntiHyperAlpha* AntiHyperAlpha();
|
||||
private:
|
||||
static G4AntiHyperAlpha* theInstance;
|
||||
G4AntiHyperAlpha() {}
|
||||
~G4AntiHyperAlpha() {}
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4AntiHyperH4_h
|
||||
#define G4AntiHyperH4_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Ions.hh"
|
||||
|
||||
// ###############################################################
|
||||
// ### ANTI HYPERH4 ###
|
||||
// ###############################################################
|
||||
|
||||
class G4AntiHyperH4 : public G4Ions {
|
||||
public:
|
||||
static G4AntiHyperH4* Definition();
|
||||
static G4AntiHyperH4* AntiHyperH4Definition();
|
||||
static G4AntiHyperH4* AntiHyperH4();
|
||||
private:
|
||||
static G4AntiHyperH4* theInstance;
|
||||
G4AntiHyperH4() {}
|
||||
~G4AntiHyperH4() {}
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4AntiHyperHe5_h
|
||||
#define G4AntiHyperHe5_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Ions.hh"
|
||||
|
||||
// ##################################################################
|
||||
// ### ANTI HYPERHE5 ###
|
||||
// ##################################################################
|
||||
|
||||
class G4AntiHyperHe5 : public G4Ions {
|
||||
public:
|
||||
static G4AntiHyperHe5* Definition();
|
||||
static G4AntiHyperHe5* AntiHyperHe5Definition();
|
||||
static G4AntiHyperHe5* AntiHyperHe5();
|
||||
private:
|
||||
static G4AntiHyperHe5* theInstance;
|
||||
G4AntiHyperHe5() {}
|
||||
~G4AntiHyperHe5() {}
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4AntiHyperTriton_h
|
||||
#define G4AntiHyperTriton_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Ions.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ANTI HYPERTRITON ###
|
||||
// ######################################################################
|
||||
|
||||
class G4AntiHyperTriton : public G4Ions {
|
||||
public:
|
||||
static G4AntiHyperTriton* Definition();
|
||||
static G4AntiHyperTriton* AntiHyperTritonDefinition();
|
||||
static G4AntiHyperTriton* AntiHyperTriton();
|
||||
private:
|
||||
static G4AntiHyperTriton* theInstance;
|
||||
G4AntiHyperTriton() {}
|
||||
~G4AntiHyperTriton() {}
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4DoubleHyperDoubleNeutron_h
|
||||
#define G4DoubleHyperDoubleNeutron_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Ions.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### DOUBLEHYPERDOUBLENEUTRON ###
|
||||
// ######################################################################
|
||||
|
||||
class G4DoubleHyperDoubleNeutron : public G4Ions {
|
||||
public:
|
||||
static G4DoubleHyperDoubleNeutron* Definition();
|
||||
static G4DoubleHyperDoubleNeutron* DoubleHyperDoubleNeutronDefinition();
|
||||
static G4DoubleHyperDoubleNeutron* DoubleHyperDoubleNeutron();
|
||||
private:
|
||||
static G4DoubleHyperDoubleNeutron* theInstance;
|
||||
G4DoubleHyperDoubleNeutron() {}
|
||||
~G4DoubleHyperDoubleNeutron() {}
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4DoubleHyperH4_h
|
||||
#define G4DoubleHyperH4_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Ions.hh"
|
||||
|
||||
// ###############################################################
|
||||
// ### DOUBLEHYPERH4 ###
|
||||
// ###############################################################
|
||||
|
||||
class G4DoubleHyperH4 : public G4Ions {
|
||||
public:
|
||||
static G4DoubleHyperH4* Definition();
|
||||
static G4DoubleHyperH4* DoubleHyperH4Definition();
|
||||
static G4DoubleHyperH4* DoubleHyperH4();
|
||||
private:
|
||||
static G4DoubleHyperH4* theInstance;
|
||||
G4DoubleHyperH4() {}
|
||||
~G4DoubleHyperH4() {}
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4HyperAlpha_h
|
||||
#define G4HyperAlpha_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Ions.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### HYPERALPHA ###
|
||||
// ######################################################################
|
||||
|
||||
class G4HyperAlpha : public G4Ions {
|
||||
public:
|
||||
static G4HyperAlpha* Definition();
|
||||
static G4HyperAlpha* HyperAlphaDefinition();
|
||||
static G4HyperAlpha* HyperAlpha();
|
||||
private:
|
||||
static G4HyperAlpha* theInstance;
|
||||
G4HyperAlpha() {}
|
||||
~G4HyperAlpha() {}
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4HyperH4_h
|
||||
#define G4HyperH4_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Ions.hh"
|
||||
|
||||
// ###############################################################
|
||||
// ### HYPERH4 ###
|
||||
// ###############################################################
|
||||
|
||||
class G4HyperH4 : public G4Ions {
|
||||
public:
|
||||
static G4HyperH4* Definition();
|
||||
static G4HyperH4* HyperH4Definition();
|
||||
static G4HyperH4* HyperH4();
|
||||
private:
|
||||
static G4HyperH4* theInstance;
|
||||
G4HyperH4() {}
|
||||
~G4HyperH4() {}
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4HyperHe5_h
|
||||
#define G4HyperHe5_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Ions.hh"
|
||||
|
||||
// ##################################################################
|
||||
// ### HYPERHE5 ###
|
||||
// ##################################################################
|
||||
|
||||
class G4HyperHe5 : public G4Ions {
|
||||
public:
|
||||
static G4HyperHe5* Definition();
|
||||
static G4HyperHe5* HyperHe5Definition();
|
||||
static G4HyperHe5* HyperHe5();
|
||||
private:
|
||||
static G4HyperHe5* theInstance;
|
||||
G4HyperHe5() {}
|
||||
~G4HyperHe5() {}
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,53 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4HyperTriton_h
|
||||
#define G4HyperTriton_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Ions.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### HYPERTRITON ###
|
||||
// ######################################################################
|
||||
|
||||
class G4HyperTriton : public G4Ions {
|
||||
public:
|
||||
static G4HyperTriton* Definition();
|
||||
static G4HyperTriton* HyperTritonDefinition();
|
||||
static G4HyperTriton* HyperTriton();
|
||||
private:
|
||||
static G4HyperTriton* theInstance;
|
||||
G4HyperTriton() {}
|
||||
~G4HyperTriton() {}
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -43,11 +43,11 @@ class G4IonConstructor
|
||||
G4IonConstructor();
|
||||
~G4IonConstructor();
|
||||
|
||||
public:
|
||||
static void ConstructParticle();
|
||||
|
||||
protected:
|
||||
static void ConstructLightIons();
|
||||
static void ConstructHyperNuclei();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -6,11 +6,23 @@ geant4_add_module(G4ions
|
||||
G4Alpha.hh
|
||||
G4AntiAlpha.hh
|
||||
G4AntiDeuteron.hh
|
||||
G4AntiDoubleHyperDoubleNeutron.hh
|
||||
G4AntiDoubleHyperH4.hh
|
||||
G4AntiHe3.hh
|
||||
G4AntiHyperAlpha.hh
|
||||
G4AntiHyperHe5.hh
|
||||
G4AntiHyperH4.hh
|
||||
G4AntiHyperTriton.hh
|
||||
G4AntiTriton.hh
|
||||
G4Deuteron.hh
|
||||
G4DoubleHyperDoubleNeutron.hh
|
||||
G4DoubleHyperH4.hh
|
||||
G4GenericIon.hh
|
||||
G4He3.hh
|
||||
G4HyperAlpha.hh
|
||||
G4HyperHe5.hh
|
||||
G4HyperH4.hh
|
||||
G4HyperTriton.hh
|
||||
G4IonConstructor.hh
|
||||
G4Triton.hh
|
||||
G4GenericMuonicAtom.hh
|
||||
@@ -18,11 +30,23 @@ geant4_add_module(G4ions
|
||||
G4Alpha.cc
|
||||
G4AntiAlpha.cc
|
||||
G4AntiDeuteron.cc
|
||||
G4AntiDoubleHyperDoubleNeutron.cc
|
||||
G4AntiDoubleHyperH4.cc
|
||||
G4AntiHe3.cc
|
||||
G4AntiHyperAlpha.cc
|
||||
G4AntiHyperHe5.cc
|
||||
G4AntiHyperH4.cc
|
||||
G4AntiHyperTriton.cc
|
||||
G4AntiTriton.cc
|
||||
G4Deuteron.cc
|
||||
G4DoubleHyperDoubleNeutron.cc
|
||||
G4DoubleHyperH4.cc
|
||||
G4GenericIon.cc
|
||||
G4He3.cc
|
||||
G4HyperAlpha.cc
|
||||
G4HyperHe5.cc
|
||||
G4HyperH4.cc
|
||||
G4HyperTriton.cc
|
||||
G4IonConstructor.cc
|
||||
G4Triton.cc
|
||||
G4GenericMuonicAtom.cc)
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#include "G4AntiDoubleHyperDoubleNeutron.hh"
|
||||
#include "G4PhysicalConstants.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4PhaseSpaceDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ANTI DOUBLEHYPERDOUBLENEUTRON ###
|
||||
// ######################################################################
|
||||
|
||||
G4AntiDoubleHyperDoubleNeutron* G4AntiDoubleHyperDoubleNeutron::theInstance = nullptr;
|
||||
|
||||
|
||||
G4AntiDoubleHyperDoubleNeutron* G4AntiDoubleHyperDoubleNeutron::Definition() {
|
||||
if ( theInstance != nullptr ) return theInstance;
|
||||
const G4String name = "anti_doublehyperdoubleneutron";
|
||||
// search in particle table
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4Ions* anInstance = reinterpret_cast< G4Ions* >( pTable->FindParticle( name ) );
|
||||
if ( anInstance == nullptr ) {
|
||||
// create particle
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
// shortlived subType anti_encoding
|
||||
// excitation
|
||||
anInstance = new G4Ions( name, 4110.24*MeV, 2.501e-12*MeV, 0.0*eplus,
|
||||
0, +1, 0,
|
||||
0, 0, 0,
|
||||
"anti_nucleus", 0, -4, -1020000040,
|
||||
false, 0.2631*ns, nullptr,
|
||||
false, "static", 1020000040,
|
||||
0.0, 0 );
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2.0/(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( 2.97896248 * mN );
|
||||
|
||||
// create Decay Table
|
||||
G4DecayTable* table = new G4DecayTable;
|
||||
// create decay channels
|
||||
const G4double half_br_lambda_to_p_pim = 0.5*0.639;
|
||||
const G4double br_lambda_to_n_piz = 0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[3];
|
||||
// anti_lambda -> anti_proton + pi+ , with 50% probability of capturing the anti_proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "anti_doublehyperdoubleneutron", half_br_lambda_to_p_pim, 5,
|
||||
"anti_neutron", "anti_neutron", "anti_lambda", "anti_proton", "pi+" );
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "anti_doublehyperdoubleneutron", half_br_lambda_to_p_pim, 2,
|
||||
"anti_hyperH4", "pi+" );
|
||||
// anti_lambda -> anti_neutron + pi0 , without any possibility of capturing the anti_neutron
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "anti_doublehyperdoubleneutron", br_lambda_to_n_piz, 5,
|
||||
"anti_neutron", "anti_neutron", "anti_lambda", "anti_neutron", "pi0" );
|
||||
for ( G4int index = 0; index < 3; ++index ) table->Insert( mode[index] );
|
||||
}
|
||||
theInstance = reinterpret_cast< G4AntiDoubleHyperDoubleNeutron* >( anInstance );
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
|
||||
G4AntiDoubleHyperDoubleNeutron* G4AntiDoubleHyperDoubleNeutron::AntiDoubleHyperDoubleNeutronDefinition() {
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
G4AntiDoubleHyperDoubleNeutron* G4AntiDoubleHyperDoubleNeutron::AntiDoubleHyperDoubleNeutron() {
|
||||
return Definition();
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#include "G4AntiDoubleHyperH4.hh"
|
||||
#include "G4PhysicalConstants.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4PhaseSpaceDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ###############################################################
|
||||
// ### ANTI DOUBLEHYPERH4 ###
|
||||
// ###############################################################
|
||||
|
||||
G4AntiDoubleHyperH4* G4AntiDoubleHyperH4::theInstance = nullptr;
|
||||
|
||||
|
||||
G4AntiDoubleHyperH4* G4AntiDoubleHyperH4::Definition() {
|
||||
if ( theInstance != nullptr ) return theInstance;
|
||||
const G4String name = "anti_doublehyperH4";
|
||||
// search in particle table
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4Ions* anInstance = reinterpret_cast< G4Ions* >( pTable->FindParticle( name ) );
|
||||
if ( anInstance == nullptr ) {
|
||||
// create particle
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
// shortlived subType anti_encoding
|
||||
// excitation
|
||||
anInstance = new G4Ions( name, 4106.72*MeV, 2.501e-12*MeV, -1.0*eplus,
|
||||
4, +1, 0,
|
||||
0, 0, 0,
|
||||
"anti_nucleus", 0, -4, -1020010040,
|
||||
false, 0.2631*ns, nullptr,
|
||||
false, "static", 1020010040,
|
||||
0.0, 0 );
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2.0/(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( 2.97896248 * mN );
|
||||
|
||||
// create Decay Table
|
||||
G4DecayTable* table = new G4DecayTable;
|
||||
// create decay channels
|
||||
const G4double half_br_lambda_to_p_pim = 0.5*0.639;
|
||||
const G4double half_br_lambda_to_n_piz = 0.5*0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[4];
|
||||
// anti_lambda -> anti_proton + pi+ , with 50% probability of capturing the anti_proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "anti_doublehyperH4", half_br_lambda_to_p_pim, 3,
|
||||
"anti_hypertriton", "anti_proton", "pi+" );
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "anti_doublehyperH4", half_br_lambda_to_p_pim, 2,
|
||||
"anti_hyperalpha", "pi+" );
|
||||
// anti_lambda -> anti_neutron + pi0 , with 50% probability of capturing the anti_neutron
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "anti_doublehyperH4", half_br_lambda_to_n_piz, 3,
|
||||
"anti_hypertriton", "anti_neutron", "pi0" );
|
||||
mode[3] = new G4PhaseSpaceDecayChannel( "anti_doublehyperH4", half_br_lambda_to_n_piz, 2,
|
||||
"anti_hyperH4", "pi0" );
|
||||
for ( G4int index = 0; index < 4; ++index ) table->Insert( mode[index] );
|
||||
delete [] mode;
|
||||
anInstance->SetDecayTable( table );
|
||||
}
|
||||
theInstance = reinterpret_cast< G4AntiDoubleHyperH4* >( anInstance );
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
|
||||
G4AntiDoubleHyperH4* G4AntiDoubleHyperH4::AntiDoubleHyperH4Definition() {
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
G4AntiDoubleHyperH4* G4AntiDoubleHyperH4::AntiDoubleHyperH4() {
|
||||
return Definition();
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#include "G4AntiHyperAlpha.hh"
|
||||
#include "G4PhysicalConstants.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4PhaseSpaceDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ANTI HYPERALPHA ###
|
||||
// ######################################################################
|
||||
|
||||
G4AntiHyperAlpha* G4AntiHyperAlpha::theInstance = nullptr;
|
||||
|
||||
|
||||
G4AntiHyperAlpha* G4AntiHyperAlpha::Definition() {
|
||||
if ( theInstance != nullptr ) return theInstance;
|
||||
const G4String name = "anti_hyperalpha";
|
||||
// search in particle table
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4Ions* anInstance = reinterpret_cast< G4Ions* >( pTable->FindParticle( name ) );
|
||||
if ( anInstance == nullptr ) {
|
||||
// create particle
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
// shortlived subType anti_encoding
|
||||
// excitation
|
||||
anInstance = new G4Ions( name, 3921.87*MeV, 2.501e-12*MeV, -2.0*eplus,
|
||||
0, +1, 0,
|
||||
0, 0, 0,
|
||||
"anti_nucleus", 0, -4, -1010020040,
|
||||
false, 0.2631*ns, nullptr,
|
||||
false, "static", 1010020040,
|
||||
0.0, 0 );
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2.0/(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( 2.97896248 * mN );
|
||||
|
||||
// create Decay Table
|
||||
G4DecayTable* table = new G4DecayTable;
|
||||
// create decay channels
|
||||
/*
|
||||
// The decay "mode[1]" produces the secondary "anti_Li4" which is not existing
|
||||
// in Geant4: we therefore skip it for the time being (similarly for hyperalpha,
|
||||
// to keep the symmetry between particle and anti-particle).
|
||||
const G4double half_br_lambda_to_p_pim = 0.5*0.639;
|
||||
const G4double half_br_lambda_to_n_piz = 0.5*0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[4];
|
||||
// anti_lambda -> anti_proton + pi+ , with 50% probability of capturing the anti_proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "anti_hyperalpha", half_br_lambda_to_p_pim, 3,
|
||||
"anti_He3", "anti_proton", "pi+" );
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "anti_hyperalpha", half_br_lambda_to_p_pim, 2,
|
||||
"anti_Li4", "pi+" );
|
||||
// anti_lambda -> anti_neutron + pi0 , with 50% probability of capturing the anti_neutron
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "anti_hyperalpha", half_br_lambda_to_n_piz, 3,
|
||||
"anti_He3", "anti_neutron", "pi0" );
|
||||
mode[3] = new G4PhaseSpaceDecayChannel( "anti_hyperalpha", half_br_lambda_to_n_piz, 2,
|
||||
"anti_alpha", "pi0" );
|
||||
for ( G4int index = 0; index < 4; ++index ) table->Insert( mode[index] );
|
||||
*/
|
||||
// Replacement decay for the time being
|
||||
const G4double br_lambda_to_p_pim = 0.639;
|
||||
const G4double half_br_lambda_to_n_piz = 0.5*0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[3];
|
||||
// anti_lambda -> anti_proton + pi+ , with 0% probability of capturing the anti_proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "anti_hyperalpha", br_lambda_to_p_pim, 3,
|
||||
"anti_He3", "anti_proton", "pi+" );
|
||||
// anti_lambda -> anti_neutron + pi0 , with 50% probability of capturing the anti_neutron
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "anti_hyperalpha", half_br_lambda_to_n_piz, 3,
|
||||
"anti_He3", "anti_neutron", "pi0" );
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "anti_hyperalpha", half_br_lambda_to_n_piz, 2,
|
||||
"anti_alpha", "pi0" );
|
||||
for ( G4int index = 0; index < 3; ++index ) table->Insert( mode[index] );
|
||||
//---
|
||||
delete [] mode;
|
||||
anInstance->SetDecayTable( table );
|
||||
}
|
||||
theInstance = reinterpret_cast< G4AntiHyperAlpha* >( anInstance );
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
|
||||
G4AntiHyperAlpha* G4AntiHyperAlpha::AntiHyperAlphaDefinition() {
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
G4AntiHyperAlpha* G4AntiHyperAlpha::AntiHyperAlpha() {
|
||||
return Definition();
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#include "G4AntiHyperH4.hh"
|
||||
#include "G4PhysicalConstants.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4PhaseSpaceDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ###############################################################
|
||||
// ### ANTI HYPERH4 ###
|
||||
// ###############################################################
|
||||
|
||||
G4AntiHyperH4* G4AntiHyperH4::theInstance = nullptr;
|
||||
|
||||
|
||||
G4AntiHyperH4* G4AntiHyperH4::Definition() {
|
||||
if ( theInstance != nullptr ) return theInstance;
|
||||
const G4String name = "anti_hyperH4";
|
||||
// search in particle table
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4Ions* anInstance = reinterpret_cast< G4Ions* >( pTable->FindParticle( name ) );
|
||||
if ( anInstance == nullptr ) {
|
||||
// create particle
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
// shortlived subType anti_encoding
|
||||
// excitation
|
||||
anInstance = new G4Ions( name, 3922.40*MeV, 2.501e-12*MeV, -1.0*eplus,
|
||||
4, +1, 0,
|
||||
0, 0, 0,
|
||||
"anti_nucleus", 0, -4, -1010010040,
|
||||
false, 0.2631*ns, nullptr,
|
||||
false, "static", 1010010040,
|
||||
0.0, 0 );
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2.0/(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( 2.97896248 * mN );
|
||||
|
||||
// create Decay Table
|
||||
G4DecayTable* table = new G4DecayTable;
|
||||
// create decay channels
|
||||
/*
|
||||
// The decay "mode[3]" produces the secondary "anti_H4" which is not existing
|
||||
// in Geant4: we therefore skip it for the time being (similarly for hyperH4,
|
||||
// to keep the symmetry between particle and anti-particle).
|
||||
const G4double half_br_lambda_to_p_pim = 0.5*0.639;
|
||||
const G4double half_br_lambda_to_n_piz = 0.5*0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[4];
|
||||
// anti_lambda -> anti_proton + pi+ , with 50% probability of capturing the anti_proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "anti_hyperH4", half_br_lambda_to_p_pim, 3,
|
||||
"anti_triton", "anti_proton", "pi+" );
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "anti_hyperH4", half_br_lambda_to_p_pim, 2,
|
||||
"anti_alpha", "pi+" );
|
||||
// anti_lambda -> anti_neutron + pi0 , with 50% probability of capturing the anti_neutron
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "anti_hyperH4", half_br_lambda_to_n_piz, 3,
|
||||
"anti_triton", "anti_neutron", "pi0" );
|
||||
mode[3] = new G4PhaseSpaceDecayChannel( "anti_hyperH4", half_br_lambda_to_n_piz, 2,
|
||||
"anti_H4", "pi0" );
|
||||
for ( G4int index = 0; index < 4; ++index ) table->Insert( mode[index] );
|
||||
*/
|
||||
// Replacement decay for the time being
|
||||
const G4double half_br_lambda_to_p_pim = 0.5*0.639;
|
||||
const G4double br_lambda_to_n_piz = 0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[3];
|
||||
// anti_lambda -> anti_proton + pi+ , with 50% probability of capturing the anti_proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "anti_hyperH4", half_br_lambda_to_p_pim, 3,
|
||||
"anti_triton", "anti_proton", "pi+" );
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "anti_hyperH4", half_br_lambda_to_p_pim, 2,
|
||||
"anti_alpha", "pi+" );
|
||||
// anti_lambda -> anti_neutron + pi0 , with 0% probability of capturing the anti_neutron
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "anti_hyperH4", br_lambda_to_n_piz, 3,
|
||||
"anti_triton", "anti_neutron", "pi0" );
|
||||
for ( G4int index = 0; index < 3; ++index ) table->Insert( mode[index] );
|
||||
//---
|
||||
delete [] mode;
|
||||
anInstance->SetDecayTable( table );
|
||||
}
|
||||
theInstance = reinterpret_cast< G4AntiHyperH4* >( anInstance );
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
|
||||
G4AntiHyperH4* G4AntiHyperH4::AntiHyperH4Definition() {
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
G4AntiHyperH4* G4AntiHyperH4::AntiHyperH4() {
|
||||
return Definition();
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#include "G4AntiHyperHe5.hh"
|
||||
#include "G4PhysicalConstants.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4PhaseSpaceDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ##################################################################
|
||||
// ### ANTI HYPERHE5 ###
|
||||
// ##################################################################
|
||||
|
||||
G4AntiHyperHe5* G4AntiHyperHe5::theInstance = nullptr;
|
||||
|
||||
|
||||
G4AntiHyperHe5* G4AntiHyperHe5::Definition() {
|
||||
if ( theInstance != nullptr ) return theInstance;
|
||||
const G4String name = "anti_hyperHe5";
|
||||
// search in particle table
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4Ions* anInstance = reinterpret_cast< G4Ions* >( pTable->FindParticle( name ) );
|
||||
if ( anInstance == nullptr ) {
|
||||
// create particle
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
// shortlived subType anti_encoding
|
||||
// excitation
|
||||
anInstance = new G4Ions( name, 4840.00*MeV, 2.501e-12*MeV, -2.0*eplus,
|
||||
3, +1, 0,
|
||||
0, 0, 0,
|
||||
"anti_nucleus", 0, -5, -1010020050,
|
||||
false, 0.2631*ns, nullptr,
|
||||
false, "static", 1010020050,
|
||||
0.0, 0 );
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2.0/(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( 2.97896248 * mN );
|
||||
|
||||
// create Decay Table
|
||||
G4DecayTable* table = new G4DecayTable;
|
||||
// create decay channels
|
||||
/*
|
||||
// The decays "mode[1]" and "mode[3]" produce the secondaries "anti_Li5" and "anti_He5",
|
||||
// respectively, which are not existing in Geant4: we therefore skip them for the time being
|
||||
// (similarly for hyperHe5, to keep the symmetry between particle and anti-particle).
|
||||
const G4double half_br_lambda_to_p_pim = 0.5*0.639;
|
||||
const G4double half_br_lambda_to_n_piz = 0.5*0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[4];
|
||||
// anti_lambda -> anti_proton + pi+ , with 50% probability of capturing the anti_proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "anti_hyperHe5", half_br_lambda_to_p_pim, 3,
|
||||
"anti_alpha", "anti_proton", "pi+" );
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "anti_hyperHe5", half_br_lambda_to_p_pim, 2,
|
||||
"anti_Li5", "pi+" );
|
||||
// anti_lambda -> anti_neutron + pi0 , with 50% probability of capturing the anti_neutron
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "anti_hyperHe5", half_br_lambda_to_n_piz, 3,
|
||||
"anti_alpha", "anti_neutron", "pi0" );
|
||||
mode[3] = new G4PhaseSpaceDecayChannel( "anti_hyperHe5", half_br_lambda_to_n_piz, 2,
|
||||
"anti_He5", "pi0" );
|
||||
for ( G4int index = 0; index < 4; ++index ) table->Insert( mode[index] );
|
||||
*/
|
||||
// Replacement decay for the time being
|
||||
const G4double br_lambda_to_p_pim = 0.639;
|
||||
const G4double br_lambda_to_n_piz = 0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[2];
|
||||
// anti_lambda -> anti_proton + pi+ , with 0% probability of capturing the anti_proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "anti_hyperHe5", br_lambda_to_p_pim, 3,
|
||||
"anti_alpha", "anti_proton", "pi+" );
|
||||
// anti_lambda -> anti_neutron + pi0 , with 0% probability of capturing the anti_neutron
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "anti_hyperHe5", br_lambda_to_n_piz, 3,
|
||||
"anti_alpha", "anti_neutron", "pi0" );
|
||||
for ( G4int index = 0; index < 2; ++index ) table->Insert( mode[index] );
|
||||
//---
|
||||
delete [] mode;
|
||||
anInstance->SetDecayTable( table );
|
||||
}
|
||||
theInstance = reinterpret_cast< G4AntiHyperHe5* >( anInstance );
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
|
||||
G4AntiHyperHe5* G4AntiHyperHe5::AntiHyperHe5Definition() {
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
G4AntiHyperHe5* G4AntiHyperHe5::AntiHyperHe5() {
|
||||
return Definition();
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#include "G4AntiHyperTriton.hh"
|
||||
#include "G4PhysicalConstants.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4PhaseSpaceDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ANTI HYPERTRITON ###
|
||||
// ######################################################################
|
||||
|
||||
G4AntiHyperTriton* G4AntiHyperTriton::theInstance = nullptr;
|
||||
|
||||
|
||||
G4AntiHyperTriton* G4AntiHyperTriton::Definition() {
|
||||
if ( theInstance != nullptr ) return theInstance;
|
||||
const G4String name = "anti_hypertriton";
|
||||
// search in particle table
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4Ions* anInstance = reinterpret_cast< G4Ions* >( pTable->FindParticle( name ) );
|
||||
if ( anInstance == nullptr ) {
|
||||
// create particle
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
// shortlived subType anti_encoding
|
||||
// excitation
|
||||
anInstance = new G4Ions( name, 2991.17*MeV, 2.501e-12*MeV, -1.0*eplus,
|
||||
1, +1, 0,
|
||||
0, 0, 0,
|
||||
"anti_nucleus", 0, -3, -1010010030,
|
||||
false, 0.2631*ns, nullptr,
|
||||
false, "static", 1010010030,
|
||||
0.0, 0 );
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2.0/(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( 2.97896248 * mN );
|
||||
|
||||
// create Decay Table
|
||||
G4DecayTable* table = new G4DecayTable;
|
||||
// create decay channels
|
||||
const G4double half_br_lambda_to_p_pim = 0.5*0.639;
|
||||
const G4double half_br_lambda_to_n_piz = 0.5*0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[4];
|
||||
// anti_lambda -> anti_proton + pi+ , with 50% probability of capturing the anti_proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "anti_hypertriton", half_br_lambda_to_p_pim, 3,
|
||||
"anti_deuteron", "anti_proton", "pi+" );
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "anti_hypertriton", half_br_lambda_to_p_pim, 2,
|
||||
"anti_He3", "pi+" );
|
||||
// anti_lambda -> anti_neutron + pi0 , with 50% probability of capturing the anti_neutron
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "anti_hypertriton", half_br_lambda_to_n_piz, 3,
|
||||
"anti_deuteron", "anti_neutron", "pi0" );
|
||||
mode[3] = new G4PhaseSpaceDecayChannel( "anti_hypertriton", half_br_lambda_to_n_piz, 2,
|
||||
"anti_triton", "pi0" );
|
||||
for ( G4int index = 0; index < 4; ++index ) table->Insert( mode[index] );
|
||||
delete [] mode;
|
||||
anInstance->SetDecayTable( table );
|
||||
}
|
||||
theInstance = reinterpret_cast< G4AntiHyperTriton* >( anInstance );
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
|
||||
G4AntiHyperTriton* G4AntiHyperTriton::AntiHyperTritonDefinition() {
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
G4AntiHyperTriton* G4AntiHyperTriton::AntiHyperTriton() {
|
||||
return Definition();
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#include "G4DoubleHyperDoubleNeutron.hh"
|
||||
#include "G4PhysicalConstants.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4PhaseSpaceDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### DOUBLEHYPERDOUBLENEUTRON ###
|
||||
// ######################################################################
|
||||
|
||||
G4DoubleHyperDoubleNeutron* G4DoubleHyperDoubleNeutron::theInstance = nullptr;
|
||||
|
||||
|
||||
G4DoubleHyperDoubleNeutron* G4DoubleHyperDoubleNeutron::Definition() {
|
||||
if ( theInstance != nullptr ) return theInstance;
|
||||
const G4String name = "doublehyperdoubleneutron";
|
||||
// search in particle table
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4Ions* anInstance = reinterpret_cast< G4Ions* >( pTable->FindParticle( name ) );
|
||||
if ( anInstance == nullptr ) {
|
||||
// create particle
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
// shortlived subType anti_encoding
|
||||
// excitation
|
||||
anInstance = new G4Ions( name, 4110.24*MeV, 2.501e-12*MeV, 0.0*eplus,
|
||||
0, +1, 0,
|
||||
0, 0, 0,
|
||||
"nucleus", 0, +4, 1020000040,
|
||||
false, 0.2631*ns, nullptr,
|
||||
false, "static", -1020000040,
|
||||
0.0, 0 );
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2.0/(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( 2.97896248 * mN );
|
||||
|
||||
// create Decay Table
|
||||
G4DecayTable* table = new G4DecayTable;
|
||||
// create decay channels
|
||||
const G4double half_br_lambda_to_p_pim = 0.5*0.639;
|
||||
const G4double br_lambda_to_n_piz = 0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[3];
|
||||
// lambda -> proton + pi- , with 50% probability of capturing the proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "doublehyperdoubleneutron", half_br_lambda_to_p_pim, 5,
|
||||
"neutron", "neutron", "lambda", "proton", "pi-" );
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "doublehyperdoubleneutron", half_br_lambda_to_p_pim, 2,
|
||||
"hyperH4", "pi-" );
|
||||
// lambda -> neutron + pi0 , without any possibility of capturing the neutron
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "doublehyperdoubleneutron", br_lambda_to_n_piz, 5,
|
||||
"neutron", "neutron", "lambda", "neutron", "pi0" );
|
||||
for ( G4int index = 0; index < 3; ++index ) table->Insert( mode[index] );
|
||||
}
|
||||
theInstance = reinterpret_cast< G4DoubleHyperDoubleNeutron* >( anInstance );
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
|
||||
G4DoubleHyperDoubleNeutron* G4DoubleHyperDoubleNeutron::DoubleHyperDoubleNeutronDefinition() {
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
G4DoubleHyperDoubleNeutron* G4DoubleHyperDoubleNeutron::DoubleHyperDoubleNeutron() {
|
||||
return Definition();
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#include "G4DoubleHyperH4.hh"
|
||||
#include "G4PhysicalConstants.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4PhaseSpaceDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ###############################################################
|
||||
// ### DOUBLEHYPERH4 ###
|
||||
// ###############################################################
|
||||
|
||||
G4DoubleHyperH4* G4DoubleHyperH4::theInstance = nullptr;
|
||||
|
||||
|
||||
G4DoubleHyperH4* G4DoubleHyperH4::Definition() {
|
||||
if ( theInstance != nullptr ) return theInstance;
|
||||
const G4String name = "doublehyperH4";
|
||||
// search in particle table
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4Ions* anInstance = reinterpret_cast< G4Ions* >( pTable->FindParticle( name ) );
|
||||
if ( anInstance == nullptr ) {
|
||||
// create particle
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
// shortlived subType anti_encoding
|
||||
// excitation
|
||||
anInstance = new G4Ions( name, 4106.72*MeV, 2.501e-12*MeV, +1.0*eplus,
|
||||
4, +1, 0,
|
||||
0, 0, 0,
|
||||
"nucleus", 0, +4, 1020010040,
|
||||
false, 0.2631*ns, nullptr,
|
||||
false, "static", -1020010040,
|
||||
0.0, 0 );
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2.0/(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( 2.97896248 * mN );
|
||||
|
||||
// create Decay Table
|
||||
G4DecayTable* table = new G4DecayTable;
|
||||
// create decay channels
|
||||
const G4double half_br_lambda_to_p_pim = 0.5*0.639;
|
||||
const G4double half_br_lambda_to_n_piz = 0.5*0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[4];
|
||||
// lambda -> proton + pi- , with 50% probability of capturing the proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "doublehyperH4", half_br_lambda_to_p_pim, 3,
|
||||
"hypertriton", "proton", "pi-" );
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "doublehyperH4", half_br_lambda_to_p_pim, 2,
|
||||
"hyperalpha", "pi-" );
|
||||
// lambda -> neutron + pi0 , with 50% probability of capturing the neutron
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "doublehyperH4", half_br_lambda_to_n_piz, 3,
|
||||
"hypertriton", "neutron", "pi0" );
|
||||
mode[3] = new G4PhaseSpaceDecayChannel( "doublehyperH4", half_br_lambda_to_n_piz, 2,
|
||||
"hyperH4", "pi0" );
|
||||
for ( G4int index = 0; index < 4; ++index ) table->Insert( mode[index] );
|
||||
delete [] mode;
|
||||
anInstance->SetDecayTable( table );
|
||||
}
|
||||
theInstance = reinterpret_cast< G4DoubleHyperH4* >( anInstance );
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
|
||||
G4DoubleHyperH4* G4DoubleHyperH4::DoubleHyperH4Definition() {
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
G4DoubleHyperH4* G4DoubleHyperH4::DoubleHyperH4() {
|
||||
return Definition();
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#include "G4HyperAlpha.hh"
|
||||
#include "G4PhysicalConstants.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4PhaseSpaceDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### HYPERALPHA ###
|
||||
// ######################################################################
|
||||
|
||||
G4HyperAlpha* G4HyperAlpha::theInstance = nullptr;
|
||||
|
||||
|
||||
G4HyperAlpha* G4HyperAlpha::Definition() {
|
||||
if ( theInstance != nullptr ) return theInstance;
|
||||
const G4String name = "hyperalpha";
|
||||
// search in particle table
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4Ions* anInstance = reinterpret_cast< G4Ions* >( pTable->FindParticle( name ) );
|
||||
if ( anInstance == nullptr ) {
|
||||
// create particle
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
// shortlived subType anti_encoding
|
||||
// excitation
|
||||
anInstance = new G4Ions( name, 3921.87*MeV, 2.501e-12*MeV, +2.0*eplus,
|
||||
0, +1, 0,
|
||||
0, 0, 0,
|
||||
"nucleus", 0, +4, 1010020040,
|
||||
false, 0.2631*ns, nullptr,
|
||||
false, "static", -1010020040,
|
||||
0.0, 0 );
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2.0/(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( 2.97896248 * mN );
|
||||
|
||||
// create Decay Table
|
||||
G4DecayTable* table = new G4DecayTable;
|
||||
// create decay channels
|
||||
/*
|
||||
// The decay "mode[1]" produces the secondary "Li4" whose corresponding anti-particle
|
||||
// is not existing in Geant4: we therefore skip it for the time being, to keep the
|
||||
// symmetry with the decays of anti_hyperalpha.
|
||||
const G4double half_br_lambda_to_p_pim = 0.5*0.639;
|
||||
const G4double half_br_lambda_to_n_piz = 0.5*0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[4];
|
||||
// lambda -> proton + pi- , with 50% probability of capturing the proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "hyperalpha", half_br_lambda_to_p_pim, 3,
|
||||
"He3", "proton", "pi-" );
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "hyperalpha", half_br_lambda_to_p_pim, 2,
|
||||
"Li4", "pi-" );
|
||||
// lambda -> neutron + pi0 , with 50% probability of capturing the neutron
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "hyperalpha", half_br_lambda_to_n_piz, 3,
|
||||
"He3", "neutron", "pi0" );
|
||||
mode[3] = new G4PhaseSpaceDecayChannel( "hyperalpha", half_br_lambda_to_n_piz, 2,
|
||||
"alpha", "pi0" );
|
||||
for ( G4int index = 0; index < 4; ++index ) table->Insert( mode[index] );
|
||||
*/
|
||||
// Replacement decay for the time being
|
||||
const G4double br_lambda_to_p_pim = 0.639;
|
||||
const G4double half_br_lambda_to_n_piz = 0.5*0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[3];
|
||||
// lambda -> proton + pi- , with 0% probability of capturing the proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "hyperalpha", br_lambda_to_p_pim, 3,
|
||||
"He3", "proton", "pi-" );
|
||||
// lambda -> neutron + pi0 , with 50% probability of capturing the neutron
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "hyperalpha", half_br_lambda_to_n_piz, 3,
|
||||
"He3", "neutron", "pi0" );
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "hyperalpha", half_br_lambda_to_n_piz, 2,
|
||||
"alpha", "pi0" );
|
||||
for ( G4int index = 0; index < 3; ++index ) table->Insert( mode[index] );
|
||||
//---
|
||||
delete [] mode;
|
||||
anInstance->SetDecayTable( table );
|
||||
}
|
||||
theInstance = reinterpret_cast< G4HyperAlpha* >( anInstance );
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
|
||||
G4HyperAlpha* G4HyperAlpha::HyperAlphaDefinition() {
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
G4HyperAlpha* G4HyperAlpha::HyperAlpha() {
|
||||
return Definition();
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#include "G4HyperH4.hh"
|
||||
#include "G4PhysicalConstants.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4PhaseSpaceDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ###############################################################
|
||||
// ### HYPERH4 ###
|
||||
// ###############################################################
|
||||
|
||||
G4HyperH4* G4HyperH4::theInstance = nullptr;
|
||||
|
||||
|
||||
G4HyperH4* G4HyperH4::Definition() {
|
||||
if ( theInstance != nullptr ) return theInstance;
|
||||
const G4String name = "hyperH4";
|
||||
// search in particle table
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4Ions* anInstance = reinterpret_cast< G4Ions* >( pTable->FindParticle( name ) );
|
||||
if ( anInstance == nullptr ) {
|
||||
// create particle
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
// shortlived subType anti_encoding
|
||||
// excitation
|
||||
anInstance = new G4Ions( name, 3922.40*MeV, 2.501e-12*MeV, +1.0*eplus,
|
||||
4, +1, 0,
|
||||
0, 0, 0,
|
||||
"nucleus", 0, +4, 1010010040,
|
||||
false, 0.2631*ns, nullptr,
|
||||
false, "static", -1010010040,
|
||||
0.0, 0 );
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2.0/(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( 2.97896248 * mN );
|
||||
|
||||
// create Decay Table
|
||||
G4DecayTable* table = new G4DecayTable;
|
||||
// create decay channels
|
||||
/*
|
||||
// The decay "mode[3]" produces the secondary "H4" whose corresponding
|
||||
// anti-particle is not existing in Geant4: we therefore skip it for the time
|
||||
// being, to keep the symmetry with the decays of anti_hyperH4.
|
||||
const G4double half_br_lambda_to_p_pim = 0.5*0.639;
|
||||
const G4double half_br_lambda_to_n_piz = 0.5*0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[4];
|
||||
// lambda -> proton + pi- , with 50% probability of capturing the proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "hyperH4", half_br_lambda_to_p_pim, 3,
|
||||
"triton", "proton", "pi-" );
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "hyperH4", half_br_lambda_to_p_pim, 2,
|
||||
"alpha", "pi-" );
|
||||
// lambda -> neutron + pi0 , with 50% probability of capturing the neutron
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "hyperH4", half_br_lambda_to_n_piz, 3,
|
||||
"triton", "neutron", "pi0" );
|
||||
mode[3] = new G4PhaseSpaceDecayChannel( "hyperH4", half_br_lambda_to_n_piz, 2,
|
||||
"H4", "pi0" );
|
||||
for ( G4int index = 0; index < 4; ++index ) table->Insert( mode[index] );
|
||||
*/
|
||||
// Replacement decay for the time being
|
||||
const G4double half_br_lambda_to_p_pim = 0.5*0.639;
|
||||
const G4double br_lambda_to_n_piz = 0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[3];
|
||||
// lambda -> proton + pi- , with 50% probability of capturing the proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "hyperH4", half_br_lambda_to_p_pim, 3,
|
||||
"triton", "proton", "pi-" );
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "hyperH4", half_br_lambda_to_p_pim, 2,
|
||||
"alpha", "pi-" );
|
||||
// lambda -> neutron + pi0 , with 0% probability of capturing the neutron
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "hyperH4", br_lambda_to_n_piz, 3,
|
||||
"triton", "neutron", "pi0" );
|
||||
for ( G4int index = 0; index < 3; ++index ) table->Insert( mode[index] );
|
||||
//---
|
||||
delete [] mode;
|
||||
anInstance->SetDecayTable( table );
|
||||
}
|
||||
theInstance = reinterpret_cast< G4HyperH4* >( anInstance );
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
|
||||
G4HyperH4* G4HyperH4::HyperH4Definition() {
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
G4HyperH4* G4HyperH4::HyperH4() {
|
||||
return Definition();
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#include "G4HyperHe5.hh"
|
||||
#include "G4PhysicalConstants.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4PhaseSpaceDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ###################################################################
|
||||
// ### HYPERHE5 ###
|
||||
// ###################################################################
|
||||
|
||||
G4HyperHe5* G4HyperHe5::theInstance = nullptr;
|
||||
|
||||
|
||||
G4HyperHe5* G4HyperHe5::Definition() {
|
||||
if ( theInstance != nullptr ) return theInstance;
|
||||
const G4String name = "hyperHe5";
|
||||
// search in particle table
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4Ions* anInstance = reinterpret_cast< G4Ions* >( pTable->FindParticle( name ) );
|
||||
if ( anInstance == nullptr ) {
|
||||
// create particle
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
// shortlived subType anti_encoding
|
||||
// excitation
|
||||
anInstance = new G4Ions( name, 4840.00*MeV, 2.501e-12*MeV, +2.0*eplus,
|
||||
3, +1, 0,
|
||||
0, 0, 0,
|
||||
"nucleus", 0, +5, 1010020050,
|
||||
false, 0.2631*ns, nullptr,
|
||||
false, "static", -1010020050,
|
||||
0.0, 0 );
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2.0/(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( 2.97896248 * mN );
|
||||
|
||||
// create Decay Table
|
||||
G4DecayTable* table = new G4DecayTable;
|
||||
// create decay channels
|
||||
/*
|
||||
// The decays "mode[1]" and "mode[3]" produce the secondaries "Li5" and "He5",
|
||||
// respectively, whose corresponding anti-particles are not existing in Geant4:
|
||||
// we therefore skip them for the time being, to keep the symmetry with the decays
|
||||
// of anti_hyperHe5.
|
||||
const G4double half_br_lambda_to_p_pim = 0.5*0.639;
|
||||
const G4double half_br_lambda_to_n_piz = 0.5*0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[4];
|
||||
// lambda -> proton + pi- , with 50% probability of capturing the proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "hyperHe5", half_br_lambda_to_p_pim, 3,
|
||||
"alpha", "proton", "pi-" );
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "hyperHe5", half_br_lambda_to_p_pim, 2,
|
||||
"Li5", "pi-" );
|
||||
// lambda -> neutron + pi0 , with 50% probability of capturing the neutron
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "hyperHe5", half_br_lambda_to_n_piz, 3,
|
||||
"alpha", "neutron", "pi0" );
|
||||
mode[3] = new G4PhaseSpaceDecayChannel( "hyperHe5", half_br_lambda_to_n_piz, 2,
|
||||
"He5", "pi0" );
|
||||
for ( G4int index = 0; index < 4; ++index ) table->Insert( mode[index] );
|
||||
*/
|
||||
// Replacement decay for the time being
|
||||
const G4double br_lambda_to_p_pim = 0.639;
|
||||
const G4double br_lambda_to_n_piz = 0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[2];
|
||||
// lambda -> proton + pi- , with 0% probability of capturing the proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "hyperHe5", br_lambda_to_p_pim, 3,
|
||||
"alpha", "proton", "pi-" );
|
||||
// lambda -> neutron + pi0 , with 0% probability of capturing the neutron
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "hyperHe5", br_lambda_to_n_piz, 3,
|
||||
"alpha", "neutron", "pi0" );
|
||||
for ( G4int index = 0; index < 2; ++index ) table->Insert( mode[index] );
|
||||
//---
|
||||
delete [] mode;
|
||||
anInstance->SetDecayTable( table );
|
||||
}
|
||||
theInstance = reinterpret_cast< G4HyperHe5* >( anInstance );
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
|
||||
G4HyperHe5* G4HyperHe5::HyperHe5Definition() {
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
G4HyperHe5* G4HyperHe5::HyperHe5() {
|
||||
return Definition();
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Author: 2021 Alberto Ribon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#include "G4HyperTriton.hh"
|
||||
#include "G4PhysicalConstants.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4PhaseSpaceDecayChannel.hh"
|
||||
#include "G4DecayTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### HYPERTRITON ###
|
||||
// ######################################################################
|
||||
|
||||
G4HyperTriton* G4HyperTriton::theInstance = nullptr;
|
||||
|
||||
|
||||
G4HyperTriton* G4HyperTriton::Definition() {
|
||||
if ( theInstance != nullptr ) return theInstance;
|
||||
const G4String name = "hypertriton";
|
||||
// search in particle table
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4Ions* anInstance = reinterpret_cast< G4Ions* >( pTable->FindParticle( name ) );
|
||||
if ( anInstance == nullptr ) {
|
||||
// create particle
|
||||
//
|
||||
// Arguments for constructor are as follows
|
||||
// name mass width charge
|
||||
// 2*spin parity C-conjugation
|
||||
// 2*Isospin 2*Isospin3 G-parity
|
||||
// type lepton number baryon number PDG encoding
|
||||
// stable lifetime decay table
|
||||
// shortlived subType anti_encoding
|
||||
// excitation
|
||||
anInstance = new G4Ions( name, 2991.17*MeV, 2.501e-12*MeV, +1.0*eplus,
|
||||
1, +1, 0,
|
||||
0, 0, 0,
|
||||
"nucleus", 0, +3, 1010010030,
|
||||
false, 0.2631*ns, nullptr,
|
||||
false, "static", -1010010030,
|
||||
0.0, 0 );
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2.0/(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( 2.97896248 * mN );
|
||||
|
||||
// create Decay Table
|
||||
G4DecayTable* table = new G4DecayTable;
|
||||
// create decay channels
|
||||
const G4double half_br_lambda_to_p_pim = 0.5*0.639;
|
||||
const G4double half_br_lambda_to_n_piz = 0.5*0.358;
|
||||
G4VDecayChannel** mode = new G4VDecayChannel*[4];
|
||||
// lambda -> proton + pi- , with 50% probability of capturing the proton
|
||||
mode[0] = new G4PhaseSpaceDecayChannel( "hypertriton", half_br_lambda_to_p_pim, 3,
|
||||
"deuteron", "proton", "pi-" );
|
||||
mode[1] = new G4PhaseSpaceDecayChannel( "hypertriton", half_br_lambda_to_p_pim, 2,
|
||||
"He3", "pi-" );
|
||||
// lambda -> neutron + pi0 , with 50% probability of capturing the neutron
|
||||
mode[2] = new G4PhaseSpaceDecayChannel( "hypertriton", half_br_lambda_to_n_piz, 3,
|
||||
"deuteron", "neutron", "pi0" );
|
||||
mode[3] = new G4PhaseSpaceDecayChannel( "hypertriton", half_br_lambda_to_n_piz, 2,
|
||||
"triton", "pi0" );
|
||||
for ( G4int index = 0; index < 4; ++index ) table->Insert( mode[index] );
|
||||
delete [] mode;
|
||||
anInstance->SetDecayTable( table );
|
||||
}
|
||||
theInstance = reinterpret_cast< G4HyperTriton* >( anInstance );
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
|
||||
G4HyperTriton* G4HyperTriton::HyperTritonDefinition() {
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
G4HyperTriton* G4HyperTriton::HyperTriton() {
|
||||
return Definition();
|
||||
}
|
||||
@@ -45,6 +45,20 @@
|
||||
#include "G4AntiDeuteron.hh"
|
||||
#include "G4AntiTriton.hh"
|
||||
#include "G4AntiHe3.hh"
|
||||
// Hyper-nuclei
|
||||
#include "G4DoubleHyperDoubleNeutron.hh"
|
||||
#include "G4DoubleHyperH4.hh"
|
||||
#include "G4HyperAlpha.hh"
|
||||
#include "G4HyperH4.hh"
|
||||
#include "G4HyperHe5.hh"
|
||||
#include "G4HyperTriton.hh"
|
||||
// Anti-hyper-nuclei
|
||||
#include "G4AntiDoubleHyperDoubleNeutron.hh"
|
||||
#include "G4AntiDoubleHyperH4.hh"
|
||||
#include "G4AntiHyperAlpha.hh"
|
||||
#include "G4AntiHyperH4.hh"
|
||||
#include "G4AntiHyperHe5.hh"
|
||||
#include "G4AntiHyperTriton.hh"
|
||||
|
||||
G4IonConstructor::G4IonConstructor()
|
||||
{
|
||||
@@ -54,10 +68,10 @@ G4IonConstructor::~G4IonConstructor()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void G4IonConstructor::ConstructParticle()
|
||||
{
|
||||
ConstructLightIons();
|
||||
ConstructHyperNuclei();
|
||||
}
|
||||
|
||||
void G4IonConstructor::ConstructLightIons()
|
||||
@@ -76,3 +90,19 @@ void G4IonConstructor::ConstructLightIons()
|
||||
G4GenericIon::GenericIonDefinition();
|
||||
}
|
||||
|
||||
void G4IonConstructor::ConstructHyperNuclei()
|
||||
{
|
||||
G4DoubleHyperDoubleNeutron::DoubleHyperDoubleNeutron();
|
||||
G4DoubleHyperH4::DoubleHyperH4();
|
||||
G4HyperAlpha::HyperAlpha();
|
||||
G4HyperH4::HyperH4();
|
||||
G4HyperHe5::HyperHe5();
|
||||
G4HyperTriton::HyperTriton();
|
||||
|
||||
G4AntiDoubleHyperDoubleNeutron::AntiDoubleHyperDoubleNeutron();
|
||||
G4AntiDoubleHyperH4::AntiDoubleHyperH4();
|
||||
G4AntiHyperAlpha::AntiHyperAlpha();
|
||||
G4AntiHyperH4::AntiHyperH4();
|
||||
G4AntiHyperHe5::AntiHyperHe5();
|
||||
G4AntiHyperTriton::AntiHyperTriton();
|
||||
}
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
#include "G4AutoLock.hh"
|
||||
|
||||
class G4ProcessManager;
|
||||
class G4VTrackingManager;
|
||||
|
||||
class G4PDefData
|
||||
{
|
||||
@@ -76,6 +77,7 @@ class G4PDefData
|
||||
void initialize();
|
||||
|
||||
G4ProcessManager* theProcessManager = nullptr;
|
||||
G4VTrackingManager* theTrackingManager = nullptr;
|
||||
};
|
||||
|
||||
class G4PDefManager
|
||||
|
||||
@@ -53,6 +53,7 @@ class G4ProcessManager;
|
||||
class G4DecayTable;
|
||||
class G4ParticleTable;
|
||||
class G4ParticlePropertyTable;
|
||||
class G4VTrackingManager;
|
||||
|
||||
using G4ParticleDefinitionSubInstanceManager = G4PDefManager;
|
||||
|
||||
@@ -162,6 +163,11 @@ class G4ParticleDefinition
|
||||
// Set/Get Process Manager
|
||||
// !! Process Manager can be modified !!
|
||||
|
||||
G4VTrackingManager* GetTrackingManager() const;
|
||||
void SetTrackingManager(G4VTrackingManager* aTrackingManager);
|
||||
// Set/Get Tracking Manager; nullptr means the default
|
||||
// !! Tracking Manager can be modified !!
|
||||
|
||||
inline G4ParticleTable* GetParticleTable() const;
|
||||
// Get pointer to the particle table
|
||||
|
||||
@@ -208,6 +214,21 @@ class G4ParticleDefinition
|
||||
void SetParticleDefinitionID(G4int id=-1);
|
||||
inline G4int GetParticleDefinitionID() const;
|
||||
|
||||
inline G4bool IsHypernucleus() const;
|
||||
inline G4int GetNumberOfLambdasInHypernucleus() const;
|
||||
inline G4bool IsAntiHypernucleus() const;
|
||||
inline G4int GetNumberOfAntiLambdasInAntiHypernucleus() const;
|
||||
// The first two methods return "false" and 0, respectively,
|
||||
// if the particle is not an hypernucleus; else, they return
|
||||
// "true" and the number of Lambdas bound in the nucleus.
|
||||
// Similarly, the last two methods return "false" and 0,
|
||||
// respectively, if the particle is not an anti-hypernucleus;
|
||||
// else, they return "true" and the number of anti-Lambdas
|
||||
// bound in the anti-nucleus.
|
||||
// Notice that, for the time being, we are assuming that
|
||||
// (anti-)Lambda is the only type of (anti-)hyperon present
|
||||
// in all (anti-)hypernuclei.
|
||||
|
||||
protected:
|
||||
|
||||
G4ParticleDefinition();
|
||||
|
||||
@@ -212,3 +212,35 @@ G4int G4ParticleDefinition::GetParticleDefinitionID() const
|
||||
{
|
||||
return g4particleDefinitionInstanceID;
|
||||
}
|
||||
|
||||
inline
|
||||
G4bool G4ParticleDefinition::IsHypernucleus() const
|
||||
{
|
||||
if ( GetNumberOfLambdasInHypernucleus() > 0 ) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ParticleDefinition::GetNumberOfLambdasInHypernucleus() const
|
||||
{
|
||||
// PDG code of hypernuclei: 10LZZZAAAI
|
||||
G4int numberOfLambdas = 0;
|
||||
if ( thePDGEncoding > 0 ) numberOfLambdas = (thePDGEncoding/10000000)%100;
|
||||
return numberOfLambdas;
|
||||
}
|
||||
|
||||
inline
|
||||
G4bool G4ParticleDefinition::IsAntiHypernucleus() const
|
||||
{
|
||||
if ( GetNumberOfAntiLambdasInAntiHypernucleus() > 0 ) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4ParticleDefinition::GetNumberOfAntiLambdasInAntiHypernucleus() const
|
||||
{
|
||||
// PDG code of anti-hypernuclei: -10LZZZAAAI
|
||||
G4int numberOfAntiLambdas = 0;
|
||||
if ( thePDGEncoding < 0 ) numberOfAntiLambdas = (std::abs(thePDGEncoding)/10000000)%100;
|
||||
return numberOfAntiLambdas;
|
||||
}
|
||||
|
||||
@@ -70,10 +70,7 @@ class G4ParticlePropertyMessenger : public G4UImessenger
|
||||
|
||||
private:
|
||||
|
||||
G4ParticleDefinition* SetCurrentParticle();
|
||||
|
||||
G4ParticleTable* theParticleTable = nullptr;
|
||||
G4ParticleDefinition* currentParticle = nullptr;
|
||||
|
||||
G4UIdirectory* thisDirectory = nullptr;
|
||||
G4UIcmdWithoutParameter* dumpCmd = nullptr;
|
||||
|
||||
@@ -43,7 +43,7 @@ class G4PhaseSpaceDecayChannel : public G4VDecayChannel
|
||||
{
|
||||
public:
|
||||
|
||||
enum { MAX_N_DAUGHTERS=4 };
|
||||
enum { MAX_N_DAUGHTERS=5 };
|
||||
|
||||
G4PhaseSpaceDecayChannel(G4int Verbose = 1);
|
||||
G4PhaseSpaceDecayChannel(const G4String& theParentName,
|
||||
@@ -52,7 +52,8 @@ class G4PhaseSpaceDecayChannel : public G4VDecayChannel
|
||||
const G4String& theDaughterName1,
|
||||
const G4String& theDaughterName2 = "",
|
||||
const G4String& theDaughterName3 = "",
|
||||
const G4String& theDaughterName4 = "" );
|
||||
const G4String& theDaughterName4 = "",
|
||||
const G4String& theDaughterName5 = "" );
|
||||
// Constructors
|
||||
|
||||
virtual ~G4PhaseSpaceDecayChannel();
|
||||
|
||||
@@ -58,7 +58,8 @@ class G4VDecayChannel
|
||||
const G4String& theDaughterName1,
|
||||
const G4String& theDaughterName2 = "",
|
||||
const G4String& theDaughterName3 = "",
|
||||
const G4String& theDaughterName4 = "" );
|
||||
const G4String& theDaughterName4 = "",
|
||||
const G4String& theDaughterName5 = "" );
|
||||
// Constructors
|
||||
|
||||
virtual ~G4VDecayChannel();
|
||||
|
||||
@@ -189,7 +189,7 @@ G4ParticleDefinition* G4DecayTableMessenger::SetCurrentParticle()
|
||||
|
||||
G4String G4DecayTableMessenger::GetCurrentValue(G4UIcommand* command)
|
||||
{
|
||||
G4String returnValue('\0');
|
||||
G4String returnValue(1,'\0');
|
||||
|
||||
if (SetCurrentParticle() == nullptr)
|
||||
{
|
||||
|
||||
@@ -1357,7 +1357,7 @@ G4bool G4IonTable::IsLightIon(const G4ParticleDefinition* particle) const
|
||||
= { "proton", "alpha", "deuteron", "triton", "He3"};
|
||||
|
||||
// Return true if the particle is pre-defined ion
|
||||
return std::find(names, names+5, particle->GetParticleName())!=names+5;
|
||||
return std::find(names, names+5, (particle->GetParticleName()).c_str())!=names+5;
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
@@ -1369,7 +1369,7 @@ G4bool G4IonTable::IsLightAntiIon(const G4ParticleDefinition* particle) const
|
||||
= { "anti_proton", "anti_alpha", "anti_deuteron", "anti_triton", "anti_He3"};
|
||||
|
||||
// Return true if the particle is pre-defined ion
|
||||
return std::find(names, names+5, particle->GetParticleName())!=names+5;
|
||||
return std::find(names, names+5, (particle->GetParticleName()).c_str())!=names+5;
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
@@ -409,7 +409,7 @@ G4NuclideTable::StripFloatLevelBase( const G4String& sFLB )
|
||||
G4Exception( "G4NuclideTable", "PART70002", FatalException, text );
|
||||
}
|
||||
G4Ions::G4FloatLevelBase flb = noFloat;
|
||||
if ( !(sFLB == '-') )
|
||||
if ( !(sFLB == "-") )
|
||||
{
|
||||
flb = G4Ions::FloatLevelBase( sFLB.back() );
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
void G4PDefData::initialize()
|
||||
{
|
||||
theProcessManager = nullptr;
|
||||
theTrackingManager = nullptr;
|
||||
}
|
||||
|
||||
G4int& G4PDefManager::slavetotalspace()
|
||||
|
||||
@@ -53,6 +53,7 @@ G4PDefManager G4ParticleDefinition::subInstanceManager;
|
||||
// in the class G4PDefData.
|
||||
//
|
||||
#define G4MT_pmanager ((subInstanceManager.offset()[g4particleDefinitionInstanceID]).theProcessManager)
|
||||
#define G4MT_tmanager ((subInstanceManager.offset()[g4particleDefinitionInstanceID]).theTrackingManager)
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
G4ParticleDefinition::G4ParticleDefinition(
|
||||
@@ -240,6 +241,13 @@ G4ProcessManager* G4ParticleDefinition::GetProcessManager() const
|
||||
return G4MT_pmanager;
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
G4VTrackingManager* G4ParticleDefinition::GetTrackingManager() const
|
||||
{
|
||||
if(g4particleDefinitionInstanceID<0) return nullptr;
|
||||
return G4MT_tmanager;
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
G4int G4ParticleDefinition::FillQuarkContents()
|
||||
{
|
||||
@@ -474,3 +482,22 @@ void G4ParticleDefinition::SetProcessManager(G4ProcessManager* aProcessManager)
|
||||
}
|
||||
G4MT_pmanager = aProcessManager;
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
void G4ParticleDefinition::SetTrackingManager(G4VTrackingManager* aTrackingManager)
|
||||
{
|
||||
if(g4particleDefinitionInstanceID<0 && !isGeneralIon)
|
||||
{
|
||||
if(G4Threading::G4GetThreadId() >= 0)
|
||||
{
|
||||
G4ExceptionDescription ed;
|
||||
ed << "TrackingManager is being set to " << theParticleName
|
||||
<< " without proper initialization of TLS pointer vector.\n"
|
||||
<< "This operation is thread-unsafe.";
|
||||
G4Exception("G4ParticleDefintion::SetTrackingManager",
|
||||
"PART10118", JustWarning, ed);
|
||||
}
|
||||
SetParticleDefinitionID();
|
||||
}
|
||||
G4MT_tmanager = aTrackingManager;
|
||||
}
|
||||
|
||||
@@ -107,7 +107,10 @@ G4ParticlePropertyMessenger::~G4ParticlePropertyMessenger()
|
||||
void G4ParticlePropertyMessenger::
|
||||
SetNewValue(G4UIcommand* command, G4String newValue)
|
||||
{
|
||||
if (SetCurrentParticle() == nullptr)
|
||||
G4ParticleDefinition* currentParticle
|
||||
= const_cast<G4ParticleDefinition*>(theParticleTable->GetSelectedParticle());
|
||||
|
||||
if (currentParticle == nullptr)
|
||||
{
|
||||
G4cout << "Particle is not selected yet !! Command ignored." << G4endl;
|
||||
return;
|
||||
@@ -122,7 +125,7 @@ SetNewValue(G4UIcommand* command, G4String newValue)
|
||||
else if (command == lifetimeCmd )
|
||||
{
|
||||
// Command /particle/property/lifetime
|
||||
currentParticle->SetPDGLifeTime(lifetimeCmd->GetNewDoubleValue(newValue));
|
||||
currentParticle->SetPDGLifeTime(lifetimeCmd->GetNewDoubleValue(newValue));
|
||||
|
||||
}
|
||||
else if (command == stableCmd )
|
||||
@@ -145,39 +148,16 @@ SetNewValue(G4UIcommand* command, G4String newValue)
|
||||
else if( command==verboseCmd )
|
||||
{
|
||||
// Command /particle/property/Verbose
|
||||
currentParticle->SetVerboseLevel(verboseCmd->GetNewIntValue(newValue));
|
||||
currentParticle->SetVerboseLevel(verboseCmd->GetNewIntValue(newValue));
|
||||
}
|
||||
}
|
||||
|
||||
G4ParticleDefinition* G4ParticlePropertyMessenger::SetCurrentParticle()
|
||||
{
|
||||
// Set currentParticle pointer
|
||||
|
||||
// Get particle name by asking G4ParticleMessenger via UImanager
|
||||
//
|
||||
G4String particleName
|
||||
= G4UImanager::GetUIpointer()->GetCurrentStringValue("/particle/select");
|
||||
|
||||
if ( currentParticle != nullptr )
|
||||
{
|
||||
// check whether selection is changed
|
||||
if (currentParticle->GetParticleName() != particleName)
|
||||
{
|
||||
currentParticle = theParticleTable->FindParticle(particleName);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
currentParticle = theParticleTable->FindParticle(particleName);
|
||||
}
|
||||
return currentParticle;
|
||||
}
|
||||
|
||||
G4String G4ParticlePropertyMessenger::GetCurrentValue(G4UIcommand* command)
|
||||
{
|
||||
G4String returnValue('\0');
|
||||
G4String returnValue(1,'\0');
|
||||
|
||||
if ( SetCurrentParticle() == nullptr )
|
||||
const G4ParticleDefinition* currentParticle = theParticleTable->GetSelectedParticle();
|
||||
if ( currentParticle == nullptr )
|
||||
{
|
||||
return returnValue; // no particle is selected. return null
|
||||
}
|
||||
|
||||
@@ -326,7 +326,7 @@ void G4ParticleTable::RemoveAllParticles()
|
||||
G4ParticleDefinition* G4ParticleTable::Insert(G4ParticleDefinition* particle)
|
||||
{
|
||||
// check particle name
|
||||
if ((particle == nullptr) || (GetKey(particle).isNull()))
|
||||
if ((particle == nullptr) || (GetKey(particle).empty()))
|
||||
{
|
||||
G4Exception("G4ParticleTable::Insert()",
|
||||
"PART121", FatalException,
|
||||
@@ -602,10 +602,13 @@ G4ParticleDefinition* G4ParticleTable::FindParticle(G4int aPDGEncoding )
|
||||
G4PTblEncodingDictionary* pedic = fEncodingDictionary;
|
||||
G4ParticleDefinition* particle = nullptr;
|
||||
|
||||
G4PTblEncodingDictionary::iterator it = pedic->find(aPDGEncoding );
|
||||
if (it != pedic->end())
|
||||
if (pedic)
|
||||
{
|
||||
particle = (*it).second;
|
||||
G4PTblEncodingDictionary::iterator it = pedic->find(aPDGEncoding );
|
||||
if (it != pedic->end())
|
||||
{
|
||||
particle = (*it).second;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef G4MULTITHREADED
|
||||
|
||||
@@ -51,10 +51,11 @@ G4PhaseSpaceDecayChannel(const G4String& theParentName,
|
||||
const G4String& theDaughterName1,
|
||||
const G4String& theDaughterName2,
|
||||
const G4String& theDaughterName3,
|
||||
const G4String& theDaughterName4 )
|
||||
const G4String& theDaughterName4,
|
||||
const G4String& theDaughterName5 )
|
||||
: G4VDecayChannel("Phase Space", theParentName,theBR, theNumberOfDaughters,
|
||||
theDaughterName1, theDaughterName2,
|
||||
theDaughterName3, theDaughterName4)
|
||||
theDaughterName3, theDaughterName4, theDaughterName5)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -586,6 +587,8 @@ G4DecayProducts* G4PhaseSpaceDecayChannel::ManyBodyDecayIt()
|
||||
<< " " << daughtermass[2]/GeV << G4endl;
|
||||
G4cout << "Daughter 4:" << G4MT_daughters[3]->GetParticleName()
|
||||
<< " " << daughtermass[3]/GeV << G4endl;
|
||||
G4cout << "Daughter 5:" << G4MT_daughters[4]->GetParticleName()
|
||||
<< " " << daughtermass[4]/GeV << G4endl;
|
||||
}
|
||||
#endif
|
||||
G4Exception("G4PhaseSpaceDecayChannel::ManyBodyDecayIt()",
|
||||
|
||||
@@ -63,7 +63,8 @@ G4VDecayChannel::G4VDecayChannel(const G4String& aName,
|
||||
const G4String& theDaughterName1,
|
||||
const G4String& theDaughterName2,
|
||||
const G4String& theDaughterName3,
|
||||
const G4String& theDaughterName4 )
|
||||
const G4String& theDaughterName4,
|
||||
const G4String& theDaughterName5 )
|
||||
: kinematics_name(aName), rbranch(theBR), parent_polarization(),
|
||||
numberOfDaughters(theNumberOfDaughters)
|
||||
{
|
||||
@@ -85,6 +86,7 @@ G4VDecayChannel::G4VDecayChannel(const G4String& aName,
|
||||
if (numberOfDaughters>1) daughters_name[1] = new G4String(theDaughterName2);
|
||||
if (numberOfDaughters>2) daughters_name[2] = new G4String(theDaughterName3);
|
||||
if (numberOfDaughters>3) daughters_name[3] = new G4String(theDaughterName4);
|
||||
if (numberOfDaughters>4) daughters_name[4] = new G4String(theDaughterName5);
|
||||
|
||||
if (rbranch <0. ) rbranch = 0.0;
|
||||
else if (rbranch >1.0 ) rbranch = 1.0;
|
||||
|
||||
@@ -71,8 +71,8 @@ void G4HtmlPPReporter::SparseOption(const G4String& option)
|
||||
|
||||
// 1st option : base directory
|
||||
baseDir = savedToken();
|
||||
if (!baseDir.isNull()) {
|
||||
if(baseDir(baseDir.length()-1)!='/') {
|
||||
if (!baseDir.empty()) {
|
||||
if(baseDir.back()!='/') {
|
||||
baseDir += "/";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,8 +73,8 @@ void G4TextPPReporter::SparseOption(const G4String& option)
|
||||
|
||||
// 1st option : base directory
|
||||
baseDir = savedToken();
|
||||
if (!baseDir.isNull()) {
|
||||
if(baseDir(baseDir.length()-1)!='/') {
|
||||
if (!baseDir.empty()) {
|
||||
if(baseDir.back()!='/') {
|
||||
baseDir += "/";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,8 +79,8 @@ void G4TextPPRetriever::SparseOption(const G4String& option)
|
||||
|
||||
// 1st option : base directory
|
||||
baseDir = savedToken();
|
||||
if (!baseDir.isNull()) {
|
||||
if(baseDir(baseDir.length()-1)!='/') {
|
||||
if (!baseDir.empty()) {
|
||||
if(baseDir.back()!='/') {
|
||||
baseDir += "/";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user