CMS 3D CMS Logo

CustomPhysicsListSS.h
Go to the documentation of this file.
1 #ifndef SimG4Core_CustomPhysics_CustomPhysicsListSS_H
2 #define SimG4Core_CustomPhysics_CustomPhysicsListSS_H
3 
5 #include "G4VPhysicsConstructor.hh"
6 #include <string>
7 
8 class G4ProcessHelper;
9 class G4Decay;
11 
12 class CustomPhysicsListSS : public G4VPhysicsConstructor
13 {
14 public:
16  bool useuni = false);
17  ~CustomPhysicsListSS() 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
std::string particleDefFilePath
std::string processDefFilePath
std::unique_ptr< CustomParticleFactory > fParticleFactory
void ConstructParticle() override
static G4ThreadLocal std::unique_ptr< G4Decay > fDecayProcess
static G4ThreadLocal std::unique_ptr< G4ProcessHelper > myHelper
edm::ParameterSet myConfig
void ConstructProcess() override
CustomPhysicsListSS(const std::string &name, const edm::ParameterSet &p, bool useuni=false)