#include "Geometry/TrackerNumberingBuilder/interface/GeometricDet.h"
#include "DetectorDescription/Core/interface/DDFilteredView.h"
#include "DetectorDescription/Core/interface/DDSolid.h"
#include "Geometry/TrackerNumberingBuilder/interface/TrackerShapeToBounds.h"
#include "CLHEP/Units/SystemOfUnits.h"
#include "DetectorDescription/Core/interface/DDMaterial.h"
#include "DetectorDescription/Core/interface/DDExpandedNode.h"
#include <boost/bind.hpp>
#include <cfloat>
#include <vector>
#include <string>
Go to the source code of this file.
Functions | |
template<typename DDView> | |
double | getDouble (const std::string &s, DDView const &ev) |
template<typename DDView> | |
std::string | getString (const std::string &s, DDView const &ev) |
double @8613::getDouble | ( | const std::string & | s, | |
DDView const & | ev | |||
) | [inline, static] |
Definition at line 20 of file GeometricDet.cc.
References DDfetch(), Exception, it, HLT_VtxMuL3::result, DDValue::strings(), and pyDBSRunClass::temp.
Referenced by VisG4TwigOps::actionTransparency(), GeometricDet::GeometricDet(), HCALConfigDB::getOnlineLUT(), and HCALConfigDB::getOnlineLUTFromXML().
00020 { 00021 DDValue val(s); 00022 std::vector<const DDsvalues_type *> result; 00023 ev.specificsV(result); 00024 std::vector<const DDsvalues_type *>::iterator it = result.begin(); 00025 bool foundIt = false; 00026 for (; it != result.end(); ++it) 00027 { 00028 foundIt = DDfetch(*it,val); 00029 if (foundIt) break; 00030 } 00031 if (foundIt) 00032 { 00033 const std::vector<std::string> & temp = val.strings(); 00034 if (temp.size() != 1) 00035 { 00036 throw cms::Exception("Configuration") << "I need 1 "<< s << " tags"; 00037 } 00038 return double(::atof(temp[0].c_str())); 00039 } 00040 return 0; 00041 }
std::string @8613::getString | ( | const std::string & | s, | |
DDView const & | ev | |||
) | [inline, static] |
Definition at line 44 of file GeometricDet.cc.
References DDfetch(), Exception, it, HLT_VtxMuL3::result, DDValue::strings(), and pyDBSRunClass::temp.
Referenced by Ig3DBaseBrowser::drawGrid(), GeometricDet::GeometricDet(), DBlmapReader::GetLMAP(), HCALConfigDB::getOnlineLUT(), HCALConfigDB::getOnlineLUTFromXML(), Ig3DViewpointsCategory::load(), Ig3DMStringControl::newIndex(), Ig3DGridCategory::openIVFile(), Ig3DWindow::printViews(), and Ig3DMStringControl::setValue().
00044 { 00045 DDValue val(s); 00046 std::vector<const DDsvalues_type *> result; 00047 ev.specificsV(result); 00048 std::vector<const DDsvalues_type *>::iterator it = result.begin(); 00049 bool foundIt = false; 00050 for (; it != result.end(); ++it) 00051 { 00052 foundIt = DDfetch(*it,val); 00053 if (foundIt) break; 00054 00055 } 00056 if (foundIt) 00057 { 00058 const std::vector<std::string> & temp = val.strings(); 00059 if (temp.size() != 1) 00060 { 00061 throw cms::Exception("Configuration") << "I need 1 "<< s << " tags"; 00062 } 00063 return temp[0]; 00064 } 00065 return "NotFound"; 00066 }