#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 74 of file TkStripMeasurementDet.h.
Definition at line 245 of file TkStripMeasurementDet.h.
Definition at line 246 of file TkStripMeasurementDet.h.
Definition at line 237 of file TkStripMeasurementDet.h.
Definition at line 232 of file TkStripMeasurementDet.h.
typedef std::vector<SiStripCluster>::const_iterator TkStripMeasurementDet::const_iterator |
Definition at line 84 of file TkStripMeasurementDet.h.
Definition at line 81 of file TkStripMeasurementDet.h.
Definition at line 76 of file TkStripMeasurementDet.h.
Definition at line 82 of file TkStripMeasurementDet.h.
Definition at line 79 of file TkStripMeasurementDet.h.
Definition at line 77 of file TkStripMeasurementDet.h.
|
inlineoverride |
Definition at line 86 of file TkStripMeasurementDet.h.
TkStripMeasurementDet::TkStripMeasurementDet | ( | const GeomDet * | gdet, |
StMeasurementConditionSet & | conditionSet | ||
) |
Definition at line 16 of file TkStripMeasurementDet.cc.
|
inline |
Definition at line 277 of file TkStripMeasurementDet.h.
References accept(), alignCSCRings::r, and HLTSiStripMonitoring_cff::skipClusters.
Referenced by advance(), empty(), esMonitoring.FDJsonServer::handle_accept(), recHits(), and simpleRecHits().
|
inline |
Definition at line 281 of file TkStripMeasurementDet.h.
References crabWrapper::key, LogDebug, and HLTSiStripMonitoring_cff::skipClusters.
Referenced by esMonitoring.FDJsonServer::handle_accept().
void TkStripMeasurementDet::advance | ( | TkStripRecHitIter & | hi | ) | const |
Definition at line 250 of file TkStripMeasurementDet.cc.
References accept(), data, isMasked(), and edmNew::makeRefTo().
Referenced by TkStripRecHitIter::advance().
|
inline |
Definition at line 240 of file TkStripMeasurementDet.h.
Referenced by testStrips().
|
inlineprivate |
Definition at line 257 of file TkStripMeasurementDet.h.
Referenced by testStrips().
|
inline |
Definition at line 150 of file TkStripMeasurementDet.h.
References MeasurementDet::fastGeomDet().
Referenced by recHits().
|
inline |
Definition at line 157 of file TkStripMeasurementDet.h.
|
inlineprivate |
Definition at line 263 of file TkStripMeasurementDet.h.
References bsc_activity_cfg::clusters, data, declareDynArray, mps_fire::i, TrajectoryStateOnSurface::localParameters(), and edmNew::DetSet< T >::makeRefTo().
Referenced by simpleRecHits().
|
inlineprivate |
Definition at line 250 of file TkStripMeasurementDet.h.
|
inlineprivate |
Definition at line 251 of file TkStripMeasurementDet.h.
|
inlineprivate |
Definition at line 253 of file TkStripMeasurementDet.h.
Referenced by hit(), recHits(), and simpleRecHits().
|
inline |
Definition at line 102 of file TkStripMeasurementDet.h.
References StMeasurementDetSet::detSet().
Referenced by empty(), hitRange(), recHits(), and simpleRecHits().
bool TkStripMeasurementDet::empty | ( | const MeasurementTrackerEvent & | data | ) | const |
Definition at line 24 of file TkStripMeasurementDet.cc.
References accept(), edmNew::DetSet< T >::begin(), data, detSet(), edmNew::DetSet< T >::end(), index(), isActive(), isEmpty(), isMasked(), edmNew::DetSet< T >::makeRefTo(), and UNLIKELY.
|
inline |
Definition at line 168 of file TkStripMeasurementDet.h.
References accept(), MeasurementEstimator::estimate(), LogDebug, MeasurementEstimator::preFilter(), rpcPointValidation_cfi::recHit, mps_fire::result, and HLTSiStripMonitoring_cff::skipClusters.
Referenced by recHits(), and simpleRecHits().
|
inline |
Definition at line 196 of file TkStripMeasurementDet.h.
References accept(), MeasurementEstimator::estimate(), LogDebug, MeasurementEstimator::preFilter(), mps_fire::result, and HLTSiStripMonitoring_cff::skipClusters.
|
inline |
Definition at line 239 of file TkStripMeasurementDet.h.
|
inline |
does this module have at least one bad strip, APV or channel?
Definition at line 227 of file TkStripMeasurementDet.h.
Referenced by TkGluedMeasurementDet::measurements().
|
inlineprivate |
Definition at line 259 of file TkStripMeasurementDet.h.
|
inlineoverridevirtual |
Implements MeasurementDet.
Definition at line 108 of file TkStripMeasurementDet.h.
SiStripRecHit2D TkStripMeasurementDet::hit | ( | TkStripRecHitIter const & | hi | ) | const |
Definition at line 263 of file TkStripMeasurementDet.cc.
References cpe(), data, StripCPE::localParameters(), edmNew::makeRefTo(), and specificGeomDet().
Referenced by TkStripRecHitIter::buildHit(), recHits(), and simpleRecHits().
std::tuple< TkStripRecHitIter, TkStripRecHitIter > TkStripMeasurementDet::hitRange | ( | const TrajectoryStateOnSurface & | ts, |
const MeasurementTrackerEvent & | data | ||
) | const |
Definition at line 241 of file TkStripMeasurementDet.cc.
References edmNew::DetSet< T >::begin(), data, detSet(), edmNew::DetSet< T >::end(), index(), isActive(), and isEmpty().
|
inline |
Definition at line 96 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 105 of file TkStripMeasurementDet.h.
References data.
Referenced by empty(), hitRange(), TkGluedMeasurementDet::measurements(), measurements(), TkGluedMeasurementDet::recHits(), recHits(), and simpleRecHits().
|
inline |
Definition at line 94 of file TkStripMeasurementDet.h.
References StMeasurementDetSet::empty().
Referenced by plotting.Plot::clone(), empty(), hitRange(), measurements(), recHits(), and simpleRecHits().
|
inlineprivate |
Definition at line 261 of file TkStripMeasurementDet.h.
Referenced by advance(), empty(), recHits(), and simpleRecHits().
|
inline |
Definition at line 242 of file TkStripMeasurementDet.h.
|
overridevirtual |
Implements MeasurementDet.
Definition at line 178 of file TkStripMeasurementDet.cc.
References data, F(), TrajectoryStateOnSurface::hasError(), isActive(), isEmpty(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localPosition(), LogDebug, Topology::measurementPosition(), LocalTrajectoryError::positionError(), rawId(), HI_PhotonSkim_cff::rechits, recHits(), mps_fire::result, specificGeomDet(), StripGeomDetUnit::specificTopology(), mathSSE::sqrt(), testStrips(), MeasurementDet::theInactiveHit, MeasurementDet::theMissingHit, and x.
|
inline |
Definition at line 98 of file TkStripMeasurementDet.h.
Referenced by measurements(), recHits(), and simpleRecHits().
|
overridevirtual |
Implements MeasurementDet.
Definition at line 39 of file TkStripMeasurementDet.cc.
References accept(), edmNew::DetSet< T >::begin(), buildRecHit(), data, detSet(), edmNew::DetSet< T >::end(), index(), isActive(), isEmpty(), isMasked(), edm::Ref< C, T, F >::key(), LogDebug, edmNew::DetSet< T >::makeRefTo(), rawId(), mps_fire::result, edmNew::DetSet< T >::size(), 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(), data, detSet(), edmNew::DetSet< T >::end(), filteredRecHits(), StripCPE::getAlgoParam(), h, hit(), index(), isActive(), isEmpty(), TrajectoryStateOnSurface::localParameters(), TrajectoryStateOnSurface::localPosition(), edmNew::DetSet< T >::makeRefTo(), Topology::measurementPosition(), mps_fire::result, specificGeomDet(), StripGeomDetUnit::specificTopology(), createJobs::tmp, UNLIKELY, and x.
|
overridevirtual |
Reimplemented from MeasurementDet.
Definition at line 139 of file TkStripMeasurementDet.cc.
References edmNew::DetSet< T >::begin(), cpe(), data, detSet(), edmNew::DetSet< T >::end(), filteredRecHits(), StripCPE::getAlgoParam(), hit(), index(), isActive(), isEmpty(), TrajectoryStateOnSurface::localParameters(), TrajectoryStateOnSurface::localPosition(), edmNew::DetSet< T >::makeRefTo(), Topology::measurementPosition(), mps_fire::result, specificGeomDet(), StripGeomDetUnit::specificTopology(), UNLIKELY, and x.
|
inline |
Sets the status of a block of 128 strips (or all blocks if idx=-1)
Definition at line 230 of file TkStripMeasurementDet.h.
References caHitNtupletGeneratorKernels::good, and heavyIonCSV_trainingSettings::idx.
|
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 222 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 218 of file TkStripMeasurementDet.h.
|
inline |
|
inline |
void TkStripMeasurementDet::simpleRecHits | ( | const TrajectoryStateOnSurface & | ts, |
const MeasurementTrackerEvent & | data, | ||
std::vector< SiStripRecHit2D > & | result | ||
) | const |
Definition at line 219 of file TkStripMeasurementDet.cc.
References accept(), cms::cuda::assert(), buildSimpleRecHits(), bsc_activity_cfg::clusters, data, detSet(), index(), isActive(), isEmpty(), isMasked(), LogDebug, edmNew::DetSet< T >::makeKeyOf(), rawId(), mps_fire::result, edmNew::DetSet< T >::size(), 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 103 of file TkStripMeasurementDet.cc.
References edmNew::DetSet< T >::begin(), cpe(), data, detSet(), edmNew::DetSet< T >::end(), filteredRecHits(), StripCPE::getAlgoParam(), hit(), index(), isActive(), isEmpty(), TrajectoryStateOnSurface::localParameters(), TrajectoryStateOnSurface::localPosition(), edmNew::DetSet< T >::makeRefTo(), Topology::measurementPosition(), mps_fire::result, specificGeomDet(), StripGeomDetUnit::specificTopology(), UNLIKELY, and x.
|
inline |
Definition at line 147 of file TkStripMeasurementDet.h.
References runTheMatrix::const, and MeasurementDet::fastGeomDet().
Referenced by hit(), measurements(), recHits(), simpleRecHits(), and TkGluedMeasurementDet::testStrips().
|
inline |
Definition at line 99 of file TkStripMeasurementDet.h.
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 274 of file TkStripMeasurementDet.cc.
References badStripBlocks(), badStripCuts(), mps_fire::end, f, SiStripPI::max, StMeasurementConditionSet::BadStripCuts::maxBad, StMeasurementConditionSet::BadStripCuts::maxConsecutiveBad, SiStripPI::min, convertSQLiteXML::ok, command_line::start, and totalStrips().
Referenced by measurements(), and TkGluedMeasurementDet::testStrips().
|
inline |
Definition at line 101 of file TkStripMeasurementDet.h.
References StMeasurementDetSet::detSet().
|
inlineprivate |
Definition at line 256 of file TkStripMeasurementDet.h.
Referenced by testStrips().
|
private |
Definition at line 248 of file TkStripMeasurementDet.h.
|
private |
Definition at line 249 of file TkStripMeasurementDet.h.