ATLAS Offline Software
Loading...
Searching...
No Matches
ExtraParticles/src/CustomParticle.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "CustomParticle.hh"
6
7// ######################################################################
8// ### CustomParticle ###
9// ######################################################################
10
11using namespace ExtraParticles;
12
13CustomParticle::CustomParticle(const G4String &name, G4double mass,
14 G4double width, G4int charge, G4int pdg,
15 G4bool stable, G4double lifetime)
16
17 // Arguments for constructor are as follows
18 // name mass width charge
19 // 2*spin parity C-conjugation
20 // 2*Isospin 2*Isospin3 G-parity
21 // type lepton number baryon number PDG encoding
22 // stable lifetime decay table
23 // shortlived subType anti_encoding
24
25 : G4ParticleDefinition(name, mass, width, charge,
26 0, 0, 0,
27 0, 0, 0,
28 "extra", 0, 0, pdg,
29 stable, lifetime, NULL,
30 false) {}
double charge(const T &p)
Definition AtlasPID.h:997
const double width
CustomParticle(const G4String &aName, G4double mass, G4double width, G4double charge, G4int iSpin, G4int iParity, G4int iConjugation, G4int iIsospin, G4int iIsospin3, G4int gParity, const G4String &pType, G4int lepton, G4int baryon, G4int encoding, G4bool stable, G4double lifetime, G4DecayTable *decaytable)