LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
CustomPhysicsLArSoft.h
Go to the documentation of this file.
1
#ifndef larsim_LegacyLArG4_CustomPhysicsLArSoft_h
2
#define larsim_LegacyLArG4_CustomPhysicsLArSoft_h
3
4
// This file is used to specify template specializations for the
5
// CustomPhysicsFactory class template, specifically for
6
// LArSoft-defined physics lists.
7
8
#include "
larsim/LegacyLArG4/CustomPhysicsFactory.hh
"
9
#include "
larsim/LegacyLArG4/OpticalPhysics.hh
"
10
namespace
detinfo
{
11
class
DetectorPropertiesData;
12
}
13
14
namespace
larg4
{
15
template
<>
16
class
CustomPhysicsFactory
<
OpticalPhysics
> :
public
CustomPhysicsFactoryBase
{
17
public
:
18
G4VPhysicsConstructor*
Build
()
const override
{
return
new
OpticalPhysics
{fDetProp}; }
19
CustomPhysicsFactory
(
detinfo::DetectorPropertiesData
const
& detProp)
20
:
CustomPhysicsFactoryBase
{
"Optical"
}, fDetProp{detProp}
21
{
22
// register self in physics table - note, factory is actually registered
23
// in static TheCustomPhysicsTable, not the instance created below
24
// which just acts to pass information along
25
new
CustomPhysicsTable
(
this
);
26
}
27
28
private
:
29
detinfo::DetectorPropertiesData
const
&
fDetProp
;
30
};
31
}
32
33
#endif
CustomPhysicsFactory.hh
OpticalPhysics.hh
detinfo::DetectorPropertiesData
Definition:
DetectorPropertiesData.h:11
larg4::CustomPhysicsFactory< OpticalPhysics >::CustomPhysicsFactory
CustomPhysicsFactory(detinfo::DetectorPropertiesData const &detProp)
Definition:
CustomPhysicsLArSoft.h:19
larg4
Geant4 interface.
Definition:
CheckAuxDetHit_module.cc:25
larg4::CustomPhysicsFactory< OpticalPhysics >::Build
G4VPhysicsConstructor * Build() const override
Definition:
CustomPhysicsLArSoft.h:18
larg4::CustomPhysicsTable
Definition:
CustomPhysicsTable.hh:35
larg4::CustomPhysicsFactory
Definition:
CustomPhysicsFactory.hh:33
detinfo
General LArSoft Utilities.
Definition:
BeamFlashTrackMatchTaggerAlg.h:23
larg4::CustomPhysicsFactory< OpticalPhysics >::fDetProp
detinfo::DetectorPropertiesData const & fDetProp
Definition:
CustomPhysicsLArSoft.h:29
larg4::OpticalPhysics
Definition:
OpticalPhysics.hh:78
larg4::CustomPhysicsFactoryBase
Definition:
CustomPhysicsFactory.hh:15
larsim
v09_43_00
source
larsim
LegacyLArG4
CustomPhysicsLArSoft.h
Generated on Thu May 2 2024 20:59:51 for LArSoft by
1.8.11