LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
larg4::CustomPhysicsFactory< OpticalPhysics > Class Template Reference

#include "CustomPhysicsLArSoft.h"

Inheritance diagram for larg4::CustomPhysicsFactory< OpticalPhysics >:
larg4::CustomPhysicsFactoryBase

Public Member Functions

G4VPhysicsConstructor * Build () const override
 
 CustomPhysicsFactory (detinfo::DetectorPropertiesData const &detProp)
 
std::string const & GetName () const noexcept
 

Private Attributes

detinfo::DetectorPropertiesData const & fDetProp
 

Detailed Description

template<>
class larg4::CustomPhysicsFactory< OpticalPhysics >

Definition at line 16 of file CustomPhysicsLArSoft.h.

Constructor & Destructor Documentation

Definition at line 19 of file CustomPhysicsLArSoft.h.

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  }
CustomPhysicsFactoryBase(std::string const &name)
detinfo::DetectorPropertiesData const & fDetProp

Member Function Documentation

G4VPhysicsConstructor* larg4::CustomPhysicsFactory< OpticalPhysics >::Build ( ) const
inlineoverridevirtual

Implements larg4::CustomPhysicsFactoryBase.

Definition at line 18 of file CustomPhysicsLArSoft.h.

18 { return new OpticalPhysics{fDetProp}; }
detinfo::DetectorPropertiesData const & fDetProp
std::string const& larg4::CustomPhysicsFactoryBase::GetName ( ) const
inlinenoexceptinherited

Member Data Documentation


The documentation for this class was generated from the following file: