ATLAS Offline Software
Simulation
G4Extensions
Charginos
src
AMSBCharginoPlus.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// class header
6
#include "AMSBCharginoPlus.hh"
7
// ######################################################################
8
// ### CharginoPlus ###
9
// ######################################################################
10
11
AMSBCharginoPlus* AMSBCharginoPlus::s_theInstance = NULL;
12
13
AMSBCharginoPlus* AMSBCharginoPlus::Definition(G4double
mass
, G4double
width
, G4double
charge
, G4double
PDG
, G4bool
stable
, G4double lifetime, G4bool shortlived)
14
{
15
16
if
(s_theInstance !=0 && (
mass
>=0. ||
width
>=0. || lifetime>=0.) )
17
{
18
G4ExceptionDescription
description
;
19
description
<<
"Trying to redefine the AMSB Chargino Plus properties after it has been constructed is not allowed"
;
20
G4Exception(
"AMSBCharginoPlus"
,
"FailedRedefinition"
, FatalException,
description
);
21
abort();
22
}
23
24
if
(s_theInstance != 0)
25
{
26
return
s_theInstance;
27
}
28
29
// Arguments for constructor are as follows
30
// name mass width charge
31
// 2*spin parity C-conjugation
32
// 2*Isospin 2*Isospin3 G-parity
33
// type lepton number baryon number PDG encoding
34
// stable lifetime decay table
35
// shortlived subType anti_encoding
36
if
(
mass
>= 0)
37
{
38
G4ParticleDefinition* anInstance =
39
new
G4ParticleDefinition(
"s_chi_plus_1"
,
mass
,
width
,
charge
,
40
1, 0, 0,
41
0, 0, 0,
42
"supersymmetric"
, 0, 0,
PDG
,
43
stable
, lifetime, NULL,
44
shortlived,
"CharginoPlus"
);
45
46
s_theInstance =
reinterpret_cast<
AMSBCharginoPlus*
>
(anInstance);
47
return
s_theInstance;
48
}
49
else
50
{
51
G4ExceptionDescription
description
;
52
description
<<
"Trying to create a particle with default constructor is not allowed"
;
53
G4Exception(
"AMSBCharginoPlus"
,
"DefaultConstructorCalled"
, FatalException,
description
);
54
abort();
55
}
56
}
Base_Fragment.mass
mass
Definition:
Sherpa_i/share/common/Base_Fragment.py:59
PDG20
Definition:
Trigger/TrigHypothesis/TrigBphysHypo/src/Constants.h:9
MCTruthPartClassifier::stable
@ stable
Definition:
TruthClassifiers.h:148
charge
double charge(const T &p)
Definition:
AtlasPID.h:756
Base_Fragment.width
width
Definition:
Sherpa_i/share/common/Base_Fragment.py:59
description
std::string description
glabal timer - how long have I taken so far?
Definition:
hcg.cxx:88
Generated on Mon Dec 23 2024 21:06:54 for ATLAS Offline Software by
1.8.18