16 LogTrace(
"DetConstruction") <<
" CmsTrackerOTLayerBuilder::buildComponent ";
23 theCmsTrackerLadderBuilder.
build(fv,subdet,s);
26 theCmsTrackerOTRingBuilder.
build( fv, subdet, s );
47 for(uint32_t
i=0;
i<comp.size();
i++){
50 rods.emplace_back(component);
52 if(component->translation().z() < 0.){
53 ringsNeg.emplace_back(component);
54 }
else if (component->translation().z() > 0.) {
55 ringsPos.emplace_back(component);
58 edm::LogError(
"CmsTrackerOTLayerBuilder")<<
"ERROR - wrong SubDet to sort..... "<<det->
components().front()->type();
63 if(!ringsNeg.empty()){
64 std::sort(ringsNeg.begin(),ringsNeg.end(),
isLessZ);
65 uint32_t totalringsNeg = ringsNeg.size();
67 LogTrace(
"DetConstruction") <<
" Neg rings ordered by z: ";
71 ringsNeg[
ring]->setGeographicalID(temp);
72 LogTrace(
"BuildingTrackerDetId") <<
"\t\t\t DetId >> " << temp <<
"(r: " <<
sqrt(ringsNeg[
ring]->translation().Perp2()) <<
", phi: " << ringsNeg[
ring]->phi() <<
", z: " << ringsNeg[
ring]->translation().z() <<
")";
79 uint32_t totalrods = rods.size();
81 LogTrace(
"DetConstruction") <<
" Rods ordered by phi: ";
82 for ( uint32_t rod = 0; rod < totalrods; rod++) {
83 uint32_t
temp = rod+1;
85 rods[rod]->setGeographicalID(
DetId(temp));
86 LogTrace(
"BuildingTrackerDetId") <<
"\t\t\t DetId >> " << temp <<
"(r: " <<
sqrt(rods[rod]->translation().Perp2()) <<
", phi: " << rods[rod]->phi() <<
", z: " << rods[rod]->translation().z() <<
")";
91 if(!ringsPos.empty()){
92 std::sort(ringsPos.begin(),ringsPos.end(),
isLessZ);
93 uint32_t totalringsPos = ringsPos.size();
96 LogTrace(
"DetConstruction") <<
" Pos rings ordered by z: ";
100 ringsPos[
ring]->setGeographicalID(temp);
101 LogTrace(
"BuildingTrackerDetId") <<
"\t\t\t DetId >> " << temp <<
"(r: " <<
sqrt(ringsPos[
ring]->translation().Perp2()) <<
", phi: " << ringsPos[
ring]->phi() <<
", z: " << ringsPos[
ring]->translation().z() <<
")";
static bool isLessZ(const GeometricDet *a, const GeometricDet *b)
void addComponent(GeometricDet *)
void sortNS(DDFilteredView &, GeometricDet *) override
void build(DDFilteredView &, GeometricDet *, std::string) override
static double getPhi(const GeometricDet *a)
std::vector< GeometricDet * > GeometricDetContainer
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
ConstGeometricDetContainer & components()
GeometricDet * component(size_t index)
void trackerStablePhiSort(RandomAccessIterator begin, RandomAccessIterator end, const Extractor &extr)
std::vector< GeometricDet const * > ConstGeometricDetContainer
void buildComponent(DDFilteredView &, GeometricDet *, std::string) override
void addComponents(GeometricDetContainer const &cont)
GeometricDet::GeometricEnumType type(std::string const &) const
CmsTrackerStringToEnum theCmsTrackerStringToEnum