Geometry
CSCGeometry
src
CSCNonslantedWireGeometry.h
Go to the documentation of this file.
1
#ifndef CSC_NONSLANTED_WIRE_GEOMETRY_H
2
#define CSC_NONSLANTED_WIRE_GEOMETRY_H
3
12
#include "
Geometry/CSCGeometry/interface/CSCWireGeometry.h
"
13
#include "
Geometry/CSCGeometry/interface/nint.h
"
14
#include "
DataFormats/GeometryVector/interface/LocalPoint.h
"
15
16
class
CSCNonslantedWireGeometry
:
public
CSCWireGeometry
{
17
public
:
18
~CSCNonslantedWireGeometry
()
override
{}
19
23
CSCNonslantedWireGeometry
(
double
wireSpacing
,
double
yOfFirstWire
,
double
narrow,
double
wide,
double
length)
24
:
CSCWireGeometry
(
wireSpacing
,
yOfFirstWire
, narrow, wide, length) {}
25
29
float
wireAngle
()
const override
{
return
0.; }
30
35
int
nearestWire
(
const
LocalPoint
& lp)
const override
{
return
1 +
nint
((lp.
y
() -
yOfFirstWire
()) /
wireSpacing
()); }
36
41
float
yOfWire
(
float
wire,
float
x
= 0.)
const override
{
return
yOfFirstWire
() + (wire - 1.) *
wireSpacing
(); }
42
47
CSCWireGeometry
*
clone
()
const override
{
return
new
CSCNonslantedWireGeometry
(*
this
); }
48
};
49
50
#endif
CSCNonslantedWireGeometry::~CSCNonslantedWireGeometry
~CSCNonslantedWireGeometry() override
Definition:
CSCNonslantedWireGeometry.h:18
CSCNonslantedWireGeometry::wireAngle
float wireAngle() const override
Definition:
CSCNonslantedWireGeometry.h:29
CSCNonslantedWireGeometry
Definition:
CSCNonslantedWireGeometry.h:16
CSCWireGeometry::wireSpacing
double wireSpacing() const
Definition:
CSCWireGeometry.h:35
nint.h
DDAxes::x
nint
int nint(float a)
Return the nearest integer - analogous to the FORTRAN intrinsic NINT.
Definition:
nint.h:8
CSCWireGeometry.h
CSCNonslantedWireGeometry::clone
CSCWireGeometry * clone() const override
Definition:
CSCNonslantedWireGeometry.h:47
Point3DBase< float, LocalTag >
CSCNonslantedWireGeometry::CSCNonslantedWireGeometry
CSCNonslantedWireGeometry(double wireSpacing, double yOfFirstWire, double narrow, double wide, double length)
Definition:
CSCNonslantedWireGeometry.h:23
CSCWireGeometry
Definition:
CSCWireGeometry.h:17
CSCNonslantedWireGeometry::nearestWire
int nearestWire(const LocalPoint &lp) const override
Definition:
CSCNonslantedWireGeometry.h:35
PV3DBase::y
T y() const
Definition:
PV3DBase.h:60
CSCNonslantedWireGeometry::yOfWire
float yOfWire(float wire, float x=0.) const override
Definition:
CSCNonslantedWireGeometry.h:41
LocalPoint.h
CSCWireGeometry::yOfFirstWire
double yOfFirstWire() const
Definition:
CSCWireGeometry.h:40
Generated for CMSSW Reference Manual by
1.8.16