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
18d16d1c
Commit
18d16d1c
authored
3 years ago
by
Ralf Ulrich
Browse files
Options
Downloads
Plain Diff
Merge branch '408-rename-corsika-state' into 'master'
Resolve "Rename corsika::State" Closes
#408
See merge request
!344
parents
c24339ce
6c99483b
No related branches found
No related tags found
1 merge request
!344
Resolve "Rename corsika::State"
Pipeline
#4073
passed
3 years ago
Stage: quality
Stage: config
Stage: build
Stage: test
Stage: build_test_example
Stage: install
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/media/MediumProperties.hpp
+15
-15
15 additions, 15 deletions
corsika/media/MediumProperties.hpp
src/media/readProperties.py
+3
-3
3 additions, 3 deletions
src/media/readProperties.py
with
18 additions
and
18 deletions
corsika/media/MediumProperties.hpp
+
15
−
15
View file @
18d16d1c
...
@@ -36,7 +36,7 @@ namespace corsika {
...
@@ -36,7 +36,7 @@ namespace corsika {
static double Z_over_A() { return data_.Z_over_A(); }
static double Z_over_A() { return data_.Z_over_A(); }
static double getSternheimerDensity() { return data_.getSternheimerDensity(); }
static double getSternheimerDensity() { return data_.getSternheimerDensity(); }
static double getCorrectedDensity() { return data_.getCorrectedDensity(); }
static double getCorrectedDensity() { return data_.getCorrectedDensity(); }
static State getState() { return data_.getState(); }
static State
OfMatter
getState
OfMatter
() { return data_.getState
OfMatter
(); }
static MediumType getType() { return data_.getType(); }
static MediumType getType() { return data_.getType(); }
static std::string const getSymbol() { return data_.getSymbol(); }
static std::string const getSymbol() { return data_.getSymbol(); }
...
@@ -50,7 +50,7 @@ namespace corsika {
...
@@ -50,7 +50,7 @@ namespace corsika {
inline static const MediumData data_ { "hydrogen_gas", "hydrogen gas (H%2#)", 1.008,
inline static const MediumData data_ { "hydrogen_gas", "hydrogen gas (H%2#)", 1.008,
3, 7, 0.99212,
3, 7, 0.99212,
8.3748e-05, 8.3755e-05, State::DiatomicGas,
8.3748e-05, 8.3755e-05, State
OfMatter
::DiatomicGas,
MediumType::Element, "H", 19.2, 9.5835, 1.8639, 3.2718, 0.14092, 5.7273, 0.0 };
MediumType::Element, "H", 19.2, 9.5835, 1.8639, 3.2718, 0.14092, 5.7273, 0.0 };
@endcode
@endcode
...
@@ -73,7 +73,7 @@ namespace corsika {
...
@@ -73,7 +73,7 @@ namespace corsika {
};
};
//! Physical state of medium
//! Physical state of medium
enum
class
State
{
Unknown
,
Solid
,
Liquid
,
Gas
,
DiatomicGas
};
enum
class
State
OfMatter
{
Unknown
,
Solid
,
Liquid
,
Gas
,
DiatomicGas
};
enum
class
Medium
:
int16_t
;
enum
class
Medium
:
int16_t
;
...
@@ -93,7 +93,7 @@ namespace corsika {
...
@@ -93,7 +93,7 @@ namespace corsika {
double
Z_over_A_
;
double
Z_over_A_
;
double
sternheimer_density_
;
double
sternheimer_density_
;
double
corrected_density_
;
double
corrected_density_
;
State
state_
;
State
OfMatter
state_
;
MediumType
type_
;
MediumType
type_
;
std
::
string
symbol_
;
std
::
string
symbol_
;
double
Ieff_
;
double
Ieff_
;
...
@@ -122,17 +122,17 @@ namespace corsika {
...
@@ -122,17 +122,17 @@ namespace corsika {
}
/// Sternheimer density
}
/// Sternheimer density
double
getCorrectedDensity
()
const
{
double
getCorrectedDensity
()
const
{
return
corrected_density_
;
return
corrected_density_
;
}
/// corrected density
}
/// corrected density
State
getState
()
const
{
return
state_
;
}
/// state
State
OfMatter
getState
OfMatter
()
const
{
return
state_
;
}
/// state
MediumType
getType
()
const
{
return
type_
;
}
/// type
MediumType
getType
()
const
{
return
type_
;
}
/// type
std
::
string
getSymbol
()
const
{
return
symbol_
;
}
/// symbol
std
::
string
getSymbol
()
const
{
return
symbol_
;
}
/// symbol
double
getIeff
()
const
{
return
Ieff_
;
}
/// Ieff
double
getIeff
()
const
{
return
Ieff_
;
}
/// Ieff
double
getCbar
()
const
{
return
Cbar_
;
}
/// Cbar
double
getCbar
()
const
{
return
Cbar_
;
}
/// Cbar
double
getX0
()
const
{
return
x0_
;
}
/// X0
double
getX0
()
const
{
return
x0_
;
}
/// X0
double
getX1
()
const
{
return
x1_
;
}
/// X1
double
getX1
()
const
{
return
x1_
;
}
/// X1
double
getAA
()
const
{
return
aa_
;
}
/// AA
double
getAA
()
const
{
return
aa_
;
}
/// AA
double
getSK
()
const
{
return
sk_
;
}
/// Sk
double
getSK
()
const
{
return
sk_
;
}
/// Sk
double
getDlt0
()
const
{
return
dlt0_
;
}
/// Delta0
double
getDlt0
()
const
{
return
dlt0_
;
}
/// Delta0
//! @}
//! @}
};
};
...
...
This diff is collapsed.
Click to expand it.
src/media/readProperties.py
+
3
−
3
View file @
18d16d1c
...
@@ -285,7 +285,7 @@ def gen_classes(media_db):
...
@@ -285,7 +285,7 @@ def gen_classes(media_db):
* - Sternheimer index: {stern_index}, label: {stern_label}, name: {name}, nice_name: {nice_name}, symbol: {symbol}
* - Sternheimer index: {stern_index}, label: {stern_label}, name: {name}, nice_name: {nice_name}, symbol: {symbol}
* - weight: {weight}, weight_significant_figure: {weight_significant_figure}, weight_error_last_digit: {weight_error_last_digit}
* - weight: {weight}, weight_significant_figure: {weight_significant_figure}, weight_error_last_digit: {weight_error_last_digit}
* - Z_over_A: {Z_over_A}, sternheimhers_density: {sternheimer_density}, corrected_density: {corrected_density},
* - Z_over_A: {Z_over_A}, sternheimhers_density: {sternheimer_density}, corrected_density: {corrected_density},
* - State::{state}, MediumType::{type}, Ieff={Ieff}, Cbar={Cbar}, X0={x0}, x1={x1}, aa={aa}, sk={sk}, dlt0={dlt0}
* - State
OfMatter
::{state}, MediumType::{type}, Ieff={Ieff}, Cbar={Cbar}, X0={x0}, x1={x1}, aa={aa}, sk={sk}, dlt0={dlt0}
**/
**/
class {cname} {{
class {cname} {{
...
@@ -301,7 +301,7 @@ def gen_classes(media_db):
...
@@ -301,7 +301,7 @@ def gen_classes(media_db):
static double Z_over_A() {{ return data_.Z_over_A(); }}
static double Z_over_A() {{ return data_.Z_over_A(); }}
static double getSternheimerDensity() {{ return data_.getSternheimerDensity(); }}
static double getSternheimerDensity() {{ return data_.getSternheimerDensity(); }}
static double getCorrectedDensity() {{ return data_.getCorrectedDensity(); }}
static double getCorrectedDensity() {{ return data_.getCorrectedDensity(); }}
static State getState() {{ return data_.getState(); }}
static State
OfMatter
getState
OfMatter
() {{ return data_.getState
OfMatter
(); }}
static MediumType getType() {{ return data_.getType(); }}
static MediumType getType() {{ return data_.getType(); }}
static std::string const getSymbol() {{ return data_.getSymbol(); }}
static std::string const getSymbol() {{ return data_.getSymbol(); }}
...
@@ -318,7 +318,7 @@ def gen_classes(media_db):
...
@@ -318,7 +318,7 @@ def gen_classes(media_db):
inline static const MediumData data_ {{
"
{name}
"
,
"
{nice_name}
"
, {weight},
inline static const MediumData data_ {{
"
{name}
"
,
"
{nice_name}
"
, {weight},
{weight_significant_figure}, {weight_error_last_digit}, {Z_over_A},
{weight_significant_figure}, {weight_error_last_digit}, {Z_over_A},
{sternheimer_density}, {corrected_density}, State::{state},
{sternheimer_density}, {corrected_density}, State
OfMatter
::{state},
MediumType::{type},
"
{symbol}
"
, {Ieff}, {Cbar}, {x0}, {x1}, {aa}, {sk}, {dlt0} }};
MediumType::{type},
"
{symbol}
"
, {Ieff}, {Cbar}, {x0}, {x1}, {aa}, {sk}, {dlt0} }};
/** @endcond */
/** @endcond */
}};
}};
...
...
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