Skip to content

Commit

Permalink
Geant4GFlashShowerModel: remove wrong unit conversions from particleB…
Browse files Browse the repository at this point in the history
…ound properties
  • Loading branch information
andresailer committed Apr 23, 2024
1 parent f857de3 commit 58fa8c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DDG4/plugins/Geant4GFlashShowerModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,19 +231,19 @@ void Geant4GFlashShowerModel::constructSensitives(Geant4DetectorConstructionCont

for(const auto& prop : this->m_eMin) {
G4ParticleDefinition* def = this->getParticleDefinition(prop.first);
double val = dd4hep::_toDouble(prop.second) * dd4hep::GeV/CLHEP::GeV;
double val = dd4hep::_toDouble(prop.second) / CLHEP::GeV;
this->m_particleBounds->SetMinEneToParametrise(*def, val);
this->info("SetMinEneToParametrise [%-16s] = %8.4f GeV", prop.first.c_str(), val);
}
for(const auto& prop : this->m_eMax) {
G4ParticleDefinition* def = this->getParticleDefinition(prop.first);
double val = dd4hep::_toDouble(prop.second) * dd4hep::GeV/CLHEP::GeV;
double val = dd4hep::_toDouble(prop.second) / CLHEP::GeV;
this->m_particleBounds->SetMaxEneToParametrise(*def, val);
this->info("SetMaxEneToParametrise [%-16s] = %8.4f GeV", prop.first.c_str(), val);
}
for(const auto& prop : this->m_eKill) {
G4ParticleDefinition* def = this->getParticleDefinition(prop.first);
double val = dd4hep::_toDouble(prop.second) * dd4hep::GeV/CLHEP::GeV;
double val = dd4hep::_toDouble(prop.second) / CLHEP::GeV;
this->m_particleBounds->SetEneToKill(*def, val);
this->info("SetEneToKill [%-16s] = %8.4f GeV", prop.first.c_str(), val);
}
Expand Down

0 comments on commit 58fa8c0

Please sign in to comment.