#include <TkStripMeasurementDet.h>
Public Types | |
typedef StMeasurementConditionSet::BadStripBlock | BadStripBlock |
typedef StMeasurementConditionSet::BadStripCuts | BadStripCuts |
typedef std::vector< SiStripCluster >::const_iterator | const_iterator |
typedef edmNew::DetSet< SiStripCluster > | detset |
typedef StripClusterParameterEstimator::LocalValues | LocalValues |
typedef detset::const_iterator | new_const_iterator |
typedef SiStripRecHit2D::ClusterRef | SiStripClusterRef |
typedef StripClusterParameterEstimator::VLocalValues | VLocalValues |
Public Types inherited from MeasurementDet | |
typedef TrackingRecHit::ConstRecHitContainer | RecHitContainer |
using | SimpleHitContainer = std::vector< BaseTrackerRecHit * > |
typedef tracking::TempMeasurements | TempMeasurements |
Public Member Functions | |
bool | accept (SiStripClusterRef const &r, const std::vector< bool > &skipClusters) const |
bool | accept (unsigned int key, const std::vector< bool > &skipClusters) const |
void | advance (TkStripRecHitIter &hi) const |
std::vector< BadStripBlock > const & | badStripBlocks () const |
template<class ClusterRefT > | |
TrackingRecHit::RecHitPointer | buildRecHit (const ClusterRefT &cluster, const TrajectoryStateOnSurface <p) const |
template<class ClusterRefT > | |
void | buildRecHits (const ClusterRefT &cluster, const TrajectoryStateOnSurface <p, const RecHitContainer &_res) const |
const detset & | detSet (const StMeasurementDetSet &theDets) const |
bool | empty (const MeasurementTrackerEvent &data) const |
template<class ClusterRefT > | |
bool | filteredRecHits (const ClusterRefT &cluster, StripCPE::AlgoParam const &cpepar, const TrajectoryStateOnSurface <p, const MeasurementEstimator &est, const std::vector< bool > &skipClusters, RecHitContainer &result, std::vector< float > &diffs) const |
template<class ClusterRefT > | |
bool | filteredRecHits (const ClusterRefT &cluster, StripCPE::AlgoParam const &cpepar, const TrajectoryStateOnSurface <p, const MeasurementEstimator &est, const std::vector< bool > &skipClusters, std::vector< SiStripRecHit2D > &result) const |
std::vector< BadStripBlock > & | getBadStripBlocks () |
bool | hasAllGoodChannels () const |
does this module have at least one bad strip, APV or channel? More... | |
bool | hasBadComponents (const TrajectoryStateOnSurface &tsos, const MeasurementTrackerEvent &data) const override |
SiStripRecHit2D | hit (TkStripRecHitIter const &hi) const |
std::tuple< TkStripRecHitIter, TkStripRecHitIter > | hitRange (const TrajectoryStateOnSurface &, const MeasurementTrackerEvent &data) const |
int | index () const |
bool | isActive (const MeasurementTrackerEvent &data) const override |
Is this module active in reconstruction? It must be both 'setActiveThisEvent' and 'setActive'. More... | |
bool | isEmpty (const StMeasurementDetSet &theDets) const |
bool | maskBad128StripBlocks () const |
bool | measurements (const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, const MeasurementTrackerEvent &data, TempMeasurements &result) const override |
unsigned int | rawId () const |
RecHitContainer | recHits (const TrajectoryStateOnSurface &, const MeasurementTrackerEvent &data) const override |
bool | recHits (SimpleHitContainer &result, const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &, const MeasurementTrackerEvent &data) const override |
bool | recHits (const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, const MeasurementTrackerEvent &data, RecHitContainer &result, std::vector< float > &diffs) const override |
void | set128StripStatus (bool good, int idx=-1) |
Sets the status of a block of 128 strips (or all blocks if idx=-1) More... | |
void | setActiveThisEvent (StMeasurementDetSet &theDets, bool active) const |
Turn on/off the module for reconstruction for one events. This per-event flag is cleared by any call to 'update' or 'setEmpty'. More... | |
void | setActiveThisPeriod (StMeasurementDetSet &theDets, bool active) |
Turn on/off the module for reconstruction, for the full run or lumi (using info from DB, usually). More... | |
void | setEmpty (StMeasurementDetSet &theDets) const |
void | setIndex (int i) |
void | simpleRecHits (const TrajectoryStateOnSurface &ts, const MeasurementTrackerEvent &data, std::vector< SiStripRecHit2D > &result) const |
bool | simpleRecHits (const TrajectoryStateOnSurface &ts, const MeasurementEstimator &est, const MeasurementTrackerEvent &data, std::vector< SiStripRecHit2D > &result) const |
const StripGeomDetUnit & | specificGeomDet () const |
unsigned char | subId () const |
bool | testStrips (float utraj, float uerr) const |
return true if there are 'enough' good strips in the utraj +/- 3 uerr range. More... | |
const detset & | theSet (const StMeasurementDetSet &theDets) const |
TkStripMeasurementDet (const GeomDet *gdet, StMeasurementConditionSet &conditionSet) | |
~TkStripMeasurementDet () override | |
Public Member Functions inherited from MeasurementDet | |
const GeomDet & | fastGeomDet () const |
std::vector< TrajectoryMeasurement > | fastMeasurements (const TrajectoryStateOnSurface &stateOnThisDet, const TrajectoryStateOnSurface &, const Propagator &, const MeasurementEstimator &est, const MeasurementTrackerEvent &data) const |
virtual const GeomDet & | geomDet () const |
MeasurementDet (const GeomDet *gdet) | |
const Surface::PositionType & | position () const |
const Surface & | surface () const |
virtual | ~MeasurementDet ()=default |
Private Types | |
using | AClusters = StripClusterParameterEstimator::AClusters |
using | ALocalValues = StripClusterParameterEstimator::ALocalValues |
Private Member Functions | |
BadStripCuts const & | badStripCuts () const |
void | buildSimpleRecHits (AClusters const &clusters, const MeasurementTrackerEvent &data, const detset &detSet, const TrajectoryStateOnSurface <p, std::vector< SiStripRecHit2D > &res) const |
StMeasurementConditionSet & | conditionSet () |
const StMeasurementConditionSet & | conditionSet () const |
const StripCPE * | cpe () const |
bool | hasAny128StripBad () const |
bool | isMasked (const SiStripCluster &cluster) const |
int | totalStrips () const |
Private Attributes | |
int | index_ |
StMeasurementConditionSet * | theDetConditions |
Additional Inherited Members | |
Protected Attributes inherited from MeasurementDet | |
TrackingRecHit::ConstRecHitPointer | theInactiveHit |
TrackingRecHit::ConstRecHitPointer | theMissingHit |
Definition at line 86 of file TkStripMeasurementDet.h.
Definition at line 239 of file TkStripMeasurementDet.h.
Definition at line 240 of file TkStripMeasurementDet.h.
Definition at line 231 of file TkStripMeasurementDet.h.
Definition at line 226 of file TkStripMeasurementDet.h.
typedef std::vector<SiStripCluster>::const_iterator TkStripMeasurementDet::const_iterator |
Definition at line 97 of file TkStripMeasurementDet.h.
Definition at line 94 of file TkStripMeasurementDet.h.
Definition at line 89 of file TkStripMeasurementDet.h.
Definition at line 95 of file TkStripMeasurementDet.h.
Definition at line 92 of file TkStripMeasurementDet.h.
Definition at line 90 of file TkStripMeasurementDet.h.
|
inlineoverride |
Definition at line 99 of file TkStripMeasurementDet.h.
TkStripMeasurementDet::TkStripMeasurementDet | ( | const GeomDet * | gdet, |
StMeasurementConditionSet & | conditionSet | ||
) |
Definition at line 16 of file TkStripMeasurementDet.cc.
|
inline |
Definition at line 282 of file TkStripMeasurementDet.h.
References accept(), edm::Ref< C, T, F >::key(), and HiRegitMuonDetachedTripletStep_cff::skipClusters.
Referenced by advance(), Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), empty(), esMonitoring.FDJsonServer::handle_accept(), recHits(), and simpleRecHits().
|
inline |
Definition at line 286 of file TkStripMeasurementDet.h.
References LogDebug.
Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), and esMonitoring.FDJsonServer::handle_accept().
void TkStripMeasurementDet::advance | ( | TkStripRecHitIter & | hi | ) | const |
Definition at line 242 of file TkStripMeasurementDet.cc.
References accept(), TkStripRecHitIter::clusterI, TkStripRecHitIter::data, data, TkStripRecHitIter::empty(), isMasked(), and edmNew::makeRefTo().
|
inline |
Definition at line 234 of file TkStripMeasurementDet.h.
References StMeasurementConditionSet::badStripBlocks().
Referenced by testStrips().
|
inlineprivate |
Definition at line 252 of file TkStripMeasurementDet.h.
References StMeasurementConditionSet::badStripCuts().
Referenced by testStrips().
|
inline |
Definition at line 156 of file TkStripMeasurementDet.h.
References MeasurementDet::fastGeomDet().
Referenced by recHits().
|
inline |
Definition at line 165 of file TkStripMeasurementDet.h.
|
inlineprivate |
Definition at line 262 of file TkStripMeasurementDet.h.
References declareDynArray, StMeasurementDetSet::handle(), mps_fire::i, TrajectoryStateOnSurface::localParameters(), edmNew::DetSet< T >::makeRefTo(), DynArray< T >::size(), and MeasurementTrackerEvent::stripData().
Referenced by simpleRecHits().
|
inlineprivate |
Definition at line 245 of file TkStripMeasurementDet.h.
|
inlineprivate |
Definition at line 246 of file TkStripMeasurementDet.h.
|
inlineprivate |
Definition at line 248 of file TkStripMeasurementDet.h.
References StMeasurementConditionSet::stripCPE().
Referenced by hit(), recHits(), and simpleRecHits().
|
inline |
Definition at line 116 of file TkStripMeasurementDet.h.
References StMeasurementDetSet::detSet().
Referenced by empty(), hitRange(), recHits(), and simpleRecHits().
bool TkStripMeasurementDet::empty | ( | const MeasurementTrackerEvent & | data | ) | const |
Definition at line 26 of file TkStripMeasurementDet.cc.
References accept(), edmNew::DetSet< T >::begin(), detSet(), StMeasurementDetSet::detSet(), edmNew::DetSet< T >::end(), StMeasurementDetSet::handle(), index(), isActive(), isEmpty(), isMasked(), edmNew::DetSet< T >::makeRefTo(), MeasurementTrackerEvent::stripClustersToSkip(), MeasurementTrackerEvent::stripData(), and UNLIKELY.
|
inline |
Definition at line 175 of file TkStripMeasurementDet.h.
References accept(), MeasurementEstimator::estimate(), LogDebug, MeasurementEstimator::preFilter(), and rpcPointValidation_cfi::recHit.
Referenced by recHits(), and simpleRecHits().
|
inline |
Definition at line 194 of file TkStripMeasurementDet.h.
References accept(), MeasurementEstimator::estimate(), LogDebug, and MeasurementEstimator::preFilter().
|
inline |
Definition at line 233 of file TkStripMeasurementDet.h.
References StMeasurementConditionSet::getBadStripBlocks().
|
inline |
does this module have at least one bad strip, APV or channel?
Definition at line 219 of file TkStripMeasurementDet.h.
Referenced by TkGluedMeasurementDet::measurements().
|
inlineprivate |
Definition at line 254 of file TkStripMeasurementDet.h.
References StMeasurementConditionSet::hasAny128StripBad().
|
inlineoverridevirtual |
Implements MeasurementDet.
Definition at line 123 of file TkStripMeasurementDet.h.
References data, relativeConstraints::empty, MeasurementDet::measurements(), MeasurementDet::recHits(), and mps_fire::result.
SiStripRecHit2D TkStripMeasurementDet::hit | ( | TkStripRecHitIter const & | hi | ) | const |
Definition at line 253 of file TkStripMeasurementDet.cc.
References TkStripRecHitIter::clusterI, cpe(), TkStripRecHitIter::data, data, StripCPE::localParameters(), edmNew::makeRefTo(), specificGeomDet(), and TkStripRecHitIter::tsos.
Referenced by recHits(), and simpleRecHits().
std::tuple< TkStripRecHitIter, TkStripRecHitIter > TkStripMeasurementDet::hitRange | ( | const TrajectoryStateOnSurface & | ts, |
const MeasurementTrackerEvent & | data | ||
) | const |
Definition at line 233 of file TkStripMeasurementDet.cc.
References edmNew::DetSet< T >::begin(), data, detSet(), StMeasurementDetSet::detSet(), edmNew::DetSet< T >::end(), index(), isActive(), isEmpty(), and MeasurementTrackerEvent::stripData().
|
inline |
Definition at line 109 of file TkStripMeasurementDet.h.
Referenced by empty(), hitRange(), BeautifulSoup.PageElement::insert(), recHits(), and simpleRecHits().
|
inlineoverridevirtual |
Is this module active in reconstruction? It must be both 'setActiveThisEvent' and 'setActive'.
Implements MeasurementDet.
Definition at line 120 of file TkStripMeasurementDet.h.
References StMeasurementDetSet::isActive(), and MeasurementTrackerEvent::stripData().
Referenced by empty(), hitRange(), TkGluedMeasurementDet::measurements(), measurements(), TkGluedMeasurementDet::recHits(), recHits(), and simpleRecHits().
|
inline |
Definition at line 107 of file TkStripMeasurementDet.h.
References StMeasurementDetSet::empty().
Referenced by plotting.Plot::clone(), empty(), hitRange(), measurements(), recHits(), and simpleRecHits().
|
inlineprivate |
Definition at line 257 of file TkStripMeasurementDet.h.
References StMeasurementConditionSet::isMasked().
Referenced by advance(), empty(), recHits(), and simpleRecHits().
|
inline |
Definition at line 236 of file TkStripMeasurementDet.h.
References StMeasurementConditionSet::maskBad128StripBlocks().
|
overridevirtual |
Implements MeasurementDet.
Definition at line 167 of file TkStripMeasurementDet.cc.
References tracking::TempMeasurements::add(), tracking::TempMeasurements::distances, F(), TrajectoryStateOnSurface::hasError(), tracking::TempMeasurements::hits, isActive(), isEmpty(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localPosition(), LogDebug, Topology::measurementPosition(), LocalTrajectoryError::positionError(), rawId(), TrackInfoProducer_cfi::rechits, recHits(), specificGeomDet(), StripGeomDetUnit::specificTopology(), mathSSE::sqrt(), MeasurementTrackerEvent::stripData(), testStrips(), MeasurementDet::theInactiveHit, MeasurementDet::theMissingHit, and x.
|
inline |
Definition at line 111 of file TkStripMeasurementDet.h.
References StMeasurementConditionSet::id().
Referenced by measurements(), recHits(), and simpleRecHits().
|
overridevirtual |
Implements MeasurementDet.
Definition at line 41 of file TkStripMeasurementDet.cc.
References accept(), edmNew::DetSet< T >::begin(), buildRecHit(), detSet(), StMeasurementDetSet::detSet(), edmNew::DetSet< T >::end(), StMeasurementDetSet::handle(), index(), isActive(), isEmpty(), isMasked(), edm::Ref< C, T, F >::key(), LogDebug, edmNew::DetSet< T >::makeRefTo(), rawId(), mps_fire::result, edmNew::DetSet< T >::size(), MeasurementTrackerEvent::stripClustersToSkip(), MeasurementTrackerEvent::stripData(), and UNLIKELY.
Referenced by TkGluedMeasurementDet::collectRecHits(), and measurements().
|
overridevirtual |
Reimplemented from MeasurementDet.
Definition at line 61 of file TkStripMeasurementDet.cc.
References edmNew::DetSet< T >::begin(), cpe(), detSet(), StMeasurementDetSet::detSet(), edmNew::DetSet< T >::end(), filteredRecHits(), StripCPE::getAlgoParam(), h, StMeasurementDetSet::handle(), hit(), index(), isActive(), isEmpty(), TrajectoryStateOnSurface::localParameters(), TrajectoryStateOnSurface::localPosition(), edmNew::DetSet< T >::makeRefTo(), Topology::measurementPosition(), eostools::move(), specificGeomDet(), StripGeomDetUnit::specificTopology(), MeasurementTrackerEvent::stripClustersToSkip(), MeasurementTrackerEvent::stripData(), tmp, UNLIKELY, and x.
|
overridevirtual |
Reimplemented from MeasurementDet.
Definition at line 136 of file TkStripMeasurementDet.cc.
References edmNew::DetSet< T >::begin(), cpe(), detSet(), StMeasurementDetSet::detSet(), edmNew::DetSet< T >::end(), filteredRecHits(), StripCPE::getAlgoParam(), StMeasurementDetSet::handle(), hit(), index(), isActive(), isEmpty(), TrajectoryStateOnSurface::localParameters(), TrajectoryStateOnSurface::localPosition(), edmNew::DetSet< T >::makeRefTo(), Topology::measurementPosition(), mps_fire::result, specificGeomDet(), StripGeomDetUnit::specificTopology(), MeasurementTrackerEvent::stripClustersToSkip(), MeasurementTrackerEvent::stripData(), UNLIKELY, and x.
|
inline |
Sets the status of a block of 128 strips (or all blocks if idx=-1)
Definition at line 222 of file TkStripMeasurementDet.h.
References training_settings::idx, and StMeasurementConditionSet::set128StripStatus().
|
inline |
Turn on/off the module for reconstruction for one events. This per-event flag is cleared by any call to 'update' or 'setEmpty'.
Definition at line 216 of file TkStripMeasurementDet.h.
References StMeasurementDetSet::setActiveThisEvent().
|
inline |
Turn on/off the module for reconstruction, for the full run or lumi (using info from DB, usually).
Definition at line 212 of file TkStripMeasurementDet.h.
References StMeasurementConditionSet::setActive().
|
inline |
|
inline |
void TkStripMeasurementDet::simpleRecHits | ( | const TrajectoryStateOnSurface & | ts, |
const MeasurementTrackerEvent & | data, | ||
std::vector< SiStripRecHit2D > & | result | ||
) | const |
Definition at line 213 of file TkStripMeasurementDet.cc.
References accept(), buildSimpleRecHits(), fastPrimaryVertexProducer_cfi::clusters, detSet(), StMeasurementDetSet::detSet(), index(), isActive(), isEmpty(), isMasked(), LogDebug, rawId(), edmNew::DetSet< T >::size(), MeasurementTrackerEvent::stripClustersToSkip(), MeasurementTrackerEvent::stripData(), and unInitDynArray.
Referenced by TkGluedMeasurementDet::collectRecHits().
bool TkStripMeasurementDet::simpleRecHits | ( | const TrajectoryStateOnSurface & | ts, |
const MeasurementEstimator & | est, | ||
const MeasurementTrackerEvent & | data, | ||
std::vector< SiStripRecHit2D > & | result | ||
) | const |
Definition at line 101 of file TkStripMeasurementDet.cc.
References edmNew::DetSet< T >::begin(), cpe(), detSet(), StMeasurementDetSet::detSet(), edmNew::DetSet< T >::end(), filteredRecHits(), StripCPE::getAlgoParam(), StMeasurementDetSet::handle(), hit(), index(), isActive(), isEmpty(), TrajectoryStateOnSurface::localParameters(), TrajectoryStateOnSurface::localPosition(), edmNew::DetSet< T >::makeRefTo(), Topology::measurementPosition(), mps_fire::result, specificGeomDet(), StripGeomDetUnit::specificTopology(), MeasurementTrackerEvent::stripClustersToSkip(), MeasurementTrackerEvent::stripData(), UNLIKELY, and x.
|
inline |
Definition at line 151 of file TkStripMeasurementDet.h.
References MeasurementDet::fastGeomDet().
Referenced by hit(), measurements(), recHits(), simpleRecHits(), and TkGluedMeasurementDet::testStrips().
|
inline |
Definition at line 112 of file TkStripMeasurementDet.h.
References StMeasurementConditionSet::subId().
bool TkStripMeasurementDet::testStrips | ( | float | utraj, |
float | uerr | ||
) | const |
return true if there are 'enough' good strips in the utraj +/- 3 uerr range.
Definition at line 265 of file TkStripMeasurementDet.cc.
References badStripBlocks(), badStripCuts(), end, f, SiStripPI::max, StMeasurementConditionSet::BadStripCuts::maxBad, StMeasurementConditionSet::BadStripCuts::maxConsecutiveBad, min(), convertSQLiteXML::ok, command_line::start, and totalStrips().
Referenced by measurements(), and TkGluedMeasurementDet::testStrips().
|
inline |
Definition at line 115 of file TkStripMeasurementDet.h.
References StMeasurementDetSet::detSet().
|
inlineprivate |
Definition at line 251 of file TkStripMeasurementDet.h.
References StMeasurementConditionSet::totalStrips().
Referenced by testStrips().
|
private |
Definition at line 243 of file TkStripMeasurementDet.h.
|
private |
Definition at line 244 of file TkStripMeasurementDet.h.