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 Attributes
SimpleTECWedge Class Reference

#include <SimpleTECWedge.h>

Inheritance diagram for SimpleTECWedge:
TECWedge GeometricSearchDetWithGroups GeometricSearchDet

Public Member Functions

virtual const std::vector
< const GeomDet * > & 
basicComponents () const
 
virtual std::pair< bool,
TrajectoryStateOnSurface
compatible (const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const
 
virtual const std::vector
< const GeometricSearchDet * > & 
components () const
 Returns basic components, if any. More...
 
virtual void groupedCompatibleDetsV (const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const
 
 SimpleTECWedge (const GeomDet *theDet)
 
 ~SimpleTECWedge ()
 
- Public Member Functions inherited from TECWedge
virtual const BoundDiskSectorspecificSurface () const
 
virtual const BoundSurfacesurface () const
 The surface of the GeometricSearchDet. More...
 
- Public Member Functions inherited from GeometricSearchDetWithGroups
void compatibleDetsV (const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetWithState > &result) const
 
bool hasGroups () const
 
- Public Member Functions inherited from GeometricSearchDet
virtual std::vector< DetWithStatecompatibleDets (const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
 
 GeometricSearchDet ()
 
virtual std::vector< DetGroupgroupedCompatibleDets (const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
 
virtual const
Surface::PositionType
position () const
 Returns position of the surface. More...
 
virtual ~GeometricSearchDet ()
 

Private Attributes

const GeomDettheDet
 
std::vector< const GeomDet * > theDets
 

Additional Inherited Members

- Public Types inherited from GeometricSearchDetWithGroups
typedef
GeometricSearchDet::DetWithState 
DetWithState
 
- Public Types inherited from GeometricSearchDet
typedef std::pair< const
GeomDet
*, TrajectoryStateOnSurface
DetWithState
 
typedef BoundSurface::PositionType PositionType
 
typedef BoundSurface::RotationType RotationType
 
typedef TrajectoryStateOnSurface TrajectoryState
 
- Protected Attributes inherited from TECWedge
ReferenceCountingPointer
< BoundDiskSector
theDiskSector
 
- Protected Attributes inherited from GeometricSearchDet
GeomDetCompatibilityChecker theCompatibilityChecker
 

Detailed Description

A concrete implementation for TEC wedge built out of only one det

Definition at line 13 of file SimpleTECWedge.h.

Constructor & Destructor Documentation

SimpleTECWedge::SimpleTECWedge ( const GeomDet theDet)

Definition at line 14 of file SimpleTECWedge.cc.

References LogDebug, PV3DBase< T, PVType, FrameType >::perp(), GeometricSearchDet::position(), theDet, theDets, TECWedge::theDiskSector, and PV3DBase< T, PVType, FrameType >::z().

14  :
15  theDet(theInputDet)
16 {
17  theDets.push_back(theDet);
18 
20 
21  LogDebug("TkDetLayers") << "DEBUG INFO for CompositeTECWedge" << "\n"
22  << "TECWedge z, perp,innerRadius,outerR: "
23  << this->position().z() << " , "
24  << this->position().perp() << " , "
25  << theDiskSector->innerRadius() << " , "
26  << theDiskSector->outerRadius() ;
27 
28 }
#define LogDebug(id)
T perp() const
Definition: PV3DBase.h:71
std::vector< const GeomDet * > theDets
ReferenceCountingPointer< BoundDiskSector > theDiskSector
Definition: TECWedge.h:25
T z() const
Definition: PV3DBase.h:63
virtual const Surface::PositionType & position() const
Returns position of the surface.
const GeomDet * theDet
SimpleTECWedge::~SimpleTECWedge ( )

Definition at line 30 of file SimpleTECWedge.cc.

30  {
31 
32 }

Member Function Documentation

virtual const std::vector<const GeomDet*>& SimpleTECWedge::basicComponents ( ) const
inlinevirtual

Implements GeometricSearchDet.

Definition at line 20 of file SimpleTECWedge.h.

References theDets.

20 {return theDets;}
std::vector< const GeomDet * > theDets
pair< bool, TrajectoryStateOnSurface > SimpleTECWedge::compatible ( const TrajectoryStateOnSurface ts,
const Propagator ,
const MeasurementEstimator  
) const
virtual

tests the geometrical compatibility of the Det with the predicted state. The FreeTrajectoryState argument is propagated to the Det surface using the Propagator argument. The resulting TrajectoryStateOnSurface is tested for compatibility with the surface bounds. If compatible, a std::pair< true, propagatedState> is returned. If the propagation fails, or if the state is not compatible, a std::pair< false, propagatedState> is returned.

Implements GeometricSearchDet.

Definition at line 42 of file SimpleTECWedge.cc.

References GeomDetCompatibilityChecker::isCompatible(), and theDet.

Referenced by groupedCompatibleDetsV().

45 {
46  return GeomDetCompatibilityChecker::isCompatible( theDet,tsos, prop, est);
47 }
static std::pair< bool, TrajectoryStateOnSurface > isCompatible(const GeomDet *theDet, const TrajectoryStateOnSurface &ts, const Propagator &prop, const MeasurementEstimator &est)
const GeomDet * theDet
const vector< const GeometricSearchDet * > & SimpleTECWedge::components ( ) const
virtual

Returns basic components, if any.

Returns direct components, if any

Implements GeometricSearchDet.

Definition at line 36 of file SimpleTECWedge.cc.

36  {
37  throw DetLayerException("SimpleTECWedge doesn't have GeometricSearchDet components");
38 }
Common base class.
void SimpleTECWedge::groupedCompatibleDetsV ( const TrajectoryStateOnSurface startingState,
const Propagator prop,
const MeasurementEstimator est,
std::vector< DetGroup > &  result 
) const
virtual

Reimplemented from GeometricSearchDet.

Definition at line 52 of file SimpleTECWedge.cc.

References compatible(), and theDet.

55  {
56  pair<bool, TrajectoryStateOnSurface> compat = this->compatible(tsos,prop,est);
57 
58  if (compat.first) {
59  result.push_back( DetGroup(0,1) );
60  DetGroupElement ge( theDet, compat.second);
61  result.front().push_back(ge);
62  }
63 
64 }
virtual std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const
tuple result
Definition: query.py:137
const GeomDet * theDet

Member Data Documentation

const GeomDet* SimpleTECWedge::theDet
private

Definition at line 35 of file SimpleTECWedge.h.

Referenced by compatible(), groupedCompatibleDetsV(), and SimpleTECWedge().

std::vector<const GeomDet*> SimpleTECWedge::theDets
private

Definition at line 36 of file SimpleTECWedge.h.

Referenced by basicComponents(), and SimpleTECWedge().