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

#include <TkStackMeasurementDet.h>

Inheritance diagram for TkStackMeasurementDet:
MeasurementDet

Public Member Functions

bool hasBadComponents (const TrajectoryStateOnSurface &tsos, const MeasurementTrackerEvent &data) const
 return TRUE if at least one of the lower and upper components has badChannels More...
 
void init (const MeasurementDet *lowerDet, const MeasurementDet *upperDet)
 
bool isActive (const MeasurementTrackerEvent &data) const
 return TRUE if both lower and upper components are active More...
 
const TkPixelMeasurementDetlowerDet () const
 
virtual bool measurements (const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, const MeasurementTrackerEvent &data, TempMeasurements &result) const
 
virtual RecHitContainer recHits (const TrajectoryStateOnSurface &, const MeasurementTrackerEvent &data) const
 
const StackGeomDetspecificGeomDet () const
 
 TkStackMeasurementDet (const StackGeomDet *gdet, const PixelClusterParameterEstimator *cpe)
 
const TkPixelMeasurementDetupperDet () const
 
- Public Member Functions inherited from MeasurementDet
const GeomDetfastGeomDet () const
 
std::vector
< TrajectoryMeasurement
fastMeasurements (const TrajectoryStateOnSurface &stateOnThisDet, const TrajectoryStateOnSurface &, const Propagator &, const MeasurementEstimator &est, const MeasurementTrackerEvent &data) const
 
virtual const GeomDetgeomDet () const
 
 MeasurementDet (const GeomDet *gdet)
 
const Surface::PositionTypeposition () const
 
virtual bool recHits (const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &, const MeasurementTrackerEvent &data, RecHitContainer &result, std::vector< float > &) const
 
virtual bool recHits (SimpleHitContainer &result, const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &, const MeasurementTrackerEvent &data) const
 
const Surfacesurface () const
 

Private Attributes

const TkPixelMeasurementDettheInnerDet
 
const TkPixelMeasurementDettheOuterDet
 
const
PixelClusterParameterEstimator
thePixelCPE
 

Additional Inherited Members

- Public Types inherited from MeasurementDet
typedef
TrackingRecHit::ConstRecHitContainer 
RecHitContainer
 
using SimpleHitContainer = std::vector< BaseTrackerRecHit * >
 
typedef tracking::TempMeasurements TempMeasurements
 
- Protected Attributes inherited from MeasurementDet
TrackingRecHit::ConstRecHitPointer theInactiveHit
 
TrackingRecHit::ConstRecHitPointer theMissingHit
 

Detailed Description

Definition at line 14 of file TkStackMeasurementDet.h.

Constructor & Destructor Documentation

TkStackMeasurementDet::TkStackMeasurementDet ( const StackGeomDet gdet,
const PixelClusterParameterEstimator cpe 
)

Definition at line 7 of file TkStackMeasurementDet.cc.

8  :
9  MeasurementDet(gdet),
10  thePixelCPE(cpe),
11  theInnerDet(nullptr), theOuterDet(nullptr)
12 {}
MeasurementDet(const GeomDet *gdet)
const TkPixelMeasurementDet * theInnerDet
const TkPixelMeasurementDet * theOuterDet
const PixelClusterParameterEstimator * thePixelCPE

Member Function Documentation

bool TkStackMeasurementDet::hasBadComponents ( const TrajectoryStateOnSurface tsos,
const MeasurementTrackerEvent data 
) const
inlinevirtual

return TRUE if at least one of the lower and upper components has badChannels

Implements MeasurementDet.

Definition at line 37 of file TkStackMeasurementDet.h.

References lowerDet(), and upperDet().

37  {
38  return (lowerDet()->hasBadComponents(tsos, data) || upperDet()->hasBadComponents(tsos, data));}
bool hasBadComponents(const TrajectoryStateOnSurface &tsos, const MeasurementTrackerEvent &data) const
return TRUE if at least one of the lower and upper components has badChannels
const TkPixelMeasurementDet * lowerDet() const
const TkPixelMeasurementDet * upperDet() const
void TkStackMeasurementDet::init ( const MeasurementDet lowerDet,
const MeasurementDet upperDet 
)

Definition at line 14 of file TkStackMeasurementDet.cc.

References lowerDet(), theInnerDet, theOuterDet, and upperDet().

Referenced by MeasurementTrackerImpl::initStackDet().

15  {
16  theInnerDet = dynamic_cast<const TkPixelMeasurementDet *>(lowerDet);
17  theOuterDet = dynamic_cast<const TkPixelMeasurementDet *>(upperDet);
18 
19  if ((theInnerDet == 0) || (theOuterDet == 0)) {
20  throw MeasurementDetException("TkStackMeasurementDet ERROR: Trying to glue a det which is not a TkPixelMeasurementDet");
21  }
22 }
const TkPixelMeasurementDet * theInnerDet
const TkPixelMeasurementDet * theOuterDet
const TkPixelMeasurementDet * lowerDet() const
const TkPixelMeasurementDet * upperDet() const
bool TkStackMeasurementDet::isActive ( const MeasurementTrackerEvent data) const
inlinevirtual

return TRUE if both lower and upper components are active

Implements MeasurementDet.

Definition at line 34 of file TkStackMeasurementDet.h.

References TkPixelMeasurementDet::isActive(), lowerDet(), and upperDet().

34 {return lowerDet()->isActive(data) && upperDet()->isActive(data); }
const TkPixelMeasurementDet * lowerDet() const
bool isActive(const MeasurementTrackerEvent &data) const
Is this module active in reconstruction? It must be both &#39;setActiveThisEvent&#39; and &#39;setActive&#39;...
const TkPixelMeasurementDet * upperDet() const
const TkPixelMeasurementDet* TkStackMeasurementDet::lowerDet ( ) const
inline

Definition at line 30 of file TkStackMeasurementDet.h.

References theInnerDet.

Referenced by hasBadComponents(), init(), and isActive().

30 { return theInnerDet;}
const TkPixelMeasurementDet * theInnerDet
bool TkStackMeasurementDet::measurements ( const TrajectoryStateOnSurface stateOnThisDet,
const MeasurementEstimator est,
const MeasurementTrackerEvent data,
TempMeasurements result 
) const
virtual

Implements MeasurementDet.

Definition at line 35 of file TkStackMeasurementDet.cc.

37  {
38  return true;
39 }
TkStackMeasurementDet::RecHitContainer TkStackMeasurementDet::recHits ( const TrajectoryStateOnSurface ts,
const MeasurementTrackerEvent data 
) const
virtual

Implements MeasurementDet.

Definition at line 25 of file TkStackMeasurementDet.cc.

References mps_fire::result.

26 {
28 /*
29  HitCollectorForRecHits collector( &fastGeomDet(), theMatcher, theCPE, result );
30  collectRecHits(ts, collector);
31 */
32  return result;
33 }
tuple result
Definition: mps_fire.py:84
TrackingRecHit::ConstRecHitContainer RecHitContainer
const StackGeomDet& TkStackMeasurementDet::specificGeomDet ( ) const
inline

Definition at line 24 of file TkStackMeasurementDet.h.

References compareJSON::const, and MeasurementDet::fastGeomDet().

Referenced by MeasurementTrackerImpl::initStackDet().

24 {return static_cast<StackGeomDet const&>(fastGeomDet());}
const GeomDet & fastGeomDet() const
string const
Definition: compareJSON.py:14
const TkPixelMeasurementDet* TkStackMeasurementDet::upperDet ( ) const
inline

Definition at line 31 of file TkStackMeasurementDet.h.

References theOuterDet.

Referenced by hasBadComponents(), init(), and isActive().

31 { return theOuterDet;}
const TkPixelMeasurementDet * theOuterDet

Member Data Documentation

const TkPixelMeasurementDet* TkStackMeasurementDet::theInnerDet
private

Definition at line 42 of file TkStackMeasurementDet.h.

Referenced by init(), and lowerDet().

const TkPixelMeasurementDet* TkStackMeasurementDet::theOuterDet
private

Definition at line 43 of file TkStackMeasurementDet.h.

Referenced by init(), and upperDet().

const PixelClusterParameterEstimator* TkStackMeasurementDet::thePixelCPE
private

Definition at line 41 of file TkStackMeasurementDet.h.