CMS 3D CMS Logo

TkStackMeasurementDet.h
Go to the documentation of this file.
1 #ifndef TkStackMeasurementDet_H
2 #define TkStackMeasurementDet_H
3 
6 
9 
11 
12 // FIXME::TkStackMeasurementDet in this moment is just a prototype: to be fixed soon!
13 
14 class TkStackMeasurementDet final : public MeasurementDet {
15 public:
17  void init(const MeasurementDet* lowerDet, const MeasurementDet* upperDet);
18 
20 
21  const StackGeomDet& specificGeomDet() const { return static_cast<StackGeomDet const&>(fastGeomDet()); }
22 
23  bool measurements(const TrajectoryStateOnSurface& stateOnThisDet,
24  const MeasurementEstimator& est,
26  TempMeasurements& result) const override;
27 
28  const TkPhase2OTMeasurementDet* lowerDet() const { return theInnerDet; }
29  const TkPhase2OTMeasurementDet* upperDet() const { return theOuterDet; }
30 
32  bool isActive(const MeasurementTrackerEvent& data) const override {
33  return lowerDet()->isActive(data) && upperDet()->isActive(data);
34  }
35 
37  bool hasBadComponents(const TrajectoryStateOnSurface& tsos, const MeasurementTrackerEvent& data) const override {
38  return (lowerDet()->hasBadComponents(tsos, data) || upperDet()->hasBadComponents(tsos, data));
39  }
40 
41 private:
45 };
46 
47 #endif
MeasurementEstimator
Definition: MeasurementEstimator.h:19
PixelClusterParameterEstimator
Definition: PixelClusterParameterEstimator.h:15
Visibility.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
TkStackMeasurementDet::TkStackMeasurementDet
TkStackMeasurementDet(const StackGeomDet *gdet, const PixelClusterParameterEstimator *cpe)
Definition: TkStackMeasurementDet.cc:7
MeasurementDet::RecHitContainer
TrackingRecHit::ConstRecHitContainer RecHitContainer
Definition: MeasurementDet.h:19
TkStackMeasurementDet::lowerDet
const TkPhase2OTMeasurementDet * lowerDet() const
Definition: TkStackMeasurementDet.h:28
PixelClusterParameterEstimator.h
TkStackMeasurementDet::thePixelCPE
const PixelClusterParameterEstimator * thePixelCPE
Definition: TkStackMeasurementDet.h:42
MeasurementDet
Definition: MeasurementDet.h:16
TkStackMeasurementDet::theInnerDet
const TkPhase2OTMeasurementDet * theInnerDet
Definition: TkStackMeasurementDet.h:43
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
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::init
void init(const MeasurementDet *lowerDet, const MeasurementDet *upperDet)
Definition: TkStackMeasurementDet.cc:10
TkStackMeasurementDet
Definition: TkStackMeasurementDet.h:14
TkPhase2OTMeasurementDet.h
MeasurementTrackerEvent
Definition: MeasurementTrackerEvent.h:15
TkStackMeasurementDet::theOuterDet
const TkPhase2OTMeasurementDet * theOuterDet
Definition: TkStackMeasurementDet.h:44
TkStackMeasurementDet::measurements
bool measurements(const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, const MeasurementTrackerEvent &data, TempMeasurements &result) const override
Definition: TkStackMeasurementDet.cc:30
TkStackMeasurementDet::specificGeomDet
const StackGeomDet & specificGeomDet() const
Definition: TkStackMeasurementDet.h:21
StackGeomDet.h
TkStackMeasurementDet::isActive
bool isActive(const MeasurementTrackerEvent &data) const override
return TRUE if both lower and upper components are active
Definition: TkStackMeasurementDet.h:32
TkPhase2OTMeasurementDet
Definition: TkPhase2OTMeasurementDet.h:16
StackGeomDet
Definition: StackGeomDet.h:7
TkStackMeasurementDet::recHits
RecHitContainer recHits(const TrajectoryStateOnSurface &, const MeasurementTrackerEvent &data) const override
Definition: TkStackMeasurementDet.cc:20
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
mps_fire.result
result
Definition: mps_fire.py:303
MeasurementDet::TempMeasurements
tracking::TempMeasurements TempMeasurements
Definition: MeasurementDet.h:18
MeasurementDet::fastGeomDet
const GeomDet & fastGeomDet() const
Definition: MeasurementDet.h:80
MeasurementDet.h