12 if (dynamic_cast<const PixelGeomDetUnit*>(gdet) ==
nullptr) {
14 "TkPhase2OTMeasurementDet constructed with a GeomDet which is not a PixelGeomDetUnit");
40 std::vector<float>& diffs)
const {
44 auto oldSize = result.size();
48 auto reject = [&](
auto ci) ->
bool {
53 auto firstCluster = detSet.
begin();
54 auto lastCluster = detSet.
end();
73 int colMin =
ymin.y();
74 int colMax =
ymax.y();
76 return int(
hit.column()) >= colMin;
78 lastCluster = std::find_if(
82 while (firstCluster != lastCluster) {
83 auto const col = firstCluster->column();
84 auto endCluster = std::find_if(
87 auto rightCluster = std::find_if(
90 if (rightCluster != firstCluster) {
92 auto leftCluster = rightCluster;
93 while (--leftCluster >= firstCluster) {
98 auto diffEst = est.
estimate(stateOnThisDet, *hit);
101 result.push_back(hit);
102 diffs.push_back(diffEst.second);
105 for (; rightCluster != endCluster; rightCluster++) {
110 auto diffEst = est.
estimate(stateOnThisDet, *hit);
113 result.push_back(hit);
114 diffs.push_back(diffEst.second);
116 firstCluster = endCluster;
118 return result.size() > oldSize;
141 result.reserve(detSet.
size());
144 edm::LogError(
"IndexMisMatch") <<
"TkPhase2OTMeasurementDet cannot create hit because of index mismatch.";
149 edm::LogError(
"IndexMisMatch") <<
"TkPhase2OTMeasurementDet cannot create hit because of index mismatch. i.e "
157 LogDebug(
"TkPhase2OTMeasurementDet") <<
"skipping this cluster from last iteration on "
const std::vector< bool > & phase2OTClustersToSkip() const
bool isEmpty(const Phase2OTMeasurementDetSet &data) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
TkPhase2OTMeasurementDet(const GeomDet *gdet, Phase2OTMeasurementConditionSet &conditionSet)
const LocalTrajectoryParameters & localParameters() const
const Phase2OTMeasurementDetSet & phase2OTData() const
LocalPoint localPosition() const
const Phase2DetSet & detSet(int i) const
constexpr uint32_t rawId() const
get the raw id
unsigned int firstStrip() const
bool measurements(const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, const MeasurementTrackerEvent &dat, TempMeasurements &result) const override
Log< level::Error, false > LogError
const PixelGeomDetUnit & specificGeomDet() const
LocalError positionError() const
TrackingRecHit::ConstRecHitPointer theMissingHit
const GeomDet & fastGeomDet() const
int index() const
Sets the list of bad ROCs, identified by the positions of their centers in the local coordinate frame...
virtual LocalValues localParameters(const T &, const GeomDetUnit &) const =0
bool hasBadComponents(const TrajectoryStateOnSurface &tsos, const MeasurementTrackerEvent &dat) const override
const edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D > > & handle() const
void add(ConstRecHitPointer const &h, float d)
bool isActive(const MeasurementTrackerEvent &data) const override
Is this module active in reconstruction? It must be both 'setActiveThisEvent' and 'setActive'...
DetId geographicalId() const
The label of this GeomDet.
virtual MeasurementPoint measurementPosition(const LocalPoint &) const =0
const ClusterParameterEstimator< Phase2TrackerCluster1D > * cpe() const
const LocalTrajectoryError & localError() const
virtual HitReturnType estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit) const =0
std::shared_ptr< TrackingRecHit const > RecHitPointer
TrackingRecHit::ConstRecHitPointer theInactiveHit
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
TrackingRecHit::ConstRecHitContainer RecHitContainer
char data[epos_bytes_allocation]
edm::Ref< typename HandleT::element_type, typename HandleT::element_type::value_type::value_type > makeRefTo(HandleT const &handle, const_iterator ci) const
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
detset::const_iterator const_iterator
RecHitContainer recHits(const TrajectoryStateOnSurface &, const MeasurementTrackerEvent &dat) const override
TrackingRecHit::RecHitPointer buildRecHit(const Phase2TrackerCluster1DRef &cluster, const LocalTrajectoryParameters <p) const