LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
larg4::CustomPhysicsFactory< T > Class Template Reference

#include "CustomPhysicsFactory.hh"

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

Public Member Functions

 CustomPhysicsFactory ()
 
 CustomPhysicsFactory (std::string)
 
virtual ~CustomPhysicsFactory ()
 
bool Registered ()
 
std::string GetName ()
 
virtual G4VPhysicsConstructor * Build ()
 

Private Attributes

std::string myName
 
bool registered
 
bool verbose
 

Detailed Description

template<class T>
class larg4::CustomPhysicsFactory< T >

Definition at line 28 of file CustomPhysicsFactory.hh.

Constructor & Destructor Documentation

template<class T >
larg4::CustomPhysicsFactory< T >::CustomPhysicsFactory ( )

Definition at line 76 of file CustomPhysicsFactory.hh.

77  {
78  registered=false;
79  }
template<class T >
larg4::CustomPhysicsFactory< T >::CustomPhysicsFactory ( std::string  Name)

Definition at line 56 of file CustomPhysicsFactory.hh.

57  {
58 
59  // For debugging.
60  verbose=true;
61 
62  if(Name!="")
63  myName=Name;
64  else
65  std::cerr<<"CustomPhysicsFactory Error : Physics registered with no name!"<<std::endl;
66 
67  // register self in physics table - note, factory is actually registered
68  // in static TheCustomPhysicsTable, not the instance created below
69  // which just acts to pass information along
70  new CustomPhysicsTable(this);
71  registered=true;
72  }
template<class T>
virtual larg4::CustomPhysicsFactory< T >::~CustomPhysicsFactory ( )
inlinevirtual

Definition at line 33 of file CustomPhysicsFactory.hh.

33 {};

Member Function Documentation

template<class T>
std::string larg4::CustomPhysicsFactory< T >::GetName ( )
inlinevirtual

Implements larg4::CustomPhysicsFactoryBase.

Definition at line 36 of file CustomPhysicsFactory.hh.

37  { return myName;}
template<class T>
bool larg4::CustomPhysicsFactory< T >::Registered ( )
inlinevirtual

Member Data Documentation

template<class T>
std::string larg4::CustomPhysicsFactory< T >::myName
private

Definition at line 42 of file CustomPhysicsFactory.hh.

template<class T>
bool larg4::CustomPhysicsFactory< T >::registered
private

Definition at line 43 of file CustomPhysicsFactory.hh.

template<class T>
bool larg4::CustomPhysicsFactory< T >::verbose
private

Definition at line 44 of file CustomPhysicsFactory.hh.


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