21 msopto::const_iterator cite =
theOptODict.find(longName);
24 std::cerr <<
"!!!! EXITING: OptO not found: " << longName << std::endl;
27 std::cerr <<
"!! WARNING: OptO not found: " << longName << std::endl;
30 opto = (*cite).second;
38 std::vector<OpticalObject*> vopto;
39 msopto::const_iterator cite;
44 int sf =
oname.rfind(
'/');
45 if (nf != -1 && sf <= nf) {
46 vopto.push_back((*cite).second);
52 std::cerr <<
"!!!! EXITING: OptO not found: " <<
name << std::endl;
55 std::cerr <<
"!! WARNING: OptO not found: " <<
name << std::endl;
65 std::vector<OpticalObject*>::const_iterator vocite;
69 if ((*vocite)->parent() !=
nullptr)
static std::vector< OpticalObject * > & OptOList()
std::vector< OpticalObject * > findOptOs(const ALIstring &name, bool exists=false) const
void dumpOptOs(std::ostream &out=std::cout) const
static OpticalObjectMgr * theInstance
static OpticalObjectMgr * getInstance()
Get the only instance.
OpticalObject * findOptO(const ALIstring &longName, bool exists=false) const
static void dump3v(const CLHEP::Hep3Vector &vec, const std::string &msg)