CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
DDDCmsTrackerContruction Class Reference

#include <DDDCmsTrackerContruction.h>

Public Member Functions

const GeometricDetconstruct (const DDCompactView *cpv, std::vector< int > detidShifts)
 
 DDDCmsTrackerContruction (void)
 

Protected Attributes

std::string attribute
 
CmsTrackerStringToEnum theCmsTrackerStringToEnum
 

Detailed Description

High level class to build a tracker. It will only build subdets, then call subdet builders

Definition at line 17 of file DDDCmsTrackerContruction.h.

Constructor & Destructor Documentation

DDDCmsTrackerContruction::DDDCmsTrackerContruction ( void  )

Definition at line 11 of file DDDCmsTrackerContruction.cc.

12 {}

Member Function Documentation

const GeometricDet * DDDCmsTrackerContruction::construct ( const DDCompactView cpv,
std::vector< int >  detidShifts 
)

Definition at line 15 of file DDDCmsTrackerContruction.cc.

References CmsTrackerLevelBuilder::build(), CmsTrackerDetIdBuilder::buildId(), Exception, ALCARECOTkAlBeamHalo_cff::filter, DDFilteredView::firstChild(), ExtractStringFromDDD::getString(), DDFilteredView::parent(), GeometricDet::Tracker, and mixOne_simraw_on_sim_cfi::tracker.

Referenced by TrackerGeometricDetESModule::produce().

16 {
17  attribute = "TkDDDStructure"; // could come from .orcarc
19 
20  DDFilteredView fv( *cpv, filter );
22  {
23  fv.firstChild();
25  {
26  throw cms::Exception( "Configuration" ) << " The first child of the DDFilteredView is not what is expected \n"
27  << ExtractStringFromDDD::getString( attribute, &fv ) << "\n";
28  }
29  }
30 
32  CmsTrackerBuilder theCmsTrackerBuilder;
33  theCmsTrackerBuilder.build( fv, tracker, attribute );
34 
35  CmsTrackerDetIdBuilder theCmsTrackerDetIdBuilder( detidShifts );
36 
37  tracker = theCmsTrackerDetIdBuilder.buildId( tracker );
38  fv.parent();
39  //
40  // set the Tracker
41  //
42  //TrackerMapDDDtoID::instance().setTracker(tracker);
43  //NOTE: If it is decided that the TrackerMapDDDtoID should be
44  // constructed here, then we should return from this
45  // function so that the EventSetup can manage it
46 
47  return tracker;
48 }
static std::string getString(std::string const &, DDFilteredView *)
virtual void build(DDFilteredView &, GeometricDet *, std::string)
CmsTrackerStringToEnum theCmsTrackerStringToEnum
GeometricDet::GeometricEnumType type(std::string const &) const

Member Data Documentation

std::string DDDCmsTrackerContruction::attribute
protected

Definition at line 25 of file DDDCmsTrackerContruction.h.

CmsTrackerStringToEnum DDDCmsTrackerContruction::theCmsTrackerStringToEnum
protected

Definition at line 26 of file DDDCmsTrackerContruction.h.