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
PixelGeomDetUnit Class Reference

#include <PixelGeomDetUnit.h>

Inheritance diagram for PixelGeomDetUnit:
GeomDetUnit GeomDet

Public Member Functions

 PixelGeomDetUnit (BoundPlane *sp, PixelGeomDetType *type, const GeometricDet *gd)
 
virtual const PixelTopologyspecificTopology () const
 Returns a reference to the pixel proxy topology. More...
 
virtual PixelGeomDetTypespecificType () const
 
virtual const SurfaceDeformationsurfaceDeformation () const
 Return pointer to surface deformation. More...
 
virtual const Topologytopology () const
 Returns a reference to the pixel proxy topology. More...
 
virtual const GeomDetTypetype () const
 
- Public Member Functions inherited from GeomDetUnit
virtual const GeomDetcomponent (DetId id) 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
virtual AlignmentPositionErroralignmentPositionError () const
 
DetId geographicalId () const
 The label of this GeomDet. More...
 
 GeomDet (BoundPlane *plane)
 
 GeomDet (const ReferenceCountingPointer< BoundPlane > &plane)
 
const Surface::PositionTypeposition () const
 The position (origin of the R.F.) More...
 
const Surface::RotationTyperotation () const
 The rotation defining the local R.F. More...
 
virtual const BoundPlanespecificSurface () const
 Same as surface(), kept for backward compatibility. More...
 
virtual 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
< ProxyPixelTopology
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

The base PixelGeomDetUnit. Specialized in SiPixelGeomDetUnit.

Definition at line 18 of file PixelGeomDetUnit.h.

Constructor & Destructor Documentation

PixelGeomDetUnit::PixelGeomDetUnit ( BoundPlane sp,
PixelGeomDetType type,
const GeometricDet gd 
)

Definition at line 7 of file PixelGeomDetUnit.cc.

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

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

Member Function Documentation

void PixelGeomDetUnit::setSurfaceDeformation ( const SurfaceDeformation deformation)
privatevirtual

set the SurfaceDeformation for this StripGeomDetUnit to proxy topology.

Reimplemented from GeomDetUnit.

Definition at line 21 of file PixelGeomDetUnit.cc.

References theTopology.

22 {
23  theTopology->setSurfaceDeformation(deformation);
24 }
boost::shared_ptr< ProxyPixelTopology > theTopology
const PixelTopology & PixelGeomDetUnit::specificTopology ( ) const
virtual

Returns a reference to the pixel proxy topology.

Definition at line 19 of file PixelGeomDetUnit.cc.

References theTopology.

Referenced by SiPixelHitEfficiencySource::analyze(), SiPixelTrackResidualSource::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelLorentzAngle::analyze(), SiPixelMuonHLT::analyze(), TrackerDpgAnalysis::analyze(), SiPixelDetInfoFileWriter::beginRun(), SiPixelErrorsDigisToCalibDigis::bookDQMHistoPlaquetteSummary2D(), SiPixelOfflineCalibAnalysisBase::bookDQMHistoPlaquetteSummary2D(), SiPixelDigiSource::buildStructure(), SiPixelRawDataErrorSource::buildStructure(), SiPixelClusterSource::buildStructure(), SiPixelErrorEstimation::computeAnglesFromDetPosition(), ClusterShape::determineShape(), SiPixelDigitizerAlgorithm::digitize(), SiPixelClusterModule::fill(), SiPixelRecHitsValid::fillBarrel(), SiPixelRecHitsValid::fillForward(), QcdLowPtDQM::fillPixels(), HLTPixelClusterShapeFilter::filter(), SiPixelQuality::getBadRocPositions(), ClusterShapeHitFilter::getCotangent(), PixelCPEBase::lorentzShiftX(), PixelCPEBase::lorentzShiftY(), SiPixelFedCablingMapBuilder::myprint(), EnergyLossPlain::process(), PixelVertexProducerClusters::produce(), HIPixelClusterVtxProducer::produce(), PixelClusterSelectorTopBottom::produce(), PixelCPEBase::setTheDet(), PixelThresholdClusterizer::setup(), and SiPixelGaussianSmearingRecHitConverterAlgorithm::smearHit().

19 { return *theTopology; }
boost::shared_ptr< ProxyPixelTopology > theTopology
PixelGeomDetType & PixelGeomDetUnit::specificType ( ) const
virtual

NOTE (A.M.): The actual pointer to PixelGeomDetType is now a member of the proxy topology. As PixelGeomDetType 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 PixelGeomDetUnit.cc.

References theTopology.

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

Return pointer to surface deformation.

Reimplemented from GeomDetUnit.

Definition at line 48 of file PixelGeomDetUnit.h.

References theTopology.

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

Returns a reference to the pixel proxy topology.

Implements GeomDetUnit.

Definition at line 17 of file PixelGeomDetUnit.cc.

References theTopology.

Referenced by SiClusterTranslator::produce().

17 { return *theTopology; }
boost::shared_ptr< ProxyPixelTopology > theTopology
const GeomDetType & PixelGeomDetUnit::type ( ) const
virtual

NOTE (A.M.): The actual pointer to PixelGeomDetType is now a member of the proxy topology. As PixelGeomDetType 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 PixelGeomDetUnit.cc.

References theTopology.

Referenced by ClusterShapeHitFilter::getSizes(), and PixelCPEBase::setTheDet().

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

Member Data Documentation

const GeometricDet* PixelGeomDetUnit::theGD
private

Definition at line 58 of file PixelGeomDetUnit.h.

Referenced by PixelGeomDetUnit().

boost::shared_ptr<ProxyPixelTopology> PixelGeomDetUnit::theTopology
private