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
9c7de583
Commit
9c7de583
authored
3 years ago
by
Nikos Karastathis
Browse files
Options
Downloads
Patches
Plain Diff
antennas subtract ground hit time of particle
parent
e2c491c0
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/antennas/TimeDomainAntenna.hpp
+4
-2
4 additions, 2 deletions
corsika/modules/radio/antennas/TimeDomainAntenna.hpp
with
4 additions
and
2 deletions
corsika/modules/radio/antennas/TimeDomainAntenna.hpp
+
4
−
2
View file @
9c7de583
...
...
@@ -34,6 +34,7 @@ namespace corsika {
InverseTimeType
const
sample_rate_
;
///< The sampling rate of this antenna.
int
num_bins_
;
///< The number of bins used.
xt
::
xtensor
<
double
,
2
>
waveformE_
;
///< The waveform stored by this antenna.
TimeType
const
ground_hit_time_
;
///< The time the primary particle hits the ground.
using
Antenna
<
TimeDomainAntenna
>::
getName
;
using
Antenna
<
TimeDomainAntenna
>::
getLocation
;
...
...
@@ -53,11 +54,12 @@ namespace corsika {
*/
TimeDomainAntenna
(
std
::
string
const
&
name
,
Point
const
&
location
,
TimeType
const
&
start_time
,
TimeType
const
&
duration
,
InverseTimeType
const
&
sample_rate
)
InverseTimeType
const
&
sample_rate
,
TimeType
const
&
ground_hit_time
)
:
Antenna
(
name
,
location
)
,
start_time_
(
start_time
)
,
duration_
(
duration
)
,
sample_rate_
(
sample_rate
)
,
ground_hit_time_
(
ground_hit_time
)
,
num_bins_
(
static_cast
<
std
::
size_t
>
(
duration
*
sample_rate
+
1.5
l
))
,
waveformE_
(
xt
::
zeros
<
double
>
({
num_bins_
,
3
})){};
...
...
@@ -140,7 +142,7 @@ namespace corsika {
// TODO: Vectorize this using xtensor
for
(
std
::
size_t
i
=
0
;
i
<
num_bins_
;
i
++
)
{
// create the current time in nanoseconds
times
.
at
(
i
)
=
static_cast
<
long
double
>
((
start_time_
+
i
*
sample_period
)
/
1
_ns
);
times
.
at
(
i
)
=
static_cast
<
long
double
>
((
(
start_time_
-
ground_hit_time_
)
+
i
*
sample_period
)
/
1
_ns
);
}
return
times
;
...
...
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