IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
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
Model registry
Operate
Environments
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
Air Shower Physics
corsika
Commits
29aff2eb
Commit
29aff2eb
authored
3 years ago
by
Nikos Karastathis
Browse files
Options
Downloads
Patches
Plain Diff
midTime fixed in CoREAS
parent
2e94dec7
No related branches found
No related tags found
1 merge request
!329
Radio interface
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
corsika/modules/radio/CoREAS.hpp
+9
-5
9 additions, 5 deletions
corsika/modules/radio/CoREAS.hpp
with
9 additions
and
5 deletions
corsika/modules/radio/CoREAS.hpp
+
9
−
5
View file @
29aff2eb
...
...
@@ -96,14 +96,17 @@ namespace corsika {
// calculate preDoppler factor
double
preDoppler_
{
1.
-
paths1
[
i
].
refractive_index_source_
*
beta_
.
dot
(
paths1
[
i
].
emit_
)};
//
TODO:
are you sure this is path.
receive
and not
emit
?
beta_
.
dot
(
paths1
[
i
].
emit_
)};
// are you sure this is path.
emit
and not
path.receive
?
std
::
cout
<<
"***** preDoppler: "
<<
preDoppler_
<<
std
::
endl
;
std
::
cout
<<
"***** preEmmit_: "
<<
paths1
[
i
].
emit_
<<
std
::
endl
;
std
::
cout
<<
"***** preRefractive_index: "
<<
paths1
[
i
].
refractive_index_source_
<<
std
::
endl
;
// calculate postDoppler factor
double
postDoppler_
{
1.
-
paths2
[
i
].
refractive_index_source_
*
beta_
.
dot
(
paths2
[
i
].
emit_
)};
// maybe this is path.receive_ (?)
double
postDoppler_
{
1.
-
paths2
[
i
].
refractive_index_source_
*
beta_
.
dot
(
paths2
[
i
].
emit_
)};
// maybe this is path.receive_ (?)
std
::
cout
<<
"***** postDoppler: "
<<
postDoppler_
<<
std
::
endl
;
std
::
cout
<<
"***** postEmmit_: "
<<
paths2
[
i
].
emit_
<<
std
::
endl
;
std
::
cout
<<
"***** postRefractive_index: "
<<
paths2
[
i
].
refractive_index_source_
<<
std
::
endl
;
// calculate receive time for startpoint
auto
startPointReceiveTime_
{
paths1
[
i
].
propagation_time_
+
startTime_
};
...
...
@@ -133,7 +136,8 @@ namespace corsika {
paths2
.
clear
();
// get global simulation time for the middle point of that track.
auto
midTime_
{
particle
.
getTime
()
-
(
track
.
getDuration
()
/
2
)};
// ToDo: get time geometrically
TimeType
midTime_
{((
startPoint_
-
endPoint_
).
getNorm
()
/
2
)
/
track
.
getVelocity
(
0
).
getNorm
()};
// auto midTime_{particle.getTime() - (track.getDuration() / 2)}; // this is not the geometrical calculation
// get "mid" position of the track geometrically
auto
midVector_
{
(
startPoint_
-
endPoint_
)
/
2
};
...
...
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