File indexing completed on 2024-04-06 12:30:13
0001
0002 #ifndef SimG4Core_Application_ParametrisedEMPhysics_H
0003 #define SimG4Core_Application_ParametrisedEMPhysics_H
0004
0005
0006
0007
0008
0009
0010
0011 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0012 #include "G4VPhysicsConstructor.hh"
0013
0014 class G4ParticleDefinition;
0015
0016 class ParametrisedEMPhysics : public G4VPhysicsConstructor {
0017 public:
0018 ParametrisedEMPhysics(const std::string& name, const edm::ParameterSet& p);
0019 ~ParametrisedEMPhysics() override;
0020
0021 void ConstructParticle() override;
0022 void ConstructProcess() override;
0023
0024 private:
0025 void ModifyTransportation(const G4ParticleDefinition*, int ntry, double th1, double th2);
0026
0027 edm::ParameterSet theParSet;
0028
0029 struct TLSmod;
0030 static G4ThreadLocal TLSmod* m_tpmod;
0031 };
0032
0033 #endif