1 #ifndef StMeasurementDetSet_H
2 #define StMeasurementDetSet_H
5 class TkStripMeasurementDet;
6 class TkStripMeasurementDet;
28 #define COUT std::cout
30 #define COUT LogDebug("")
46 maxBad(pset.getParameter<uint32_t>(
"maxBad")),
71 unsigned int id(
int i)
const {
return id_[
i]; }
74 int find(
unsigned int jd,
int i=0)
const {
75 return std::lower_bound(
id_.begin()+
i,
id_.end(),jd)-
id_.begin();
128 std::vector<unsigned int>
id_;
189 void update(
int i, std::vector<SiStripCluster>::const_iterator
begin ,std::vector<SiStripCluster>::const_iterator
end) {
202 int find(
unsigned int jd,
int i=0)
const {
310 void zeroStat()
const { stat = Stat(); }
311 void incTot(
int n)
const { stat.totDet=
n;}
312 void incReady()
const { stat.detReady++;}
313 void incSet()
const { stat.detSet++;}
314 void incAct()
const { stat.detAct++;}
316 COUT <<
"VI detsets " << stat.totDet <<
','<< stat.detReady <<
','<< stat.detSet <<
','<< stat.detAct << std::endl;
338 unsigned int id(
int i)
const {
return id_[
i]; }
339 int find(
unsigned int jd,
int i=0)
const {
340 return std::lower_bound(
id_.begin()+
i,
id_.end(),jd)-
id_.begin();
358 std::vector<unsigned int>
id_;
380 int find(
unsigned int jd,
int i=0)
const {
422 #endif // StMeasurementDetSet_H
bool isMasked(int i, const SiStripCluster &cluster) const
int find(unsigned int jd, int i=0) const
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 ...
std::vector< std::vector< BadStripBlock > > badStripBlocks_
PxMeasurementConditionSet(const PixelClusterParameterEstimator *cpe)
unsigned int id(int i) const
const PixelClusterParameterEstimator * theCPE
int totalStrips(int i) const
const StripDetset & detSet(int i) const
edm::Ref< edmNew::DetSetVector< SiPixelCluster >, SiPixelCluster > SiPixelClusterRef
StMeasurementDetSet(const StMeasurementConditionSet &cond)
void update(int i, int j)
std::vector< bool > stripDefined_
std::vector< bool > ready_
edm::Handle< edm::LazyGetter< SiStripCluster > > & regionalHandle()
const PxMeasurementConditionSet * conditionSet_
void update(int i, const StripDetset &detSet)
const StMeasurementConditionSet & conditions() const
bool maskBad128StripBlocks_
StripDetset::const_iterator new_const_iterator
uint16_t firstStrip() const
data_type const * const_iterator
const edm::Handle< edmNew::DetSetVector< SiPixelCluster > > & handle() const
bool isActiveThisPeriod(int i) const
void defineStrip(int i, std::pair< unsigned int, unsigned int > range)
const edm::Handle< edm::LazyGetter< SiStripCluster > > & regionalHandle() const
std::vector< bool > empty_
const bool stripUpdated(int i) const
uint16_t maxConsecutiveBad
unsigned int id(int i) const
unsigned int id(int i) const
edmNew::DetSet< SiStripCluster > StripDetset
int find(unsigned int jd, int i=0) const
std::vector< unsigned char > subId_
const BadStripCuts & badStripCuts(int i) const
void setRefGetter(const edm::RefGetter< SiStripCluster > &getter)
edm::LazyGetter< SiStripCluster > LazyGetter
unsigned int id(int i) const
const std::pair< unsigned int, unsigned int > & regionRange(int i) const
const SiStripRecHitMatcher * matcher() const
const StMeasurementConditionSet * conditionSet_
edm::Handle< edm::LazyGetter< SiStripCluster > > regionalHandle_
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
std::vector< unsigned int > clusterI_
void setActive(int i, bool active)
Turn on/off the module for reconstruction, for the full run or lumi (using info from DB...
bool isActive(int i) const
std::vector< BadStripBlock > & getBadStripBlocks(int i)
edm::Handle< edmNew::DetSetVector< SiPixelCluster > > handle_
bool hasAny128StripBad(int i) const
unsigned int beginClusterI(int i) const
const edm::Handle< edmNew::DetSetVector< SiStripCluster > > & handle() const
PxMeasurementDetSet(const PxMeasurementConditionSet &cond)
const StripClusterParameterEstimator * stripCPE() const
StMeasurementConditionSet(const SiStripRecHitMatcher *matcher, const StripClusterParameterEstimator *cpe, bool regional)
std::vector< uint32_t > theRawInactiveStripDetIds_
unsigned int offset(bool)
void update(int i, const PixelDetSet &detSet)
std::vector< int > totalStrips_
void resetOnDemandStrips()
bool maskBad128StripBlocks() const
std::vector< bool > hasAny128StripBad_
const StripClusterParameterEstimator * theCPE
std::vector< SiStripCluster >::const_iterator const_iterator
std::vector< bool > empty_
std::vector< uint32_t > & rawInactiveStripDetIds()
void setMaskBad128StripBlocks(bool maskThem)
std::vector< bool > activeThisPeriod_
std::vector< unsigned int > id_
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
std::vector< unsigned int > id_
std::vector< bool > activeThisPeriod_
BadStripBlock(const SiStripBadStrip::data &data)
bool isActive(int i) const
edm::Handle< edmNew::DetSetVector< SiStripCluster > > handle_
std::vector< bool > bad128Strip_
void setLazyGetter(edm::Handle< LazyGetter > const &lg)
void setActiveThisEvent(bool active)
Pixel cluster – collection of neighboring pixels above threshold.
BadStripCuts(const edm::ParameterSet &pset)
char data[epos_bytes_allocation]
std::vector< StripDetset > detSet_
std::vector< bool > activeThisEvent_
int find(unsigned int jd, int i=0) const
const edm::RefGetter< SiStripCluster > & refGetter() const
const PixelClusterParameterEstimator * pixelCPE() const
std::vector< BadStripBlock > const & badStripBlocks(int i) const
std::vector< bool > activeThisEvent_
int find(unsigned int jd, int i=0) const
void update(int i, std::vector< SiStripCluster >::const_iterator begin, std::vector< SiStripCluster >::const_iterator end)
BadStripCuts badStripCuts_[4]
void setActive(int i, bool active)
Turn on/off the module for reconstruction, for the full run or lumi (using info from DB...
edm::Handle< edmNew::DetSetVector< SiStripCluster > > & handle()
void set128StripStatus(int i, bool good, int idx=-1)
const PixelDetSet & detSet(int i) const
std::vector< std::pair< unsigned int, unsigned int > > stripRegions_
std::vector< int > detIndex_
const edm::RefGetter< SiStripCluster > * refGetter_
std::vector< PixelDetSet > detSet_
const SiStripRecHitMatcher * theMatcher
edmNew::DetSet< SiPixelCluster > PixelDetSet
const std::vector< uint32_t > & rawInactiveStripDetIds() const
tuple size
Write out results.
unsigned char subId(int i) const
const std::vector< uint8_t > & amplitudes() const
std::vector< bool > stripUpdated_
const bool stripDefined(int i) const
bool isActiveThisPeriod(int i) const
const PxMeasurementConditionSet & conditions() const
edm::RefGetter< SiStripCluster > RefGetter
edm::Handle< edmNew::DetSetVector< SiPixelCluster > > & handle()