IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pranav Sampathkumar
corsika
Commits
0374517f
Commit
0374517f
authored
6 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
fixed merging but, improved printout
parent
a591bff9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Framework/Utilities/COMBoost.cc
+6
-5
6 additions, 5 deletions
Framework/Utilities/COMBoost.cc
Framework/Utilities/testCOMBoost.cc
+119
-35
119 additions, 35 deletions
Framework/Utilities/testCOMBoost.cc
Processes/Sibyll/Interaction.h
+9
-42
9 additions, 42 deletions
Processes/Sibyll/Interaction.h
with
134 additions
and
82 deletions
Framework/Utilities/COMBoost.cc
+
6
−
5
View file @
0374517f
...
@@ -49,8 +49,8 @@ COMBoost<FourVector>::COMBoost(const FourVector& Pprojectile, const FourVector&
...
@@ -49,8 +49,8 @@ COMBoost<FourVector>::COMBoost(const FourVector& Pprojectile, const FourVector&
//~ double const coshEta = 1 / std::sqrt((1-beta*beta));
//~ double const coshEta = 1 / std::sqrt((1-beta*beta));
double
const
sinhEta
=
-
beta
*
coshEta
;
double
const
sinhEta
=
-
beta
*
coshEta
;
std
::
cout
<<
"COMBoost (1-beta)="
<<
1
-
beta
<<
" gamma="
<<
coshEta
<<
std
::
endl
;
std
::
cout
<<
"COMBoost (1-beta)="
<<
1
-
beta
<<
" gamma="
<<
coshEta
<<
std
::
endl
;
fBoost
<<
coshEta
,
sinhEta
,
sinhEta
,
coshEta
;
fBoost
<<
coshEta
,
sinhEta
,
sinhEta
,
coshEta
;
fInverseBoost
<<
coshEta
,
-
sinhEta
,
-
sinhEta
,
coshEta
;
fInverseBoost
<<
coshEta
,
-
sinhEta
,
-
sinhEta
,
coshEta
;
...
@@ -80,8 +80,9 @@ FourVector COMBoost<FourVector>::fromCoM(const FourVector& p) const {
...
@@ -80,8 +80,9 @@ FourVector COMBoost<FourVector>::fromCoM(const FourVector& p) const {
(
p
.
GetSpaceLikeComponents
().
GetComponents
().
eVector
(
2
)
*
(
1
/
1
_GeV
).
magnitude
());
(
p
.
GetSpaceLikeComponents
().
GetComponents
().
eVector
(
2
)
*
(
1
/
1
_GeV
).
magnitude
());
std
::
cout
<<
"COMBoost::fromCoM Ecm="
<<
p
.
GetTimeLikeComponent
()
/
1
_GeV
<<
"GeV, "
std
::
cout
<<
"COMBoost::fromCoM Ecm="
<<
p
.
GetTimeLikeComponent
()
/
1
_GeV
<<
"GeV, "
<<
" pcm="
<<
p
.
GetSpaceLikeComponents
().
GetComponents
()
/
1
_GeV
<<
"GeV"
<<
std
::
endl
;
<<
" pcm="
<<
p
.
GetSpaceLikeComponents
().
GetComponents
()
/
1
_GeV
<<
"GeV"
<<
std
::
endl
;
auto
const
boostedZ
=
fInverseBoost
*
com
;
auto
const
boostedZ
=
fInverseBoost
*
com
;
auto
const
E_lab
=
boostedZ
(
0
)
*
1
_GeV
;
auto
const
E_lab
=
boostedZ
(
0
)
*
1
_GeV
;
...
@@ -90,7 +91,7 @@ FourVector COMBoost<FourVector>::fromCoM(const FourVector& p) const {
...
@@ -90,7 +91,7 @@ FourVector COMBoost<FourVector>::fromCoM(const FourVector& p) const {
pLab
.
eVector
=
fRotation
.
transpose
()
*
pLab
.
eVector
;
pLab
.
eVector
=
fRotation
.
transpose
()
*
pLab
.
eVector
;
std
::
cout
<<
"COMBoost::fromCoM --> Elab="
<<
E_lab
/
1
_GeV
<<
"GeV, "
std
::
cout
<<
"COMBoost::fromCoM --> Elab="
<<
E_lab
/
1
_GeV
<<
"GeV, "
<<
" pcm="
<<
pLab
/
1
_GeV
<<
"GeV"
<<
std
::
endl
;
<<
" pcm="
<<
pLab
/
1
_GeV
<<
"GeV"
<<
std
::
endl
;
return
FourVector
(
E_lab
,
corsika
::
geometry
::
Vector
(
fCS
,
pLab
));
return
FourVector
(
E_lab
,
corsika
::
geometry
::
Vector
(
fCS
,
pLab
));
}
}
...
...
This diff is collapsed.
Click to expand it.
Framework/Utilities/testCOMBoost.cc
+
119
−
35
View file @
0374517f
...
@@ -41,46 +41,130 @@ TEST_CASE("boosts") {
...
@@ -41,46 +41,130 @@ TEST_CASE("boosts") {
return
E
*
E
-
p
.
squaredNorm
();
return
E
*
E
-
p
.
squaredNorm
();
};
};
// define projectile kinematics in lab frame
HEPMassType
const
projectileMass
=
1.
_GeV
;
Vector
<
hepmomentum_d
>
pProjectileLab
{
rootCS
,
{
0
_GeV
,
1
_PeV
,
0
_GeV
}};
HEPEnergyType
const
eProjectileLab
=
energy
(
projectileMass
,
pProjectileLab
);
const
FourVector
PprojLab
(
eProjectileLab
,
pProjectileLab
);
// define target kinematics in lab frame
// define target kinematics in lab frame
HEPMassType
const
targetMass
=
1
_GeV
;
HEPMassType
const
targetMass
=
1
_GeV
;
Vector
<
hepmomentum_d
>
pTargetLab
{
rootCS
,
{
0
_eV
,
0
_eV
,
0
_eV
}};
Vector
<
hepmomentum_d
>
pTargetLab
{
rootCS
,
{
0
_eV
,
0
_eV
,
0
_eV
}};
HEPEnergyType
const
eTargetLab
=
energy
(
targetMass
,
pTargetLab
);
HEPEnergyType
const
eTargetLab
=
energy
(
targetMass
,
pTargetLab
);
// define boost to com frame
SECTION
(
"General tests"
)
{
COMBoost
boost
(
PprojLab
,
FourVector
(
targetMass
,
pTargetLab
));
// define projectile kinematics in lab frame
// boost projecticle
HEPMassType
const
projectileMass
=
1.
_GeV
;
auto
const
PprojCoM
=
boost
.
toCoM
(
PprojLab
);
Vector
<
hepmomentum_d
>
pProjectileLab
{
rootCS
,
{
0
_GeV
,
1
_PeV
,
0
_GeV
}};
HEPEnergyType
const
eProjectileLab
=
energy
(
projectileMass
,
pProjectileLab
);
// boost target
const
FourVector
PprojLab
(
eProjectileLab
,
pProjectileLab
);
auto
const
PtargCoM
=
boost
.
toCoM
(
FourVector
(
targetMass
,
pTargetLab
));
// define boost to com frame
// sum of momenta in CoM, should be 0
COMBoost
boost
(
PprojLab
,
FourVector
(
targetMass
,
pTargetLab
));
auto
const
sumPCoM
=
PprojCoM
.
GetSpaceLikeComponents
()
+
PtargCoM
.
GetSpaceLikeComponents
();
// boost projecticle
CHECK
(
sumPCoM
.
norm
()
/
1
_GeV
==
Approx
(
0
).
margin
(
absMargin
));
auto
const
PprojCoM
=
boost
.
toCoM
(
PprojLab
);
// mandelstam-s should be invariant under transformation
// boost target
CHECK
(
s
(
eProjectileLab
+
eTargetLab
,
auto
const
PtargCoM
=
boost
.
toCoM
(
FourVector
(
targetMass
,
pTargetLab
));
pProjectileLab
.
GetComponents
()
+
pTargetLab
.
GetComponents
())
/
1
_GeV
/
1
_GeV
==
// sum of momenta in CoM, should be 0
Approx
(
s
(
PprojCoM
.
GetTimeLikeComponent
()
+
PtargCoM
.
GetTimeLikeComponent
(),
auto
const
sumPCoM
=
PprojCoM
.
GetSpaceLikeComponents
().
GetComponents
()
+
PprojCoM
.
GetSpaceLikeComponents
()
+
PtargCoM
.
GetSpaceLikeComponents
();
PtargCoM
.
GetSpaceLikeComponents
().
GetComponents
())
/
CHECK
(
sumPCoM
.
norm
()
/
1
_GeV
==
Approx
(
0
).
margin
(
absMargin
));
1
_GeV
/
1
_GeV
));
// mandelstam-s should be invariant under transformation
// boost back...
CHECK
(
s
(
eProjectileLab
+
eTargetLab
,
auto
const
PprojBack
=
boost
.
fromCoM
(
PprojCoM
);
pProjectileLab
.
GetComponents
()
+
pTargetLab
.
GetComponents
())
/
1
_GeV
/
1
_GeV
==
// ...should yield original values before the boosts
Approx
(
s
(
PprojCoM
.
GetTimeLikeComponent
()
+
PtargCoM
.
GetTimeLikeComponent
(),
CHECK
(
PprojBack
.
GetTimeLikeComponent
()
/
PprojLab
.
GetTimeLikeComponent
()
==
Approx
(
1
));
PprojCoM
.
GetSpaceLikeComponents
().
GetComponents
()
+
CHECK
((
PprojBack
.
GetSpaceLikeComponents
()
-
PprojLab
.
GetSpaceLikeComponents
()).
norm
()
/
PtargCoM
.
GetSpaceLikeComponents
().
GetComponents
())
/
1
_GeV
/
1
_GeV
));
// boost back...
auto
const
PprojBack
=
boost
.
fromCoM
(
PprojCoM
);
// ...should yield original values before the boosts
CHECK
(
PprojBack
.
GetTimeLikeComponent
()
/
PprojLab
.
GetTimeLikeComponent
()
==
Approx
(
1
));
CHECK
(
(
PprojBack
.
GetSpaceLikeComponents
()
-
PprojLab
.
GetSpaceLikeComponents
()).
norm
()
/
PprojLab
.
GetSpaceLikeComponents
().
norm
()
==
PprojLab
.
GetSpaceLikeComponents
().
norm
()
==
Approx
(
0
).
margin
(
absMargin
));
Approx
(
0
).
margin
(
absMargin
));
}
SECTION
(
"Test boost along z-axis"
)
{
// define projectile kinematics in lab frame
HEPMassType
const
projectileMass
=
1
_GeV
;
Vector
<
hepmomentum_d
>
pProjectileLab
{
rootCS
,
{
0
_GeV
,
0
_PeV
,
-
1
_PeV
}};
HEPEnergyType
const
eProjectileLab
=
energy
(
projectileMass
,
pProjectileLab
);
const
FourVector
PprojLab
(
eProjectileLab
,
pProjectileLab
);
// define boost to com frame
COMBoost
boost
(
PprojLab
,
FourVector
(
targetMass
,
pTargetLab
));
// boost projecticle
auto
const
PprojCoM
=
boost
.
toCoM
(
PprojLab
);
// boost target
auto
const
PtargCoM
=
boost
.
toCoM
(
FourVector
(
targetMass
,
pTargetLab
));
// sum of momenta in CoM, should be 0
auto
const
sumPCoM
=
PprojCoM
.
GetSpaceLikeComponents
()
+
PtargCoM
.
GetSpaceLikeComponents
();
CHECK
(
sumPCoM
.
norm
()
/
1
_GeV
==
Approx
(
0
).
margin
(
absMargin
));
}
SECTION
(
"Test boost along tilted axis"
)
{
const
HEPMomentumType
P0
=
1
_PeV
;
double
theta
=
33.
;
double
phi
=
-
10.
;
auto
momentumComponents
=
[](
double
theta
,
double
phi
,
HEPMomentumType
ptot
)
{
return
std
::
make_tuple
(
ptot
*
sin
(
theta
)
*
cos
(
phi
),
ptot
*
sin
(
theta
)
*
sin
(
phi
),
-
ptot
*
cos
(
theta
));
};
auto
const
[
px
,
py
,
pz
]
=
momentumComponents
(
theta
/
180.
*
M_PI
,
phi
/
180.
*
M_PI
,
P0
);
// define projectile kinematics in lab frame
HEPMassType
const
projectileMass
=
1
_GeV
;
Vector
<
hepmomentum_d
>
pProjectileLab
(
rootCS
,
{
px
,
py
,
pz
});
HEPEnergyType
const
eProjectileLab
=
energy
(
projectileMass
,
pProjectileLab
);
const
FourVector
PprojLab
(
eProjectileLab
,
pProjectileLab
);
// define boost to com frame
COMBoost
boost
(
PprojLab
,
FourVector
(
targetMass
,
pTargetLab
));
// boost projecticle
auto
const
PprojCoM
=
boost
.
toCoM
(
PprojLab
);
// boost target
auto
const
PtargCoM
=
boost
.
toCoM
(
FourVector
(
targetMass
,
pTargetLab
));
// sum of momenta in CoM, should be 0
auto
const
sumPCoM
=
PprojCoM
.
GetSpaceLikeComponents
()
+
PtargCoM
.
GetSpaceLikeComponents
();
CHECK
(
sumPCoM
.
norm
()
/
1
_GeV
==
Approx
(
0
).
margin
(
absMargin
));
}
SECTION
(
"High energy"
)
{
// define projectile kinematics in lab frame
HEPMassType
const
projectileMass
=
1
_GeV
;
HEPMomentumType
P0
=
1
_ZeV
;
Vector
<
hepmomentum_d
>
pProjectileLab
{
rootCS
,
{
0
_GeV
,
0
_PeV
,
-
P0
}};
HEPEnergyType
const
eProjectileLab
=
energy
(
projectileMass
,
pProjectileLab
);
const
FourVector
PprojLab
(
eProjectileLab
,
pProjectileLab
);
// define boost to com frame
COMBoost
boost
(
PprojLab
,
FourVector
(
targetMass
,
pTargetLab
));
// boost projecticle
auto
const
PprojCoM
=
boost
.
toCoM
(
PprojLab
);
// boost target
auto
const
PtargCoM
=
boost
.
toCoM
(
FourVector
(
targetMass
,
pTargetLab
));
// sum of momenta in CoM, should be 0
auto
const
sumPCoM
=
PprojCoM
.
GetSpaceLikeComponents
()
+
PtargCoM
.
GetSpaceLikeComponents
();
CHECK
(
sumPCoM
.
norm
()
/
P0
==
Approx
(
0
).
margin
(
absMargin
));
// MAKE RELATIVE CHECK
}
}
}
This diff is collapsed.
Click to expand it.
Processes/Sibyll/Interaction.h
+
9
−
42
View file @
0374517f
...
@@ -168,9 +168,9 @@ namespace corsika::process::sibyll {
...
@@ -168,9 +168,9 @@ namespace corsika::process::sibyll {
/**
/**
In this function SIBYLL is called to produce one event. The
In this function SIBYLL is called to produce one event. The
event is copied (and boosted) into the shower lab frame.
event is copied (and boosted) into the shower lab frame.
*/
*/
template
<
typename
Particle
,
typename
Stack
>
template
<
typename
Particle
,
typename
Stack
>
corsika
::
process
::
EProcessReturn
DoInteraction
(
Particle
&
p
,
Stack
&
s
)
{
corsika
::
process
::
EProcessReturn
DoInteraction
(
Particle
&
p
,
Stack
&
s
)
{
...
@@ -184,8 +184,7 @@ namespace corsika::process::sibyll {
...
@@ -184,8 +184,7 @@ namespace corsika::process::sibyll {
const
auto
corsikaBeamId
=
p
.
GetPID
();
const
auto
corsikaBeamId
=
p
.
GetPID
();
cout
<<
"ProcessSibyll: "
cout
<<
"ProcessSibyll: "
<<
"DoInteraction: "
<<
corsikaBeamId
<<
" interaction? "
<<
"DoInteraction: "
<<
corsikaBeamId
<<
" interaction? "
<<
process
::
sibyll
::
CanInteract
(
corsikaBeamId
)
<<
process
::
sibyll
::
CanInteract
(
corsikaBeamId
)
<<
endl
;
<<
endl
;
if
(
process
::
sibyll
::
CanInteract
(
corsikaBeamId
))
{
if
(
process
::
sibyll
::
CanInteract
(
corsikaBeamId
))
{
const
CoordinateSystem
&
rootCS
=
const
CoordinateSystem
&
rootCS
=
RootCoordinateSystem
::
GetInstance
().
GetRootCoordinateSystem
();
RootCoordinateSystem
::
GetInstance
().
GetRootCoordinateSystem
();
...
@@ -198,30 +197,24 @@ namespace corsika::process::sibyll {
...
@@ -198,30 +197,24 @@ namespace corsika::process::sibyll {
// for Sibyll is always a single nucleon
// for Sibyll is always a single nucleon
auto
constexpr
nucleon_mass
=
0.5
*
(
corsika
::
particles
::
Proton
::
GetMass
()
+
auto
constexpr
nucleon_mass
=
0.5
*
(
corsika
::
particles
::
Proton
::
GetMass
()
+
corsika
::
particles
::
Neutron
::
GetMass
());
corsika
::
particles
::
Neutron
::
GetMass
());
<<<<<<<
HEAD
// FOR NOW: target is always at rest
// FOR NOW: target is always at rest
const
auto
eTargetLab
=
0
_GeV
+
nucleon_mass
;
const
auto
eTargetLab
=
0
_GeV
+
nucleon_mass
;
const
auto
pTargetLab
=
MomentumVector
(
rootCS
,
0
_GeV
,
0
_GeV
,
0
_GeV
);
const
auto
pTargetLab
=
MomentumVector
(
rootCS
,
0
_GeV
,
0
_GeV
,
0
_GeV
);
const
FourVector
PtargLab
(
eTargetLab
,
pTargetLab
);
const
FourVector
PtargLab
(
eTargetLab
,
pTargetLab
);
// define projectile
// define projectile
HEPEnergyType
const
eProjectileLab
=
p
.
GetEnergy
();
HEPEnergyType
const
eProjectileLab
=
p
.
GetEnergy
();
auto
const
pProjectileLab
=
p
.
GetMomentum
();
auto
const
pProjectileLab
=
p
.
GetMomentum
();
const
FourVector
PprojLab
(
eProjectileLab
,
pProjectileLab
);
cout
<<
"Interaction: ebeam lab: "
<<
eProjectileLab
/
1
_GeV
<<
endl
cout
<<
"Interaction: ebeam lab: "
<<
eProjectileLab
/
1
_GeV
<<
endl
<<
"Interaction: pbeam lab: "
<<
pProjectileLab
.
GetComponents
()
/
1
_GeV
<<
"Interaction: pbeam lab: "
<<
pProjectileLab
.
GetComponents
()
/
1
_GeV
<<
endl
;
<<
endl
;
cout
<<
"Interaction: etarget lab: "
<<
eTargetLab
/
1
_GeV
<<
endl
cout
<<
"Interaction: etarget lab: "
<<
eTargetLab
/
1
_GeV
<<
endl
<<
"Interaction: ptarget lab: "
<<
pTargetLab
.
GetComponents
()
/
1
_GeV
<<
"Interaction: ptarget lab: "
<<
pTargetLab
.
GetComponents
()
/
1
_GeV
=======
const
auto
Etarget
=
0
_GeV
+
nucleon_mass
;
const
auto
pTarget
=
MomentumVector
(
rootCS
,
0
_GeV
,
0
_GeV
,
0
_GeV
);
cout
<<
"target momentum (GeV/c): "
<<
pTarget
.
GetComponents
()
/
1
_GeV
<<
endl
;
cout
<<
"beam momentum (GeV/c): "
<<
p
.
GetMomentum
().
GetComponents
()
/
1
_GeV
>>>>>>>
4739165629
caedbec096282d6834e264b573c3b2
<<
endl
;
<<
endl
;
const
FourVector
PprojLab
(
eProjectileLab
,
pProjectileLab
);
// define target kinematics in lab frame
// define target kinematics in lab frame
// define boost to and from CoM frame
// define boost to and from CoM frame
// CoM frame definition in Sibyll projectile: +z
// CoM frame definition in Sibyll projectile: +z
...
@@ -234,7 +227,6 @@ namespace corsika::process::sibyll {
...
@@ -234,7 +227,6 @@ namespace corsika::process::sibyll {
// boost target
// boost target
auto
const
PtargCoM
=
boost
.
toCoM
(
PtargLab
);
auto
const
PtargCoM
=
boost
.
toCoM
(
PtargLab
);
<<<<<<<
HEAD
cout
<<
"Interaction: ebeam CoM: "
<<
PprojCoM
.
GetTimeLikeComponent
()
/
1
_GeV
cout
<<
"Interaction: ebeam CoM: "
<<
PprojCoM
.
GetTimeLikeComponent
()
/
1
_GeV
<<
endl
<<
endl
<<
"Interaction: pbeam CoM: "
<<
"Interaction: pbeam CoM: "
...
@@ -264,8 +256,7 @@ namespace corsika::process::sibyll {
...
@@ -264,8 +256,7 @@ namespace corsika::process::sibyll {
*/
*/
#warning reading interaction cross section again, should not be necessary
#warning reading interaction cross section again, should not be necessary
auto
const
&
compVec
=
mediumComposition
.
GetComponents
();
auto
const
&
compVec
=
mediumComposition
.
GetComponents
();
std
::
vector
<
si
::
CrossSectionType
>
cross_section_of_components
(
std
::
vector
<
si
::
CrossSectionType
>
cross_section_of_components
(
compVec
.
size
());
compVec
.
size
());
for
(
size_t
i
=
0
;
i
<
compVec
.
size
();
++
i
)
{
for
(
size_t
i
=
0
;
i
<
compVec
.
size
();
++
i
)
{
auto
const
targetId
=
compVec
[
i
];
auto
const
targetId
=
compVec
[
i
];
...
@@ -292,30 +283,6 @@ namespace corsika::process::sibyll {
...
@@ -292,30 +283,6 @@ namespace corsika::process::sibyll {
// beam id for sibyll
// beam id for sibyll
const
int
kBeam
=
process
::
sibyll
::
ConvertToSibyllRaw
(
corsikaBeamId
);
const
int
kBeam
=
process
::
sibyll
::
ConvertToSibyllRaw
(
corsikaBeamId
);
=======
auto
const
pProjectileLab
=
p
.
GetMomentum
();
//{rootCS, {0_GeV / c, 1_PeV / c, 0_GeV / c}};
HEPEnergyType
const
eProjectileLab
=
p
.
GetEnergy
();
// energy(projectileMass, pProjectileLab);
// define target kinematics in lab frame
HEPMassType
const
targetMass
=
nucleon_mass
;
// define boost to com frame
COMBoost
const
boost
(
eProjectileLab
,
pProjectileLab
,
targetMass
);
cout
<<
"Interaction: new boost: ebeam lab: "
<<
eProjectileLab
/
1
_GeV
<<
endl
<<
"Interaction: new boost: pbeam lab: "
<<
pProjectileLab
.
GetComponents
()
/
1
_GeV
<<
endl
;
// boost projecticle
auto
const
[
eProjectileCoM
,
pProjectileCoM
]
=
boost
.
toCoM
(
eProjectileLab
,
pProjectileLab
);
cout
<<
"Interaction: new boost: ebeam com: "
<<
eProjectileCoM
/
1
_GeV
<<
endl
<<
"Interaction: new boost: pbeam com: "
<<
pProjectileCoM
/
1
_GeV
<<
endl
;
int
kBeam
=
process
::
sibyll
::
ConvertToSibyllRaw
(
p
.
GetPID
());
>>>>>>>
4739165629
caedbec096282d6834e264b573c3b2
std
::
cout
<<
"Interaction: "
std
::
cout
<<
"Interaction: "
<<
" DoInteraction: E(GeV):"
<<
eProjectileLab
/
1
_GeV
<<
" DoInteraction: E(GeV):"
<<
eProjectileLab
/
1
_GeV
...
@@ -323,7 +290,7 @@ namespace corsika::process::sibyll {
...
@@ -323,7 +290,7 @@ namespace corsika::process::sibyll {
if
(
eProjectileLab
<
8.5
_GeV
||
Ecm
<
10
_GeV
)
{
if
(
eProjectileLab
<
8.5
_GeV
||
Ecm
<
10
_GeV
)
{
std
::
cout
<<
"Interaction: "
std
::
cout
<<
"Interaction: "
<<
" DoInteraction: should have dropped particle.. "
<<
" DoInteraction: should have dropped particle.. "
<<
"THIS IS AN ERROR"
<<
std
::
endl
;
<<
"THIS IS AN ERROR"
<<
std
::
endl
;
// p.Delete(); delete later... different process
// p.Delete(); delete later... different process
}
else
{
}
else
{
fCount
++
;
fCount
++
;
...
...
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