Geant4  10.01.p02
CCalRotationMatrixFactory Class Reference

#include <CCalRotationMatrixFactory.hh>

+ Collaboration diagram for CCalRotationMatrixFactory:

Public Member Functions

 ~CCalRotationMatrixFactory ()
 
G4RotationMatrixfindMatrix (const G4String &)
 
G4RotationMatrixAddMatrix (const G4String &name, G4double th1, G4double phi1, G4double th2, G4double phi2, G4double th3, G4double phi3)
 

Static Public Member Functions

static CCalRotationMatrixFactorygetInstance ()
 
static CCalRotationMatrixFactorygetInstance (const G4String &rotfile)
 
static void setFileName (const G4String &rotfile)
 

Private Member Functions

 CCalRotationMatrixFactory ()
 

Private Attributes

G4RotationMatrixTable theMatrices
 

Static Private Attributes

static CCalRotationMatrixFactoryinstance = 0
 
static G4String file =""
 

Detailed Description

Definition at line 45 of file CCalRotationMatrixFactory.hh.

Constructor & Destructor Documentation

CCalRotationMatrixFactory::~CCalRotationMatrixFactory ( )

Definition at line 84 of file CCalRotationMatrixFactory.cc.

References theMatrices.

CCalRotationMatrixFactory::CCalRotationMatrixFactory ( )
private

Definition at line 217 of file CCalRotationMatrixFactory.cc.

References AddMatrix(), deg, FatalException, file, findDO(), G4cout, G4endl, G4Exception(), name, openGeomFile(), and theMatrices.

Referenced by getInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Function Documentation

G4RotationMatrix * CCalRotationMatrixFactory::AddMatrix ( const G4String name,
G4double  th1,
G4double  phi1,
G4double  th2,
G4double  phi2,
G4double  th3,
G4double  phi3 
)

Definition at line 105 of file CCalRotationMatrixFactory.cc.

References deg, G4cout, G4endl, name, and theMatrices.

Referenced by CCalRotationMatrixFactory(), CCalG4Ecal::constructGlobal(), and CCalG4Ecal::constructIn().

+ Here is the caller graph for this function:

G4RotationMatrix * CCalRotationMatrixFactory::findMatrix ( const G4String rot)

!!Maybe a treatment on not-found case needed.

Definition at line 92 of file CCalRotationMatrixFactory.cc.

References theMatrices.

Referenced by CCalG4Ecal::constructGlobal(), and CCalG4Ecal::constructIn().

+ Here is the caller graph for this function:

CCalRotationMatrixFactory * CCalRotationMatrixFactory::getInstance ( )
static

Definition at line 60 of file CCalRotationMatrixFactory.cc.

References CCalRotationMatrixFactory(), file, G4cerr, G4endl, and instance.

Referenced by CCalDetectorConstruction::Construct(), CCalG4Ecal::constructGlobal(), CCalG4Ecal::constructIn(), and getInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CCalRotationMatrixFactory * CCalRotationMatrixFactory::getInstance ( const G4String rotfile)
static

Definition at line 46 of file CCalRotationMatrixFactory.cc.

References file, G4cerr, G4endl, and getInstance().

+ Here is the call graph for this function:

void CCalRotationMatrixFactory::setFileName ( const G4String rotfile)
static

Definition at line 75 of file CCalRotationMatrixFactory.cc.

References file, G4cerr, and G4endl.

Member Data Documentation

G4String CCalRotationMatrixFactory::file =""
staticprivate
CCalRotationMatrixFactory * CCalRotationMatrixFactory::instance = 0
staticprivate

Definition at line 63 of file CCalRotationMatrixFactory.hh.

Referenced by getInstance().

G4RotationMatrixTable CCalRotationMatrixFactory::theMatrices
private

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