Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
ef9e90de
Commit
ef9e90de
authored
4 years ago
by
Marko Petric
Browse files
Options
Downloads
Patches
Plain Diff
Drop G4SystemOfUnits in favour of CLHEP/Units/SystemOfUnits.h
parent
0c5e2d96
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DDG4/lcio/LCIOConversions.cpp
+1
-1
1 addition, 1 deletion
DDG4/lcio/LCIOConversions.cpp
DDG4/plugins/Geant4ExtraParticles.cpp
+6
-4
6 additions, 4 deletions
DDG4/plugins/Geant4ExtraParticles.cpp
with
7 additions
and
5 deletions
DDG4/lcio/LCIOConversions.cpp
+
1
−
1
View file @
ef9e90de
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#include
"UTIL/Operators.h"
#include
"UTIL/Operators.h"
#include
"UTIL/ILDConf.h"
#include
"UTIL/ILDConf.h"
#include
<G4
SystemOfUnits.h
h>
#include
"CLHEP/Units/
SystemOfUnits.h
"
using
namespace
std
;
using
namespace
std
;
using
namespace
lcio
;
using
namespace
lcio
;
...
...
This diff is collapsed.
Click to expand it.
DDG4/plugins/Geant4ExtraParticles.cpp
+
6
−
4
View file @
ef9e90de
...
@@ -24,10 +24,12 @@
...
@@ -24,10 +24,12 @@
#include
"G4ParticleTable.hh"
#include
"G4ParticleTable.hh"
#include
"G4ParticleDefinition.hh"
#include
"G4ParticleDefinition.hh"
#include
"G4SystemOfUnits.hh"
#include
"G4PhysicalConstants.hh"
#include
"G4PhysicalConstants.hh"
#include
"G4Version.hh"
#include
"G4Version.hh"
#include
"CLHEP/Units/SystemOfUnits.h"
#include
"CLHEP/Units/PhysicalConstants.h"
#include
<fstream>
#include
<fstream>
#include
<sstream>
#include
<sstream>
#include
<string>
#include
<string>
...
@@ -91,18 +93,18 @@ void Geant4ExtraParticles::constructParticle(Constructor& ) {
...
@@ -91,18 +93,18 @@ void Geant4ExtraParticles::constructParticle(Constructor& ) {
if
(
width
<
0
)
width
=
0
;
if
(
width
<
0
)
width
=
0
;
// normalize to G4 units
// normalize to G4 units
mass
*=
GeV
;
mass
*=
CLHEP
::
GeV
;
if
(
charge
!=
0
)
{
if
(
charge
!=
0
)
{
charge
/=
3.
;
charge
/=
3.
;
}
}
if
(
lifetime
>
0
)
{
if
(
lifetime
>
0
)
{
lifetime
=
lifetime
*
mm
/
c_light
;
lifetime
=
lifetime
*
CLHEP
::
mm
/
CLHEP
::
c_light
;
}
}
if
(
width
==
0
&&
lifetime
>
0
)
{
if
(
width
==
0
&&
lifetime
>
0
)
{
width
=
hbar_Planck
/
lifetime
;
width
=
CLHEP
::
hbar_Planck
/
lifetime
;
}
}
// don't add if the particle already exists
// don't add if the particle already exists
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment