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 | Private Attributes
StripGeomDetUnit Class Reference

#include <StripGeomDetUnit.h>

Inheritance diagram for StripGeomDetUnit:
GeomDetUnit GeomDet

Public Member Functions

virtual const StripTopologyspecificTopology () const
 Returns a reference to the strip proxy topology. More...
 
virtual StripGeomDetTypespecificType () const
 
 StripGeomDetUnit (BoundPlane *sp, StripGeomDetType *type, const GeometricDet *gd)
 
virtual const SurfaceDeformationsurfaceDeformation () const
 Return pointer to surface deformation. More...
 
virtual const Topologytopology () const
 Returns a reference to the strip proxy topology. More...
 
virtual const GeomDetTypetype () const
 
- Public Member Functions inherited from GeomDetUnit
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 (BoundPlane *sp)
 
 GeomDetUnit (const ReferenceCountingPointer< BoundPlane > &plane)
 
virtual SubDetector subDetector () const
 Which subdetector. More...
 
virtual ~GeomDetUnit ()
 
- Public Member Functions inherited from GeomDet
AlignmentPositionErroralignmentPositionError () const
 Return pointer to alignment errors. More...
 
DetId geographicalId () const
 The label of this GeomDet. More...
 
 GeomDet (BoundPlane *plane)
 
 GeomDet (const ReferenceCountingPointer< BoundPlane > &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 BoundPlanespecificSurface () const
 Same as surface(), kept for backward compatibility. More...
 
const BoundPlanesurface () 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)
 set the SurfaceDeformation for this StripGeomDetUnit to proxy topology. More...
 

Private Attributes

const GeometricDettheGD
 
boost::shared_ptr
< ProxyStripTopology
theTopology
 

Additional Inherited Members

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

Detailed Description

StripGeomDetUnit is the abstract class for SiStripGeomDetUnit.

Definition at line 18 of file StripGeomDetUnit.h.

Constructor & Destructor Documentation

StripGeomDetUnit::StripGeomDetUnit ( BoundPlane sp,
StripGeomDetType type,
const GeometricDet gd 
)

Definition at line 7 of file StripGeomDetUnit.cc.

References GeometricDet::geographicalID(), GeomDet::setDetId(), and theGD.

7  :
8  GeomDetUnit(sp), theTopology(new ProxyStripTopology(type, sp)), theGD(gd)
9 {
11 }
void setDetId(DetId id)
Definition: GeomDet.h:97
boost::shared_ptr< ProxyStripTopology > theTopology
const GeometricDet * theGD
DetId geographicalID() const
Definition: GeometricDet.h:195
GeomDetUnit(BoundPlane *sp)
Definition: GeomDetUnit.cc:6

Member Function Documentation

void StripGeomDetUnit::setSurfaceDeformation ( const SurfaceDeformation deformation)
privatevirtual

set the SurfaceDeformation for this StripGeomDetUnit to proxy topology.

Reimplemented from GeomDetUnit.

Definition at line 21 of file StripGeomDetUnit.cc.

References theTopology.

22 {
23  theTopology->setSurfaceDeformation(deformation);
24 }
boost::shared_ptr< ProxyStripTopology > theTopology
const StripTopology & StripGeomDetUnit::specificTopology ( ) const
virtual

Returns a reference to the strip proxy topology.

Definition at line 19 of file StripGeomDetUnit.cc.

References theTopology.

Referenced by DeDxDiscriminatorLearner::algoBeginJob(), DeDxDiscriminatorLearnerFromCalibTree::algoBeginJob(), SiStripGainFromData::algoBeginJob(), SiStripGainFromCalibTree::algoBeginJob(), SiStripMonitorMuonHLT::analyze(), TrackerDpgAnalysis::analyze(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::AnalyzeOccupancy(), SiStripMonitorMuonHLT::analyzeOnTrackClusters(), SiStripDetInfoFileWriter::beginRun(), DeDxDiscriminatorProducer::beginRun(), SiLinearChargeDivider::divide(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), TkStripMeasurementDet::fastMeasurements(), SiStripMonitorMuonHLT::GeometryFromTrackGeom(), ClusterShapeHitFilter::getCotangent(), ClusterShapeHitFilter::getSizes(), SiTrivialInduceChargeOnStrips::induce(), EnergyLossPlain::process(), ShallowRechitClustersProducer::produce(), ShallowTrackClustersProducer::produce(), ShallowSimhitClustersProducer::produce(), TestHits::projectHit(), TestSmoothHits::projectHit(), TestTrackHits::projectHit(), SiStripTrackingRecHitsValid::projectHit(), SiStripRecHitsValid::projectHit(), GlobalRecHitsAnalyzer::projectHit(), GlobalRecHitsProducer::projectHit(), SiStripDigitizerAlgorithm::run(), TrackClusterSplitter::splitCluster(), and TkGluedMeasurementDet::testStrips().

19 { return *theTopology; }
boost::shared_ptr< ProxyStripTopology > theTopology
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 15 of file StripGeomDetUnit.cc.

References theTopology.

Referenced by StripCPE::fillParams(), and SiTrivialInduceChargeOnStrips::typeOf().

15 { return theTopology->specificType(); }
boost::shared_ptr< ProxyStripTopology > theTopology
virtual const SurfaceDeformation* StripGeomDetUnit::surfaceDeformation ( ) const
inlinevirtual

Return pointer to surface deformation.

Reimplemented from GeomDetUnit.

Definition at line 48 of file StripGeomDetUnit.h.

References theTopology.

48  {
49  return theTopology->surfaceDeformation();
50  }
boost::shared_ptr< ProxyStripTopology > theTopology
const Topology & StripGeomDetUnit::topology ( ) const
virtual

Returns a reference to the strip proxy topology.

Implements GeomDetUnit.

Definition at line 17 of file StripGeomDetUnit.cc.

References theTopology.

Referenced by SiStripRecHitsValid::analyze(), SiStripTrackingRecHitsValid::analyze(), and StripCPE::fillParams().

17 { return *theTopology; }
boost::shared_ptr< ProxyStripTopology > theTopology
const GeomDetType & StripGeomDetUnit::type ( ) 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).

Implements GeomDetUnit.

Definition at line 13 of file StripGeomDetUnit.cc.

References theTopology.

Referenced by SiClusterTranslator::produce().

13 { return theTopology->type(); }
boost::shared_ptr< ProxyStripTopology > theTopology

Member Data Documentation

const GeometricDet* StripGeomDetUnit::theGD
private

Definition at line 58 of file StripGeomDetUnit.h.

Referenced by StripGeomDetUnit().

boost::shared_ptr<ProxyStripTopology> StripGeomDetUnit::theTopology
private