9 #include "CLHEP/Units/GlobalSystemOfUnits.h" 21 float wireAngleInDegrees ) :
32 const float zeroprecision = 1.E-06;
34 float wireAngleInRadians = wireAngleInDegrees*degree;
43 "CSCWireTopology constructing CSCWireGeometry with:\n" <<
44 " wireSpacing = " << wireSpacing*10. <<
" (mm) " <<
45 ", yOfFirstWire = " << yOfFirstWire <<
" (cm) " <<
46 ", wireAngle = " << wireAngleInDegrees <<
" (deg) = " << wireAngleInRadians <<
" (rads)" <<
47 ", extent: n, w, l = " << nw <<
", " << ww <<
", " << lw <<
" (cm)";
49 if ( fabs(wireAngleInDegrees) > zeroprecision ) {
67 if ( &mewt !=
this ) {
87 edm::LogWarning(
"CSC") <<
"CSCWireTopology: localPosition unimplemented. Don't use it." <<
"\n";
93 edm::LogWarning(
"CSC") <<
"CSCWireTopology: localError unimplemented. Don't use it." <<
"\n";
99 edm::LogWarning(
"CSC") <<
"CSCWireTopology: measurementPosition unimplemented. Don't use it." <<
"\n";
105 edm::LogWarning(
"CSC") <<
"CSCWireTopology: measurementError unimplemented. Don't use it." <<
"\n";
141 if ( y < ylim.first ) {
144 else if ( y > ylim.second ) {
155 if ( y < ylim.first ) {
158 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
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
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