CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OnDemandMeasurementTracker.h
Go to the documentation of this file.
1 #ifndef RecoTracker_MeasurementDet_OnDemandMeasurementTracker_H
2 #define RecoTracker_MeasurementDet_OnDemandMeasurementTracker_H
3 
9 
10 #include "TkStripMeasurementDet.h"
11 #include<unordered_map>
12 
14 public:
17  const PixelClusterParameterEstimator* pixelCPE,
18  const StripClusterParameterEstimator* stripCPE,
19  const SiStripRecHitMatcher* hitMatcher,
20  const TrackerGeometry* trackerGeom,
22  const SiStripQuality *stripQuality,
23  int stripQualityFlags,
24  int stripQualityDebugFlags,
25  const SiPixelQuality *pixelQuality,
26  const SiPixelFedCabling *pixelCabling,
27  int pixelQualityFlags,
28  int pixelQualityDebugFlags,
29  const SiStripRegionCabling * stripRegionCabling,
30  bool isRegional=false);
33 
35  void update( const edm::Event&) const;
36  void updateStrips( const edm::Event& event) const;
37 
40 
43  std::auto_ptr< RefGetter > & ) const;
44 
46  virtual const MeasurementDet* idToDet(const DetId& id) const;
47 
48  private:
50  std::string category_;
57 
60 
64  mutable bool theSkipClusterRefs;
66  //mutable std::vector<bool> theClustersToSkip;
68  class DetODStatus {
69  public:
70  // FIXME shall surely exits a better way to distinguish glued from single!
73  std::pair<unsigned int, unsigned int> region_range;
74  bool defined;
75  bool updated;
76  bool glued;
77  };
78 
79  typedef std::unordered_map<unsigned int, DetODStatus> DetODContainer;
82 
84  typedef std::vector<std::pair<SiStripRegionCabling::ElementIndex, std::vector<DetODContainer::const_iterator> > > RegionalMap;
86 
88  void assign(const TkStripMeasurementDet * csmdet,
89  DetODContainer::iterator * alreadyFound=0) const;
90 
92  std::string dumpCluster(const std::vector<SiStripCluster> ::const_iterator & begin, const std::vector<SiStripCluster> ::const_iterator& end)const;
93  std::string dumpRegion(std::pair<unsigned int,unsigned int> indexes,
94  const RefGetter & theGetter,
95  bool stayUnpacked = false)const;
96 
97  mutable std::vector<uint32_t> theRawInactiveStripDetIds;
98 
99 };
100 
101 #endif
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
edm::Handle< edm::LazyGetter< SiStripCluster > > theLazyGetterH
bool PixelOnDemand_
internal flag to do pixel on demand (not configurable) false by default
std::unordered_map< unsigned int, DetODStatus > DetODContainer
edm::Handle< edm::RefGetter< SiStripCluster > > theRefGetterH
the handle is retrieved from the event to make reference to cluster in it
std::vector< std::pair< SiStripRegionCabling::ElementIndex, std::vector< DetODContainer::const_iterator > > > RegionalMap
mapping of elementIndex -&gt; iterator to the DetODMap: to know what are the regions that needs to be de...
void update(const edm::Event &) const
MeasurementTracker overloaded function.
const SiStripRegionCabling * theStripRegionCabling
the cabling region tool to update a RefGetter
std::string dumpCluster(const std::vector< SiStripCluster >::const_iterator &begin, const std::vector< SiStripCluster >::const_iterator &end) const
some printouts, exclusively under LogDebug
edm::LazyGetter< SiStripCluster > LazyGetter
std::vector< uint32_t > theRawInactiveStripDetIds
edm::Handle< edm::ContainerMask< edm::LazyGetter< SiStripCluster > > > theStripClusterMask
edm::RefGetter< SiStripCluster > RefGetter
DetODContainer theDetODMap
mapping of detid -&gt; MeasurementDet+flags+region_range
bool StayPacked_
internal flag to avoid unpacking things with LogDebug on
#define end
Definition: vmac.h:38
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
tuple conf
Definition: dbtoconf.py:185
bool StripOnDemand_
internal flag to do strip on demand (not configurable) true by default
std::string category_
log category
Definition: DetId.h:20
a class that holds flags, region_range (in RefGetter) for a given MeasurementDet
virtual ~OnDemandMeasurementTracker()
destructor
#define begin
Definition: vmac.h:31
void updateStrips(const edm::Event &event) const
void assign(const TkStripMeasurementDet *csmdet, DetODContainer::iterator *alreadyFound=0) const
assigne the cluster iterator to the TkStipMeasurementDet (const_cast in the way)
std::pair< unsigned int, unsigned int > region_range
std::string dumpRegion(std::pair< unsigned int, unsigned int > indexes, const RefGetter &theGetter, bool stayUnpacked=false) const
virtual const MeasurementDet * idToDet(const DetId &id) const
MeasurementDetSystem interface.
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 accor...
const GeometricSearchTracker * geometricSearchTracker() const