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
Merge requests
!645
rename all antennas to observers
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
rename all antennas to observers
rename_antennas_to_obs
into
master
Overview
1
Commits
5
Pipelines
10
Changes
1
Merged
Marvin Gottowik
requested to merge
rename_antennas_to_obs
into
master
6 months ago
Overview
1
Commits
5
Pipelines
10
Changes
1
Expand
and ants to obs, etc. Files renamed
Edited
6 months ago
by
Marvin Gottowik
0
0
Merge request reports
Viewing commit
76ab8ee9
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
76ab8ee9
fix typo
· 76ab8ee9
Felix Riehn
authored
6 months ago
examples/physics_examples/synchrotron_test_manual_tracking.cpp
+
20
−
20
Options
@@ -27,8 +27,8 @@
#include
<corsika/modules/radio/RadioProcess.hpp>
#include
<corsika/modules/radio/CoREAS.hpp>
#include
<corsika/modules/radio/ZHS.hpp>
#include
<corsika/modules/radio/
antenna
s/TimeDomain
Antenna
.hpp>
#include
<corsika/modules/radio/detectors/
Antenna
Collection.hpp>
#include
<corsika/modules/radio/
observer
s/TimeDomain
Observer
.hpp>
#include
<corsika/modules/radio/detectors/
Observer
Collection.hpp>
#include
<corsika/modules/radio/propagators/DummyTestPropagator.hpp>
#include
<iomanip>
@@ -71,32 +71,32 @@ int main() {
env
.
getUniverse
()
->
addChild
(
std
::
move
(
Medium
));
auto
const
&
node_
=
env
.
getUniverse
()
->
getChildNodes
().
front
();
// the
antenna
s location
// the
observer
s location
const
auto
point1
{
Point
(
rootCS
,
30000
_m
,
0
_m
,
0
_m
)};
// create times for the
antenna
// create times for the
observer
const
TimeType
start
{
0.994e-4
_s
};
const
TimeType
duration
{
1.07e-4
_s
-
0.994e-4
_s
};
// 3 km
antenna
// 3 km
observer
// const TimeType start{0.994e-5_s};
// const TimeType duration{1.7e-5_s - 0.994e-5_s};
const
InverseTimeType
sampleRate_
{
5e+11
_Hz
};
std
::
cout
<<
"number of points in time: "
<<
duration
*
sampleRate_
<<
std
::
endl
;
// create 2
antenna
s
TimeDomain
Antenna
ant
1
(
"CoREAS
antenna
"
,
point1
,
rootCS
,
start
,
duration
,
sampleRate_
,
start
);
TimeDomain
Antenna
ant2
(
"ZHS antenna
"
,
point1
,
rootCS
,
start
,
duration
,
sampleRate_
,
start
);
// create 2
observer
s
TimeDomain
Observer
obs
1
(
"CoREAS
observer
"
,
point1
,
rootCS
,
start
,
duration
,
sampleRate_
,
start
);
TimeDomain
Observer
obs2
(
"ZHS observer
"
,
point1
,
rootCS
,
start
,
duration
,
sampleRate_
,
start
);
// construct a radio detector instance to store our
antenna
s
Antenna
Collection
<
TimeDomain
Antenna
>
detectorCoREAS
;
Antenna
Collection
<
TimeDomain
Antenna
>
detectorZHS
;
// construct a radio detector instance to store our
observer
s
Observer
Collection
<
TimeDomain
Observer
>
detectorCoREAS
;
Observer
Collection
<
TimeDomain
Observer
>
detectorZHS
;
// add the
antenna
s to the detector
detectorCoREAS
.
add
Antenna
(
ant
1
);
detectorZHS
.
add
Antenna
(
ant
2
);
// add the
observer
s to the detector
detectorCoREAS
.
add
Observer
(
obs
1
);
detectorZHS
.
add
Observer
(
obs
2
);
// create a new stack for each trial
setup
::
Stack
<
EnvType
>
stack
;
@@ -115,15 +115,15 @@ int main() {
auto
SP
=
make_dummy_test_radio_propagator
(
env
);
// create a radio process instance using CoREAS
RadioProcess
<
Antenna
Collection
<
TimeDomain
Antenna
>
,
CoREAS
<
Antenna
Collection
<
TimeDomain
Antenna
>
,
decltype
(
SP
)
>
,
decltype
(
SP
)
>
RadioProcess
<
Observer
Collection
<
TimeDomain
Observer
>
,
CoREAS
<
Observer
Collection
<
TimeDomain
Observer
>
,
decltype
(
SP
)
>
,
decltype
(
SP
)
>
coreas
(
detectorCoREAS
,
SP
);
// register CoREAS to the output manager
outputs
.
add
(
"CoREAS"
,
coreas
);
// create a radio process instance using ZHS
RadioProcess
<
Antenna
Collection
<
TimeDomain
Antenna
>
,
ZHS
<
Antenna
Collection
<
TimeDomain
Antenna
>
,
decltype
(
SP
)
>
,
decltype
(
SP
)
>
RadioProcess
<
Observer
Collection
<
TimeDomain
Observer
>
,
ZHS
<
Observer
Collection
<
TimeDomain
Observer
>
,
decltype
(
SP
)
>
,
decltype
(
SP
)
>
zhs
(
detectorZHS
,
SP
);
// register ZHS to the output manager
outputs
.
add
(
"ZHS"
,
zhs
);
Loading