IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 62fdaa66 authored by Remy Prechelt's avatar Remy Prechelt Committed by ralfulrich
Browse files

Remove Init() from QGSJetII.

parent a74cec25
No related branches found
No related tags found
No related merge requests found
......@@ -25,9 +25,9 @@ static const int nData = 10;
int globalCount = 0;
class ContinuousProcess1 : public ContinuousProcess<ContinuousProcess1> {
public:
int fV = 0;
public:
ContinuousProcess1(const int v)
: fV(v) {
......@@ -45,9 +45,9 @@ public:
};
class ContinuousProcess2 : public ContinuousProcess<ContinuousProcess2> {
public:
int fV = 0;
public:
ContinuousProcess2(const int v)
: fV(v) {
cout << "globalCount: " << globalCount << ", fV: " << fV << std::endl;
......
......@@ -46,11 +46,7 @@ namespace corsika::process::qgsjetII {
cout << "Searching for QGSJetII data tables in " << data_path_ << endl;
}
}
}
Interaction::~Interaction() { cout << "QgsjetII::Interaction n=" << count_ << endl; }
void Interaction::Init() {
// initialize QgsjetII
if (!initialized_) {
qgset_();
......@@ -60,6 +56,8 @@ namespace corsika::process::qgsjetII {
}
}
Interaction::~Interaction() { cout << "QgsjetII::Interaction n=" << count_ << endl; }
units::si::CrossSectionType Interaction::GetCrossSection(
const particles::Code beamId, const particles::Code targetId,
const units::si::HEPEnergyType Elab, const unsigned int Abeam,
......
......@@ -30,8 +30,6 @@ namespace corsika::process::qgsjetII {
Interaction(const std::string& dataPath = "");
~Interaction();
void Init();
bool WasInitialized() { return initialized_; }
int GetMaxTargetMassNumber() const { return maxMassNumber_; }
bool IsValidTarget(corsika::particles::Code TargetId) const {
......
......@@ -20,7 +20,6 @@ namespace corsika::process::qgsjetII {
class QGSJetIIFragmentsStackData {
public:
void Init();
void Dump() const {}
void Clear() {
......
......@@ -22,7 +22,6 @@ namespace corsika::process::qgsjetII {
class QGSJetIIStackData {
public:
void Init();
void Dump() const {}
void Clear() {
......
......@@ -139,7 +139,7 @@ TEST_CASE("QgsjetIIInterface", "[processes]") {
auto const projectileMomentum = projectile.GetMomentum();
Interaction model;
model.Init();
[[maybe_unused]] const process::EProcessReturn ret = model.DoInteraction(projectile);
[[maybe_unused]] const GrammageType length = model.GetInteractionLength(particle);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment