23 theCmsTrackerPanelBuilder.
build( fv, subdet, s );
44 edm::LogError(
"CmsTrackerDiskBuilder" ) <<
"ERROR - wrong SubDet to sort..... " << det->
components().front()->type();
50 uint32_t totalblade = comp.size()/2;
53 zminpanels.reserve( totalblade );
54 zmaxpanels.reserve( totalblade );
55 for( uint32_t j = 0; j < totalblade; j++ )
57 if( fabs( comp[2*j]->translation().z()) > fabs( comp[ 2*j +1 ]->translation().z()))
59 zmaxpanels.emplace_back( det->
component(2*j) );
60 zminpanels.emplace_back( det->
component(2*j+1) );
63 else if( fabs( comp[2*j]->translation().z()) < fabs( comp[ 2*j +1 ]->translation().z()))
65 zmaxpanels.emplace_back( det->
component(2*j+1) );
66 zminpanels.emplace_back( det->
component(2*j) );
70 edm::LogWarning(
"CmsTrackerDiskBuilder" ) <<
"WARNING - The Z of both panels are equal! ";
74 for( uint32_t fn = 0; fn < zminpanels.size(); fn++ )
76 uint32_t blade = fn + 1;
78 uint32_t
temp = ( blade << 2 ) | panel;
79 zminpanels[fn]->setGeographicalID( temp );
82 for( uint32_t bn = 0; bn < zmaxpanels.size(); bn++)
84 uint32_t blade = bn + 1;
86 uint32_t
temp = ( blade << 2) | panel;
87 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()
void TrackerStablePhiSort(RandomAccessIterator begin, RandomAccessIterator end, const Extractor &extr)
GeometricDet * component(size_t index)
std::vector< GeometricDet const * > ConstGeometricDetContainer
void addComponents(GeometricDetContainer const &cont)