24 msopto::const_iterator cite =
theOptODict.find( longName );
27 std::cerr <<
"!!!! EXITING: OptO not found: " << longName << std::endl;
30 std::cerr <<
"!! WARNING: OptO not found: " << longName << std::endl;
33 opto = (*cite).second;
44 std::vector<OpticalObject*> vopto;
45 msopto::const_iterator cite;
49 int nf = oname.rfind( name );
50 int sf = oname.rfind(
'/' );
51 if( nf != -1 && sf <= nf ) {
52 vopto.push_back( (*cite).second );
56 if( vopto.size() == 0 ) {
58 std::cerr <<
"!!!! EXITING: OptO not found: " << name << std::endl;
61 std::cerr <<
"!! WARNING: OptO not found: " << name << std::endl;
74 std::vector< OpticalObject* >::const_iterator vocite;
77 ALIUtils::dump3v( (*vocite)->centreGlobal(), (name +
" CENTRE GLOBAL: ").c_str() );
78 if( (*vocite)->parent() != 0 )
ALIUtils::dump3v( (*vocite)->centreLocal(), (name +
" CENTRE LOCAL: ").c_str() );
OpticalObject * findOptO(const ALIstring &longName, bool exists=0) const
static OpticalObjectMgr * theInstance
std::vector< OpticalObject * > findOptOs(const ALIstring &name, bool exists=0) const
static OpticalObjectMgr * getInstance()
Get the only instance.
void dumpOptOs(std::ostream &out=std::cout) const
static std::vector< OpticalObject * > & OptOList()
static void dump3v(const CLHEP::Hep3Vector &vec, const std::string &msg)