CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DDDCmsTrackerContruction.cc
Go to the documentation of this file.
8 
9 using namespace cms;
10 
12 
13 }
14 
16  attribute = "TkDDDStructure"; // could come from .orcarc
17  std::string value = "any";
19  DDValue ddv(attribute,value,0);
21 
22  DDFilteredView fv(*cpv);
23  fv.addFilter(filter);
24  if (theCmsTrackerStringToEnum.type(ExtractStringFromDDD::getString(attribute,&fv)) != GeometricDet::Tracker){
25  fv.firstChild();
26  if (theCmsTrackerStringToEnum.type(ExtractStringFromDDD::getString(attribute,&fv)) != GeometricDet::Tracker){
27 
28  throw cms::Exception("Configuration") <<" The first child of the DDFilteredView is not what is expected \n"
29  <<ExtractStringFromDDD::getString(attribute,&fv)<<"\n";
30  }
31  }
32 
34  CmsTrackerBuilder theCmsTrackerBuilder;
35  theCmsTrackerBuilder.build(fv,tracker,attribute);
36 
37 
38  CmsTrackerDetIdBuilder theCmsTrackerDetIdBuilder;
39 
40  tracker = theCmsTrackerDetIdBuilder.buildId(tracker);
41  fv.parent();
42  //
43  // set the Tracker
44  //
45  //TrackerMapDDDtoID::instance().setTracker(tracker);
46  //NOTE: If it is decided that the TrackerMapDDDtoID should be
47  // constructed here, then we should return from this
48  // function so that the EventSetup can manage it
49 
50  return tracker;
51 }
52 
static std::string getString(std::string const &, DDFilteredView *)
bool parent()
set the current node to the parent node ...
void addFilter(const DDFilter &, log_op op=AND)
const GeometricDet * construct(const DDCompactView *cpv)
type of data representation of DDCompactView
Definition: DDCompactView.h:77
virtual void build(DDFilteredView &, GeometricDet *, std::string)
GeometricDet * buildId(GeometricDet *)
bool firstChild()
set the current node to the first child ...
void setCriteria(const DDValue &nameVal, comp_op, log_op l=AND, bool asString=true, bool merged=true)
Definition: DDFilter.cc:285
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.
Definition: DDFilter.h:37