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
dcc9a333
Commit
dcc9a333
authored
4 years ago
by
Maximilian Reininghaus
Committed by
ralfulrich
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
simple HistoryObservationPlane
parent
83bf21d6
No related branches found
No related tags found
1 merge request
!254
History
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Stack/History/Event.hpp
+3
-0
3 additions, 0 deletions
Stack/History/Event.hpp
Stack/History/HistoryObservationPlane.hpp
+10
-4
10 additions, 4 deletions
Stack/History/HistoryObservationPlane.hpp
with
13 additions
and
4 deletions
Stack/History/Event.hpp
+
3
−
0
View file @
dcc9a333
...
@@ -42,6 +42,9 @@ namespace corsika::history {
...
@@ -42,6 +42,9 @@ namespace corsika::history {
template
<
typename
TStackIterator
>
template
<
typename
TStackIterator
>
TStackIterator
projectile
(
TStackIterator
begin
)
{
TStackIterator
projectile
(
TStackIterator
begin
)
{
// MR: This is dangerous. You can pass any iterator though it must
// be stack.begin() to yield the correct projectile
return
begin
+
projectileIndex_
;
return
begin
+
projectileIndex_
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Stack/History/HistoryObservationPlane.hpp
+
10
−
4
View file @
dcc9a333
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
namespace
corsika
::
history
{
namespace
corsika
::
history
{
namespace
detail
{
namespace
detail
{
auto
hist_factory
()
{
auto
hist_factory
()
{
auto
h
=
boost
::
histogram
::
make_histogram
(
/*
auto h = boost::histogram::make_histogram(
boost::histogram::axis::regular<double, boost::histogram::axis::transform::log>{
boost::histogram::axis::regular<double, boost::histogram::axis::transform::log>{
130, 1e8, 1e21, "muon energy/eV"},
130, 1e8, 1e21, "muon energy/eV"},
boost::histogram::axis::integer<int, boost::histogram::use_default,
boost::histogram::axis::integer<int, boost::histogram::use_default,
...
@@ -30,7 +30,12 @@ namespace corsika::history {
...
@@ -30,7 +30,12 @@ namespace corsika::history {
boost::histogram::axis::regular<double, boost::histogram::axis::transform::log>{
boost::histogram::axis::regular<double, boost::histogram::axis::transform::log>{
130, 1e8, 1e21, "hadronic energy/eV"},
130, 1e8, 1e21, "hadronic energy/eV"},
boost::histogram::axis::category<int, boost::histogram::use_default,
boost::histogram::axis::category<int, boost::histogram::use_default,
boost
::
histogram
::
axis
::
option
::
growth_t
>
{});
boost::histogram::axis::option::growth_t>{});*/
auto
h
=
boost
::
histogram
::
make_histogram
(
boost
::
histogram
::
axis
::
integer
<
int
,
boost
::
histogram
::
use_default
,
boost
::
histogram
::
axis
::
option
::
growth_t
>
{
0
,
10
,
"hadronic generation"
});
return
h
;
return
h
;
}
}
}
// namespace detail
}
// namespace detail
...
@@ -38,9 +43,9 @@ namespace corsika::history {
...
@@ -38,9 +43,9 @@ namespace corsika::history {
class
HistoryObservationPlane
class
HistoryObservationPlane
:
public
corsika
::
process
::
ContinuousProcess
<
HistoryObservationPlane
>
{
:
public
corsika
::
process
::
ContinuousProcess
<
HistoryObservationPlane
>
{
public:
public:
HistoryObservationPlane
(
geometry
::
Plane
const
&
,
bool
=
true
);
HistoryObservationPlane
(
setup
::
Stack
const
&
,
geometry
::
Plane
const
&
,
bool
=
true
);
void
save
(
std
::
string
const
&
);
//~
void save(std::string const&);
corsika
::
units
::
si
::
LengthType
MaxStepLength
(
corsika
::
units
::
si
::
LengthType
MaxStepLength
(
corsika
::
setup
::
Stack
::
ParticleType
const
&
,
corsika
::
setup
::
Stack
::
ParticleType
const
&
,
...
@@ -53,6 +58,7 @@ namespace corsika::history {
...
@@ -53,6 +58,7 @@ namespace corsika::history {
private:
private:
void
fillHistoryHistogram
(
setup
::
Stack
::
ParticleType
const
&
);
void
fillHistoryHistogram
(
setup
::
Stack
::
ParticleType
const
&
);
setup
::
Stack
const
&
stack_
;
geometry
::
Plane
const
plane_
;
geometry
::
Plane
const
plane_
;
bool
const
deleteOnHit_
;
bool
const
deleteOnHit_
;
...
...
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