1 #ifndef StMeasurementDetSet_H
2 #define StMeasurementDetSet_H
5 class TkStripMeasurementDet;
6 class TkStripMeasurementDet;
26 #define COUT std::cout
28 #define COUT LogDebug("")
44 maxBad(pset.getParameter<uint32_t>(
"maxBad")),
68 unsigned int id(
int i)
const {
return id_[
i]; }
71 int find(
unsigned int jd,
int i=0)
const {
72 return std::lower_bound(
id_.begin()+
i,
id_.end(),jd)-
id_.begin();
123 std::vector<unsigned int>
id_;
180 int find(
unsigned int jd,
int i=0)
const {
275 void zeroStat()
const { stat = Stat(); }
276 void incTot(
int n)
const { stat.totDet=
n;}
277 void incReady()
const { stat.detReady++;}
278 void incSet()
const { stat.detSet++;}
279 void incAct()
const { stat.detAct++;}
281 COUT <<
"VI detsets " << stat.totDet <<
','<< stat.detReady <<
','<< stat.detSet <<
','<< stat.detAct << std::endl;
303 unsigned int id(
int i)
const {
return id_[
i]; }
304 int find(
unsigned int jd,
int i=0)
const {
305 return std::lower_bound(
id_.begin()+
i,
id_.end(),jd)-
id_.begin();
323 std::vector<unsigned int>
id_;
345 int find(
unsigned int jd,
int i=0)
const {
387 #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_
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)
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
Item const & item(size_t cell) const
std::vector< unsigned char > subId_
const BadStripCuts & badStripCuts(int i) const
unsigned int id(int i) const
const SiStripRecHitMatcher * matcher() const
const StMeasurementConditionSet * conditionSet_
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 ...
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
const edm::Handle< edmNew::DetSetVector< SiStripCluster > > & handle() const
PxMeasurementDetSet(const PxMeasurementConditionSet &cond)
const StripClusterParameterEstimator * stripCPE() const
std::vector< uint32_t > theRawInactiveStripDetIds_
StMeasurementConditionSet(const SiStripRecHitMatcher *matcher, const StripClusterParameterEstimator *cpe)
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< 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 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 PixelClusterParameterEstimator * pixelCPE() const
std::vector< BadStripBlock > const & badStripBlocks(int i) const
std::vector< bool > activeThisEvent_
int find(unsigned int jd, int i=0) const
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_
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::Handle< edmNew::DetSetVector< SiPixelCluster > > & handle()