Definition at line 17 of file bRod.h.
bRod::bRod |
( |
handles::const_iterator |
begin, |
|
|
handles::const_iterator |
end, |
|
|
bool |
debugVal = false |
|
) |
| |
Constructor from list of volumes.
Definition at line 19 of file bRod.cc.
References ClusterizingHistogram::clusterize(), gather_cfg::cout, debug, f, ClusterizingHistogram::fill(), dqmdumpme::first, mps_fire::i, dqmdumpme::last, phimax, phimin, precomputed_value_sort(), magneticfield::printUniqueNames(), L1TObjectsTimingClient_cff::resolution, slabs, volumes, SiStripMonitorCluster_cfi::zmax, and SiStripMonitorCluster_cfi::zmin.
35 for (handles::const_iterator
i =
first;
i !=
last; ++
i) {
36 hisZ.fill((*i)->center().z());
38 std::vector<float> zClust = hisZ.clusterize(
resolution);
41 std::cout <<
" Found " << zClust.size() <<
" clusters in Z, " 42 <<
" slabs: " << std::endl;
44 handles::const_iterator slabStart =
first;
45 handles::const_iterator separ =
first;
47 for (
unsigned int i = 0;
i < zClust.size() - 1; ++
i) {
48 float zSepar = (zClust[
i] + zClust[
i + 1]) / 2.
f;
49 while ((*separ)->center().z() < zSepar)
52 std::cout <<
" Slab at: " << zClust[
i] <<
" elements: " << separ - slabStart <<
" unique volumes: ";
61 std::cout <<
" Slab at: " << zClust.back() <<
" elements: " <<
last - separ <<
" unique volumes: ";
68 std::vector<bSlab>::const_iterator
i =
slabs.begin();
72 if (fabs(
phimax - (*i).maxPhi()) > 0.001 || fabs(
phimin - (*i).minPhi()) > 0.001) {
74 std::cout <<
"*** WARNING: slabs in this rod have different dphi! minphi " <<
phimin;
75 std::cout <<
" != " << (*i).minPhi() <<
" or maxphi " <<
phimax <<
" != " << (*i).maxPhi() << std::endl;
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, const Compare &comp)
std::vector< bSlab > slabs