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  :
9  MeasurementDet(gdet),
10  thePixelCPE(cpe),
11  theInnerDet(nullptr), theOuterDet(nullptr)
12 {}
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));}
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 14 of file TkStackMeasurementDet.cc.

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

Referenced by MeasurementTrackerImpl::initStackDet().

15  {
16  theInnerDet = dynamic_cast<const TkPhase2OTMeasurementDet *>(lowerDet);
17  theOuterDet = dynamic_cast<const TkPhase2OTMeasurementDet *>(upperDet);
18 
19  if ((theInnerDet == nullptr) || (theOuterDet == nullptr)) {
20  throw MeasurementDetException("TkStackMeasurementDet ERROR: Trying to glue a det which is not a TkPhase2OTMeasurementDet");
21  }
22 }
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 34 of file TkStackMeasurementDet.h.

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

34 {return lowerDet()->isActive(data) && upperDet()->isActive(data); }
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 30 of file TkStackMeasurementDet.h.

References theInnerDet.

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

30 { 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 35 of file TkStackMeasurementDet.cc.

Referenced by specificGeomDet().

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

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 }
TrackingRecHit::ConstRecHitContainer RecHitContainer
const StackGeomDet& TkStackMeasurementDet::specificGeomDet ( ) const
inline

Definition at line 24 of file TkStackMeasurementDet.h.

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

Referenced by MeasurementTrackerImpl::initStackDet().

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

Definition at line 31 of file TkStackMeasurementDet.h.

References theOuterDet.

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

31 { return theOuterDet;}
const TkPhase2OTMeasurementDet * theOuterDet

Member Data Documentation

const TkPhase2OTMeasurementDet* TkStackMeasurementDet::theInnerDet
private

Definition at line 42 of file TkStackMeasurementDet.h.

Referenced by init(), and lowerDet().

const TkPhase2OTMeasurementDet* 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.