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
3f199db9
Commit
3f199db9
authored
4 years ago
by
Felix Riehn
Committed by
ralfulrich
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
conex
parent
6fbd39e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
corsika/detail/modules/conex/CONEXhybrid.inl
+40
-41
40 additions, 41 deletions
corsika/detail/modules/conex/CONEXhybrid.inl
with
40 additions
and
41 deletions
corsika/detail/modules/conex/CONEXhybrid.inl
+
40
−
41
View file @
3f199db9
...
@@ -35,8 +35,7 @@ namespace corsika {
...
@@ -35,8 +35,7 @@ namespace corsika {
make_translation
(
c8cs
,
translation
.
getComponents
(
c8cs
));
make_translation
(
c8cs
,
translation
.
getComponents
(
c8cs
));
auto
const
transformCS
=
make_rotationToZ
(
intermediateCS
,
translation
);
auto
const
transformCS
=
make_rotationToZ
(
intermediateCS
,
translation
);
std
::
cout
<<
"translation C8/CONEX obs: "
<<
translation
.
getComponents
()
CORSIKA_LOG_DEBUG
(
"translation C8/CONEX obs: "
,
translation
.
getComponents
());
<<
std
::
endl
;
/*
/*
auto const transform = CoordinateSystem::getTransformation(
auto const transform = CoordinateSystem::getTransformation(
...
@@ -63,27 +62,25 @@ namespace corsika {
...
@@ -63,27 +62,25 @@ namespace corsika {
})}
})}
,
y_sf_
{
showerAxis_
.
getDirection
().
cross
(
x_sf_
)}
{
,
y_sf_
{
showerAxis_
.
getDirection
().
cross
(
x_sf_
)}
{
std
::
cout
<<
"x_sf (conexObservationCS): "
<<
x_sf_
.
getComponents
(
conexObservationCS_
)
CORSIKA_LOG_DEBUG
(
"x_sf (conexObservationCS): {}"
,
<<
std
::
endl
;
x_sf_
.
getComponents
(
conexObservationCS_
));
std
::
cout
<<
"x_sf (C8): "
<<
x_sf_
.
getComponents
(
center
.
getCoordinateSystem
())
CORSIKA_LOG_DEBUG
(
"x_sf (C8): {}"
,
x_sf_
.
getComponents
(
center
.
getCoordinateSystem
()));
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"y_sf (conexObservationCS): {}"
,
y_sf_
.
getComponents
(
conexObservationCS_
));
std
::
cout
<<
"y_sf (conexObservationCS): "
<<
y_sf_
.
getComponents
(
conexObservationCS_
)
CORSIKA_LOG_DEBUG
(
"y_sf (C8): {}"
,
y_sf_
.
getComponents
(
center
.
getCoordinateSystem
()));
<<
std
::
endl
;
std
::
cout
<<
"y_sf (C8): "
<<
y_sf_
.
getComponents
(
center
.
getCoordinateSystem
())
<<
std
::
endl
;
std
::
cout
<<
"showerAxisDirection (conexObservationCS): "
CORSIKA_LOG_DEBUG
(
"showerAxisDirection (conexObservationCS): {}"
,
<<
showerAxis_
.
getDirection
().
getComponents
(
conexObservationCS_
)
showerAxis_
.
getDirection
().
getComponents
(
conexObservationCS_
));
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
std
::
cout
<<
"showerAxisDirection (C8): "
"showerAxisDirection (C8): {}"
,
<<
showerAxis_
.
getDirection
().
getComponents
(
center
.
getCoordinateSystem
())
showerAxis_
.
getDirection
().
getComponents
(
center
.
getCoordinateSystem
()));
<<
std
::
endl
;
std
::
cout
<<
"showerCore (conexObservationCS):
"
CORSIKA_LOG_DEBUG
(
"showerCore (conexObservationCS):
{}"
,
<<
showerCore_
.
getCoordinates
(
conexObservationCS_
)
<<
std
::
endl
;
showerCore_
.
getCoordinates
(
conexObservationCS_
)
)
;
std
::
cout
<<
"showerCore (C8):
"
CORSIKA_LOG_DEBUG
(
"showerCore (C8):
{}"
,
<<
showerCore_
.
getCoordinates
(
center
.
getCoordinateSystem
())
<<
std
::
endl
;
showerCore_
.
getCoordinates
(
center
.
getCoordinateSystem
())
)
;
int
randomSeeds
[
3
]
=
{
1234
,
0
,
0
};
// will be overwritten later??
int
randomSeeds
[
3
]
=
{
1234
,
0
,
0
};
// will be overwritten later??
int
heModel
=
eSibyll23
;
int
heModel
=
eSibyll23
;
...
@@ -114,7 +111,10 @@ namespace corsika {
...
@@ -114,7 +111,10 @@ namespace corsika {
showerAxisConex
.
getX
().
magnitude
())
*
showerAxisConex
.
getX
().
magnitude
())
*
180
/
M_PI
;
180
/
M_PI
;
std
::
cout
<<
"theta (deg) = "
<<
theta
<<
"; phi (deg) = "
<<
phi
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"theta (deg) = {}"
"; phi (deg) = {}"
,
theta
,
phi
);
int
ipart
=
static_cast
<
int
>
(
primaryPDG
);
int
ipart
=
static_cast
<
int
>
(
primaryPDG
);
auto
rng
=
RNGManager
::
getInstance
().
getRandomStream
(
"cascade"
);
auto
rng
=
RNGManager
::
getInstance
().
getRandomStream
(
"cascade"
);
...
@@ -152,8 +152,8 @@ namespace corsika {
...
@@ -152,8 +152,8 @@ namespace corsika {
// EM particle
// EM particle
auto
const
egs_pid
=
it
->
second
;
auto
const
egs_pid
=
it
->
second
;
std
::
cout
<<
"position conexObs:
"
<<
position
.
getCoordinates
(
conexObservationCS_
)
CORSIKA_LOG_DEBUG
(
"position conexObs:
{}"
,
<<
std
::
endl
;
position
.
getCoordinates
(
conexObservationCS_
))
;
auto
const
coords
=
position
.
getCoordinates
(
conexObservationCS_
)
/
1
_m
;
auto
const
coords
=
position
.
getCoordinates
(
conexObservationCS_
)
/
1
_m
;
double
const
x
=
coords
[
0
].
magnitude
();
double
const
x
=
coords
[
0
].
magnitude
();
...
@@ -187,24 +187,23 @@ namespace corsika {
...
@@ -187,24 +187,23 @@ namespace corsika {
double
const
E
=
energy
/
1
_GeV
;
double
const
E
=
energy
/
1
_GeV
;
double
const
m
=
mass
/
1
_GeV
;
double
const
m
=
mass
/
1
_GeV
;
std
::
cout
<<
"CONEXhybrid: removing "
<<
egs_pid
<<
" "
<<
std
::
scientific
<<
energy
CORSIKA_LOG_DEBUG
(
"CONEXhybrid: removing {} {:5e} GeV"
,
egs_pid
,
energy
);
<<
" GeV"
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"#### parameters to cegs4_() ####"
);
std
::
cout
<<
"#### parameters to cegs4_() ####"
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"egs_pid = {}"
,
egs_pid
);
std
::
cout
<<
"egs_pid = "
<<
egs_pid
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"E = {}"
,
E
);
std
::
cout
<<
"E = "
<<
E
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"m = {}"
,
m
);
std
::
cout
<<
"m = "
<<
m
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"x = {}"
,
x
);
std
::
cout
<<
"x = "
<<
x
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"y = {}"
,
y
);
std
::
cout
<<
"y = "
<<
y
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"altitude = {}"
,
altitude
);
std
::
cout
<<
"altitude = "
<<
altitude
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"slantDistance = {}"
,
slantDistance
);
std
::
cout
<<
"slantDistance = "
<<
slantDistance
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"lateralX = {}"
,
lateralX
);
std
::
cout
<<
"lateralX = "
<<
lateralX
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"lateralY = {}"
,
lateralY
);
std
::
cout
<<
"lateralY = "
<<
lateralY
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"slantX = {}"
,
slantX
);
std
::
cout
<<
"slantX = "
<<
slantX
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"time = {}"
,
time
);
std
::
cout
<<
"time = "
<<
time
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"u = {}"
,
u
);
std
::
cout
<<
"u = "
<<
u
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"v = {}"
,
v
);
std
::
cout
<<
"v = "
<<
v
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"w = {}"
,
w
);
std
::
cout
<<
"w = "
<<
w
<<
std
::
endl
;
::
conex
::
cxoptl_
.
dptl
[
10
-
1
]
=
egs_pid
;
::
conex
::
cxoptl_
.
dptl
[
10
-
1
]
=
egs_pid
;
::
conex
::
cxoptl_
.
dptl
[
4
-
1
]
=
E
;
::
conex
::
cxoptl_
.
dptl
[
4
-
1
]
=
E
;
...
...
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