#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 26 of file CocoaToDDLMgr.h.
|
inline |
|
inline |
Definition at line 32 of file CocoaToDDLMgr.h.
References buildRotationNumber(), runGCPTkAlMap::extension, corrVsCorr::filename, getInstance(), lv(), ma(), materialIsRepeated(), measurementsAsSpecPars(), gen::n, dataset::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 815 of file CocoaToDDLMgr.cc.
References OpticalObject::rmLocal(), and theRotationList.
Referenced by pv(), and ~CocoaToDDLMgr().
|
static |
Definition at line 25 of file CocoaToDDLMgr.cc.
References CocoaToDDLMgr(), and instance.
Referenced by ~CocoaToDDLMgr().
void CocoaToDDLMgr::lv | ( | OpticalObject * | opto | ) |
Definition at line 466 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, file_, OpticalObject::getMaterial(), CocoaMaterialElementary::getName(), dataset::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 221 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(), writeMaterials(), and ~CocoaToDDLMgr().
ALIbool CocoaToDDLMgr::materialIsRepeated | ( | CocoaMaterialElementary * | ma | ) |
Definition at line 768 of file CocoaToDDLMgr.cc.
References ma(), and theMaterialList.
Referenced by writeMaterials(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::measurementsAsSpecPars | ( | ) |
Definition at line 677 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 203 of file CocoaToDDLMgr.cc.
References file_.
Referenced by writeDDDFile(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::newPartPre | ( | std::string | name | ) |
Definition at line 184 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, file_, filename_, and dataset::name.
Referenced by writeHeader(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::newSectPost | ( | std::string | name | ) |
Definition at line 760 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 494 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 252 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 554 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 598 of file CocoaToDDLMgr.cc.
References newSectPost().
Referenced by writeRotations(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::newSectPost_so | ( | std::string | name | ) |
Definition at line 446 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 744 of file CocoaToDDLMgr.cc.
References newSectPost().
Referenced by writeSpecPars(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::newSectPre | ( | std::string | name, |
std::string | type | ||
) |
Definition at line 753 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 457 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 212 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 505 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 565 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 263 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 606 of file CocoaToDDLMgr.cc.
References gather_cfg::cout, file_, and filename_.
Referenced by writeSpecPars(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::pv | ( | OpticalObject * | opto | ) |
Definition at line 514 of file CocoaToDDLMgr.cc.
References buildRotationNumber(), OpticalObject::centreLocal(), gather_cfg::cout, file_, OpticalObject::name(), OpticalObject::parent(), OpticalObject::shortName(), protons_cff::t, and UC.
Referenced by writePhysicalVolumes(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::ro | ( | const CLHEP::HepRotation & | ro, |
int | n | ||
) |
Definition at line 572 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 784 of file CocoaToDDLMgr.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ~CocoaToDDLMgr().
void CocoaToDDLMgr::so | ( | OpticalObject * | opto | ) |
Definition at line 272 of file CocoaToDDLMgr.cc.
References MessageLogger_cfi::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(), dataset::name, AlCaHLTBitMon_QueryRunRegistry::string, and UC.
Referenced by writeSolids(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::specPar | ( | OpticalObject * | opto | ) |
Definition at line 618 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 34 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 63 of file CocoaToDDLMgr.cc.
References newPartPre().
Referenced by writeDDDFile(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::writeLogicalVolumes | ( | ) |
Definition at line 108 of file CocoaToDDLMgr.cc.
References lv(), newSectPost_lv(), newSectPre_lv(), and Model::OptOList().
Referenced by writeDDDFile(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::writeMaterials | ( | ) |
Definition at line 69 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 128 of file CocoaToDDLMgr.cc.
References newSectPost_pv(), newSectPre_pv(), Model::OptOList(), and pv().
Referenced by writeDDDFile(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::writeRotations | ( | ) |
Definition at line 144 of file CocoaToDDLMgr.cc.
References newSectPost_ro(), newSectPre_ro(), ro(), and theRotationList.
Referenced by writeDDDFile(), and ~CocoaToDDLMgr().
void CocoaToDDLMgr::writeSolids | ( | ) |
Definition at line 86 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 159 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 727 of file CocoaToDDLMgr.cc.
References file_, ALIFileOut::name(), and Model::OptOList().
Referenced by writeSpecPars(), and ~CocoaToDDLMgr().
|
private |
Definition at line 76 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 77 of file CocoaToDDLMgr.h.
Referenced by newPartPre(), newSectPre_lv(), newSectPre_ma(), newSectPre_pv(), newSectPre_ro(), newSectPre_so(), and newSectPre_specPar().
|
staticprivate |
Definition at line 74 of file CocoaToDDLMgr.h.
Referenced by getInstance(), and production_tasks.Task::getname().
|
private |
Definition at line 79 of file CocoaToDDLMgr.h.
Referenced by ma(), and materialIsRepeated().
|
private |
Definition at line 80 of file CocoaToDDLMgr.h.
Referenced by buildRotationNumber(), and writeRotations().