CMS 3D CMS Logo

TkPhase2OTMeasurementDet.h
Go to the documentation of this file.
1 #ifndef TkPhase2OTMeasurementDet_H
2 #define TkPhase2OTMeasurementDet_H
3 
12 
13 class TrackingRecHit;
15 
17 public:
19 
23 
25 
26  void update(Phase2OTMeasurementDetSet& data, const detset& detSet) {
27  data.update(index(), detSet);
28  data.setActiveThisEvent(index(), true);
29  }
30 
32  bool isEmpty(const Phase2OTMeasurementDetSet& data) const { return data.empty(index()); }
33 
35 
36  RecHitContainer recHits(const TrajectoryStateOnSurface&, const MeasurementTrackerEvent& dat) const override;
37  bool recHits(const TrajectoryStateOnSurface& stateOnThisDet,
38  const MeasurementEstimator&,
40  RecHitContainer& result,
41  std::vector<float>&) const override;
42 
43  // simple hits
45  const TrajectoryStateOnSurface& stateOnThisDet,
46  const MeasurementEstimator&,
47  const MeasurementTrackerEvent& data) const override {
48  assert("not implemented for Pixel yet" == nullptr);
49  }
50 
51  bool measurements(const TrajectoryStateOnSurface& stateOnThisDet,
52  const MeasurementEstimator& est,
53  const MeasurementTrackerEvent& dat,
54  TempMeasurements& result) const override;
55 
56  const PixelGeomDetUnit& specificGeomDet() const { return static_cast<PixelGeomDetUnit const&>(fastGeomDet()); }
57 
58  TrackingRecHit::RecHitPointer buildRecHit(const Phase2TrackerCluster1DRef& cluster,
59  const LocalTrajectoryParameters& ltp) const;
60 
62  void setActive(bool active) { conditionSet().setActive(index(), active); }
66  data.setActiveThisEvent(index(), active);
67  }
69  bool isActive(const MeasurementTrackerEvent& data) const override { return data.phase2OTData().isActive(index()); }
70 
71  bool hasBadComponents(const TrajectoryStateOnSurface& tsos, const MeasurementTrackerEvent& dat) const override;
72 
73  //FIXME:just temporary solution for phase2!
75  // void setBadRocPositions(std::vector< LocalPoint > & positions) { badRocPositions_.swap(positions); }
77  // void clearBadRocPositions() { badRocPositions_.clear(); }
78 
79  int index() const { return index_; }
80  void setIndex(int i) { index_ = i; }
81 
82 private:
83  unsigned int id_;
84  // std::vector< LocalPoint > badRocPositions_;
85 
86  int index_;
88  Phase2OTMeasurementConditionSet& conditionSet() { return *theDetConditions; }
89  const Phase2OTMeasurementConditionSet& conditionSet() const { return *theDetConditions; }
90 
91  const ClusterParameterEstimator<Phase2TrackerCluster1D>* cpe() const { return conditionSet().cpe(); }
92 };
93 
94 #endif
MeasurementEstimator
Definition: MeasurementEstimator.h:19
Handle.h
mps_fire.i
i
Definition: mps_fire.py:428
MeasurementTrackerEvent.h
GeomDet
Definition: GeomDet.h:27
Phase2TrackerCluster1D
Definition: Phase2TrackerCluster1D.h:10
TkPhase2OTMeasurementDet::LocalValues
ClusterParameterEstimator< Phase2TrackerCluster1D >::LocalValues LocalValues
Definition: TkPhase2OTMeasurementDet.h:22
TkPhase2OTMeasurementDet::const_iterator
detset::const_iterator const_iterator
Definition: TkPhase2OTMeasurementDet.h:21
MeasurementDet::hasBadComponents
virtual bool hasBadComponents(const TrajectoryStateOnSurface &tsos, const MeasurementTrackerEvent &data) const =0
TkMeasurementDetSet.h
Phase2OTMeasurementConditionSet
Definition: TkMeasurementDetSet.h:405
TkPhase2OTMeasurementDet::setIndex
void setIndex(int i)
Definition: TkPhase2OTMeasurementDet.h:80
cms::cuda::assert
assert(be >=bs)
MeasurementDet
Definition: MeasurementDet.h:16
MeasurementDet::measurements
virtual bool measurements(const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, const MeasurementTrackerEvent &data, TempMeasurements &result) const =0
TrackingRecHit::RecHitPointer
std::shared_ptr< TrackingRecHit const > RecHitPointer
Definition: TrackingRecHit.h:24
TkPhase2OTMeasurementDet::setEmpty
void setEmpty(Phase2OTMeasurementDetSet &data)
Definition: TkPhase2OTMeasurementDet.h:31
edm::Ref
Definition: AssociativeIterator.h:58
TkPhase2OTMeasurementDet::specificGeomDet
const PixelGeomDetUnit & specificGeomDet() const
Definition: TkPhase2OTMeasurementDet.h:56
LocalTrajectoryParameters
Definition: LocalTrajectoryParameters.h:25
Phase2OTMeasurementDetSet
Definition: TkMeasurementDetSet.h:433
TkPhase2OTMeasurementDet::setActiveThisEvent
void setActiveThisEvent(Phase2OTMeasurementDetSet &data, bool active) const
Turn on/off the module for reconstruction for one events. This per-event flag is cleared by any call ...
Definition: TkPhase2OTMeasurementDet.h:65
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
TkPhase2OTMeasurementDet::index_
int index_
Definition: TkPhase2OTMeasurementDet.h:86
TkPhase2OTMeasurementDet::index
int index() const
Sets the list of bad ROCs, identified by the positions of their centers in the local coordinate frame...
Definition: TkPhase2OTMeasurementDet.h:79
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
TkPhase2OTMeasurementDet::update
void update(Phase2OTMeasurementDetSet &data, const detset &detSet)
Definition: TkPhase2OTMeasurementDet.h:26
PixelGeomDetUnit
Definition: PixelGeomDetUnit.h:15
edmNew::DetSet
Definition: DetSetNew.h:22
Phase2StripCPE.h
dso_hidden
#define dso_hidden
Definition: Visibility.h:12
ClusterParameterEstimator
Definition: ClusterParameterEstimator.h:12
TkPhase2OTMeasurementDet::recHits
bool recHits(SimpleHitContainer &result, const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &, const MeasurementTrackerEvent &data) const override
Definition: TkPhase2OTMeasurementDet.h:44
MeasurementTrackerEvent
Definition: MeasurementTrackerEvent.h:16
MeasurementDet::SimpleHitContainer
std::vector< BaseTrackerRecHit * > SimpleHitContainer
Definition: MeasurementDet.h:21
TkPhase2OTMeasurementDet::id_
unsigned int id_
Definition: TkPhase2OTMeasurementDet.h:83
TkPhase2OTMeasurementDet::Phase2TrackerCluster1DRef
edm::Ref< edmNew::DetSetVector< Phase2TrackerCluster1D >, Phase2TrackerCluster1D > Phase2TrackerCluster1DRef
Definition: TkPhase2OTMeasurementDet.h:18
TkPhase2OTMeasurementDet::setActive
void setActive(bool active)
Turn on/off the module for reconstruction, for the full run or lumi (using info from DB,...
Definition: TkPhase2OTMeasurementDet.h:62
TkPhase2OTMeasurementDet::cpe
const ClusterParameterEstimator< Phase2TrackerCluster1D > * cpe() const
Definition: TkPhase2OTMeasurementDet.h:91
DetSetVector.h
TkPhase2OTMeasurementDet
Definition: TkPhase2OTMeasurementDet.h:16
TrackingRecHit
Definition: TrackingRecHit.h:21
TkPhase2OTMeasurementDet::~TkPhase2OTMeasurementDet
~TkPhase2OTMeasurementDet() override
Definition: TkPhase2OTMeasurementDet.h:34
TkPhase2OTMeasurementDet::isEmpty
bool isEmpty(const Phase2OTMeasurementDetSet &data) const
Definition: TkPhase2OTMeasurementDet.h:32
Phase2TrackerCluster1D.h
PixelGeomDetUnit.h
TkPhase2OTMeasurementDet::detset
edmNew::DetSet< Phase2TrackerCluster1D > detset
Definition: TkPhase2OTMeasurementDet.h:20
TkPhase2OTMeasurementDet::conditionSet
Phase2OTMeasurementConditionSet & conditionSet()
Definition: TkPhase2OTMeasurementDet.h:88
TkPhase2OTMeasurementDet::theDetConditions
Phase2OTMeasurementConditionSet * theDetConditions
Definition: TkPhase2OTMeasurementDet.h:87
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
mps_fire.result
result
Definition: mps_fire.py:311
MeasurementDet::fastGeomDet
const GeomDet & fastGeomDet() const
Definition: MeasurementDet.h:80
TkPhase2OTMeasurementDet::conditionSet
const Phase2OTMeasurementConditionSet & conditionSet() const
Definition: TkPhase2OTMeasurementDet.h:89
MeasurementDet.h
MeasurementDet::recHits
virtual RecHitContainer recHits(const TrajectoryStateOnSurface &, const MeasurementTrackerEvent &) const =0
edmNew::DetSet::const_iterator
const data_type * const_iterator
Definition: DetSetNew.h:31