17 using namespace SurfaceOrientation;
22 handles::const_iterator
end) :
23 theVolumes(begin,end),
42 for (handles::const_iterator
i=first;
i!=
last; ++
i){
43 hisZ.
fill((*i)->center().z());
45 vector<float> zClust = hisZ.
clusterize(resolution);
48 <<
" layers: " << endl;
50 handles::const_iterator layStart =
first;
51 handles::const_iterator separ =
first;
53 for (
unsigned int i=0;
i<zClust.size() - 1; ++
i) {
54 float zSepar = (zClust[
i] + zClust[
i+1])/2.
f;
55 while ((*separ)->center().z() < zSepar) ++separ;
57 cout <<
" Layer at: " << zClust[
i]
58 <<
" elements: " << separ-layStart <<
" unique volumes: ";
67 cout <<
" Layer at: " << zClust.back() <<
" elements: " << last-separ
68 <<
" unique volumes: ";
84 vector<MagELayer*> mLayers;
85 for (vector<eLayer>::const_iterator lay =
layers.begin();
86 lay!=
layers.end(); ++lay) {
87 mLayers.push_back((*lay).buildMagELayer());
89 msector =
new MagESector(mLayers, theVolumes.front()->minPhi());
std::vector< eLayer > layers
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
MagESector * buildMagESector() const
Construct the MagESector upon request.
std::vector< float > clusterize(float resolution)
eSector(handles::const_iterator begin, handles::const_iterator end)
Constructor from list of volumes.
static void printUniqueNames(handles::const_iterator begin, handles::const_iterator end, bool uniq=true)
Just for debugging...
void precomputed_value_sort(RandomAccessIterator begin, RandomAccessIterator end, const Extractor &extr)