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