17 delete theWireGrouping;
18 delete theWireGeometry;
22 : theWireGrouping(nullptr), theWireGeometry(nullptr), theAlignmentPinToFirstWire(wg.alignmentPinToFirstWire / 10.) {
29 const float zeroprecision = 1.E-06;
39 LogTrace(
"CSCWireTopology|CSC") <<
"CSCWireTopology constructing CSCWireGeometry with:\n" 40 <<
" wireSpacing = " <<
wireSpacing * 10. <<
" (mm) " 41 <<
", yOfFirstWire = " << yOfFirstWire <<
" (cm) " 42 <<
", wireAngle = " << wireAngleInDegrees <<
" (deg) = " << wireAngleInRadians
44 <<
", extent: n, w, l = " << nw <<
", " <<
ww <<
", " << lw <<
" (cm)";
46 if (fabs(wireAngleInDegrees) > zeroprecision) {
54 : theAlignmentPinToFirstWire(mewt.theAlignmentPinToFirstWire) {
85 edm::LogWarning(
"CSC") <<
"CSCWireTopology: localPosition unimplemented. Don't use it." 91 edm::LogWarning(
"CSC") <<
"CSCWireTopology: localError unimplemented. Don't use it." 97 edm::LogWarning(
"CSC") <<
"CSCWireTopology: measurementPosition unimplemented. Don't use it." 103 edm::LogWarning(
"CSC") <<
"CSCWireTopology: measurementError unimplemented. Don't use it." 140 if (
y < ylim.first) {
142 }
else if (
y > ylim.second) {
153 if (
y < ylim.first) {
155 }
else if (
y > ylim.second) {
std::pair< float, float > equationOfWire(float wire) const
virtual CSCWireGeometry * clone() const =0
Point3DBase< Scalar, LocalTag > LocalPoint
constexpr double convertDegToRad(NumType degrees)
float restrictToYOfWirePlane(float y) const
float middleWireOfGroup(int wireGroup) const
CSCWireTopology(const CSCWireGroupPackage &wg, double yOfFirstWire, float wireAngleInDegrees)
double narrowWidthOfWirePlane
virtual int wireGroup(int wire) const =0
virtual int numberOfWiresPerGroup(int wireGroup) const =0
double theAlignmentPinToFirstWire
CSCWireGrouping * theWireGrouping
LocalPoint localPosition(const MeasurementPoint &) const override
Container wiresInEachGroup
std::pair< float, float > yLimitsOfWirePlane() const
CSCWireTopology & operator=(const CSCWireTopology &)
virtual float yOfWire(float wire, float x=0.) const =0
~CSCWireTopology() override
Measurement2DPoint MeasurementPoint
Measurement points are two-dimensional by default.
MeasurementError measurementError(const LocalPoint &, const LocalError &) const override
double wideWidthOfWirePlane
double wireSpacing() const
virtual int nearestWire(const LocalPoint &lp) const =0
constexpr NumType convertMmToCm(NumType millimeters)
virtual CSCWireGrouping * clone() const =0
int wireGroup(int wire) const
LocalError localError(const MeasurementPoint &, const MeasurementError &) const override
std::pair< float, float > equationOfWire(float wire) const
bool insideYOfWirePlane(float y) const
float yOfWireGroup(int wireGroup, float x=0.) const
Container consecutiveGroups
Log< level::Warning, false > LogWarning
int channel(const LocalPoint &p) const override
MeasurementPoint measurementPosition(const LocalPoint &) const override
float yResolution(int wireGroup=1) const
CSCWireGeometry * theWireGeometry