CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
MTDGeomDet Class Reference

#include <MTDGeomDet.h>

Inheritance diagram for MTDGeomDet:
GeomDet MTDGeomDetUnit

Public Member Functions

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
 
virtual bool isLeaf () const
 is a Unit 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 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...
 
virtual const SurfaceDeformationsurfaceDeformation () const
 
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 const Topologytopology () const
 
virtual const GeomDetTypetype () const
 
virtual ~GeomDet ()
 

Protected Member Functions

 MTDGeomDet (Plane *plane)
 
 MTDGeomDet (const ReferenceCountingPointer< Plane > &plane)
 
- Protected Member Functions inherited from GeomDet
void setDetId (DetId id)
 

Private Member Functions

bool setAlignmentPositionError (const AlignmentPositionError &ape) final
 

Private Attributes

LocalError theLocalAlignmentError
 

Additional Inherited Members

- Public Types inherited from GeomDet
using SubDetector = GeomDetEnumerators::SubDetector
 
- Protected Attributes inherited from GeomDet
AlignmentPositionErrortheAlignmentPositionError = 0
 

Detailed Description

Definition at line 7 of file MTDGeomDet.h.

Constructor & Destructor Documentation

MTDGeomDet::MTDGeomDet ( Plane plane)
inlineexplicitprotected

Definition at line 9 of file MTDGeomDet.h.

LocalError theLocalAlignmentError
Definition: MTDGeomDet.h:17
GeomDet(Plane *plane)
Definition: GeomDet.h:34
MTDGeomDet::MTDGeomDet ( const ReferenceCountingPointer< Plane > &  plane)
inlineexplicitprotected

Definition at line 10 of file MTDGeomDet.h.

LocalError theLocalAlignmentError
Definition: MTDGeomDet.h:17
GeomDet(Plane *plane)
Definition: GeomDet.h:34

Member Function Documentation

LocalError const& MTDGeomDet::localAlignmentError ( ) const
inline

Return local alligment error.

Definition at line 14 of file MTDGeomDet.h.

References theLocalAlignmentError.

14 { return theLocalAlignmentError;}
LocalError theLocalAlignmentError
Definition: MTDGeomDet.h:17
bool MTDGeomDet::setAlignmentPositionError ( const AlignmentPositionError ape)
finalprivatevirtual

set the LocalAlignmentError properly trasforming the ape Does not affect the AlignmentPositionError of components (if any).

Reimplemented from GeomDet.

Definition at line 5 of file MTDGeomDet.cc.

References GlobalErrorBaseExtended< T, ErrorWeightType >::cxx(), GlobalErrorBaseExtended< T, ErrorWeightType >::cyx(), GlobalErrorBaseExtended< T, ErrorWeightType >::cyy(), GlobalErrorBaseExtended< T, ErrorWeightType >::czx(), GlobalErrorBaseExtended< T, ErrorWeightType >::czy(), GlobalErrorBaseExtended< T, ErrorWeightType >::czz(), AlignmentPositionError::globalError(), GeomDet::surface(), GeomDet::theAlignmentPositionError, theLocalAlignmentError, ErrorFrameTransformer::transform(), and AlignmentPositionError::valid().

6 {
9  }
10  else *theAlignmentPositionError = ape;
11 
12  const GlobalErrorExtended& apeError = ape.globalError();
13  GlobalError translatApe(apeError.cxx(),apeError.cyx(),apeError.cyy(),apeError.czx(),apeError.czy(),apeError.czz());
14 
15  //check only translat part is valid
17  ErrorFrameTransformer().transform( translatApe,surface()) :
18  InvalidError();
19  return ape.valid();
20 }
static GlobalError transform(const LocalError &le, const Surface &surf)
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:42
const GlobalErrorExtended & globalError() const
LocalError theLocalAlignmentError
Definition: MTDGeomDet.h:17
AlignmentPositionError * theAlignmentPositionError
Definition: GeomDet.h:131

Member Data Documentation

LocalError MTDGeomDet::theLocalAlignmentError
private

Definition at line 17 of file MTDGeomDet.h.

Referenced by localAlignmentError(), and setAlignmentPositionError().