#include <CocoaToDDLMgr.h>
Public Member Functions | |
ALIint | buildRotationNumber (OpticalObject *opto) |
CocoaToDDLMgr () | |
void | lv (OpticalObject *opto) |
void | ma (CocoaMaterialElementary *ma) |
ALIbool | materialIsRepeated (CocoaMaterialElementary *ma) |
void | measurementsAsSpecPars () |
void | newPartPost (std::string name, std::string extension) |
void | newPartPre (std::string name) |
void | newSectPost (std::string name) |
void | newSectPost_lv (std::string name) |
void | newSectPost_ma (std::string name) |
void | newSectPost_pv (std::string name) |
void | newSectPost_ro (std::string name) |
void | newSectPost_so (std::string name) |
void | newSectPost_specPar (std::string name) |
void | newSectPre (std::string name, std::string type) |
void | newSectPre_lv (std::string name) |
void | newSectPre_ma (std::string name) |
void | newSectPre_pv (std::string name) |
void | newSectPre_ro (std::string name) |
void | newSectPre_so (std::string name) |
void | newSectPre_specPar (std::string name) |
void | pv (OpticalObject *opto) |
void | ro (const CLHEP::HepRotation &ro, int n) |
std::string | scrubString (const std::string &s) |
void | so (OpticalObject *opto) |
void | specPar (OpticalObject *opto) |
void | writeDDDFile (ALIstring filename) |
void | writeHeader (ALIstring filename) |
void | writeLogicalVolumes () |
void | writeMaterials () |
void | writePhysicalVolumes () |
void | writeRotations () |
void | writeSolids () |
void | writeSpecPars () |
void | writeSpecParsCocoa () |
~CocoaToDDLMgr () | |
Static Public Member Functions | |
static CocoaToDDLMgr * | getInstance () |
Private Attributes | |
ALIFileOut | file_ |
std::string | filename_ |
std::vector < CocoaMaterialElementary * > | theMaterialList |
std::vector< CLHEP::HepRotation > | theRotationList |
Static Private Attributes | |
static CocoaToDDLMgr * | instance = nullptr |
Definition at line 25 of file CocoaToDDLMgr.h.
|
inline |
|
inline |
Definition at line 29 of file CocoaToDDLMgr.h.
ALIint CocoaToDDLMgr::buildRotationNumber | ( | OpticalObject * | opto | ) |
Definition at line 741 of file CocoaToDDLMgr.cc.
References OpticalObject::rmLocal(), and theRotationList.
Referenced by pv().
|
static |
void CocoaToDDLMgr::lv | ( | OpticalObject * | opto | ) |
Definition at line 425 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, file_, OpticalObject::getMaterial(), CocoaMaterialElementary::getName(), OpticalObject::name(), mergeVDriftHistosByStation::name, OpticalObject::shortName(), AlCaHLTBitMon_QueryRunRegistry::string, and OpticalObject::type().
Referenced by writeLogicalVolumes().
void CocoaToDDLMgr::ma | ( | CocoaMaterialElementary * | ma | ) |
g*cm3;
Definition at line 198 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, file_, CocoaMaterialElementary::getA(), CocoaMaterialElementary::getDensity(), CocoaMaterialElementary::getName(), CocoaMaterialElementary::getSymbol(), CocoaMaterialElementary::getZ(), theMaterialList, and UC.
Referenced by materialIsRepeated(), and writeMaterials().
ALIbool CocoaToDDLMgr::materialIsRepeated | ( | CocoaMaterialElementary * | ma | ) |
Definition at line 698 of file CocoaToDDLMgr.cc.
References ma(), and theMaterialList.
Referenced by writeMaterials().
void CocoaToDDLMgr::measurementsAsSpecPars | ( | ) |
Definition at line 617 of file CocoaToDDLMgr.cc.
References Measurement::dim(), file_, cuy::ii, Model::MeasurementList(), OpticalObject::name(), Measurement::name(), Measurement::OptONameList(), Measurement::sigma(), AlCaHLTBitMon_QueryRunRegistry::string, Measurement::type(), Measurement::value(), Measurement::valueIsSimulated(), and Measurement::valueType().
Referenced by writeSpecPars().
void CocoaToDDLMgr::newPartPost | ( | std::string | name, |
std::string | extension | ||
) |
void CocoaToDDLMgr::newPartPre | ( | std::string | name | ) |
Definition at line 165 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, file_, filename_, and mergeVDriftHistosByStation::name.
Referenced by writeHeader().
void CocoaToDDLMgr::newSectPost | ( | std::string | name | ) |
Definition at line 695 of file CocoaToDDLMgr.cc.
References file_.
Referenced by newSectPost_lv(), newSectPost_ma(), newSectPost_pv(), newSectPost_ro(), newSectPost_so(), and newSectPost_specPar().
void CocoaToDDLMgr::newSectPost_lv | ( | std::string | name | ) |
Definition at line 450 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, and newSectPost().
Referenced by writeLogicalVolumes().
void CocoaToDDLMgr::newSectPost_ma | ( | std::string | name | ) |
Definition at line 226 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, and newSectPost().
Referenced by writeMaterials().
void CocoaToDDLMgr::newSectPost_pv | ( | std::string | name | ) |
Definition at line 506 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, and newSectPost().
Referenced by writePhysicalVolumes().
void CocoaToDDLMgr::newSectPost_ro | ( | std::string | name | ) |
Definition at line 544 of file CocoaToDDLMgr.cc.
References newSectPost().
Referenced by writeRotations().
void CocoaToDDLMgr::newSectPost_so | ( | std::string | name | ) |
Definition at line 408 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, and newSectPost().
Referenced by writeSolids().
void CocoaToDDLMgr::newSectPost_specPar | ( | std::string | name | ) |
Definition at line 685 of file CocoaToDDLMgr.cc.
References newSectPost().
Referenced by writeSpecPars().
void CocoaToDDLMgr::newSectPre | ( | std::string | name, |
std::string | type | ||
) |
Definition at line 690 of file CocoaToDDLMgr.cc.
References file_.
Referenced by newSectPre_lv(), newSectPre_ma(), newSectPre_pv(), newSectPre_ro(), and newSectPre_so().
void CocoaToDDLMgr::newSectPre_lv | ( | std::string | name | ) |
Definition at line 417 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, filename_, newSectPre(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by writeLogicalVolumes().
void CocoaToDDLMgr::newSectPre_ma | ( | std::string | name | ) |
Definition at line 190 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, filename_, newSectPre(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by writeMaterials().
void CocoaToDDLMgr::newSectPre_pv | ( | std::string | name | ) |
Definition at line 459 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, filename_, newSectPre(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by writePhysicalVolumes().
void CocoaToDDLMgr::newSectPre_ro | ( | std::string | name | ) |
Definition at line 515 of file CocoaToDDLMgr.cc.
References filename_, newSectPre(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by writeRotations().
void CocoaToDDLMgr::newSectPre_so | ( | std::string | name | ) |
Definition at line 235 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, filename_, newSectPre(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by writeSolids().
void CocoaToDDLMgr::newSectPre_specPar | ( | std::string | name | ) |
Definition at line 548 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, file_, and filename_.
Referenced by writeSpecPars().
void CocoaToDDLMgr::pv | ( | OpticalObject * | opto | ) |
Definition at line 467 of file CocoaToDDLMgr.cc.
References buildRotationNumber(), OpticalObject::centreLocal(), gather_cfg::cout, file_, OpticalObject::name(), OpticalObject::parent(), OpticalObject::shortName(), submitPVValidationJobs::t, and UC.
Referenced by writePhysicalVolumes().
void CocoaToDDLMgr::ro | ( | const CLHEP::HepRotation & | ro, |
int | n | ||
) |
Definition at line 519 of file CocoaToDDLMgr.cc.
References file_, identity(), GlobalPosition_Frontier_DevDB_cff::tag, and UC.
Referenced by writeRotations().
std::string CocoaToDDLMgr::scrubString | ( | const std::string & | s | ) |
Definition at line 713 of file CocoaToDDLMgr.cc.
References runTheMatrix::ret, and AlCaHLTBitMon_QueryRunRegistry::string.
void CocoaToDDLMgr::so | ( | OpticalObject * | opto | ) |
Definition at line 243 of file CocoaToDDLMgr.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, gather_cfg::cout, cppFunctionSkipper::exception, file_, CocoaSolidShapeTubs::getDeltaPhiAngle(), CocoaSolidShapeTubs::getInnerRadius(), CocoaSolidShapeTubs::getOuterRadius(), CocoaSolidShapeTubs::getStartPhiAngle(), CocoaSolidShape::getType(), CocoaSolidShapeBox::getXHalfLength(), CocoaSolidShapeBox::getYHalfLength(), CocoaSolidShapeBox::getZHalfLength(), CocoaSolidShapeTubs::getZHalfLength(), ALIFileOut::name(), mergeVDriftHistosByStation::name, AlCaHLTBitMon_QueryRunRegistry::string, and UC.
Referenced by writeSolids().
void CocoaToDDLMgr::specPar | ( | OpticalObject * | opto | ) |
Definition at line 557 of file CocoaToDDLMgr.cc.
References OpticalObject::CoordinateEntryList(), OpticalObject::ExtraEntryList(), file_, OpticalObject::getCmsswID(), cuy::ii, Entry::name(), OpticalObject::name(), Entry::quality(), Entry::sigma(), AlCaHLTBitMon_QueryRunRegistry::string, Entry::type(), OpticalObject::type(), UC, and Entry::value().
Referenced by writeSpecPars().
void CocoaToDDLMgr::writeDDDFile | ( | ALIstring | filename | ) |
Definition at line 31 of file CocoaToDDLMgr.cc.
References newPartPost(), writeHeader(), writeLogicalVolumes(), writeMaterials(), writePhysicalVolumes(), writeRotations(), writeSolids(), and writeSpecPars().
void CocoaToDDLMgr::writeHeader | ( | ALIstring | filename | ) |
Definition at line 57 of file CocoaToDDLMgr.cc.
References newPartPre().
Referenced by writeDDDFile().
void CocoaToDDLMgr::writeLogicalVolumes | ( | ) |
Definition at line 99 of file CocoaToDDLMgr.cc.
References lv(), newSectPost_lv(), newSectPre_lv(), and Model::OptOList().
Referenced by writeDDDFile().
void CocoaToDDLMgr::writeMaterials | ( | ) |
Definition at line 60 of file CocoaToDDLMgr.cc.
References ma(), materialIsRepeated(), newSectPost_ma(), newSectPre_ma(), and Model::OptOList().
Referenced by writeDDDFile().
void CocoaToDDLMgr::writePhysicalVolumes | ( | ) |
Definition at line 118 of file CocoaToDDLMgr.cc.
References newSectPost_pv(), newSectPre_pv(), Model::OptOList(), and pv().
Referenced by writeDDDFile().
void CocoaToDDLMgr::writeRotations | ( | ) |
Definition at line 132 of file CocoaToDDLMgr.cc.
References newSectPost_ro(), newSectPre_ro(), ro(), and theRotationList.
Referenced by writeDDDFile().
void CocoaToDDLMgr::writeSolids | ( | ) |
Definition at line 78 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, newSectPost_so(), newSectPre_so(), Model::OptOList(), and so().
Referenced by writeDDDFile().
void CocoaToDDLMgr::writeSpecPars | ( | ) |
Definition at line 145 of file CocoaToDDLMgr.cc.
References measurementsAsSpecPars(), newSectPost_specPar(), newSectPre_specPar(), Model::OptOList(), specPar(), and writeSpecParsCocoa().
Referenced by writeDDDFile().
void CocoaToDDLMgr::writeSpecParsCocoa | ( | ) |
Definition at line 671 of file CocoaToDDLMgr.cc.
References file_, ALIFileOut::name(), and Model::OptOList().
Referenced by writeSpecPars().
|
private |
Definition at line 73 of file CocoaToDDLMgr.h.
Referenced by lv(), ma(), measurementsAsSpecPars(), newPartPost(), newPartPre(), newSectPost(), newSectPre(), newSectPre_specPar(), pv(), ro(), so(), specPar(), and writeSpecParsCocoa().
|
private |
Definition at line 74 of file CocoaToDDLMgr.h.
Referenced by newPartPre(), newSectPre_lv(), newSectPre_ma(), newSectPre_pv(), newSectPre_ro(), newSectPre_so(), and newSectPre_specPar().
|
staticprivate |
Definition at line 71 of file CocoaToDDLMgr.h.
Referenced by getInstance(), and production_tasks.Task::getname().
|
private |
Definition at line 76 of file CocoaToDDLMgr.h.
Referenced by ma(), and materialIsRepeated().
|
private |
Definition at line 77 of file CocoaToDDLMgr.h.
Referenced by buildRotationNumber(), and writeRotations().