CMS 3D CMS Logo

CustomPhysicsList.h
Go to the documentation of this file.
1 #ifndef SimG4Core_CustomPhysics_CustomPhysicsList_H
2 #define SimG4Core_CustomPhysics_CustomPhysicsList_H
3 
5 #include "G4VPhysicsConstructor.hh"
6 
7 #include <string>
8 
9 class G4ProcessHelper;
10 class G4Decay;
12 
13 class CustomPhysicsList : public G4VPhysicsConstructor
14 {
15 public:
17  ~CustomPhysicsList() override;
18 
19  void ConstructParticle() override;
20  void ConstructProcess() override;
21 
22 private:
23 
24  static G4ThreadLocal std::unique_ptr<G4Decay> fDecayProcess;
25  static G4ThreadLocal std::unique_ptr<G4ProcessHelper> myHelper;
26 
27  std::unique_ptr<CustomParticleFactory> fParticleFactory;
28 
30 
32 
35  double dfactor;
36 };
37 
38 #endif
static G4ThreadLocal std::unique_ptr< G4Decay > fDecayProcess
void ConstructProcess() override
CustomPhysicsList(const std::string &name, const edm::ParameterSet &p)
edm::ParameterSet myConfig
std::string particleDefFilePath
static G4ThreadLocal std::unique_ptr< G4ProcessHelper > myHelper
void ConstructParticle() override
std::string processDefFilePath
std::unique_ptr< CustomParticleFactory > fParticleFactory
~CustomPhysicsList() override