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
b2acc431
Commit
b2acc431
authored
5 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
remove ObservatioLevel protoype process
parent
21217662
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Documentation/Examples/cascade_example.cc
+0
-25
0 additions, 25 deletions
Documentation/Examples/cascade_example.cc
Documentation/Examples/vertical_EAS.cc
+1
-26
1 addition, 26 deletions
Documentation/Examples/vertical_EAS.cc
with
1 addition
and
51 deletions
Documentation/Examples/cascade_example.cc
+
0
−
25
View file @
b2acc431
...
@@ -207,30 +207,6 @@ public:
...
@@ -207,30 +207,6 @@ public:
HEPEnergyType
GetEmEnergy
()
const
{
return
fEmEnergy
;
}
HEPEnergyType
GetEmEnergy
()
const
{
return
fEmEnergy
;
}
};
};
class
ObservationLevel
:
public
process
::
ContinuousProcess
<
ObservationLevel
>
{
LengthType
fHeight
;
public:
ObservationLevel
(
const
LengthType
vHeight
)
:
fHeight
(
vHeight
)
{}
template
<
typename
Particle
>
LengthType
MaxStepLength
(
Particle
&
,
setup
::
Trajectory
&
)
const
{
return
1
_m
*
std
::
numeric_limits
<
double
>::
infinity
();
}
template
<
typename
TParticle
,
typename
TTrack
>
EProcessReturn
DoContinuous
(
TParticle
&
,
TTrack
&
vT
)
{
if
((
vT
.
GetPosition
(
0
).
GetZ
()
<=
fHeight
&&
vT
.
GetPosition
(
1
).
GetZ
()
>
fHeight
)
||
(
vT
.
GetPosition
(
0
).
GetZ
()
>
fHeight
&&
vT
.
GetPosition
(
1
).
GetZ
()
<=
fHeight
))
{
cout
<<
"OBSERVED "
<<
endl
;
return
EProcessReturn
::
eParticleAbsorbed
;
}
return
EProcessReturn
::
eOk
;
}
void
Init
()
{}
};
//
//
// The example main program for a particle cascade
// The example main program for a particle cascade
...
@@ -286,7 +262,6 @@ int main() {
...
@@ -286,7 +262,6 @@ int main() {
process
::
sibyll
::
NuclearInteraction
sibyllNuc
(
sibyll
,
env
);
process
::
sibyll
::
NuclearInteraction
sibyllNuc
(
sibyll
,
env
);
process
::
sibyll
::
Decay
decay
(
trackedHadrons
);
process
::
sibyll
::
Decay
decay
(
trackedHadrons
);
ProcessCut
cut
(
20
_GeV
);
ProcessCut
cut
(
20
_GeV
);
ObservationLevel
obsLevel
(
height_atmosphere
-
2000
_m
);
// 1400_m);
process
::
TrackWriter
::
TrackWriter
trackWriter
(
"tracks.dat"
);
process
::
TrackWriter
::
TrackWriter
trackWriter
(
"tracks.dat"
);
process
::
EnergyLoss
::
EnergyLoss
eLoss
;
process
::
EnergyLoss
::
EnergyLoss
eLoss
;
...
...
This diff is collapsed.
Click to expand it.
Documentation/Examples/vertical_EAS.cc
+
1
−
26
View file @
b2acc431
...
@@ -210,30 +210,6 @@ public:
...
@@ -210,30 +210,6 @@ public:
HEPEnergyType
GetEmEnergy
()
const
{
return
fEmEnergy
;
}
HEPEnergyType
GetEmEnergy
()
const
{
return
fEmEnergy
;
}
};
};
class
ObservationLevel
:
public
process
::
ContinuousProcess
<
ObservationLevel
>
{
LengthType
fHeight
;
public:
ObservationLevel
(
const
LengthType
vHeight
)
:
fHeight
(
vHeight
)
{}
template
<
typename
Particle
>
LengthType
MaxStepLength
(
Particle
&
,
setup
::
Trajectory
&
)
const
{
return
1
_m
*
std
::
numeric_limits
<
double
>::
infinity
();
}
template
<
typename
TParticle
,
typename
TTrack
>
EProcessReturn
DoContinuous
(
TParticle
&
,
TTrack
&
vT
)
{
if
((
vT
.
GetPosition
(
0
).
GetZ
()
<=
fHeight
&&
vT
.
GetPosition
(
1
).
GetZ
()
>
fHeight
)
||
(
vT
.
GetPosition
(
0
).
GetZ
()
>
fHeight
&&
vT
.
GetPosition
(
1
).
GetZ
()
<=
fHeight
))
{
cout
<<
"OBSERVED "
<<
endl
;
return
EProcessReturn
::
eParticleAbsorbed
;
}
return
EProcessReturn
::
eOk
;
}
void
Init
()
{}
};
//
//
// The example main program for a particle cascade
// The example main program for a particle cascade
...
@@ -280,7 +256,6 @@ int main() {
...
@@ -280,7 +256,6 @@ int main() {
// random::RNGManager::GetInstance().RegisterRandomStream("pythia");
// random::RNGManager::GetInstance().RegisterRandomStream("pythia");
// process::pythia::Decay decay(trackedHadrons);
// process::pythia::Decay decay(trackedHadrons);
ProcessCut
cut
(
20
_GeV
);
ProcessCut
cut
(
20
_GeV
);
ObservationLevel
obsLevel
(
1400
_m
);
// random::RNGManager::GetInstance().RegisterRandomStream("HadronicElasticModel");
// random::RNGManager::GetInstance().RegisterRandomStream("HadronicElasticModel");
// process::HadronicElasticModel::HadronicElasticInteraction
// process::HadronicElasticModel::HadronicElasticInteraction
...
@@ -291,7 +266,7 @@ int main() {
...
@@ -291,7 +266,7 @@ int main() {
// assemble all processes into an ordered process list
// assemble all processes into an ordered process list
// cut << trackWriter;
// cut << trackWriter;
auto
sequence
=
sibyll
<<
sibyllNuc
<<
decay
<<
eLoss
<<
cut
<<
obsLevel
;
auto
sequence
=
sibyll
<<
sibyllNuc
<<
decay
<<
eLoss
<<
cut
;
// cout << "decltype(sequence)=" << type_id_with_cvr<decltype(sequence)>().pretty_name()
// cout << "decltype(sequence)=" << type_id_with_cvr<decltype(sequence)>().pretty_name()
// << "\n";
// << "\n";
...
...
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