CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 public:
14  CustomPhysicsList(const std::string& name, const edm::ParameterSet& p, bool useuni = false);
15  ~CustomPhysicsList() override;
16 
17  void ConstructParticle() override;
18  void ConstructProcess() override;
19 
20 private:
21  static G4ThreadLocal std::unique_ptr<G4ProcessHelper> myHelper;
22  std::unique_ptr<CustomParticleFactory> fParticleFactory;
23 
25 
27 
30  double dfactor;
31 };
32 
33 #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