File indexing completed on 2024-04-06 12:14:24
0001 #ifndef CSC_UNGANGED_WIRE_GROUPING_H
0002 #define CSC_UNGANGED_WIRE_GROUPING_H
0003
0004
0005
0006
0007
0008
0009
0010
0011 #include "Geometry/CSCGeometry/interface/CSCWireGrouping.h"
0012
0013 class CSCUngangedWireGrouping : public CSCWireGrouping {
0014 public:
0015 virtual ~CSCUngangedWireGrouping() {}
0016 explicit CSCUngangedWireGrouping(int nwires) : theNumberOfWires(nwires) {}
0017
0018
0019
0020
0021
0022
0023
0024 int numberOfWires() const { return theNumberOfWires; }
0025
0026
0027
0028
0029 int numberOfWireGroups() const { return numberOfWires(); }
0030
0031
0032
0033
0034 int numberOfWiresPerGroup(int wireGroup) const { return 1; }
0035
0036
0037
0038
0039 int wireGroup(int wire) const { return wire; }
0040
0041
0042
0043
0044
0045
0046
0047
0048 float middleWireOfGroup(int wireGroup) const { return static_cast<float>(wireGroup); }
0049
0050
0051
0052
0053
0054 CSCWireGrouping* clone() const { return new CSCUngangedWireGrouping(*this); }
0055
0056 private:
0057 int theNumberOfWires;
0058 };
0059
0060 #endif