Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23310 from civanch/sim_long_lived_exotics
Backport fixes for simulation of long lived exotics
- Loading branch information
Showing
9 changed files
with
256 additions
and
207 deletions.
There are no files selected for viewing
39 changes: 21 additions & 18 deletions
39
SimG4Core/CustomPhysics/interface/CustomParticleFactory.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,37 @@ | ||
#ifndef SimG4Core_CustomPhysicsListSS_H | ||
#define SimG4Core_CustomPhysicsListSS_H | ||
#ifndef SimG4Core_CustomPhysics_CustomPhysicsListSS_H | ||
#define SimG4Core_CustomPhysics_CustomPhysicsListSS_H | ||
|
||
#include "SimG4Core/CustomPhysics/interface/HadronicProcessHelper.hh" | ||
|
||
#include <string> | ||
|
||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
|
||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
#include "G4VPhysicsConstructor.hh" | ||
#include <string> | ||
|
||
class G4ProcessHelper; | ||
class G4Decay; | ||
class CustomParticleFactory; | ||
|
||
class CustomPhysicsListSS : public G4VPhysicsConstructor | ||
{ | ||
public: | ||
CustomPhysicsListSS(std::string name, const edm::ParameterSet & p); | ||
virtual ~CustomPhysicsListSS(); | ||
CustomPhysicsListSS(const std::string& name, const edm::ParameterSet & p); | ||
~CustomPhysicsListSS() override; | ||
|
||
virtual void ConstructParticle(); | ||
virtual void ConstructProcess(); | ||
void ConstructParticle() override; | ||
void ConstructProcess() override; | ||
|
||
private: | ||
|
||
static G4ThreadLocal G4Decay* fDecayProcess; | ||
static G4ThreadLocal G4ProcessHelper* myHelper; | ||
static G4ThreadLocal std::unique_ptr<G4Decay> fDecayProcess; | ||
static G4ThreadLocal std::unique_ptr<G4ProcessHelper> myHelper; | ||
|
||
std::unique_ptr<CustomParticleFactory> fParticleFactory; | ||
|
||
bool fHadronicInteraction; | ||
|
||
edm::ParameterSet myConfig; | ||
|
||
std::string particleDefFilePath; | ||
std::string processDefFilePath; | ||
|
||
double dfactor; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.