|
|
Go to the documentation of this file.
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) {
bool insideYOfWirePlane(float y) const
constexpr double convertDegToRad(NumType degrees)
double theAlignmentPinToFirstWire
CSCWireGeometry * theWireGeometry
virtual CSCWireGeometry * clone() const =0
Container consecutiveGroups
LocalPoint localPosition(const MeasurementPoint &) const override
float yOfWireGroup(int wireGroup, float x=0.) const
CSCWireTopology & operator=(const CSCWireTopology &)
Point3DBase< Scalar, LocalTag > LocalPoint
Log< level::Warning, false > LogWarning
CSCWireTopology(const CSCWireGroupPackage &wg, double yOfFirstWire, float wireAngleInDegrees)
std::pair< float, float > yLimitsOfWirePlane() const
int channel(const LocalPoint &p) const override
std::pair< float, float > equationOfWire(float wire) const
MeasurementPoint measurementPosition(const LocalPoint &) const override
virtual float yOfWire(float wire, float x=0.) const =0
float middleWireOfGroup(int wireGroup) const
float yResolution(int wireGroup=1) const
MeasurementError measurementError(const LocalPoint &, const LocalError &) const override
double narrowWidthOfWirePlane
double wideWidthOfWirePlane
float restrictToYOfWirePlane(float y) const
Measurement2DPoint MeasurementPoint
Measurement points are two-dimensional by default.
Container wiresInEachGroup
int wireGroup(int wire) const
~CSCWireTopology() override
virtual CSCWireGrouping * clone() const =0
LocalError localError(const MeasurementPoint &, const MeasurementError &) const override
CSCWireGrouping * theWireGrouping
constexpr NumType convertMmToCm(NumType millimeters)
virtual int wireGroup(int wire) const =0
virtual int numberOfWiresPerGroup(int wireGroup) const =0
std::pair< float, float > equationOfWire(float wire) const
double wireSpacing() const
virtual int nearestWire(const LocalPoint &lp) const =0