#include <OnDemandMeasurementTracker.h>
Classes | |
class | DetODStatus |
a class that holds flags, region_range (in RefGetter) for a given MeasurementDet More... | |
Public Types | |
typedef edm::LazyGetter < SiStripCluster > | LazyGetter |
typedef edm::RefGetter < SiStripCluster > | RefGetter |
Public Types inherited from MeasurementTrackerImpl | |
typedef std::unordered_map < unsigned int, MeasurementDet * > | DetContainer |
enum | QualityFlags { BadModules =1, BadAPVFibers =2, BadStrips =4, MaskBad128StripBlocks =8, BadROCs =2 } |
Public Types inherited from MeasurementTracker | |
enum | QualityFlags { BadModules =1, BadAPVFibers =2, BadStrips =4, MaskBad128StripBlocks =8, BadROCs =2 } |
Public Member Functions | |
void | define (const edm::Handle< edm::LazyGetter< SiStripCluster > > &, std::auto_ptr< RefGetter > &) const |
OnDemandMeasurementTracker specific function to be called to define the region in the RefGetter according to MeasurementDet content. More... | |
virtual const MeasurementDet * | idToDet (const DetId &id) const |
MeasurementDetSystem interface. More... | |
OnDemandMeasurementTracker (const edm::ParameterSet &conf, const PixelClusterParameterEstimator *pixelCPE, const StripClusterParameterEstimator *stripCPE, const SiStripRecHitMatcher *hitMatcher, const TrackerGeometry *trackerGeom, const GeometricSearchTracker *geometricSearchTracker, const SiStripQuality *stripQuality, int stripQualityFlags, int stripQualityDebugFlags, const SiPixelQuality *pixelQuality, const SiPixelFedCabling *pixelCabling, int pixelQualityFlags, int pixelQualityDebugFlags, const SiStripRegionCabling *stripRegionCabling, bool isRegional=false) | |
constructor More... | |
void | update (const edm::Event &) const |
MeasurementTracker overloaded function. More... | |
void | updateStrips (const edm::Event &event) const |
virtual | ~OnDemandMeasurementTracker () |
destructor More... | |
Public Member Functions inherited from MeasurementTrackerImpl | |
const DetContainer & | allDets () const |
For debug only. More... | |
TkStripMeasurementDet * | concreteDetUpdatable (DetId id) const |
const MeasurementDet * | findDet (const DetId &id) const |
const GeometricSearchTracker * | geometricSearchTracker () const |
const TrackingGeometry * | geomTracker () const |
const std::vector < TkGluedMeasurementDet > & | gluedDets () const |
MeasurementTrackerImpl (const edm::ParameterSet &conf, const PixelClusterParameterEstimator *pixelCPE, const StripClusterParameterEstimator *stripCPE, const SiStripRecHitMatcher *hitMatcher, const TrackerGeometry *trackerGeom, const GeometricSearchTracker *geometricSearchTracker, const SiStripQuality *stripQuality, int stripQualityFlags, int stripQualityDebugFlags, const SiPixelQuality *pixelQuality, const SiPixelFedCabling *pixelCabling, int pixelQualityFlags, int pixelQualityDebugFlags, bool isRegional=false) | |
const std::vector < TkPixelMeasurementDet * > & | pixelDets () const |
void | setClusterToSkip (const edm::InputTag &cluster, const edm::Event &event) const |
const std::vector < TkStripMeasurementDet > & | stripDets () const |
void | unsetClusterToSkip () const |
void | updatePixels (const edm::Event &) const |
virtual | ~MeasurementTrackerImpl () |
Public Member Functions inherited from MeasurementTracker | |
const GeometricSearchTracker * | geometricSearchTracker () const |
const TrackingGeometry * | geomTracker () const |
MeasurementTracker (TrackerGeometry const *trackerGeom, GeometricSearchTracker const *geometricSearchTracker) | |
virtual | ~MeasurementTracker () |
Private Types | |
typedef std::unordered_map < unsigned int, DetODStatus > | DetODContainer |
typedef std::vector< std::pair < SiStripRegionCabling::ElementIndex, std::vector < DetODContainer::const_iterator > > > | RegionalMap |
mapping of elementIndex -> iterator to the DetODMap: to know what are the regions that needs to be defined in the ref getter More... | |
Private Member Functions | |
void | assign (const TkStripMeasurementDet *csmdet, DetODContainer::iterator *alreadyFound=0) const |
assigne the cluster iterator to the TkStipMeasurementDet (const_cast in the way) More... | |
std::string | dumpCluster (const std::vector< SiStripCluster >::const_iterator &begin, const std::vector< SiStripCluster >::const_iterator &end) const |
some printouts, exclusively under LogDebug More... | |
std::string | dumpRegion (std::pair< unsigned int, unsigned int > indexes, const RefGetter &theGetter, bool stayUnpacked=false) const |
Private Attributes | |
std::string | category_ |
log category More... | |
bool | PixelOnDemand_ |
internal flag to do pixel on demand (not configurable) false by default More... | |
RegionalMap | region_mapping |
bool | StayPacked_ |
internal flag to avoid unpacking things with LogDebug on More... | |
bool | StripOnDemand_ |
internal flag to do strip on demand (not configurable) true by default More... | |
DetODContainer | theDetODMap |
mapping of detid -> MeasurementDet+flags+region_range More... | |
edm::Handle< edm::LazyGetter < SiStripCluster > > | theLazyGetterH |
std::vector< uint32_t > | theRawInactiveStripDetIds |
edm::Handle< edm::RefGetter < SiStripCluster > > | theRefGetterH |
the handle is retrieved from the event to make reference to cluster in it More... | |
bool | theSkipClusterRefs |
edm::Handle < edm::ContainerMask < edm::LazyGetter < SiStripCluster > > > | theStripClusterMask |
const SiStripRegionCabling * | theStripRegionCabling |
the cabling region tool to update a RefGetter More... | |
Definition at line 13 of file OnDemandMeasurementTracker.h.
|
private |
Definition at line 79 of file OnDemandMeasurementTracker.h.
Definition at line 38 of file OnDemandMeasurementTracker.h.
Definition at line 39 of file OnDemandMeasurementTracker.h.
|
private |
mapping of elementIndex -> iterator to the DetODMap: to know what are the regions that needs to be defined in the ref getter
Definition at line 84 of file OnDemandMeasurementTracker.h.
OnDemandMeasurementTracker::OnDemandMeasurementTracker | ( | const edm::ParameterSet & | conf, |
const PixelClusterParameterEstimator * | pixelCPE, | ||
const StripClusterParameterEstimator * | stripCPE, | ||
const SiStripRecHitMatcher * | hitMatcher, | ||
const TrackerGeometry * | trackerGeom, | ||
const GeometricSearchTracker * | geometricSearchTracker, | ||
const SiStripQuality * | stripQuality, | ||
int | stripQualityFlags, | ||
int | stripQualityDebugFlags, | ||
const SiPixelQuality * | pixelQuality, | ||
const SiPixelFedCabling * | pixelCabling, | ||
int | pixelQualityFlags, | ||
int | pixelQualityDebugFlags, | ||
const SiStripRegionCabling * | stripRegionCabling, | ||
bool | isRegional = false |
||
) |
constructor
Definition at line 54 of file OnDemandMeasurementTracker.cc.
References category_, SiStripRegionCabling::elementIndex(), PV3DBase< T, PVType, FrameType >::eta(), eta(), first, SiStripRegionCabling::layerFromDetId(), LogDebug, phi, PV3DBase< T, PVType, FrameType >::phi(), GeomDetEnumerators::PixelBarrel, GeomDetEnumerators::PixelEndcap, SiStripRegionCabling::position(), SiStripRegionCabling::positionIndex(), SiStripRegionCabling::region(), region_mapping, edm::second(), SiStripRegionCabling::subdetFromDetId(), GeomDetEnumerators::TEC, MeasurementTrackerImpl::theDetMap, theDetODMap, MeasurementTrackerImpl::theInactiveStripDetectorLabels, theRawInactiveStripDetIds, theStripRegionCabling, GeomDetEnumerators::TIB, GeomDetEnumerators::TID, and GeomDetEnumerators::TOB.
|
inlinevirtual |
|
private |
assigne the cluster iterator to the TkStipMeasurementDet (const_cast in the way)
Definition at line 293 of file OnDemandMeasurementTracker.cc.
References category_, dumpCluster(), dumpRegion(), LogDebug, DetId::rawId(), theDetODMap, theRawInactiveStripDetIds, and theRefGetterH.
Referenced by idToDet().
void OnDemandMeasurementTracker::define | ( | const edm::Handle< edm::LazyGetter< SiStripCluster > > & | aLazyGetterH, |
std::auto_ptr< RefGetter > & | aGetter | ||
) | const |
OnDemandMeasurementTracker specific function to be called to define the region in the RefGetter according to MeasurementDet content.
Definition at line 146 of file OnDemandMeasurementTracker.cc.
References category_, OnDemandMeasurementTracker::DetODStatus::defined, dumpRegion(), HTMLExport::elem(), LogDebug, region_mapping, OnDemandMeasurementTracker::DetODStatus::region_range, StMeasurementDetSet::setLazyGetter(), StayPacked_, theDetODMap, MeasurementTrackerImpl::theStDets, theStripRegionCabling, and SiStripRegionCabling::updateSiStripRefGetter().
Referenced by MeasurementTrackerSiStripRefGetterProducer::produce().
|
private |
some printouts, exclusively under LogDebug
Definition at line 255 of file OnDemandMeasurementTracker.cc.
References begin, end, i, AlCaHLTBitMon_QueryRunRegistry::string, and accesses::tab.
Referenced by assign(), and dumpRegion().
|
private |
Definition at line 271 of file OnDemandMeasurementTracker.cc.
References begin, dumpCluster(), end, pos, SiStripRegionCabling::position(), SiStripRegionCabling::positionIndex(), SiStripRegionCabling::region(), and theStripRegionCabling.
Referenced by assign(), and define().
|
virtual |
MeasurementDetSystem interface.
Reimplemented from MeasurementTrackerImpl.
Definition at line 358 of file OnDemandMeasurementTracker.cc.
References assign(), category_, LogDebug, StripOnDemand_, and theDetODMap.
|
virtual |
MeasurementTracker overloaded function.
Reimplemented from MeasurementTrackerImpl.
Definition at line 230 of file OnDemandMeasurementTracker.cc.
References category_, LogDebug, PixelOnDemand_, StripOnDemand_, MeasurementTrackerImpl::updatePixels(), updateStrips(), and MeasurementTrackerImpl::updateStrips().
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().
|
virtual |
Reimplemented from MeasurementTrackerImpl.
Definition at line 194 of file OnDemandMeasurementTracker.cc.
References category_, StMeasurementDetSet::clusterToSkip(), edm::EventID::event(), MeasurementTrackerImpl::getInactiveStrips(), edm::ParameterSet::getParameter(), edm::EventBase::id(), LogDebug, MeasurementTrackerImpl::name_, MeasurementTrackerImpl::pset_, edm::EventID::run(), MeasurementTrackerImpl::selfUpdateSkipClusters_, StMeasurementDetSet::setLazyGetter(), AlCaHLTBitMon_QueryRunRegistry::string, theLazyGetterH, theRawInactiveStripDetIds, theRefGetterH, theSkipClusterRefs, MeasurementTrackerImpl::theStDets, and theStripClusterMask.
Referenced by update().
|
private |
log category
Definition at line 50 of file OnDemandMeasurementTracker.h.
Referenced by assign(), define(), idToDet(), OnDemandMeasurementTracker(), update(), and updateStrips().
|
private |
internal flag to do pixel on demand (not configurable) false by default
Definition at line 56 of file OnDemandMeasurementTracker.h.
Referenced by update().
|
private |
Definition at line 85 of file OnDemandMeasurementTracker.h.
Referenced by define(), and OnDemandMeasurementTracker().
|
private |
internal flag to avoid unpacking things with LogDebug on
Definition at line 52 of file OnDemandMeasurementTracker.h.
Referenced by define().
|
private |
internal flag to do strip on demand (not configurable) true by default
Definition at line 54 of file OnDemandMeasurementTracker.h.
|
mutableprivate |
mapping of detid -> MeasurementDet+flags+region_range
Definition at line 81 of file OnDemandMeasurementTracker.h.
Referenced by assign(), define(), idToDet(), and OnDemandMeasurementTracker().
|
mutableprivate |
Definition at line 63 of file OnDemandMeasurementTracker.h.
Referenced by updateStrips().
|
mutableprivate |
Definition at line 97 of file OnDemandMeasurementTracker.h.
Referenced by assign(), OnDemandMeasurementTracker(), and updateStrips().
|
mutableprivate |
the handle is retrieved from the event to make reference to cluster in it
Definition at line 62 of file OnDemandMeasurementTracker.h.
Referenced by assign(), and updateStrips().
|
mutableprivate |
Definition at line 64 of file OnDemandMeasurementTracker.h.
Referenced by updateStrips().
|
mutableprivate |
Definition at line 65 of file OnDemandMeasurementTracker.h.
Referenced by updateStrips().
|
private |
the cabling region tool to update a RefGetter
Definition at line 59 of file OnDemandMeasurementTracker.h.
Referenced by define(), dumpRegion(), and OnDemandMeasurementTracker().