CMS 3D CMS Logo

GeomDet.cc
Go to the documentation of this file.
4 
6 
7 void GeomDet::move(const GlobalVector& displacement) {
8  //
9  // Should recreate the surface like the set* methods ?
10  //
11  thePlane->move(displacement);
12 }
13 
15  //
16  // Should recreate the surface like the set* methods ?
17  //
18  thePlane->rotate(rotation);
19 }
20 
23 }
24 
27  if (ape.valid())
29  } else
31  return ape.valid();
32 }
33 
37 
39 
40 void GeomDet::setSurfaceDeformation(const SurfaceDeformation* /*deformation*/) {
41  throw cms::Exception("Geometry") << "setting SurfaceDeformation not implemented for DetId "
42  << geographicalId().rawId() << " det=" << geographicalId().det()
43  << " subdetId=" << geographicalId().subdetId();
44 }
45 
47 
48 namespace {
49  struct DummyTopology final : public Topology {
50  LocalPoint localPosition(const MeasurementPoint&) const override { return LocalPoint(); }
51  LocalError localError(const MeasurementPoint&, const MeasurementError&) const override { return LocalError(); }
52  MeasurementPoint measurementPosition(const LocalPoint&) const override { return MeasurementPoint(); }
53  MeasurementError measurementError(const LocalPoint&, const LocalError&) const override {
54  return MeasurementError();
55  }
56  int channel(const LocalPoint& p) const override { return -1; }
57  };
58  const DummyTopology dummyTopology{};
59 
60  struct DummyGeomDetType final : public GeomDetType {
61  DummyGeomDetType() : GeomDetType("", GeomDetEnumerators::invalidDet) {}
62  const Topology& topology() const override { return dummyTopology; }
63  };
64  const DummyGeomDetType dummyGeomDetType{};
65 } // namespace
66 
67 const Topology& GeomDet::topology() const { return dummyTopology; }
68 
69 const GeomDetType& GeomDet::type() const { return dummyGeomDetType; }
Vector3DBase
Definition: Vector3DBase.h:8
GeomDet::position
const Surface::PositionType & position() const
The position (origin of the R.F.)
Definition: GeomDet.h:43
Point2DBase
Definition: Point2DBase.h:9
GeomDetEnumerators::SubDetector
SubDetector
Definition: GeomDetEnumerators.h:10
ModifiedSurfaceGenerator::atNewPosition
SurfacePointer atNewPosition(const Surface::PositionType &position, const Surface::RotationType &rotation) const
Definition: ModifiedSurfaceGenerator.h:27
GeomDetType::subDetector
SubDetector subDetector() const
Definition: GeomDetType.h:21
GeomDetEnumerators::invalidDet
Definition: GeomDetEnumerators.h:31
GeomDet::setPosition
void setPosition(const Surface::PositionType &position, const Surface::RotationType &rotation)
Definition: GeomDet.cc:21
GeomDet::type
virtual const GeomDetType & type() const
Definition: GeomDet.cc:69
DetId::det
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
GeomDetType
Definition: GeomDetType.h:9
GeomDet::topology
virtual const Topology & topology() const
Definition: GeomDet.cc:67
Topology::localPosition
virtual LocalPoint localPosition(const MeasurementPoint &) const =0
AlignmentPositionError::valid
bool valid() const
Definition: AlignmentPositionError.h:22
align::LocalPoint
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
SurfaceDeformation
Definition: SurfaceDeformation.h:18
GloballyPositioned< float >::RotationType
TkRotation< float > RotationType
Definition: GloballyPositioned.h:22
GeomDet::thePlane
ReferenceCountingPointer< Plane > thePlane
Definition: GeomDet.h:102
GeomDetType.h
GeomDet::rotate
void rotate(const Surface::RotationType &rotation)
Definition: GeomDet.cc:14
MeasurementError
Definition: MeasurementError.h:8
Topology::channel
virtual int channel(const LocalPoint &p) const =0
ModifiedSurfaceGenerator.h
Topology::measurementError
virtual MeasurementError measurementError(const LocalPoint &, const LocalError &) const =0
GeomDet::theAlignmentPositionError
AlignmentPositionError * theAlignmentPositionError
Definition: GeomDet.h:106
Point3DBase< float, LocalTag >
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
MeasurementPoint
Measurement2DPoint MeasurementPoint
Measurement points are two-dimensional by default.
Definition: MeasurementPoint.h:12
GeomDet::geographicalId
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:64
idealTransformation.rotation
dictionary rotation
Definition: idealTransformation.py:1
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
LocalError
Definition: LocalError.h:12
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
GeomDet::move
void move(const GlobalVector &displacement)
Definition: GeomDet.cc:7
GeomDet::setAlignmentPositionError
virtual bool setAlignmentPositionError(const AlignmentPositionError &ape)
Definition: GeomDet.cc:25
Topology::measurementPosition
virtual MeasurementPoint measurementPosition(const LocalPoint &) const =0
GeomDet::~GeomDet
virtual ~GeomDet()
Definition: GeomDet.cc:5
GeomDetEnumerators
Definition: GeomDetEnumerators.h:8
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
GloballyPositioned< float >::PositionType
Point3DBase< float, GlobalTag > PositionType
Definition: GloballyPositioned.h:21
Exception
Definition: hltDiff.cc:245
Topology::localError
virtual LocalError localError(const MeasurementPoint &, const MeasurementError &) const =0
GeomDetType::topology
virtual const Topology & topology() const =0
AlignmentPositionError.h
GeomDet::setSurfaceDeformation
virtual void setSurfaceDeformation(const SurfaceDeformation *deformation)
Definition: GeomDet.cc:40
Exception.h
Topology
Definition: Topology.h:39
ModifiedSurfaceGenerator
Definition: ModifiedSurfaceGenerator.h:16
AlignmentPositionError
Definition: AlignmentPositionError.h:10
GeomDet.h
Topology.h
GeomDet::rotation
const Surface::RotationType & rotation() const
The rotation defining the local R.F.
Definition: GeomDet.h:46
GeomDet::subDetector
virtual SubDetector subDetector() const
Which subdetector.
Definition: GeomDet.cc:38