11 const Container& wiresInConsecutiveGroups,
12 int numberOfGroups ) :
13 theNumberOfGroups(numberOfGroups) {
17 int countConsecutive = 0;
19 for (
CIterator it = consecutiveGroups.begin();
20 it != consecutiveGroups.end(); ++it ) {
26 for (
int ic = 0; ic != igs; ++ic ) {
28 int wiresInGroup= wiresInConsecutiveGroups[countConsecutive];
30 firstWire += wiresInGroup;
35 firstWire += wiresInConsecutiveGroups[countConsecutive];
42 if ( countGroups != numberOfGroups ) {
43 edm::LogError(
"CSC") <<
"CSCGangedWireGrouping: ERROR in parsing wire info from DDD..." <<
"\n";
44 edm::LogError(
"CSC") <<
"groups expected = " << numberOfGroups <<
45 " groups seen = " << countGroups <<
"\n";
46 edm::LogError(
"CSC") <<
"Please report this error to Tim.Cox@cern.ch" <<
"\n";
49 LogTrace(
"CSCWireGeometry|CSC") <<
"CSCGangedWireGrouping constructor complete," <<
50 " wire group list follows... ";
53 LogTrace(
"CSCWireGeometry|CSC") <<
" wg# 1st wire #wires";
92 if ( wire < (firstWire + wiresInGroup) ) wireG = ++id;
103 float middleWire = 0.;
Container theNumberOfWiresPerWireGroup
CSCGangedWireGrouping(const Container &consecutiveGroups, const Container &wiresInConsecutiveGroups, int numberOfGroups)
Container theFirstWireOfEachWireGroup
std::vector< int > Container
int wireGroup(int wire) const
Container::const_iterator CIterator
int numberOfWiresPerGroup(int wireGroup) const
float middleWireOfGroup(int wireGroup) const