CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TkStackMeasurementDet Class Referencefinal

#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::TkStackMeasurementDet ( const StackGeomDet gdet,
const PixelClusterParameterEstimator cpe 
)

Definition at line 7 of file TkStackMeasurementDet.cc.

8  : MeasurementDet(gdet), thePixelCPE(cpe), theInnerDet(nullptr), theOuterDet(nullptr) {}

Member Function Documentation

◆ hasBadComponents()

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.

37  {
38  return (lowerDet()->hasBadComponents(tsos, data) || upperDet()->hasBadComponents(tsos, data));
39  }

References data, lowerDet(), and upperDet().

◆ init()

void TkStackMeasurementDet::init ( const MeasurementDet lowerDet,
const MeasurementDet upperDet 
)

Definition at line 10 of file TkStackMeasurementDet.cc.

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 }

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

Referenced by MeasurementTrackerImpl::initStackDet().

◆ isActive()

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.

32  {
33  return lowerDet()->isActive(data) && upperDet()->isActive(data);
34  }

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

◆ lowerDet()

const TkPhase2OTMeasurementDet* TkStackMeasurementDet::lowerDet ( ) const
inline

Definition at line 28 of file TkStackMeasurementDet.h.

28 { return theInnerDet; }

References theInnerDet.

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

◆ measurements()

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.

33  {
34  return true;
35 }

◆ recHits()

TkStackMeasurementDet::RecHitContainer TkStackMeasurementDet::recHits ( const TrajectoryStateOnSurface ts,
const MeasurementTrackerEvent data 
) const
overridevirtual

Implements MeasurementDet.

Definition at line 20 of file TkStackMeasurementDet.cc.

21  {
23  /*
24  HitCollectorForRecHits collector( &fastGeomDet(), theMatcher, theCPE, result );
25  collectRecHits(ts, collector);
26 */
27  return result;
28 }

References mps_fire::result.

◆ specificGeomDet()

const StackGeomDet& TkStackMeasurementDet::specificGeomDet ( ) const
inline

Definition at line 21 of file TkStackMeasurementDet.h.

21 { return static_cast<StackGeomDet const&>(fastGeomDet()); }

References MeasurementDet::fastGeomDet().

Referenced by MeasurementTrackerImpl::initStackDet().

◆ upperDet()

const TkPhase2OTMeasurementDet* TkStackMeasurementDet::upperDet ( ) const
inline

Definition at line 29 of file TkStackMeasurementDet.h.

29 { return theOuterDet; }

References theOuterDet.

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

Member Data Documentation

◆ theInnerDet

const TkPhase2OTMeasurementDet* TkStackMeasurementDet::theInnerDet
private

Definition at line 43 of file TkStackMeasurementDet.h.

Referenced by init(), and lowerDet().

◆ theOuterDet

const TkPhase2OTMeasurementDet* TkStackMeasurementDet::theOuterDet
private

Definition at line 44 of file TkStackMeasurementDet.h.

Referenced by init(), and upperDet().

◆ thePixelCPE

const PixelClusterParameterEstimator* TkStackMeasurementDet::thePixelCPE
private

Definition at line 42 of file TkStackMeasurementDet.h.

TkStackMeasurementDet::hasBadComponents
bool hasBadComponents(const TrajectoryStateOnSurface &tsos, const MeasurementTrackerEvent &data) const override
return TRUE if at least one of the lower and upper components has badChannels
Definition: TkStackMeasurementDet.h:37
MeasurementDet::RecHitContainer
TrackingRecHit::ConstRecHitContainer RecHitContainer
Definition: MeasurementDet.h:19
MeasurementDet::MeasurementDet
MeasurementDet(const GeomDet *gdet)
Definition: MeasurementDet.h:23
TkStackMeasurementDet::lowerDet
const TkPhase2OTMeasurementDet * lowerDet() const
Definition: TkStackMeasurementDet.h:28
TkStackMeasurementDet::thePixelCPE
const PixelClusterParameterEstimator * thePixelCPE
Definition: TkStackMeasurementDet.h:42
TkStackMeasurementDet::theInnerDet
const TkPhase2OTMeasurementDet * theInnerDet
Definition: TkStackMeasurementDet.h:43
MeasurementDetException
Common base class.
Definition: MeasurementDetException.h:12
TkPhase2OTMeasurementDet::isActive
bool isActive(const MeasurementTrackerEvent &data) const override
Is this module active in reconstruction? It must be both 'setActiveThisEvent' and 'setActive'.
Definition: TkPhase2OTMeasurementDet.h:69
TkStackMeasurementDet::upperDet
const TkPhase2OTMeasurementDet * upperDet() const
Definition: TkStackMeasurementDet.h:29
TkStackMeasurementDet::theOuterDet
const TkPhase2OTMeasurementDet * theOuterDet
Definition: TkStackMeasurementDet.h:44
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
mps_fire.result
result
Definition: mps_fire.py:303
MeasurementDet::fastGeomDet
const GeomDet & fastGeomDet() const
Definition: MeasurementDet.h:80