CMS 3D CMS Logo

Public Member Functions | Private Member Functions

CmsDetConstruction Class Reference

#include <CmsDetConstruction.h>

Inheritance diagram for CmsDetConstruction:
CmsTrackerLevelBuilder CmsTrackerAbstractConstruction

List of all members.

Public Member Functions

void buildComponent (DDFilteredView &, GeometricDet *, std::string)

Private Member Functions

void buildDets (DDFilteredView &, GeometricDet *, std::string)
void buildSmallDets (DDFilteredView &, GeometricDet *, std::string)

Detailed Description

Adds GeometricDets representing final modules to the previous level

Definition at line 9 of file CmsDetConstruction.h.


Member Function Documentation

void CmsDetConstruction::buildComponent ( DDFilteredView fv,
GeometricDet mother,
std::string  attribute 
) [virtual]
void CmsDetConstruction::buildDets ( DDFilteredView ,
GeometricDet ,
std::string   
) [private]
void CmsDetConstruction::buildSmallDets ( DDFilteredView fv,
GeometricDet mother,
std::string  attribute 
) [private]

Definition at line 33 of file CmsDetConstruction.cc.

References GeometricDet::addComponent(), ExtractStringFromDDD::getString(), GeometricDet::setGeographicalID(), groupFilesInBlocks::temp, CmsTrackerLevelBuilder::theCmsTrackerStringToEnum, and CmsTrackerStringToEnum::type().

Referenced by buildComponent().

                                                            {

  GeometricDet * det  = 
    new GeometricDet(&fv,
                     theCmsTrackerStringToEnum.type(ExtractStringFromDDD::getString(attribute,&fv)));
  static const std::string stereo = "TrackerStereoDetectors";
  if (ExtractStringFromDDD::getString(stereo,&fv) == "true"){
    uint32_t temp = 1;
    det->setGeographicalID(DetId(temp));
  }else{
    uint32_t temp = 2;
    det->setGeographicalID(DetId(temp));
  }
  
  mother->addComponent(det); 
}