CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Private Attributes | Static Private Attributes | Friends
StMeasurementDetSet Class Reference

#include <TkMeasurementDetSet.h>

Classes

struct  BadStripBlock
 
struct  BadStripCuts
 

Public Types

typedef std::vector
< SiStripCluster >
::const_iterator 
const_iterator
 
typedef edm::LazyGetter
< SiStripCluster
LazyGetter
 
typedef StripDetset::const_iterator new_const_iterator
 
enum  QualityFlags { BadModules =1, BadAPVFibers =2, BadStrips =4, MaskBad128StripBlocks =8 }
 
typedef edm::RefGetter
< SiStripCluster
RefGetter
 
typedef edmNew::DetSet
< SiStripCluster
StripDetset
 

Public Member Functions

std::vector< BadStripBlock >
const & 
badStripBlocks (int i) const
 
BadStripCutsbadStripCuts (int i)
 
unsigned int beginClusterI (int i) const
 
std::vector< bool > & clusterToSkip () const
 
StripDetsetdetSet (int i)
 
bool empty (int i) const
 
unsigned int endClusterI (int i) const
 
int find (unsigned int jd, int i=0)
 
std::vector< BadStripBlock > & getBadStripBlocks (int i)
 
edm::Handle
< edmNew::DetSetVector
< SiStripCluster > > & 
handle ()
 
bool hasAny128StripBad (int i) const
 
unsigned int id (int i) const
 
void init (std::vector< TkStripMeasurementDet > &stripDets)
 
void initializeStripStatus (const SiStripQuality *quality, int qualityFlags, int qualityDebugFlags, edm::ParameterSet cutPset)
 
bool isActive (int i) const
 
bool isMasked (int i, const SiStripCluster &cluster) const
 
bool isRegional () const
 
bool maskBad128StripBlocks () const
 
const SiStripRecHitMatchermatcher () const
 
int nDet () const
 
edm::Handle< edm::LazyGetter
< SiStripCluster > > & 
regionalHandle ()
 
void set128StripStatus (int i, bool good, int idx=-1)
 
void setActive (int i, bool active)
 Turn on/off the module for reconstruction, for the full run or lumi (using info from DB, usually). This also resets the 'setActiveThisEvent' to true. More...
 
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 to 'update' or 'setEmpty'. More...
 
void setEmpty (int i)
 
void setEmpty ()
 
void setLazyGetter (edm::Handle< LazyGetter > const &lg)
 
void setMaskBad128StripBlocks (bool maskThem)
 
 StMeasurementDetSet (const SiStripRecHitMatcher *matcher, const StripClusterParameterEstimator *cpe, bool regional)
 
const
StripClusterParameterEstimator
stripCPE () const
 
unsigned char subId (int i) const
 
int totalStrips (int i) const
 
void update (int i, const StripDetset &detSet)
 
void update (int i, std::vector< SiStripCluster >::const_iterator begin, std::vector< SiStripCluster >::const_iterator end)
 

Private Attributes

std::vector< bool > activeThisEvent_
 
std::vector< bool > activeThisPeriod_
 
std::vector< bool > bad128Strip_
 
std::vector< std::vector
< BadStripBlock > > 
badStripBlocks_
 
BadStripCuts badStripCuts_ [4]
 
std::vector< unsigned int > clusterI_
 
std::vector< StripDetsetdetSet_
 
std::vector< bool > empty_
 
edm::Handle
< edmNew::DetSetVector
< SiStripCluster > > 
handle_
 
std::vector< bool > hasAny128StripBad_
 
std::vector< unsigned int > id_
 
bool maskBad128StripBlocks_
 
bool regional_
 
edm::Handle< edm::LazyGetter
< SiStripCluster > > 
regionalHandle_
 
std::vector< unsigned char > subId_
 
const
StripClusterParameterEstimator
theCPE
 
const SiStripRecHitMatchertheMatcher
 
std::vector< bool > theStripsToSkip
 
std::vector< int > totalStrips_
 

Static Private Attributes

static const int nbad128 = 6
 

Friends

class MeasurementTrackerImpl
 

Detailed Description

Definition at line 24 of file TkMeasurementDetSet.h.

Member Typedef Documentation

Definition at line 30 of file TkMeasurementDetSet.h.

Definition at line 32 of file TkMeasurementDetSet.h.

Definition at line 28 of file TkMeasurementDetSet.h.

Definition at line 33 of file TkMeasurementDetSet.h.

Definition at line 27 of file TkMeasurementDetSet.h.

Member Enumeration Documentation

Enumerator
BadModules 
BadAPVFibers 
BadStrips 
MaskBad128StripBlocks 

Definition at line 35 of file TkMeasurementDetSet.h.

Constructor & Destructor Documentation

StMeasurementDetSet::StMeasurementDetSet ( const SiStripRecHitMatcher matcher,
const StripClusterParameterEstimator cpe,
bool  regional 
)
inline

Definition at line 54 of file TkMeasurementDetSet.h.

56  :
57  theMatcher(matcher), theCPE(cpe), regional_(regional){}
const StripClusterParameterEstimator * theCPE
const SiStripRecHitMatcher * theMatcher

Member Function Documentation

std::vector<BadStripBlock> const& StMeasurementDetSet::badStripBlocks ( int  i) const
inline

Definition at line 132 of file TkMeasurementDetSet.h.

References badStripBlocks_, and i.

Referenced by TkStripMeasurementDet::badStripBlocks().

132 {return badStripBlocks_[i]; }
int i
Definition: DBlmapReader.cc:9
std::vector< std::vector< BadStripBlock > > badStripBlocks_
BadStripCuts& StMeasurementDetSet::badStripCuts ( int  i)
inline

Definition at line 125 of file TkMeasurementDetSet.h.

References badStripCuts_, i, and subId_.

Referenced by TkStripMeasurementDet::badStripCuts().

125 { return badStripCuts_[subId_[i]];}
int i
Definition: DBlmapReader.cc:9
BadStripCuts badStripCuts_[4]
std::vector< unsigned char > subId_
unsigned int StMeasurementDetSet::beginClusterI ( int  i) const
inline

Definition at line 117 of file TkMeasurementDetSet.h.

References clusterI_, and i.

Referenced by TkStripMeasurementDet::beginClusterI().

117 {return clusterI_[2*i];}
int i
Definition: DBlmapReader.cc:9
std::vector< unsigned int > clusterI_
std::vector<bool>& StMeasurementDetSet::clusterToSkip ( ) const
inline

Definition at line 63 of file TkMeasurementDetSet.h.

References theStripsToSkip.

Referenced by TkStripMeasurementDet::skipClusters(), and OnDemandMeasurementTracker::updateStrips().

63 { return theStripsToSkip; }
std::vector< bool > theStripsToSkip
StripDetset& StMeasurementDetSet::detSet ( int  i)
inline

Definition at line 114 of file TkMeasurementDetSet.h.

References detSet_, and i.

Referenced by TkStripMeasurementDet::detSet(), TkStripMeasurementDet::theSet(), and update().

114 { return detSet_[i];}
int i
Definition: DBlmapReader.cc:9
std::vector< StripDetset > detSet_
bool StMeasurementDetSet::empty ( int  i) const
inline

Definition at line 95 of file TkMeasurementDetSet.h.

References empty_, and i.

Referenced by TkStripMeasurementDet::isEmpty().

95 { return empty_[i];}
int i
Definition: DBlmapReader.cc:9
std::vector< bool > empty_
unsigned int StMeasurementDetSet::endClusterI ( int  i) const
inline

Definition at line 118 of file TkMeasurementDetSet.h.

References clusterI_.

Referenced by TkStripMeasurementDet::endClusterI().

118 {return clusterI_[2*i+1];}
int i
Definition: DBlmapReader.cc:9
std::vector< unsigned int > clusterI_
int StMeasurementDetSet::find ( unsigned int  jd,
int  i = 0 
)
inline

Definition at line 90 of file TkMeasurementDetSet.h.

References i, and id_.

Referenced by MeasurementTrackerImpl::updateStrips().

90  {
91  return std::lower_bound(id_.begin()+i,id_.end(),jd)-id_.begin();
92  }
int i
Definition: DBlmapReader.cc:9
std::vector< unsigned int > id_
std::vector<BadStripBlock>& StMeasurementDetSet::getBadStripBlocks ( int  i)
inline

Definition at line 131 of file TkMeasurementDetSet.h.

References badStripBlocks_, and i.

Referenced by TkStripMeasurementDet::getBadStripBlocks(), and initializeStripStatus().

131 { return badStripBlocks_[i]; }
int i
Definition: DBlmapReader.cc:9
std::vector< std::vector< BadStripBlock > > badStripBlocks_
edm::Handle<edmNew::DetSetVector<SiStripCluster> >& StMeasurementDetSet::handle ( )
inline

Definition at line 113 of file TkMeasurementDetSet.h.

References handle_.

Referenced by TkStripMeasurementDet::handle().

113 { return handle_;}
edm::Handle< edmNew::DetSetVector< SiStripCluster > > handle_
bool StMeasurementDetSet::hasAny128StripBad ( int  i) const
inline

Definition at line 129 of file TkMeasurementDetSet.h.

References hasAny128StripBad_, and i.

Referenced by TkStripMeasurementDet::hasAny128StripBad().

129 { return hasAny128StripBad_[i];}
int i
Definition: DBlmapReader.cc:9
std::vector< bool > hasAny128StripBad_
unsigned int StMeasurementDetSet::id ( int  i) const
inline

Definition at line 87 of file TkMeasurementDetSet.h.

References i, and id_.

Referenced by MeasurementTrackerImpl::initialize(), initializeStripStatus(), TkStripMeasurementDet::rawId(), and MeasurementTrackerImpl::updateStrips().

87 { return id_[i]; }
int i
Definition: DBlmapReader.cc:9
std::vector< unsigned int > id_
void StMeasurementDetSet::init ( std::vector< TkStripMeasurementDet > &  stripDets)

Definition at line 8 of file TkMeasurementDetSet.cc.

References activeThisEvent_, activeThisPeriod_, bad128Strip_, badStripBlocks_, clusterI_, detSet_, empty_, hasAny128StripBad_, i, id_, isRegional(), findQualityFiles::size, DetId::subdetId(), subId_, and totalStrips_.

Referenced by MeasurementTrackerImpl::initialize().

8  {
9  // assume vector is full and ordered!
10  int size = stripDets.size();
11 
12  empty_.resize(size,true);
13  activeThisEvent_.resize(size,true);
14  activeThisPeriod_.resize(size,true);
15  id_.resize(size);
16  subId_.resize(size);
17  totalStrips_.resize(size);
18 
19  bad128Strip_.resize(size*6);
20  hasAny128StripBad_.resize(size);
21  badStripBlocks_.resize(size);
22 
23  if (isRegional()) {
24  clusterI_.resize(2*size);
25  } else {
26  detSet_.resize(size);
27  }
28 
29  for (int i=0; i!=size; ++i) {
30  auto & mdet = stripDets[i];
31  mdet.setIndex(i);
32  //intialize the detId !
33  id_[i] = mdet.specificGeomDet().geographicalId().rawId();
35  //initalize the total number of strips
36  totalStrips_[i] = mdet.specificGeomDet().specificTopology().nstrips();
37  }
38 }
int i
Definition: DBlmapReader.cc:9
std::vector< bool > activeThisPeriod_
std::vector< unsigned int > id_
std::vector< bool > bad128Strip_
std::vector< bool > hasAny128StripBad_
std::vector< std::vector< BadStripBlock > > badStripBlocks_
std::vector< unsigned int > clusterI_
std::vector< unsigned char > subId_
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
std::vector< bool > empty_
std::vector< int > totalStrips_
std::vector< StripDetset > detSet_
std::vector< bool > activeThisEvent_
tuple size
Write out results.
void StMeasurementDetSet::initializeStripStatus ( const SiStripQuality quality,
int  qualityFlags,
int  qualityDebugFlags,
edm::ParameterSet  cutPset 
)

Definition at line 62 of file TkMeasurementDetSet.cc.

References BadAPVFibers, BadModules, badStripCuts_, BadStrips, SiStripBadStrip::decode(), cond::rpcobgas::detid, SiStripQuality::getBadApvs(), SiStripQuality::getBadFibers(), getBadStripBlocks(), edm::ParameterSet::getParameter(), SiStripBadStrip::getRange(), i, id(), SiStripQuality::IsModuleUsable(), j, MaskBad128StripBlocks, nDet(), set128StripStatus(), setActive(), setMaskBad128StripBlocks(), SiStripDetId::TEC, SiStripDetId::TIB, SiStripDetId::TID, and SiStripDetId::TOB.

Referenced by MeasurementTrackerImpl::initializeStripStatus().

62  {
63  if (qualityFlags & BadStrips) {
64  badStripCuts_[SiStripDetId::TIB-3] = BadStripCuts(cutPset.getParameter<edm::ParameterSet>("TIB"));
65  badStripCuts_[SiStripDetId::TOB-3] = BadStripCuts(cutPset.getParameter<edm::ParameterSet>("TOB"));
66  badStripCuts_[SiStripDetId::TID-3] = BadStripCuts(cutPset.getParameter<edm::ParameterSet>("TID"));
67  badStripCuts_[SiStripDetId::TEC-3] = BadStripCuts(cutPset.getParameter<edm::ParameterSet>("TEC"));
68  }
69  setMaskBad128StripBlocks((qualityFlags & MaskBad128StripBlocks) != 0);
70 
71 
72  if ((quality != 0) && (qualityFlags != 0)) {
73  edm::LogInfo("MeasurementTracker") << "qualityFlags = " << qualityFlags;
74  unsigned int on = 0, tot = 0;
75  unsigned int foff = 0, ftot = 0, aoff = 0, atot = 0;
76  for (int i=0; i!=nDet(); i++) {
77  uint32_t detid = id(i);
78  if (qualityFlags & BadModules) {
79  bool isOn = quality->IsModuleUsable(detid);
80  setActive(i,isOn);
81  tot++; on += (unsigned int) isOn;
82  if (qualityDebugFlags & BadModules) {
83  edm::LogInfo("MeasurementTracker")<< "MeasurementTrackerImpl::initializeStripStatus : detid " << detid << " is " << (isOn ? "on" : "off");
84  }
85  } else {
86  setActive(i,true);
87  }
88  // first turn all APVs and fibers ON
89  set128StripStatus(i,true);
90  if (qualityFlags & BadAPVFibers) {
91  short badApvs = quality->getBadApvs(detid);
92  short badFibers = quality->getBadFibers(detid);
93  for (int j = 0; j < 6; j++) {
94  atot++;
95  if (badApvs & (1 << j)) {
96  set128StripStatus(i,false, j);
97  aoff++;
98  }
99  }
100  for (int j = 0; j < 3; j++) {
101  ftot++;
102  if (badFibers & (1 << j)) {
103  set128StripStatus(i,false, 2*j);
104  set128StripStatus(i,false, 2*j+1);
105  foff++;
106  }
107  }
108  }
109  auto & badStrips = getBadStripBlocks(i);
110  badStrips.clear();
111  if (qualityFlags & BadStrips) {
112  SiStripBadStrip::Range range = quality->getRange(detid);
113  for (SiStripBadStrip::ContainerIterator bit = range.first; bit != range.second; ++bit) {
114  badStrips.push_back(quality->decode(*bit));
115  }
116  }
117  }
118  if (qualityDebugFlags & BadModules) {
119  edm::LogInfo("MeasurementTracker StripModuleStatus") <<
120  " Total modules: " << tot << ", active " << on <<", inactive " << (tot - on);
121  }
122  if (qualityDebugFlags & BadAPVFibers) {
123  edm::LogInfo("MeasurementTracker StripAPVStatus") <<
124  " Total APVs: " << atot << ", active " << (atot-aoff) <<", inactive " << (aoff);
125  edm::LogInfo("MeasurementTracker StripFiberStatus") <<
126  " Total Fibers: " << ftot << ", active " << (ftot-foff) <<", inactive " << (foff);
127  }
128  } else {
129  for (int i=0; i!=nDet(); i++) {
130  setActive(i,true); // module ON
131  set128StripStatus(i,true); // all APVs and fibers ON
132  }
133  }
134 }
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
short getBadFibers(const uint32_t &detid) const
std::vector< unsigned int >::const_iterator ContainerIterator
std::vector< BadStripBlock > & getBadStripBlocks(int i)
void set128StripStatus(int i, bool good, int idx=-1)
unsigned int id(int i) const
BadStripCuts badStripCuts_[4]
short getBadApvs(const uint32_t &detid) const
bool IsModuleUsable(const uint32_t &detid) const
int j
Definition: DBlmapReader.cc:9
void setMaskBad128StripBlocks(bool maskThem)
const Range getRange(const uint32_t &detID) const
void setActive(int i, bool active)
Turn on/off the module for reconstruction, for the full run or lumi (using info from DB...
std::pair< ContainerIterator, ContainerIterator > Range
data decode(const unsigned int &value) const
bool StMeasurementDetSet::isActive ( int  i) const
inline

Definition at line 96 of file TkMeasurementDetSet.h.

References activeThisEvent_, activeThisPeriod_, and i.

Referenced by TkStripMeasurementDet::isActive(), and MeasurementTrackerImpl::updateStrips().

96 { return activeThisEvent_[i] && activeThisPeriod_[i]; }
int i
Definition: DBlmapReader.cc:9
std::vector< bool > activeThisPeriod_
std::vector< bool > activeThisEvent_
bool StMeasurementDetSet::isMasked ( int  i,
const SiStripCluster cluster 
) const
inline

Definition at line 135 of file TkMeasurementDetSet.h.

References SiStripCluster::amplitudes(), bad128Strip_, SiStripCluster::barycenter(), SiStripCluster::firstStrip(), i, nbad128, and evf::evtn::offset().

Referenced by TkStripMeasurementDet::isMasked().

135  {
136  int offset = nbad128*i;
137  if ( bad128Strip_[offset+( cluster.firstStrip() >> 7)] ) {
138  if ( bad128Strip_[offset+( (cluster.firstStrip()+cluster.amplitudes().size()) >> 7)] ||
139  bad128Strip_[offset+( static_cast<int32_t>(cluster.barycenter()-0.499999) >> 7)] ) {
140  return true;
141  }
142  } else {
143  if ( bad128Strip_[offset+( (cluster.firstStrip()+cluster.amplitudes().size()) >> 7)] &&
144  bad128Strip_[offset+( static_cast<int32_t>(cluster.barycenter()-0.499999) >> 7)] ) {
145  return true;
146  }
147  }
148  return false;
149  }
int i
Definition: DBlmapReader.cc:9
uint16_t firstStrip() const
std::vector< bool > bad128Strip_
float barycenter() const
unsigned int offset(bool)
static const int nbad128
const std::vector< uint8_t > & amplitudes() const
bool StMeasurementDetSet::isRegional ( ) const
inline
bool StMeasurementDetSet::maskBad128StripBlocks ( ) const
inline
const SiStripRecHitMatcher* StMeasurementDetSet::matcher ( ) const
inline

Definition at line 81 of file TkMeasurementDetSet.h.

References theMatcher.

Referenced by MeasurementTrackerImpl::addGluedDet().

81 { return theMatcher;}
const SiStripRecHitMatcher * theMatcher
int StMeasurementDetSet::nDet ( ) const
inline

Definition at line 85 of file TkMeasurementDetSet.h.

References id_.

Referenced by initializeStripStatus().

85 { return id_.size();}
std::vector< unsigned int > id_
edm::Handle<edm::LazyGetter<SiStripCluster> >& StMeasurementDetSet::regionalHandle ( )
inline

Definition at line 116 of file TkMeasurementDetSet.h.

References regionalHandle_.

Referenced by TkStripMeasurementDet::regionalHandle().

116 { return regionalHandle_;}
edm::Handle< edm::LazyGetter< SiStripCluster > > regionalHandle_
void StMeasurementDetSet::set128StripStatus ( int  i,
bool  good,
int  idx = -1 
)

Definition at line 41 of file TkMeasurementDetSet.cc.

References bad128Strip_, lumiContext::fill, hasAny128StripBad_, i, j, nbad128, and evf::evtn::offset().

Referenced by initializeStripStatus(), and TkStripMeasurementDet::set128StripStatus().

41  {
42  int offset = nbad128*i;
43  if (idx == -1) {
44  std::fill(bad128Strip_.begin()+offset, bad128Strip_.begin()+offset+6, !good);
45  hasAny128StripBad_[i] = !good;
46  } else {
47  bad128Strip_[offset+idx] = !good;
48  if (good == false) {
49  hasAny128StripBad_[i] = false;
50  } else { // this should not happen, as usually you turn on all fibers
51  // and then turn off the bad ones, and not vice-versa,
52  // so I don't care if it's not optimized
53  hasAny128StripBad_[i] = true;
54  for (int j = 0; i < (totalStrips_[j] >> 7); j++) {
55  if (bad128Strip_[j+offset] == false) hasAny128StripBad_[i] = false; break;
56  }
57  }
58  }
59  }
int i
Definition: DBlmapReader.cc:9
string fill
Definition: lumiContext.py:319
std::vector< bool > bad128Strip_
std::vector< bool > hasAny128StripBad_
int j
Definition: DBlmapReader.cc:9
unsigned int offset(bool)
static const int nbad128
void StMeasurementDetSet::setActive ( int  i,
bool  active 
)
inline

Turn on/off the module for reconstruction, for the full run or lumi (using info from DB, usually). This also resets the 'setActiveThisEvent' to true.

Definition at line 107 of file TkMeasurementDetSet.h.

References activeThisEvent_, activeThisPeriod_, empty_, and i.

Referenced by initializeStripStatus(), and TkStripMeasurementDet::setActive().

107 { activeThisPeriod_[i] = active; activeThisEvent_[i] = true; if (!active) empty_[i] = true; }
int i
Definition: DBlmapReader.cc:9
std::vector< bool > activeThisPeriod_
std::vector< bool > empty_
std::vector< bool > activeThisEvent_
void StMeasurementDetSet::setActiveThisEvent ( int  i,
bool  active 
)
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 110 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and i.

Referenced by TkStripMeasurementDet::setActiveThisEvent(), and MeasurementTrackerImpl::updateStrips().

110 { activeThisEvent_[i] = active; if (!active) empty_[i] = true; }
int i
Definition: DBlmapReader.cc:9
std::vector< bool > empty_
std::vector< bool > activeThisEvent_
void StMeasurementDetSet::setEmpty ( int  i)
inline

Definition at line 98 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and i.

Referenced by TkStripMeasurementDet::setEmpty(), and MeasurementTrackerImpl::updateStrips().

98 {empty_[i] = true; activeThisEvent_[i] = true; }
int i
Definition: DBlmapReader.cc:9
std::vector< bool > empty_
std::vector< bool > activeThisEvent_
void StMeasurementDetSet::setEmpty ( )
inline

Definition at line 100 of file TkMeasurementDetSet.h.

References activeThisEvent_, empty_, and lumiContext::fill.

100  {
101  std::fill(empty_.begin(),empty_.end(),true);
102  std::fill(activeThisEvent_.begin(), activeThisEvent_.end(),true);
103  }
string fill
Definition: lumiContext.py:319
std::vector< bool > empty_
std::vector< bool > activeThisEvent_
void StMeasurementDetSet::setLazyGetter ( edm::Handle< LazyGetter > const &  lg)
inline

Definition at line 65 of file TkMeasurementDetSet.h.

References regionalHandle_.

Referenced by OnDemandMeasurementTracker::define(), and OnDemandMeasurementTracker::updateStrips().

65 { regionalHandle_=lg;}
edm::Handle< edm::LazyGetter< SiStripCluster > > regionalHandle_
void StMeasurementDetSet::setMaskBad128StripBlocks ( bool  maskThem)
inline

Definition at line 124 of file TkMeasurementDetSet.h.

References maskBad128StripBlocks_.

Referenced by initializeStripStatus().

124 { maskBad128StripBlocks_ = maskThem; }
const StripClusterParameterEstimator* StMeasurementDetSet::stripCPE ( ) const
inline

Definition at line 82 of file TkMeasurementDetSet.h.

References theCPE.

Referenced by MeasurementTrackerImpl::addGluedDet(), and TkStripMeasurementDet::cpe().

82 { return theCPE;}
const StripClusterParameterEstimator * theCPE
unsigned char StMeasurementDetSet::subId ( int  i) const
inline

Definition at line 88 of file TkMeasurementDetSet.h.

References i, and subId_.

Referenced by TkStripMeasurementDet::subId().

88 { return subId_[i];}
int i
Definition: DBlmapReader.cc:9
std::vector< unsigned char > subId_
int StMeasurementDetSet::totalStrips ( int  i) const
inline

Definition at line 120 of file TkMeasurementDetSet.h.

References i, and totalStrips_.

Referenced by TkStripMeasurementDet::totalStrips().

120 { return totalStrips_[i];}
int i
Definition: DBlmapReader.cc:9
std::vector< int > totalStrips_
void StMeasurementDetSet::update ( int  i,
const StripDetset detSet 
)
inline

Definition at line 67 of file TkMeasurementDetSet.h.

References detSet(), detSet_, empty_, and i.

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), TkStripMeasurementDet::update(), Vispa.Gui.PortConnection.PointToPointConnection::updateConnection(), and MeasurementTrackerImpl::updateStrips().

67  {
68  detSet_[i] = detSet;
69  empty_[i] = false;
70  }
int i
Definition: DBlmapReader.cc:9
StripDetset & detSet(int i)
std::vector< bool > empty_
std::vector< StripDetset > detSet_
void StMeasurementDetSet::update ( int  i,
std::vector< SiStripCluster >::const_iterator  begin,
std::vector< SiStripCluster >::const_iterator  end 
)
inline

Definition at line 72 of file TkMeasurementDetSet.h.

References activeThisEvent_, clusterI_, empty_, i, and regionalHandle_.

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

72  {
73  clusterI_[2*i] = begin - regionalHandle_->begin_record();
74  clusterI_[2*i+1] = end - regionalHandle_->begin_record();
75 
76  empty_[i] = false;
77  activeThisEvent_[i] = true;
78  }
int i
Definition: DBlmapReader.cc:9
edm::Handle< edm::LazyGetter< SiStripCluster > > regionalHandle_
std::vector< unsigned int > clusterI_
#define end
Definition: vmac.h:38
std::vector< bool > empty_
#define begin
Definition: vmac.h:31
std::vector< bool > activeThisEvent_

Friends And Related Function Documentation

friend class MeasurementTrackerImpl
friend

Definition at line 158 of file TkMeasurementDetSet.h.

Member Data Documentation

std::vector<bool> StMeasurementDetSet::activeThisEvent_
private

Definition at line 189 of file TkMeasurementDetSet.h.

Referenced by init(), isActive(), setActive(), setActiveThisEvent(), setEmpty(), and update().

std::vector<bool> StMeasurementDetSet::activeThisPeriod_
private

Definition at line 189 of file TkMeasurementDetSet.h.

Referenced by init(), isActive(), and setActive().

std::vector<bool> StMeasurementDetSet::bad128Strip_
private

Definition at line 181 of file TkMeasurementDetSet.h.

Referenced by init(), isMasked(), and set128StripStatus().

std::vector<std::vector<BadStripBlock> > StMeasurementDetSet::badStripBlocks_
private

Definition at line 184 of file TkMeasurementDetSet.h.

Referenced by badStripBlocks(), getBadStripBlocks(), and init().

BadStripCuts StMeasurementDetSet::badStripCuts_[4]
private

Definition at line 172 of file TkMeasurementDetSet.h.

Referenced by badStripCuts(), and initializeStripStatus().

std::vector<unsigned int> StMeasurementDetSet::clusterI_
private

Definition at line 197 of file TkMeasurementDetSet.h.

Referenced by beginClusterI(), endClusterI(), init(), and update().

std::vector<StripDetset> StMeasurementDetSet::detSet_
private

Definition at line 192 of file TkMeasurementDetSet.h.

Referenced by detSet(), init(), and update().

std::vector<bool> StMeasurementDetSet::empty_
private

Definition at line 187 of file TkMeasurementDetSet.h.

Referenced by empty(), init(), setActive(), setActiveThisEvent(), setEmpty(), and update().

edm::Handle<edmNew::DetSetVector<SiStripCluster> > StMeasurementDetSet::handle_
private

Definition at line 164 of file TkMeasurementDetSet.h.

Referenced by handle(), and MeasurementTrackerImpl::updateStrips().

std::vector<bool> StMeasurementDetSet::hasAny128StripBad_
private

Definition at line 182 of file TkMeasurementDetSet.h.

Referenced by hasAny128StripBad(), init(), and set128StripStatus().

std::vector<unsigned int> StMeasurementDetSet::id_
private

Definition at line 175 of file TkMeasurementDetSet.h.

Referenced by find(), id(), init(), nDet(), and MeasurementTrackerImpl::updateStrips().

bool StMeasurementDetSet::maskBad128StripBlocks_
mutableprivate

Definition at line 171 of file TkMeasurementDetSet.h.

Referenced by maskBad128StripBlocks(), and setMaskBad128StripBlocks().

const int StMeasurementDetSet::nbad128 = 6
staticprivate

Definition at line 180 of file TkMeasurementDetSet.h.

Referenced by isMasked(), and set128StripStatus().

bool StMeasurementDetSet::regional_
private

Definition at line 169 of file TkMeasurementDetSet.h.

Referenced by isRegional().

edm::Handle<edm::LazyGetter<SiStripCluster> > StMeasurementDetSet::regionalHandle_
private
std::vector<unsigned char> StMeasurementDetSet::subId_
private

Definition at line 176 of file TkMeasurementDetSet.h.

Referenced by badStripCuts(), init(), and subId().

const StripClusterParameterEstimator* StMeasurementDetSet::theCPE
private

Definition at line 162 of file TkMeasurementDetSet.h.

Referenced by stripCPE().

const SiStripRecHitMatcher* StMeasurementDetSet::theMatcher
private

Definition at line 161 of file TkMeasurementDetSet.h.

Referenced by matcher().

std::vector<bool> StMeasurementDetSet::theStripsToSkip
mutableprivate
std::vector<int> StMeasurementDetSet::totalStrips_
private

Definition at line 178 of file TkMeasurementDetSet.h.

Referenced by init(), and totalStrips().