CMS 3D CMS Logo

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 override
 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 override
 return TRUE if both lower and upper components are active More...
 
const TkPhase2OTMeasurementDetlowerDet () const
 
bool measurements (const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, const MeasurementTrackerEvent &data, TempMeasurements &result) const override
 
RecHitContainer recHits (const TrajectoryStateOnSurface &, const MeasurementTrackerEvent &data) const override
 
const StackGeomDetspecificGeomDet () const
 
 TkStackMeasurementDet (const StackGeomDet *gdet, const PixelClusterParameterEstimator *cpe)
 
const TkPhase2OTMeasurementDetupperDet () const
 
- Public Member Functions inherited from MeasurementDet
const GeomDetfastGeomDet () const
 
std::vector< TrajectoryMeasurementfastMeasurements (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
 
virtual ~MeasurementDet ()=default
 

Private Attributes

const TkPhase2OTMeasurementDettheInnerDet
 
const TkPhase2OTMeasurementDettheOuterDet
 
const PixelClusterParameterEstimatorthePixelCPE
 

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  : MeasurementDet(gdet), thePixelCPE(cpe), theInnerDet(nullptr), theOuterDet(nullptr) {}
MeasurementDet(const GeomDet *gdet)
const TkPhase2OTMeasurementDet * theOuterDet
const PixelClusterParameterEstimator * thePixelCPE
const TkPhase2OTMeasurementDet * theInnerDet

Member Function Documentation

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

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));
39  }
const TkPhase2OTMeasurementDet * upperDet() const
bool hasBadComponents(const TrajectoryStateOnSurface &tsos, const MeasurementTrackerEvent &data) const override
return TRUE if at least one of the lower and upper components has badChannels
const TkPhase2OTMeasurementDet * lowerDet() const
void TkStackMeasurementDet::init ( const MeasurementDet lowerDet,
const MeasurementDet upperDet 
)

Definition at line 10 of file TkStackMeasurementDet.cc.

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

Referenced by MeasurementTrackerImpl::initStackDet().

10  {
11  theInnerDet = dynamic_cast<const TkPhase2OTMeasurementDet*>(lowerDet);
12  theOuterDet = dynamic_cast<const TkPhase2OTMeasurementDet*>(upperDet);
13 
14  if ((theInnerDet == nullptr) || (theOuterDet == nullptr)) {
16  "TkStackMeasurementDet ERROR: Trying to glue a det which is not a TkPhase2OTMeasurementDet");
17  }
18 }
const TkPhase2OTMeasurementDet * theOuterDet
const TkPhase2OTMeasurementDet * upperDet() const
const TkPhase2OTMeasurementDet * lowerDet() const
const TkPhase2OTMeasurementDet * theInnerDet
bool TkStackMeasurementDet::isActive ( const MeasurementTrackerEvent data) const
inlineoverridevirtual

return TRUE if both lower and upper components are active

Implements MeasurementDet.

Definition at line 32 of file TkStackMeasurementDet.h.

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

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

Definition at line 28 of file TkStackMeasurementDet.h.

References theInnerDet.

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

28 { return theInnerDet; }
const TkPhase2OTMeasurementDet * theInnerDet
bool TkStackMeasurementDet::measurements ( const TrajectoryStateOnSurface stateOnThisDet,
const MeasurementEstimator est,
const MeasurementTrackerEvent data,
TempMeasurements result 
) const
overridevirtual

Implements MeasurementDet.

Definition at line 30 of file TkStackMeasurementDet.cc.

Referenced by specificGeomDet().

33  {
34  return true;
35 }
TkStackMeasurementDet::RecHitContainer TkStackMeasurementDet::recHits ( const TrajectoryStateOnSurface ts,
const MeasurementTrackerEvent data 
) const
overridevirtual

Implements MeasurementDet.

Definition at line 20 of file TkStackMeasurementDet.cc.

References mps_fire::result.

21  {
23  /*
24  HitCollectorForRecHits collector( &fastGeomDet(), theMatcher, theCPE, result );
25  collectRecHits(ts, collector);
26 */
27  return result;
28 }
TrackingRecHit::ConstRecHitContainer RecHitContainer
const StackGeomDet& TkStackMeasurementDet::specificGeomDet ( ) const
inline

Definition at line 21 of file TkStackMeasurementDet.h.

References watchdog::const, MeasurementDet::fastGeomDet(), measurements(), and mps_fire::result.

Referenced by MeasurementTrackerImpl::initStackDet().

21 { return static_cast<StackGeomDet const&>(fastGeomDet()); }
const GeomDet & fastGeomDet() const
const TkPhase2OTMeasurementDet* TkStackMeasurementDet::upperDet ( ) const
inline

Definition at line 29 of file TkStackMeasurementDet.h.

References theOuterDet.

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

29 { return theOuterDet; }
const TkPhase2OTMeasurementDet * theOuterDet

Member Data Documentation

const TkPhase2OTMeasurementDet* TkStackMeasurementDet::theInnerDet
private

Definition at line 43 of file TkStackMeasurementDet.h.

Referenced by init(), and lowerDet().

const TkPhase2OTMeasurementDet* TkStackMeasurementDet::theOuterDet
private

Definition at line 44 of file TkStackMeasurementDet.h.

Referenced by init(), and upperDet().

const PixelClusterParameterEstimator* TkStackMeasurementDet::thePixelCPE
private

Definition at line 42 of file TkStackMeasurementDet.h.