Public Member Functions | Private Attributes | List of all members
gar::garg4::CustomPhysicsFactory< T > Class Template Reference

#include <CustomPhysicsFactory.hh>

Inheritance diagram for gar::garg4::CustomPhysicsFactory< T >:
gar::garg4::CustomPhysicsFactoryBase

Public Member Functions

 CustomPhysicsFactory ()
 
 CustomPhysicsFactory (std::string)
 
virtual ~CustomPhysicsFactory ()
 
bool Registered ()
 
std::string GetName ()
 
virtual G4VPhysicsConstructor * Build ()
 
- Public Member Functions inherited from gar::garg4::CustomPhysicsFactoryBase
 CustomPhysicsFactoryBase ()
 
virtual ~CustomPhysicsFactoryBase ()
 

Private Attributes

std::string myName
 
bool registered
 
bool verbose
 

Detailed Description

template<class T>
class gar::garg4::CustomPhysicsFactory< T >

Definition at line 30 of file CustomPhysicsFactory.hh.

Constructor & Destructor Documentation

Definition at line 81 of file CustomPhysicsFactory.hh.

82  {
83  registered=false;
84  }

Definition at line 61 of file CustomPhysicsFactory.hh.

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

Definition at line 35 of file CustomPhysicsFactory.hh.

35 {};

Member Function Documentation

template<class T >
G4VPhysicsConstructor * gar::garg4::CustomPhysicsFactory< T >::Build ( )
virtual
template<class T>
std::string gar::garg4::CustomPhysicsFactory< T >::GetName ( void  )
inlinevirtual

Implements gar::garg4::CustomPhysicsFactoryBase.

Definition at line 38 of file CustomPhysicsFactory.hh.

39  { return myName;}
template<class T>
bool gar::garg4::CustomPhysicsFactory< T >::Registered ( )
inlinevirtual

Member Data Documentation

template<class T>
std::string gar::garg4::CustomPhysicsFactory< T >::myName
private

Definition at line 44 of file CustomPhysicsFactory.hh.

template<class T>
bool gar::garg4::CustomPhysicsFactory< T >::registered
private

Definition at line 45 of file CustomPhysicsFactory.hh.

template<class T>
bool gar::garg4::CustomPhysicsFactory< T >::verbose
private

Definition at line 46 of file CustomPhysicsFactory.hh.


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