EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairGeoInterface Class Reference

#include <EicRoot/blob/master/geobase/FairGeoInterface.h>

+ Inheritance diagram for FairGeoInterface:
+ Collaboration diagram for FairGeoInterface:

Public Member Functions

 FairGeoInterface ()
 
 ~FairGeoInterface ()
 
void setOracleInput (FairGeoIo *p)
 
void setOutput (FairGeoIo *p)
 
void setGeomBuilder (FairGeoBuilder *p)
 
FairGeoIogetFileInput ()
 
FairGeoIogetOraInput ()
 
FairGeoIogetOutput ()
 
FairGeoShapesgetShapes ()
 
FairGeoMediagetMedia ()
 
TList * getMasterNodes ()
 
void addInputFile (const char *)
 
void addGeoModule (FairGeoSet *)
 
void setMediaFile (const char *file)
 
FairGeoSetfindSet (const char *)
 
Bool_t readSet (FairGeoSet *)
 
Bool_t writeSet (FairGeoSet *)
 
Bool_t writeSet (FairGeoSet *, const char *)
 
Bool_t createSet (FairGeoSet *)
 
void deleteSet (FairGeoSet *pSet)
 
Bool_t readMedia ()
 
Bool_t writeMedia ()
 
Bool_t writeMedia (const char *)
 
Bool_t readAll ()
 
Bool_t writeAll ()
 
Bool_t createAll (Bool_t withCleanup=kFALSE)
 
Bool_t createGeometry (Bool_t withCleanup=kFALSE)
 
Bool_t readGeomConfig (const char *)
 
void addSetupFile (const char *f)
 
Bool_t readSetupFile ()
 
void print ()
 
void SetNoOfSets (Int_t n)
 

Private Member Functions

 FairGeoInterface (const FairGeoInterface &)
 
FairGeoInterfaceoperator= (const FairGeoInterface &)
 
FairGeoIoconnectInput (const char *)
 
Bool_t connectOutput (const char *)
 

Private Attributes

FairGeoIofileInput
 
FairGeoIooraInput
 
FairGeoIooutput
 
Int_t nSets
 
Int_t nActualSets
 
TObjArray * sets
 
FairGeoMediamedia
 
FairGeoShapesshapes
 
TList * masterNodes
 
TString setupFile
 
FairGeoBuildergeoBuilder
 

Detailed Description

Class to manage geometry for simulations

Author
Ilse koenig
M. Al-Turany

Definition at line 35 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 35 of file FairGeoInterface.h

Constructor & Destructor Documentation

FairGeoInterface::FairGeoInterface ( )

actually used geometry builder

FairGeoInterface::~FairGeoInterface ( )

Definition at line 57 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 57 of file FairGeoInterface.cxx

References fileInput, masterNodes, media, oraInput, output, sets, and shapes.

FairGeoInterface::FairGeoInterface ( const FairGeoInterface )
private

Member Function Documentation

void FairGeoInterface::addGeoModule ( FairGeoSet pSet)

Definition at line 96 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 96 of file FairGeoInterface.cxx

References masterNodes, nActualSets, FairGeoSet::setMasterNodes(), sets, FairGeoSet::setShapes(), and shapes.

Referenced by ClassImp(), PndMagnet::ConstructASCIIGeometry(), CbmRich::ConstructAsciiGeometry(), PndTarget::ConstructGeometry(), and EicDetector::ConstructGeometry().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairGeoInterface::addInputFile ( const char *  file)

Definition at line 109 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 109 of file FairGeoInterface.cxx

Referenced by createGeometry(), readAll(), and FairGeoAsciiIo::readGeomConfig().

+ Here is the caller graph for this function:

void FairGeoInterface::addSetupFile ( const char *  f)
inline

Definition at line 77 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 77 of file FairGeoInterface.h

References setupFile.

Referenced by FairGeoAsciiIo::readGeomConfig().

+ Here is the caller graph for this function:

FairGeoIo * FairGeoInterface::connectInput ( const char *  filename)
private

Definition at line 376 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 376 of file FairGeoInterface.cxx

References fileInput, FairGeoIo::isOpen(), FairGeoIo::open(), oraInput, and Acts::UnitConstants::s.

Referenced by readGeomConfig(), readMedia(), readSet(), and readSetupFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool_t FairGeoInterface::connectOutput ( const char *  name)
private

Definition at line 393 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 393 of file FairGeoInterface.cxx

References FairGeoIo::isOpen(), FairGeoIo::isWritable(), FairGeoIo::open(), output, t, Acts::Test::time, and y.

Referenced by writeMedia(), and writeSet().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool_t FairGeoInterface::createAll ( Bool_t  withCleanup = kFALSE)

Definition at line 317 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 317 of file FairGeoInterface.cxx

References FairGeoSet::create(), FairGeoBuilder::finalize(), geoBuilder, n, nSets, and sets.

+ Here is the call graph for this function:

Bool_t FairGeoInterface::createGeometry ( Bool_t  withCleanup = kFALSE)

Definition at line 342 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 342 of file FairGeoInterface.cxx

References addInputFile(), FairGeoSet::create(), FairGeoBuilder::finalize(), geoBuilder, n, nActualSets, nSets, oraInput, FairGeoIo::readGeomConfig(), readMedia(), readSet(), readSetupFile(), and sets.

+ Here is the call graph for this function:

Bool_t FairGeoInterface::createSet ( FairGeoSet pSet)

Definition at line 432 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 432 of file FairGeoInterface.cxx

References FairGeoSet::create(), and geoBuilder.

+ Here is the call graph for this function:

void FairGeoInterface::deleteSet ( FairGeoSet pSet)

Definition at line 244 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 244 of file FairGeoInterface.cxx

References sets.

FairGeoSet * FairGeoInterface::findSet ( const char *  name)

Definition at line 182 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 182 of file FairGeoInterface.cxx

References nSets, and sets.

Referenced by FairGeoAsciiIo::readDetectorSetup().

+ Here is the caller graph for this function:

FairGeoIo* FairGeoInterface::getFileInput ( )
inline

Definition at line 54 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 54 of file FairGeoInterface.h

References fileInput.

TList* FairGeoInterface::getMasterNodes ( )
inline

Definition at line 59 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 59 of file FairGeoInterface.h

References masterNodes.

Referenced by PndGeoPipe::create().

+ Here is the caller graph for this function:

FairGeoMedia* FairGeoInterface::getMedia ( )
inline

Definition at line 58 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 58 of file FairGeoInterface.h

References media.

Referenced by FairModule::AssignMediumAtImport(), CbmRich::ConstructGdmlGeometry(), PndPipe::ConstructGeometry(), EicDetector::ConstructGeometry(), FairMCApplication::ConstructOpGeometry(), EicGeoParData::EicGeoParData(), CbmRich::ExpandNodeForGdml(), and EicMediaHub::Init().

+ Here is the caller graph for this function:

FairGeoIo* FairGeoInterface::getOraInput ( )
inline

Definition at line 55 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 55 of file FairGeoInterface.h

References oraInput.

Referenced by FairGeoAsciiIo::readGeomConfig().

+ Here is the caller graph for this function:

FairGeoIo* FairGeoInterface::getOutput ( )
inline

Definition at line 56 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 56 of file FairGeoInterface.h

References output.

FairGeoShapes* FairGeoInterface::getShapes ( )
inline

Definition at line 57 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 57 of file FairGeoInterface.h

References shapes.

FairGeoInterface& FairGeoInterface::operator= ( const FairGeoInterface )
private
void FairGeoInterface::print ( )

Definition at line 439 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 439 of file FairGeoInterface.cxx

References FairGeoSet::getGeomFile(), FairGeoMedia::list(), media, nSets, and sets.

+ Here is the call graph for this function:

Bool_t FairGeoInterface::readAll ( )

Definition at line 282 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 282 of file FairGeoInterface.cxx

References addInputFile(), nActualSets, nSets, oraInput, FairGeoIo::readGeomConfig(), readMedia(), readSet(), readSetupFile(), and sets.

+ Here is the call graph for this function:

Bool_t FairGeoInterface::readGeomConfig ( const char *  configFile)

Definition at line 453 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 453 of file FairGeoInterface.cxx

References connectInput(), and FairGeoIo::readGeomConfig().

+ Here is the call graph for this function:

Bool_t FairGeoInterface::readMedia ( )

Definition at line 254 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 254 of file FairGeoInterface.cxx

References connectInput(), FairGeoMedia::getInputFile(), media, and FairGeoIo::read().

Referenced by createGeometry(), EicGeoParData::EicGeoParData(), and readAll().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool_t FairGeoInterface::readSet ( FairGeoSet pSet)

Definition at line 215 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 215 of file FairGeoInterface.cxx

References connectInput(), FairGeoSet::getGeomFile(), media, and FairGeoIo::read().

Referenced by ClassImp(), PndMagnet::ConstructASCIIGeometry(), CbmRich::ConstructAsciiGeometry(), PndTarget::ConstructGeometry(), EicDetector::ConstructGeometry(), createGeometry(), and readAll().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool_t FairGeoInterface::readSetupFile ( )

Definition at line 465 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 465 of file FairGeoInterface.cxx

References connectInput(), FairGeoAsciiIo::readDetectorSetup(), and setupFile.

Referenced by createGeometry(), and readAll().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairGeoInterface::setGeomBuilder ( FairGeoBuilder p)
inline

Definition at line 53 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 53 of file FairGeoInterface.h

References geoBuilder, and p.

Referenced by FairGeoLoader::FairGeoLoader().

+ Here is the caller graph for this function:

void FairGeoInterface::setMediaFile ( const char *  file)

Definition at line 104 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 104 of file FairGeoInterface.cxx

References media, and FairGeoMedia::setInputFile().

Referenced by EicGeoParData::EicGeoParData().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairGeoInterface::SetNoOfSets ( Int_t  n)
inline

Definition at line 80 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 80 of file FairGeoInterface.h

References n, and nSets.

Referenced by FairRunSim::Init().

+ Here is the caller graph for this function:

void FairGeoInterface::setOracleInput ( FairGeoIo p)
inline

Definition at line 51 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 51 of file FairGeoInterface.h

References oraInput, and p.

void FairGeoInterface::setOutput ( FairGeoIo p)
inline

Definition at line 52 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 52 of file FairGeoInterface.h

References output, and p.

Bool_t FairGeoInterface::writeAll ( )

Definition at line 304 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 304 of file FairGeoInterface.cxx

References nSets, sets, writeMedia(), and writeSet().

+ Here is the call graph for this function:

Bool_t FairGeoInterface::writeMedia ( )

Definition at line 265 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 265 of file FairGeoInterface.cxx

References connectOutput(), media, output, and FairGeoIo::write().

Referenced by writeAll().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool_t FairGeoInterface::writeMedia ( const char *  filename)

Definition at line 272 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 272 of file FairGeoInterface.cxx

References FairGeoIo::isOpen(), media, FairGeoIo::open(), output, and FairGeoIo::write().

+ Here is the call graph for this function:

Bool_t FairGeoInterface::writeSet ( FairGeoSet pSet)

Definition at line 227 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 227 of file FairGeoInterface.cxx

References connectOutput(), output, and FairGeoIo::write().

Referenced by writeAll().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool_t FairGeoInterface::writeSet ( FairGeoSet pSet,
const char *  filename 
)

Definition at line 234 of file FairGeoInterface.cxx.

View newest version in sPHENIX GitHub at line 234 of file FairGeoInterface.cxx

References FairGeoIo::isOpen(), FairGeoIo::open(), output, and FairGeoIo::write().

+ Here is the call graph for this function:

Member Data Documentation

FairGeoIo* FairGeoInterface::fileInput
private

Definition at line 37 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 37 of file FairGeoInterface.h

Referenced by connectInput(), getFileInput(), and ~FairGeoInterface().

FairGeoBuilder* FairGeoInterface::geoBuilder
private

file with detector setups (subsets)

Definition at line 47 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 47 of file FairGeoInterface.h

Referenced by createAll(), createGeometry(), createSet(), and setGeomBuilder().

TList* FairGeoInterface::masterNodes
private

list of shapes

Definition at line 45 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 45 of file FairGeoInterface.h

Referenced by addGeoModule(), getMasterNodes(), and ~FairGeoInterface().

FairGeoMedia* FairGeoInterface::media
private

array of geometry sets

Definition at line 43 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 43 of file FairGeoInterface.h

Referenced by getMedia(), print(), readMedia(), readSet(), setMediaFile(), writeMedia(), and ~FairGeoInterface().

Int_t FairGeoInterface::nActualSets
private

number of geometry sets (detector parts)

Definition at line 41 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 41 of file FairGeoInterface.h

Referenced by addGeoModule(), createGeometry(), and readAll().

Int_t FairGeoInterface::nSets
private

Oracle output

Definition at line 40 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 40 of file FairGeoInterface.h

Referenced by createAll(), createGeometry(), findSet(), print(), readAll(), SetNoOfSets(), and writeAll().

FairGeoIo* FairGeoInterface::oraInput
private

ASCII file I/O

Definition at line 38 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 38 of file FairGeoInterface.h

Referenced by connectInput(), createGeometry(), getOraInput(), readAll(), setOracleInput(), and ~FairGeoInterface().

FairGeoIo* FairGeoInterface::output
private

Oracle input

Definition at line 39 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 39 of file FairGeoInterface.h

Referenced by connectOutput(), getOutput(), setOutput(), writeMedia(), writeSet(), and ~FairGeoInterface().

TObjArray* FairGeoInterface::sets
private

number of set in actual geometry

Definition at line 42 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 42 of file FairGeoInterface.h

Referenced by addGeoModule(), createAll(), createGeometry(), deleteSet(), findSet(), print(), readAll(), writeAll(), and ~FairGeoInterface().

TString FairGeoInterface::setupFile
private

list of mother nodes used by several sets

Definition at line 46 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 46 of file FairGeoInterface.h

Referenced by addSetupFile(), and readSetupFile().

FairGeoShapes* FairGeoInterface::shapes
private

list of media

Definition at line 44 of file FairGeoInterface.h.

View newest version in sPHENIX GitHub at line 44 of file FairGeoInterface.h

Referenced by addGeoModule(), getShapes(), and ~FairGeoInterface().


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