#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.
References buildRotationNumber(), edmStreamStallGrapher::extension, corrVsCorr::filename, getInstance(), lv(), ma(), materialIsRepeated(), measurementsAsSpecPars(), dqmiodumpmetadata::n, Skims_PA_cff::name, newPartPost(), newPartPre(), newSectPost(), newSectPost_lv(), newSectPost_ma(), newSectPost_pv(), newSectPost_ro(), newSectPost_so(), newSectPost_specPar(), newSectPre(), newSectPre_lv(), newSectPre_ma(), newSectPre_pv(), newSectPre_ro(), newSectPre_so(), newSectPre_specPar(), pv(), ro(), alignCSCRings::s, scrubString(), so(), specPar(), AlCaHLTBitMon_QueryRunRegistry::string, writeDDDFile(), writeHeader(), writeLogicalVolumes(), writeMaterials(), writePhysicalVolumes(), writeRotations(), writeSolids(), writeSpecPars(), and writeSpecParsCocoa().
ALIint CocoaToDDLMgr::buildRotationNumber | ( | OpticalObject * | opto | ) |
Definition at line 741 of file CocoaToDDLMgr.cc.
References OpticalObject::rmLocal(), and theRotationList.
Referenced by pv(), and ~CocoaToDDLMgr().
|
static |
Definition at line 23 of file CocoaToDDLMgr.cc.
References CocoaToDDLMgr(), and instance.
Referenced by ~CocoaToDDLMgr().
void CocoaToDDLMgr::lv | ( | OpticalObject * | opto | ) |
Definition at line 425 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, file_, OpticalObject::getMaterial(), CocoaMaterialElementary::getName(), Skims_PA_cff::name, OpticalObject::name(), OpticalObject::shortName(), AlCaHLTBitMon_QueryRunRegistry::string, and OpticalObject::type().
Referenced by writeLogicalVolumes(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::ma | ( | CocoaMaterialElementary * | ma | ) |
g*cm3;
Definition at line 198 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, fastSimProducer_cff::density, file_, CocoaMaterialElementary::getA(), CocoaMaterialElementary::getDensity(), CocoaMaterialElementary::getName(), CocoaMaterialElementary::getSymbol(), CocoaMaterialElementary::getZ(), theMaterialList, and UC.
Referenced by materialIsRepeated(), writeMaterials(), and ~CocoaToDDLMgr().
ALIbool CocoaToDDLMgr::materialIsRepeated | ( | CocoaMaterialElementary * | ma | ) |
Definition at line 698 of file CocoaToDDLMgr.cc.
References ma(), and theMaterialList.
Referenced by writeMaterials(), and ~CocoaToDDLMgr().
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(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::newPartPost | ( | std::string | name, |
std::string | extension | ||
) |
Definition at line 183 of file CocoaToDDLMgr.cc.
References file_.
Referenced by writeDDDFile(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::newPartPre | ( | std::string | name | ) |
Definition at line 165 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, file_, filename_, and Skims_PA_cff::name.
Referenced by writeHeader(), and ~CocoaToDDLMgr().
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(), newSectPost_specPar(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::newSectPost_lv | ( | std::string | name | ) |
Definition at line 450 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, and newSectPost().
Referenced by writeLogicalVolumes(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::newSectPost_ma | ( | std::string | name | ) |
Definition at line 226 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, and newSectPost().
Referenced by writeMaterials(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::newSectPost_pv | ( | std::string | name | ) |
Definition at line 506 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, and newSectPost().
Referenced by writePhysicalVolumes(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::newSectPost_ro | ( | std::string | name | ) |
Definition at line 544 of file CocoaToDDLMgr.cc.
References newSectPost().
Referenced by writeRotations(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::newSectPost_so | ( | std::string | name | ) |
Definition at line 408 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, and newSectPost().
Referenced by writeSolids(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::newSectPost_specPar | ( | std::string | name | ) |
Definition at line 685 of file CocoaToDDLMgr.cc.
References newSectPost().
Referenced by writeSpecPars(), and ~CocoaToDDLMgr().
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(), newSectPre_so(), and ~CocoaToDDLMgr().
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(), and ~CocoaToDDLMgr().
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(), and ~CocoaToDDLMgr().
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(), and ~CocoaToDDLMgr().
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(), and ~CocoaToDDLMgr().
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(), and ~CocoaToDDLMgr().
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(), and ~CocoaToDDLMgr().
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(), OrderedSet::t, and UC.
Referenced by writePhysicalVolumes(), and ~CocoaToDDLMgr().
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(), and ~CocoaToDDLMgr().
std::string CocoaToDDLMgr::scrubString | ( | const std::string & | s | ) |
Definition at line 713 of file CocoaToDDLMgr.cc.
References runTheMatrix::ret, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ~CocoaToDDLMgr().
void CocoaToDDLMgr::so | ( | OpticalObject * | opto | ) |
Definition at line 243 of file CocoaToDDLMgr.cc.
References beam_dqm_sourceclient-live_cfg::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(), Skims_PA_cff::name, ALIFileOut::name(), AlCaHLTBitMon_QueryRunRegistry::string, and UC.
Referenced by writeSolids(), and ~CocoaToDDLMgr().
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(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::writeDDDFile | ( | ALIstring | filename | ) |
Definition at line 31 of file CocoaToDDLMgr.cc.
References newPartPost(), writeHeader(), writeLogicalVolumes(), writeMaterials(), writePhysicalVolumes(), writeRotations(), writeSolids(), and writeSpecPars().
Referenced by ~CocoaToDDLMgr().
void CocoaToDDLMgr::writeHeader | ( | ALIstring | filename | ) |
Definition at line 57 of file CocoaToDDLMgr.cc.
References newPartPre().
Referenced by writeDDDFile(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::writeLogicalVolumes | ( | ) |
Definition at line 99 of file CocoaToDDLMgr.cc.
References lv(), newSectPost_lv(), newSectPre_lv(), and Model::OptOList().
Referenced by writeDDDFile(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::writeMaterials | ( | ) |
Definition at line 60 of file CocoaToDDLMgr.cc.
References ma(), materialIsRepeated(), newSectPost_ma(), newSectPre_ma(), and Model::OptOList().
Referenced by writeDDDFile(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::writePhysicalVolumes | ( | ) |
Definition at line 118 of file CocoaToDDLMgr.cc.
References newSectPost_pv(), newSectPre_pv(), Model::OptOList(), and pv().
Referenced by writeDDDFile(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::writeRotations | ( | ) |
Definition at line 132 of file CocoaToDDLMgr.cc.
References newSectPost_ro(), newSectPre_ro(), ro(), and theRotationList.
Referenced by writeDDDFile(), and ~CocoaToDDLMgr().
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(), and ~CocoaToDDLMgr().
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(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::writeSpecParsCocoa | ( | ) |
Definition at line 671 of file CocoaToDDLMgr.cc.
References file_, ALIFileOut::name(), and Model::OptOList().
Referenced by writeSpecPars(), and ~CocoaToDDLMgr().
|
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().