#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 |
BadStripCuts & | badStripCuts (int i) |
unsigned int | beginClusterI (int i) const |
std::vector< bool > & | clusterToSkip () const |
StripDetset & | detSet (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 SiStripRecHitMatcher * | matcher () 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< StripDetset > | detSet_ |
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 SiStripRecHitMatcher * | theMatcher |
std::vector< bool > | theStripsToSkip |
std::vector< int > | totalStrips_ |
Static Private Attributes | |
static const int | nbad128 = 6 |
Friends | |
class | MeasurementTrackerImpl |
Definition at line 24 of file TkMeasurementDetSet.h.
typedef std::vector<SiStripCluster>::const_iterator StMeasurementDetSet::const_iterator |
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.
Enumerator | |
---|---|
BadModules | |
BadAPVFibers | |
BadStrips | |
MaskBad128StripBlocks |
Definition at line 35 of file TkMeasurementDetSet.h.
|
inline |
Definition at line 54 of file TkMeasurementDetSet.h.
|
inline |
Definition at line 132 of file TkMeasurementDetSet.h.
References badStripBlocks_, and i.
Referenced by TkStripMeasurementDet::badStripBlocks().
|
inline |
Definition at line 125 of file TkMeasurementDetSet.h.
References badStripCuts_, i, and subId_.
Referenced by TkStripMeasurementDet::badStripCuts().
|
inline |
Definition at line 117 of file TkMeasurementDetSet.h.
Referenced by TkStripMeasurementDet::beginClusterI().
|
inline |
Definition at line 63 of file TkMeasurementDetSet.h.
References theStripsToSkip.
Referenced by TkStripMeasurementDet::skipClusters(), and OnDemandMeasurementTracker::updateStrips().
|
inline |
Definition at line 114 of file TkMeasurementDetSet.h.
Referenced by TkStripMeasurementDet::detSet(), TkStripMeasurementDet::theSet(), and update().
|
inline |
Definition at line 95 of file TkMeasurementDetSet.h.
Referenced by TkStripMeasurementDet::isEmpty().
|
inline |
Definition at line 118 of file TkMeasurementDetSet.h.
References clusterI_.
Referenced by TkStripMeasurementDet::endClusterI().
|
inline |
Definition at line 90 of file TkMeasurementDetSet.h.
Referenced by MeasurementTrackerImpl::updateStrips().
|
inline |
Definition at line 131 of file TkMeasurementDetSet.h.
References badStripBlocks_, and i.
Referenced by TkStripMeasurementDet::getBadStripBlocks(), and initializeStripStatus().
|
inline |
Definition at line 113 of file TkMeasurementDetSet.h.
References handle_.
Referenced by TkStripMeasurementDet::handle().
|
inline |
Definition at line 129 of file TkMeasurementDetSet.h.
References hasAny128StripBad_, and i.
Referenced by TkStripMeasurementDet::hasAny128StripBad().
|
inline |
Definition at line 87 of file TkMeasurementDetSet.h.
Referenced by MeasurementTrackerImpl::initialize(), initializeStripStatus(), TkStripMeasurementDet::rawId(), and MeasurementTrackerImpl::updateStrips().
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().
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().
|
inline |
Definition at line 96 of file TkMeasurementDetSet.h.
References activeThisEvent_, activeThisPeriod_, and i.
Referenced by TkStripMeasurementDet::isActive(), and MeasurementTrackerImpl::updateStrips().
|
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().
|
inline |
Definition at line 94 of file TkMeasurementDetSet.h.
References regional_.
Referenced by init(), TkStripMeasurementDet::isRegional(), and MeasurementTrackerImpl::updateStrips().
|
inline |
Definition at line 128 of file TkMeasurementDetSet.h.
References maskBad128StripBlocks_.
Referenced by TkStripMeasurementDet::maskBad128StripBlocks().
|
inline |
Definition at line 81 of file TkMeasurementDetSet.h.
References theMatcher.
Referenced by MeasurementTrackerImpl::addGluedDet().
|
inline |
Definition at line 85 of file TkMeasurementDetSet.h.
References id_.
Referenced by initializeStripStatus().
|
inline |
Definition at line 116 of file TkMeasurementDetSet.h.
References regionalHandle_.
Referenced by TkStripMeasurementDet::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().
|
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().
|
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().
|
inline |
Definition at line 98 of file TkMeasurementDetSet.h.
References activeThisEvent_, empty_, and i.
Referenced by TkStripMeasurementDet::setEmpty(), and MeasurementTrackerImpl::updateStrips().
|
inline |
Definition at line 100 of file TkMeasurementDetSet.h.
References activeThisEvent_, empty_, and lumiContext::fill.
|
inline |
Definition at line 65 of file TkMeasurementDetSet.h.
References regionalHandle_.
Referenced by OnDemandMeasurementTracker::define(), and OnDemandMeasurementTracker::updateStrips().
|
inline |
Definition at line 124 of file TkMeasurementDetSet.h.
References maskBad128StripBlocks_.
Referenced by initializeStripStatus().
|
inline |
Definition at line 82 of file TkMeasurementDetSet.h.
References theCPE.
Referenced by MeasurementTrackerImpl::addGluedDet(), and TkStripMeasurementDet::cpe().
|
inline |
|
inline |
Definition at line 120 of file TkMeasurementDetSet.h.
References i, and totalStrips_.
Referenced by TkStripMeasurementDet::totalStrips().
|
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().
|
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().
|
friend |
Definition at line 158 of file TkMeasurementDetSet.h.
|
private |
Definition at line 189 of file TkMeasurementDetSet.h.
Referenced by init(), isActive(), setActive(), setActiveThisEvent(), setEmpty(), and update().
|
private |
Definition at line 189 of file TkMeasurementDetSet.h.
Referenced by init(), isActive(), and setActive().
|
private |
Definition at line 181 of file TkMeasurementDetSet.h.
Referenced by init(), isMasked(), and set128StripStatus().
|
private |
Definition at line 184 of file TkMeasurementDetSet.h.
Referenced by badStripBlocks(), getBadStripBlocks(), and init().
|
private |
Definition at line 172 of file TkMeasurementDetSet.h.
Referenced by badStripCuts(), and initializeStripStatus().
|
private |
Definition at line 197 of file TkMeasurementDetSet.h.
Referenced by beginClusterI(), endClusterI(), init(), and update().
|
private |
Definition at line 192 of file TkMeasurementDetSet.h.
|
private |
Definition at line 187 of file TkMeasurementDetSet.h.
Referenced by empty(), init(), setActive(), setActiveThisEvent(), setEmpty(), and update().
|
private |
Definition at line 164 of file TkMeasurementDetSet.h.
Referenced by handle(), and MeasurementTrackerImpl::updateStrips().
|
private |
Definition at line 182 of file TkMeasurementDetSet.h.
Referenced by hasAny128StripBad(), init(), and set128StripStatus().
|
private |
Definition at line 175 of file TkMeasurementDetSet.h.
Referenced by find(), id(), init(), nDet(), and MeasurementTrackerImpl::updateStrips().
|
mutableprivate |
Definition at line 171 of file TkMeasurementDetSet.h.
Referenced by maskBad128StripBlocks(), and setMaskBad128StripBlocks().
|
staticprivate |
Definition at line 180 of file TkMeasurementDetSet.h.
Referenced by isMasked(), and set128StripStatus().
|
private |
Definition at line 169 of file TkMeasurementDetSet.h.
Referenced by isRegional().
|
private |
Definition at line 165 of file TkMeasurementDetSet.h.
Referenced by regionalHandle(), setLazyGetter(), update(), and MeasurementTrackerImpl::updateStrips().
|
private |
Definition at line 176 of file TkMeasurementDetSet.h.
Referenced by badStripCuts(), init(), and subId().
|
private |
Definition at line 162 of file TkMeasurementDetSet.h.
Referenced by stripCPE().
|
private |
Definition at line 161 of file TkMeasurementDetSet.h.
Referenced by matcher().
|
mutableprivate |
Definition at line 167 of file TkMeasurementDetSet.h.
Referenced by clusterToSkip(), MeasurementTrackerImpl::setClusterToSkip(), MeasurementTrackerImpl::unsetClusterToSkip(), and MeasurementTrackerImpl::updateStrips().
|
private |
Definition at line 178 of file TkMeasurementDetSet.h.
Referenced by init(), and totalStrips().