1 #ifndef TkStripMeasurementDet_H
2 #define TkStripMeasurementDet_H
54 bool isRegional()
const {
return conditionSet().isRegional();}
60 int index()
const {
return index_;}
62 unsigned int rawId()
const {
return conditionSet().id(
index()); }
63 unsigned char subId()
const {
return conditionSet().subId(
index());}
87 RecHitContainer &
result, std::vector<float> & diffs)
const;
91 TempMeasurements &
result)
const;
96 template<
class ClusterRefT>
100 LocalValues lv = cpe()->localParameters( *cluster, gdu, ltp);
105 template<
class ClusterRefT>
110 VLocalValues vlv = cpe()->localParametersV( *cluster, gdu, ltp);
111 for(VLocalValues::const_iterator it=vlv.begin();it!=vlv.end();++it)
116 template<
class ClusterRefT>
119 if (isMasked(*cluster))
return true;
121 if (!
accept(cluster, skipClusters))
return true;
122 VLocalValues const & vlv = cpe()->localParametersV( *cluster, gdu, ltp);
123 bool isCompatible(
false);
126 std::pair<bool,double> diffEst = est.
estimate(ltp, *recHit);
127 LogDebug(
"TkStripMeasurementDet")<<
" chi2=" << diffEst.second;
128 if ( diffEst.first ) {
129 result.push_back(std::move(recHit));
130 diffs.push_back(diffEst.second);
151 conditionSet().set128StripStatus(
index(),good,
idx);
157 bool testStrips(
float utraj,
float uerr)
const;
162 std::vector<BadStripBlock>
const &
badStripBlocks()
const {
return conditionSet().badStripBlocks(
index()); }
182 return conditionSet().isMasked(
index(), cluster);
186 template<
class ClusterRefT>
189 std::vector<SiStripRecHit2D>& res)
const {
191 VLocalValues const & vlv = cpe()->localParametersV( *cluster, gdu, ltp);
192 for(VLocalValues::const_iterator it=vlv.begin();it!=vlv.end();++it){
193 res.push_back(SiStripRecHit2D( it->first, it->second, rawId(), cluster));
202 if(skipClusters.empty())
return true;
203 if (r.key()>=skipClusters.size()){
204 LogDebug(
"TkStripMeasurementDet")<<r.key()<<
" is larger than: "<<skipClusters.size()
205 <<
"\n This must be a new cluster, and therefore should not be skiped most likely.";
209 return (not (skipClusters[r.key()]));
212 if(skipClusters.empty())
return true;
213 if (r.
key()>=skipClusters.size()){
214 LogDebug(
"TkStripMeasurementDet")<<r.
key()<<
" is larger than: "<<skipClusters.size()
215 <<
"\n This must be a new cluster, and therefore should not be skiped most likely.";
218 return (not (skipClusters[r.
key()]));
const StMeasurementConditionSet & conditionSet() const
virtual ~TkStripMeasurementDet()
bool hasBadComponents(const TrajectoryStateOnSurface &tsos, const MeasurementTrackerEvent &data) const
bool accept(SiStripRegionalClusterRef const &r, const std::vector< bool > &skipClusters) const
const StripDetset & detSet(int i) const
int size(const StMeasurementDetSet &theDets) const
unsigned int endClusterI(const StMeasurementDetSet &theDets) const
StMeasurementConditionSet::BadStripBlock BadStripBlock
virtual HitReturnType estimate(const TrajectoryStateOnSurface &ts, const TransientTrackingRecHit &hit) const =0
TransientTrackingRecHit::ConstRecHitContainer RecHitContainer
bool hasAny128StripBad() const
void update(int i, const StripDetset &detSet)
data_type const * const_iterator
void set128StripStatus(bool good, int idx=-1)
Sets the status of a block of 128 strips (or all blocks if idx=-1)
bool hasAllGoodChannels() const
does this module have at least one bad strip, APV or channel?
const StMeasurementDetSet & stripData() const
StMeasurementConditionSet & conditionSet()
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::pair< LocalPoint, LocalError > LocalValues
const StripGeomDetUnit & specificGeomDet() const
const StripClusterParameterEstimator * cpe() const
bool isActive(const MeasurementTrackerEvent &data) const
Is this module active in reconstruction? It must be both 'setActiveThisEvent' and 'setActive'...
const GeomDet & fastGeomDet() const
const detset & theSet(const StMeasurementDetSet &theDets) const
edmNew::DetSet< SiStripCluster > detset
void setActiveThisEvent(int i, bool active)
Turn on/off the module for reconstruction for one events. This per-event flag is cleared by any call ...
unsigned int endClusterI(int i) const
void setActiveThisPeriod(StMeasurementDetSet &theDets, bool active)
Turn on/off the module for reconstruction, for the full run or lumi (using info from DB...
void update(StMeasurementDetSet &theDets, std::vector< SiStripCluster >::const_iterator begin, std::vector< SiStripCluster >::const_iterator end) const
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 ...
unsigned int beginClusterI(int i) const
void buildSimpleRecHit(const ClusterRefT &cluster, const TrajectoryStateOnSurface <p, std::vector< SiStripRecHit2D > &res) const
SiStripRecHit2D::ClusterRef SiStripClusterRef
std::vector< LocalValues > VLocalValues
const detset & detSet(const StMeasurementDetSet &theDets) const
unsigned char subId() const
virtual RecHitContainer recHits(const TrajectoryStateOnSurface &, const MeasurementTrackerEvent &) const =0
std::vector< BadStripBlock > const & badStripBlocks() const
std::vector< BadStripBlock > & getBadStripBlocks()
void buildRecHits(const ClusterRefT &cluster, const TrajectoryStateOnSurface <p, const RecHitContainer &_res) const
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
unsigned int beginClusterI(const StMeasurementDetSet &theDets) const
key_type key() const
Accessor for product key.
StMeasurementConditionSet::BadStripCuts BadStripCuts
bool isActive(int i) const
bool maskBad128StripBlocks() const
void setEmpty(StMeasurementDetSet &theDets) const
unsigned int rawId() const
edm::LazyGetter< SiStripCluster >::value_ref SiStripRegionalClusterRef
char data[epos_bytes_allocation]
bool filteredRecHits(const ClusterRefT &cluster, const TrajectoryStateOnSurface <p, const MeasurementEstimator &est, const std::vector< bool > &skipClusters, RecHitContainer &result, std::vector< float > &diffs) const
StripClusterParameterEstimator::VLocalValues VLocalValues
bool isEmpty(const StMeasurementDetSet &theDets) const
bool accept(SiStripClusterRef const &r, const std::vector< bool > &skipClusters) const
BadStripCuts const & badStripCuts() const
std::vector< SiStripCluster >::const_iterator const_iterator
TransientTrackingRecHit::RecHitPointer buildRecHit(const ClusterRefT &cluster, const TrajectoryStateOnSurface <p) const
bool isMasked(const SiStripCluster &cluster) const
detset::const_iterator new_const_iterator
StripClusterParameterEstimator::LocalValues LocalValues
StMeasurementConditionSet * theDetConditions
virtual bool measurements(const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, const MeasurementTrackerEvent &data, TempMeasurements &result) const =0
Unlimited (trivial) bounds.