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;
11 
12 class CustomPhysicsList : public G4VPhysicsConstructor
13 {
14 public:
16  bool useuni = false);
17  ~CustomPhysicsList() override;
18 
19  void ConstructParticle() override;
20  void ConstructProcess() override;
21 
22 private:
23 
24  static G4ThreadLocal std::unique_ptr<G4ProcessHelper> myHelper;
25  std::unique_ptr<CustomParticleFactory> fParticleFactory;
26 
28 
30 
33  double dfactor;
34 };
35 
36 #endif
CustomPhysicsList(const std::string &name, const edm::ParameterSet &p, bool useuni=false)
void ConstructProcess() override
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