CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
StripGeomDetUnit Class Referencefinal

#include <StripGeomDetUnit.h>

Inheritance diagram for StripGeomDetUnit:
TrackerGeomDet GeomDet

Public Member Functions

bool isLeaf () const override
 is a Unit More...
 
virtual const StripTopologyspecificTopology () const
 Returns a reference to the strip proxy topology. More...
 
virtual StripGeomDetType const & specificType () const
 
 StripGeomDetUnit (BoundPlane *sp, StripGeomDetType const *type, DetId id)
 
const SurfaceDeformationsurfaceDeformation () const override
 Return pointer to surface deformation. More...
 
const Topologytopology () const override
 Returns a reference to the strip proxy topology. More...
 
const GeomDetTypetype () const override
 
- Public Member Functions inherited from TrackerGeomDet
LocalError const & localAlignmentError () const
 Return local alligment error. More...
 
- Public Member Functions inherited from GeomDet
AlignmentPositionError const * alignmentPositionError () const
 Return pointer to alignment errors. More...
 
virtual const GeomDetcomponent (DetId) const
 Returns a component GeomDet given its DetId, if existing. More...
 
virtual std::vector< const GeomDet * > components () const
 Returns direct components, if any. More...
 
int gdetIndex () const
 
DetId geographicalId () const
 The label of this GeomDet. More...
 
 GeomDet (Plane *plane)
 
 GeomDet (const ReferenceCountingPointer< Plane > &plane)
 
int index () const
 
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 setGdetIndex (int i)
 
void setIndex (int i)
 
const PlanespecificSurface () const
 Same as surface(), kept for backward compatibility. More...
 
virtual SubDetector subDetector () const
 Which subdetector. 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

void setSurfaceDeformation (const SurfaceDeformation *deformation) override
 set the SurfaceDeformation for this StripGeomDetUnit to proxy topology. More...
 

Private Attributes

std::unique_ptr< ProxyStripTopologytheTopology
 

Additional Inherited Members

- Public Types inherited from GeomDet
using SubDetector = GeomDetEnumerators::SubDetector
 
- Protected Member Functions inherited from TrackerGeomDet
 TrackerGeomDet (Plane *plane)
 
 TrackerGeomDet (const ReferenceCountingPointer< Plane > &plane)
 
- Protected Member Functions inherited from GeomDet
void setDetId (DetId id)
 
- Protected Attributes inherited from GeomDet
AlignmentPositionErrortheAlignmentPositionError = 0
 

Detailed Description

StripGeomDetUnit is the abstract class for SiStripGeomDetUnit.

Definition at line 15 of file StripGeomDetUnit.h.

Constructor & Destructor Documentation

StripGeomDetUnit::StripGeomDetUnit ( BoundPlane sp,
StripGeomDetType const *  type,
DetId  id 
)

Definition at line 6 of file StripGeomDetUnit.cc.

References GeomDet::setDetId().

6  :
8 {
9  setDetId(id);
10 }
type
Definition: HCALResponse.h:21
void setDetId(DetId id)
Definition: GeomDet.h:120
std::unique_ptr< ProxyStripTopology > theTopology
TrackerGeomDet(Plane *plane)
Definition: TrackerGeomDet.h:9

Member Function Documentation

bool StripGeomDetUnit::isLeaf ( ) const
inlineoverridevirtual

is a Unit

Reimplemented from GeomDet.

Definition at line 49 of file StripGeomDetUnit.h.

References setSurfaceDeformation().

49 { return true;}
void StripGeomDetUnit::setSurfaceDeformation ( const SurfaceDeformation deformation)
overrideprivatevirtual

set the SurfaceDeformation for this StripGeomDetUnit to proxy topology.

Reimplemented from GeomDet.

Definition at line 20 of file StripGeomDetUnit.cc.

References theTopology.

Referenced by isLeaf().

21 {
22  theTopology->setSurfaceDeformation(deformation);
23 }
std::unique_ptr< ProxyStripTopology > theTopology
const StripTopology & StripGeomDetUnit::specificTopology ( ) const
virtual
const StripGeomDetType & StripGeomDetUnit::specificType ( ) const
virtual

NOTE (A.M.): The actual pointer to StripGeomDetType is now a member of the proxy topology. As StripGeomDetType has the actual topology as a pointer, it is possible to access this topology in two different ways. Once via the proxy topology (through topology() and specificTopology()) which includes corrections for the surface deformations, and once via the GeomDetType (through type().topology() and the like).

Definition at line 14 of file StripGeomDetUnit.cc.

References theTopology.

Referenced by StripCPE::fillParams().

14 { return theTopology->specificType(); }
std::unique_ptr< ProxyStripTopology > theTopology
const SurfaceDeformation* StripGeomDetUnit::surfaceDeformation ( ) const
inlineoverridevirtual

Return pointer to surface deformation.

Reimplemented from GeomDet.

Definition at line 45 of file StripGeomDetUnit.h.

References theTopology.

45  {
46  return theTopology->surfaceDeformation();
47  }
std::unique_ptr< ProxyStripTopology > theTopology
const Topology & StripGeomDetUnit::topology ( ) const
overridevirtual

Returns a reference to the strip proxy topology.

Reimplemented from GeomDet.

Definition at line 16 of file StripGeomDetUnit.cc.

References theTopology.

Referenced by SiStripRecHitsValid::analyze(), StripCPE::fillParams(), ClusterShapeHitFilter::fillStripData(), SiStripTrackingRecHitsValid::rechitanalysis(), and SiStripTrackingRecHitsValid::rechitanalysis_matched().

16 { return *theTopology; }
std::unique_ptr< ProxyStripTopology > theTopology
const GeomDetType & StripGeomDetUnit::type ( ) const
overridevirtual

NOTE (A.M.): The actual pointer to StripGeomDetType is now a member of the proxy topology. As StripGeomDetType has the actual topology as a pointer, it is possible to access this topology in two different ways. Once via the proxy topology (through topology() and specificTopology()) which includes corrections for the surface deformations, and once via the GeomDetType (through type().topology() and the like).

Reimplemented from GeomDet.

Definition at line 12 of file StripGeomDetUnit.cc.

References theTopology.

Referenced by StripCPE::fillParams(), and ClusterShapeHitFilter::fillStripData().

12 { return theTopology->type(); }
std::unique_ptr< ProxyStripTopology > theTopology

Member Data Documentation

std::unique_ptr<ProxyStripTopology> StripGeomDetUnit::theTopology
private