src
SimG4Core
CustomPhysics
src
CMSAntiSQ.cc
Go to the documentation of this file.
1
2
#include "
SimG4Core/CustomPhysics/interface/CMSAntiSQ.h
"
3
#include "G4PhysicalConstants.hh"
4
#include "G4SystemOfUnits.hh"
5
#include "G4ParticleTable.hh"
6
7
#include "G4PhaseSpaceDecayChannel.hh"
8
#include "G4DecayTable.hh"
9
10
// ######################################################################
11
// ### ANTI-SEXAQUARK ###
12
// ######################################################################
13
14
CMSAntiSQ
*
CMSAntiSQ::theInstance
= 0;
15
16
CMSAntiSQ
*
CMSAntiSQ::Definition
(
double
mass
) {
17
if
(
theInstance
!= 0)
18
return
theInstance
;
19
const
G4String
name
=
"anti_sexaq"
;
20
// search in particle table]
21
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
22
G4ParticleDefinition* anInstance = pTable->FindParticle(
name
);
23
if
(anInstance == 0) {
24
// create particle
25
//
26
// Arguments for constructor are as follows
27
// name mass width charge
28
// 2*spin parity C-conjugation
29
// 2*Isospin 2*Isospin3 G-parity
30
// type lepton number baryon number PDG encoding
31
// stable lifetime decay table
32
// shortlived subType anti_encoding
33
34
anInstance =
new
G4ParticleDefinition(
35
name
,
mass
, 0, 0.0, 0, +1, 0, 0, 0, 0,
"baryon"
, 0, -2, -1020000020,
true
, -1.0,
nullptr
,
false
,
"sexaq"
);
36
}
37
theInstance
=
reinterpret_cast<
CMSAntiSQ
*
>
(anInstance);
38
return
theInstance
;
39
}
40
41
CMSAntiSQ
*
CMSAntiSQ::AntiSQ
(
double
mass
) {
42
return
Definition
(
mass
* GeV);
// will use correct mass if instance exists
43
}
CMSAntiSQ.h
mergeVDriftHistosByStation.name
name
Definition:
mergeVDriftHistosByStation.py:78
EgHLTOffHistBins_cfi.mass
mass
Definition:
EgHLTOffHistBins_cfi.py:34
CMSAntiSQ::AntiSQ
static CMSAntiSQ * AntiSQ(double mass)
Definition:
CMSAntiSQ.cc:41
CMSAntiSQ::Definition
static CMSAntiSQ * Definition(double mass)
Definition:
CMSAntiSQ.cc:16
CMSAntiSQ::theInstance
static CMSAntiSQ * theInstance
Definition:
CMSAntiSQ.h:14
CMSAntiSQ
Definition:
CMSAntiSQ.h:12
Generated for CMSSW Reference Manual by
1.8.14