17 delete theWireGrouping;
18 delete theWireGeometry;
24 float wireAngleInDegrees ) :
26 theAlignmentPinToFirstWire( wg.alignmentPinToFirstWire / 10. ) {
35 const float zeroprecision = 1.E-06;
46 "CSCWireTopology constructing CSCWireGeometry with:\n" <<
47 " wireSpacing = " << wireSpacing*10. <<
" (mm) " <<
48 ", yOfFirstWire = " << yOfFirstWire <<
" (cm) " <<
49 ", wireAngle = " << wireAngleInDegrees <<
" (deg) = " << wireAngleInRadians <<
" (rads)" <<
50 ", extent: n, w, l = " << nw <<
", " << ww <<
", " << lw <<
" (cm)";
52 if ( fabs(wireAngleInDegrees) > zeroprecision ) {
70 if ( &mewt !=
this ) {
90 edm::LogWarning(
"CSC") <<
"CSCWireTopology: localPosition unimplemented. Don't use it." <<
"\n";
96 edm::LogWarning(
"CSC") <<
"CSCWireTopology: localError unimplemented. Don't use it." <<
"\n";
102 edm::LogWarning(
"CSC") <<
"CSCWireTopology: measurementPosition unimplemented. Don't use it." <<
"\n";
108 edm::LogWarning(
"CSC") <<
"CSCWireTopology: measurementError unimplemented. Don't use it." <<
"\n";
144 if ( y < ylim.first ) {
147 else if ( y > ylim.second ) {
158 if ( y < ylim.first ) {
161 else if ( y > ylim.second ) {
Point3DBase< Scalar, LocalTag > LocalPoint
std::pair< float, float > equationOfWire(float wire) const
CSCWireTopology(const CSCWireGroupPackage &wg, double yOfFirstWire, float wireAngleInDegrees)
double narrowWidthOfWirePlane
MeasurementError measurementError(const LocalPoint &, const LocalError &) const override
double theAlignmentPinToFirstWire
CSCWireGrouping * theWireGrouping
Container wiresInEachGroup
double wireSpacing() const
float yOfWireGroup(int wireGroup, float x=0.) const
CSCWireTopology & operator=(const CSCWireTopology &)
bool insideYOfWirePlane(float y) const
~CSCWireTopology() override
LocalPoint localPosition(const MeasurementPoint &) const override
Measurement2DPoint MeasurementPoint
Measurement points are two-dimensional by default.
std::pair< float, float > yLimitsOfWirePlane() const
virtual float yOfWire(float wire, float x=0.) const =0
double wideWidthOfWirePlane
virtual int wireGroup(int wire) const =0
virtual CSCWireGeometry * clone() const =0
virtual CSCWireGrouping * clone() const =0
int wireGroup(int wire) const
MeasurementPoint measurementPosition(const LocalPoint &) const override
constexpr long double convertDegToRad(NumType degrees)
float middleWireOfGroup(int wireGroup) const
virtual int numberOfWiresPerGroup(int wireGroup) const =0
std::pair< float, float > equationOfWire(float wire) const
float yResolution(int wireGroup=1) const
float restrictToYOfWirePlane(float y) const
constexpr NumType convertMmToCm(NumType millimeters)
int channel(const LocalPoint &p) const override
Container consecutiveGroups
LocalError localError(const MeasurementPoint &, const MeasurementError &) const override
CSCWireGeometry * theWireGeometry
virtual int nearestWire(const LocalPoint &lp) const =0