24 theCmsTrackerPanelBuilder.
build( fv, subdet, s );
45 edm::LogError(
"CmsTrackerDiskBuilder" ) <<
"ERROR - wrong SubDet to sort..... " << det->
components().front()->type();
51 uint32_t totalblade = comp.size()/2;
54 zminpanels.reserve( totalblade );
55 zmaxpanels.reserve( totalblade );
56 for( uint32_t j = 0; j < totalblade; j++ )
58 if(
std::abs( comp[2*j]->translation().z()) >
std::abs( comp[ 2*j +1 ]->translation().z()))
60 zmaxpanels.emplace_back( det->
component(2*j) );
61 zminpanels.emplace_back( det->
component(2*j+1) );
64 else if(
std::abs( comp[2*j]->translation().z()) <
std::abs( comp[ 2*j +1 ]->translation().z()))
66 zmaxpanels.emplace_back( det->
component(2*j+1) );
67 zminpanels.emplace_back( det->
component(2*j) );
71 edm::LogWarning(
"CmsTrackerDiskBuilder" ) <<
"WARNING - The Z of both panels are equal! ";
75 for( uint32_t fn = 0; fn < zminpanels.size(); fn++ )
77 uint32_t blade = fn + 1;
79 uint32_t
temp = ( blade << 2 ) | panel;
80 zminpanels[fn]->setGeographicalID( temp );
83 for( uint32_t bn = 0; bn < zmaxpanels.size(); bn++)
85 uint32_t blade = bn + 1;
87 uint32_t
temp = ( blade << 2) | panel;
88 zmaxpanels[bn]->setGeographicalID( temp );
void sortNS(DDFilteredView &, GeometricDet *) override
void buildComponent(DDFilteredView &, GeometricDet *, std::string) override
void addComponent(GeometricDet *)
void build(DDFilteredView &, GeometricDet *, std::string) override
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()
Abs< T >::type abs(const T &t)
GeometricDet * component(size_t index)
void trackerStablePhiSort(RandomAccessIterator begin, RandomAccessIterator end, const Extractor &extr)
std::vector< GeometricDet const * > ConstGeometricDetContainer
void addComponents(GeometricDetContainer const &cont)