EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <EicRoot/blob/master/eic/cad/wizard/EicCadWizard.h>
Public Member Functions | |
EicCadWizard () | |
~EicCadWizard () | |
EicCadWizardFile * | AddSourceFile (const char *fname, const char *material) |
int | ConvertSourceFilesToRoot (void) |
int | AccountRootFile (const TString &fname) |
void | AddRootDirectory (const char *dname) |
int | AssembleRootFiles (const char *dirname=0, const char *detname="DUMMY") |
int | SplitAndRescaleSourceFile (const TString &fname) |
void | CreateRegularTGeoCompositeShape (void) |
Public Attributes | |
std::vector< EicCadWizardFile * > | mSourceFiles |
std::vector< TString > | mRootFiles |
Private Member Functions | |
int | ConvertSourceFileToRoot (const TString &fname, EicCadWizardFileConfig *config, const std::vector< std::pair< EicCadWizardCut *, bool > > *tried_cuts) |
int | ConvertSourceFileToRoot (EicCadWizardFile *wfile, const std::vector< std::pair< EicCadWizardCut *, bool > > *tried_cuts) |
int | ConvertSourceDirectoryToRoot (const char *dname, EicCadWizardFileConfig *config, const std::vector< std::pair< EicCadWizardCut *, bool > > *tried_cuts) |
int | StraightforwardSplit (const STEPControl_Reader &cReader, const char *bname) |
int | FaceGuidedSplit (const STEPControl_Reader &cReader, const char *bname, EicCadWizardFileConfig *config, const std::vector< std::pair< EicCadWizardCut *, bool > > *tried_cuts) |
int | FlatSurfaceSplit (const STEPControl_Reader &cReader, const char *bname, EicCadWizardFileConfig *config, const std::vector< std::pair< EicCadWizardCut *, bool > > *tried_cuts) |
Bool_t | IsElementaryFace (const TopoDS_Face &face) const |
Bool_t | IsKnownFace (const TopoDS_Face &face) const |
EicCadWizardCut * | GetCut (const TopoDS_Face &face, const gp_Pnt *bcenter, double bradius) |
int | CreateStlSolidRootFile (const TopoDS_Shape &solid, const char *bname, EicCadWizardFileConfig *config) |
int | CreateGhostSolidRootFile (const TopoDS_Shape &solid, const char *bname, EicCadWizardFileConfig *config) |
int | CreateBooleanSolidRootFile (const TopoDS_Shape &solid, const gp_Pnt *bcenter, double bradius, const std::vector< std::pair< EicCadWizardCut *, bool > > *cuts, const char *bname, EicCadWizardFileConfig *config) |
ClassDef (EicCadWizard, 3) | |
Private Attributes | |
bool | mCreateEicCompositeShape |
Definition at line 76 of file EicCadWizard.h.
View newest version in sPHENIX GitHub at line 76 of file EicCadWizard.h
|
inline |
Definition at line 78 of file EicCadWizard.h.
View newest version in sPHENIX GitHub at line 78 of file EicCadWizard.h
|
inline |
Definition at line 79 of file EicCadWizard.h.
View newest version in sPHENIX GitHub at line 79 of file EicCadWizard.h
int EicCadWizard::AccountRootFile | ( | const TString & | fname | ) |
Definition at line 221 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 221 of file EicCadWizard.cxx
References mRootFiles.
Referenced by AddRootDirectory(), ConvertSourceFileToRoot(), CreateBooleanSolidRootFile(), CreateGhostSolidRootFile(), and CreateStlSolidRootFile().
void EicCadWizard::AddRootDirectory | ( | const char * | dname | ) |
Definition at line 266 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 266 of file EicCadWizard.cxx
References _DOT_ROOT_, _DOT_SPLIT_, AccountRootFile(), and printf().
Referenced by AssembleRootFiles().
EicCadWizardFile * EicCadWizard::AddSourceFile | ( | const char * | fname, |
const char * | material | ||
) |
Definition at line 61 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 61 of file EicCadWizard.cxx
References mSourceFiles.
int EicCadWizard::AssembleRootFiles | ( | const char * | dirname = 0 , |
const char * | detname = "DUMMY" |
||
) |
Definition at line 300 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 300 of file EicCadWizard.cxx
References EicNamePatternHub< T >::AddPatternMatch(), AddRootDirectory(), configureMap::config, EicCadFileConfig::CreateMediaHub(), EicGeoParData::FinalizeOutput(), EicGeoParData::GetColorTable(), EicGeoParData::GetDetName(), EicGeoParData::GetTopVolume(), EicGeoParData::GetTransparencyTable(), EicMediaHub::Init(), M, EicCadFileConfig::mhub(), mRootFiles, n, EicDetName::name(), printf(), rw, SetDefaultMatrixName(), EicGeoParData::SetFileName(), v1, and Acts::Test::volume.
|
private |
|
private |
Definition at line 186 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 186 of file EicCadWizard.cxx
References _DOT_STEP_, configureMap::config, and ConvertSourceFileToRoot().
Referenced by ConvertSourceFileToRoot(), and FlatSurfaceSplit().
int EicCadWizard::ConvertSourceFilesToRoot | ( | void | ) |
Definition at line 93 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 93 of file EicCadWizard.cxx
References ConvertSourceFileToRoot(), and mSourceFiles.
|
private |
Definition at line 486 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 486 of file EicCadWizard.cxx
References _DOT_STEP_, AccountRootFile(), ConvertSourceDirectoryToRoot(), FaceGuidedSplit(), printf(), propagation_timing::rfile, and StraightforwardSplit().
Referenced by ConvertSourceDirectoryToRoot(), ConvertSourceFilesToRoot(), ConvertSourceFileToRoot(), FaceGuidedSplit(), and FlatSurfaceSplit().
|
private |
Definition at line 1338 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 1338 of file EicCadWizard.cxx
References EicCadWizardFile::config(), ConvertSourceFileToRoot(), and EicCadWizardFile::GetFileName().
|
private |
Definition at line 1160 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 1160 of file EicCadWizard.cxx
References AccountRootFile(), EicNamePatternHub< T >::AddPatternMatch(), EicCadFileConfig::CreateMediaHub(), EicGeoParData::FinalizeOutput(), EicMediaHub::fSingleMedium, EicGeoParData::GetColorTable(), EicCadWizardFileConfig::GetStlQualityCoefficient(), EicGeoParData::GetTopVolume(), EicGeoParData::GetTransparencyTable(), EicMediaHub::Init(), EicCompositeShape::LocalFillBuffer3D(), mCreateEicCompositeShape, EicCadFileConfig::mhub(), EicCadWizardFileConfig::mMaterial, printf(), EicGeoParData::SetFileName(), and etm::solid.
Referenced by FaceGuidedSplit().
|
private |
Definition at line 1260 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 1260 of file EicCadWizard.cxx
References AccountRootFile(), EicNamePatternHub< T >::AddPatternMatch(), EicCadFileConfig::CreateMediaHub(), EicGeoParData::FinalizeOutput(), EicMediaHub::fSingleMedium, EicGeoParData::GetColorTable(), EicCadWizardFileConfig::GetStlQualityCoefficient(), EicGeoParData::GetTopVolume(), EicGeoParData::GetTransparencyTable(), EicMediaHub::Init(), EicCompositeShape::LocalFillBuffer3D(), EicCadFileConfig::mhub(), and EicGeoParData::SetFileName().
Referenced by FaceGuidedSplit(), and FlatSurfaceSplit().
|
inline |
Definition at line 101 of file EicCadWizard.h.
View newest version in sPHENIX GitHub at line 101 of file EicCadWizard.h
|
private |
Definition at line 1089 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 1089 of file EicCadWizard.cxx
References AccountRootFile(), EicNamePatternHub< T >::AddPatternMatch(), EicCadFileConfig::CreateMediaHub(), EicStlFactory::CreateRootFile(), EicGeoParData::FinalizeOutput(), EicGeoParData::GetColorTable(), EicCadWizardFileConfig::GetStlQualityCoefficient(), EicGeoParData::GetTopVolume(), EicGeoParData::GetTransparencyTable(), EicMediaHub::Init(), EicCadFileConfig::mhub(), EicCadWizardFileConfig::mMaterial, and EicGeoParData::SetFileName().
Referenced by FaceGuidedSplit(), and FlatSurfaceSplit().
|
private |
Definition at line 824 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 824 of file EicCadWizard.cxx
References Add(), EicCadWizardCut::AddCommonSolid(), EicCadWizardCut::AddCutSolid(), ConvertSourceFileToRoot(), CreateBooleanSolidRootFile(), CreateGhostSolidRootFile(), CreateStlSolidRootFile(), Acts::Concepts::exists, EicCadWizardCut::GetCommonSolidsCount(), GetCut(), EicCadWizardCut::GetCutSolidsCount(), EicCadWizardCut::GetMultiplicity(), EicCadWizardCut::GetSolid(), EicCadWizardCut::IncrementMultiplicity(), IsElementaryFace(), EicCadWizardCut::IsEqual(), EicCadWizardFileConfig::mBooleanSolidCreationAllowed, EicCadWizardCut::mCommonSolids, EicCadWizardCut::mCutSolids, EicCadWizardFileConfig::mForcedStlSolidCreation, EicCadWizardFileConfig::mMaterial, printf(), etm::solid, and SQR.
Referenced by ConvertSourceFileToRoot().
|
private |
Definition at line 571 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 571 of file EicCadWizard.cxx
References kdfinder::abs(), Add(), EicCadWizardCut::AddCommonSolid(), EicCadWizardCut::AddCutSolid(), ConvertSourceDirectoryToRoot(), ConvertSourceFileToRoot(), CreateGhostSolidRootFile(), CreateStlSolidRootFile(), EicCadWizardCut::GetCommonSolidsCount(), GetCut(), EicCadWizardCut::GetCutSolidsCount(), EicCadWizardCut::GetMultiplicity(), EicCadWizardCut::GetSolid(), IsElementaryFace(), EicCadWizardCut::IsEqual(), EicCadWizardCut::mCommonSolids, EicCadWizardCut::mCutSolids, EicCadWizardFileConfig::mForcedStlSolidCreation, EicCadWizardFileConfig::mMaterial, ObjectFace::mMax, ObjectFace::mMin, printf(), etm::solid, SQR, ObjectFace::xMax, ObjectFace::xMin, ObjectFace::yMax, ObjectFace::yMin, ObjectFace::zMax, and ObjectFace::zMin.
|
private |
Definition at line 146 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 146 of file EicCadWizard.cxx
Referenced by FaceGuidedSplit(), and FlatSurfaceSplit().
|
private |
Definition at line 114 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 114 of file EicCadWizard.cxx
Referenced by FaceGuidedSplit(), FlatSurfaceSplit(), and IsKnownFace().
|
private |
Definition at line 127 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 127 of file EicCadWizard.cxx
References IsElementaryFace().
int EicCadWizard::SplitAndRescaleSourceFile | ( | const TString & | fname | ) |
Definition at line 412 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 412 of file EicCadWizard.cxx
References _DOT_STEP_, printf(), and etm::solid.
|
private |
Definition at line 1305 of file EicCadWizard.cxx.
View newest version in sPHENIX GitHub at line 1305 of file EicCadWizard.cxx
Referenced by ConvertSourceFileToRoot().
|
private |
Definition at line 101 of file EicCadWizard.h.
View newest version in sPHENIX GitHub at line 101 of file EicCadWizard.h
Referenced by CreateBooleanSolidRootFile().
std::vector<TString> EicCadWizard::mRootFiles |
Definition at line 97 of file EicCadWizard.h.
View newest version in sPHENIX GitHub at line 97 of file EicCadWizard.h
Referenced by AccountRootFile(), and AssembleRootFiles().
std::vector<EicCadWizardFile*> EicCadWizard::mSourceFiles |
Definition at line 86 of file EicCadWizard.h.
View newest version in sPHENIX GitHub at line 86 of file EicCadWizard.h
Referenced by AddSourceFile(), and ConvertSourceFilesToRoot().