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 const *type, GeometricDet const *gd)
 
virtual const PixelTopologyspecificTopology () const
 Returns a reference to the pixel proxy topology. More...
 
virtual const PixelGeomDetType & specificType () 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) 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 ~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)
 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 const *  type,
GeometricDet const *  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 }
type
Definition: HCALResponse.h:21
const GeometricDet * theGD
void setDetId(DetId id)
Definition: GeomDet.h:97
boost::shared_ptr< ProxyPixelTopology > theTopology
DetId geographicalID() const
Definition: GeometricDet.h:201
GeomDetUnit(Plane *sp)
Definition: GeomDetUnit.cc:5

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 SiPixelDigitizerAlgorithm::add_noise(), SiPixelTrackResidualSource::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), SiPixelMuonHLT::analyze(), analyzer::SiPixelLorentzAngle::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(), SiPixelQuality::getBadRocPositions(), ClusterShapeHitFilter::getCotangent(), HLTPixelClusterShapeFilter::hltFilter(), SiPixelDigitizerAlgorithm::induce_signal(), SiPixelFedCablingMapBuilder::myprint(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), PixelVertexProducerClusters::produce(), HIPixelClusterVtxProducer::produce(), PixelClusterSelectorTopBottom::produce(), PixelThresholdClusterizer::setup(), and TrackClusterSplitter::splitCluster().

19 { return *theTopology; }
boost::shared_ptr< ProxyPixelTopology > theTopology
const 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.

Referenced by SiPixelGaussianSmearingRecHitConverterAlgorithm::smearHit().

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 cuy.ValElement::__init__().

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