SimG4Core
CustomPhysics
interface
CustomPhysicsList.h
Go to the documentation of this file.
1
#ifndef SimG4Core_CustomPhysics_CustomPhysicsList_H
2
#define SimG4Core_CustomPhysics_CustomPhysicsList_H
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
#include "G4VPhysicsConstructor.hh"
6
7
#include <string>
8
9
class
G4ProcessHelper
;
10
class
CustomParticleFactory
;
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
24
bool
fHadronicInteraction
;
25
26
edm::ParameterSet
myConfig
;
27
28
std::string
particleDefFilePath
;
29
std::string
processDefFilePath
;
30
double
dfactor
;
31
};
32
33
#endif
CustomPhysicsList::ConstructProcess
void ConstructProcess() override
Definition:
CustomPhysicsList.cc:53
G4ProcessHelper
Definition:
G4ProcessHelper.h:26
CustomPhysicsList::~CustomPhysicsList
~CustomPhysicsList() override
Definition:
CustomPhysicsList.cc:46
CustomPhysicsList::CustomPhysicsList
CustomPhysicsList(const std::string &name, const edm::ParameterSet &p, bool useuni=false)
Definition:
CustomPhysicsList.cc:25
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
CustomPhysicsList::myHelper
static G4ThreadLocal std::unique_ptr< G4ProcessHelper > myHelper
Definition:
CustomPhysicsList.h:21
CustomPhysicsList::myConfig
edm::ParameterSet myConfig
Definition:
CustomPhysicsList.h:26
CustomPhysicsList::particleDefFilePath
std::string particleDefFilePath
Definition:
CustomPhysicsList.h:28
CustomPhysicsList::ConstructParticle
void ConstructParticle() override
Definition:
CustomPhysicsList.cc:48
CustomPhysicsList::fHadronicInteraction
bool fHadronicInteraction
Definition:
CustomPhysicsList.h:24
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CustomPhysicsList::dfactor
double dfactor
Definition:
CustomPhysicsList.h:30
edm::ParameterSet
Definition:
ParameterSet.h:36
CustomPhysicsList::processDefFilePath
std::string processDefFilePath
Definition:
CustomPhysicsList.h:29
CustomParticleFactory
Definition:
CustomParticleFactory.h:12
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
CustomPhysicsList
Definition:
CustomPhysicsList.h:12
ParameterSet.h
CustomPhysicsList::fParticleFactory
std::unique_ptr< CustomParticleFactory > fParticleFactory
Definition:
CustomPhysicsList.h:22
Generated for CMSSW Reference Manual by
1.8.16