test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Friends
GeomDetUnit Class Referenceabstract

#include <GeomDetUnit.h>

Inheritance diagram for GeomDetUnit:
GeomDet CSCLayer DTLayer GEMEtaPartition PixelGeomDetUnit RPCRoll StripGeomDetUnit

Public Member Functions

virtual const GeomDetcomponent (DetId) const
 Returns a component GeomDet given its DetId, if existing. More...
 
virtual std::vector< const
GeomDet * > 
components () const
 DetUnit does not have components. More...
 
 GeomDetUnit (Plane *sp)
 
 GeomDetUnit (const ReferenceCountingPointer< Plane > &plane)
 
virtual SubDetector subDetector () const
 Which subdetector. More...
 
virtual const SurfaceDeformationsurfaceDeformation () const
 
virtual const Topologytopology () const =0
 
virtual const GeomDetTypetype () const =0
 
virtual ~GeomDetUnit ()
 
- Public Member Functions inherited from GeomDet
AlignmentPositionError const * alignmentPositionError () const
 Return pointer to alignment errors. More...
 
DetId geographicalId () const
 The label of this GeomDet. More...
 
 GeomDet (Plane *plane)
 
 GeomDet (const ReferenceCountingPointer< Plane > &plane)
 
int index () const
 
LocalError const & localAlignmentError () const
 Return local alligment error. More...
 
const Surface::PositionTypeposition () const
 The position (origin of the R.F.) More...
 
const Surface::RotationTyperotation () const
 The rotation defining the local R.F. More...
 
void setIndex (int i)
 
const PlanespecificSurface () const
 Same as surface(), kept for backward compatibility. More...
 
const Planesurface () const
 The nominal surface of the GeomDet. More...
 
GlobalPoint toGlobal (const Local2DPoint &lp) const
 Conversion to the global R.F. from the R.F. of the GeomDet. More...
 
GlobalPoint toGlobal (const Local3DPoint &lp) const
 Conversion to the global R.F. from the R.F. of the GeomDet. More...
 
GlobalVector toGlobal (const LocalVector &lv) const
 Conversion to the global R.F. from the R.F. of the GeomDet. More...
 
LocalPoint toLocal (const GlobalPoint &gp) const
 Conversion to the R.F. of the GeomDet. More...
 
LocalVector toLocal (const GlobalVector &gv) const
 Conversion to the R.F. of the GeomDet. More...
 
virtual ~GeomDet ()
 

Private Member Functions

virtual void setSurfaceDeformation (const SurfaceDeformation *deformation)
 

Friends

class DetPositioner
 Alignment part of interface, available only to friend. More...
 

Additional Inherited Members

- Public Types inherited from GeomDet
typedef
GeomDetEnumerators::SubDetector 
SubDetector
 
- Protected Member Functions inherited from GeomDet
void setDetId (DetId id)
 

Detailed Description

Definition at line 13 of file GeomDetUnit.h.

Constructor & Destructor Documentation

GeomDetUnit::GeomDetUnit ( Plane sp)
explicit

Definition at line 5 of file GeomDetUnit.cc.

5  : GeomDet(sp)
6 {}
GeomDet(Plane *plane)
Definition: GeomDet.cc:5
GeomDetUnit::GeomDetUnit ( const ReferenceCountingPointer< Plane > &  plane)
explicit

Definition at line 8 of file GeomDetUnit.cc.

8  :
9  GeomDet(plane) {}
GeomDet(Plane *plane)
Definition: GeomDet.cc:5
GeomDetUnit::~GeomDetUnit ( )
virtual

Definition at line 11 of file GeomDetUnit.cc.

12 {}

Member Function Documentation

virtual const GeomDet* GeomDetUnit::component ( DetId  ) const
inlinevirtual

Returns a component GeomDet given its DetId, if existing.

Reimplemented from GeomDet.

Definition at line 30 of file GeomDetUnit.h.

30 {return 0;}
virtual std::vector< const GeomDet*> GeomDetUnit::components ( ) const
inlinevirtual

DetUnit does not have components.

Implements GeomDet.

Reimplemented in DTLayer.

Definition at line 26 of file GeomDetUnit.h.

26  {
27  return std::vector< const GeomDet*>();
28  }
void GeomDetUnit::setSurfaceDeformation ( const SurfaceDeformation deformation)
privatevirtual

set the SurfaceDeformation for this GeomDetUnit. Does not affect the SurfaceDeformation of components (if any). Throws if not implemented in derived class.

Reimplemented in PixelGeomDetUnit, and StripGeomDetUnit.

Definition at line 18 of file GeomDetUnit.cc.

References DetId::det(), edm::hlt::Exception, GeomDet::geographicalId(), DetId::rawId(), and DetId::subdetId().

Referenced by DetPositioner::setSurfaceDeformation().

19 {
20  throw cms::Exception("Geometry")
21  << "setting SurfaceDeformation not implemented for DetId "
22  << geographicalId().rawId() << " det="
23  << geographicalId().det() << " subdetId="
24  << geographicalId().subdetId();
25 }
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:72
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
GeomDet::SubDetector GeomDetUnit::subDetector ( ) const
virtual

Which subdetector.

Implements GeomDet.

Definition at line 14 of file GeomDetUnit.cc.

References GeomDetType::subDetector(), and type().

Referenced by SiStripMonitorMuonHLT::GeometryFromTrackGeom(), SiStripMonitorMuonHLT::Normalizer(), and GluedGeomDet::subDetector().

14  {
15  return type().subDetector();
16 }
virtual const GeomDetType & type() const =0
SubDetector subDetector() const
Definition: GeomDetType.h:22
virtual const SurfaceDeformation* GeomDetUnit::surfaceDeformation ( ) const
inlinevirtual

Return pointer to surface deformation. Defaults to "null" if not reimplemented in the derived classes.

Reimplemented in PixelGeomDetUnit, and StripGeomDetUnit.

Definition at line 37 of file GeomDetUnit.h.

Referenced by AlignableDetUnit::AlignableDetUnit().

37 { return 0; }
virtual const Topology& GeomDetUnit::topology ( ) const
pure virtual
virtual const GeomDetType& GeomDetUnit::type ( ) const
pure virtual

Friends And Related Function Documentation

friend class DetPositioner
friend

Alignment part of interface, available only to friend.

Definition at line 42 of file GeomDetUnit.h.