File indexing completed on 2023-03-17 13:02:39
0001 #ifndef CSC_GANGED_WIRE_GROUPING_H
0002 #define CSC_GANGED_WIRE_GROUPING_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include "Geometry/CSCGeometry/interface/CSCWireGrouping.h"
0016 #include <vector>
0017
0018 class CSCGangedWireGrouping : public CSCWireGrouping {
0019 public:
0020 typedef std::vector<int> Container;
0021 typedef Container::const_iterator CIterator;
0022
0023 ~CSCGangedWireGrouping() override {}
0024
0025
0026
0027
0028 CSCGangedWireGrouping(const Container& consecutiveGroups,
0029 const Container& wiresInConsecutiveGroups,
0030 int numberOfGroups);
0031
0032
0033
0034
0035
0036
0037
0038 int numberOfWires() const override { return theNumberOfWires; }
0039
0040
0041
0042
0043 int numberOfWireGroups() const override { return theNumberOfGroups; }
0044
0045
0046
0047
0048 int numberOfWiresPerGroup(int wireGroup) const override;
0049
0050
0051
0052
0053 int wireGroup(int wire) const override;
0054
0055
0056
0057
0058
0059
0060
0061 float middleWireOfGroup(int wireGroup) const override;
0062
0063
0064
0065
0066
0067 CSCWireGrouping* clone() const override { return new CSCGangedWireGrouping(*this); }
0068
0069 private:
0070
0071 int theNumberOfWires;
0072 int theNumberOfGroups;
0073 Container theFirstWireOfEachWireGroup;
0074 Container theNumberOfWiresPerWireGroup;
0075 };
0076
0077 #endif