CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TkPixelMeasurementDet.h
Go to the documentation of this file.
1 #ifndef TkPixelMeasurementDet_H
2 #define TkPixelMeasurementDet_H
3 
6 //#include "DataFormats/SiPixelCluster/interface/SiPixelClusterFwd.h"
11 
14 
16 public:
17 
19 
23 
24  TkPixelMeasurementDet( const GeomDet* gdet,
26 
27  void update( const detset & detSet,
29  unsigned int id ) {
30  detSet_ = detSet;
31  handle_ = h;
32  id_ = id;
33  empty = false;
34  activeThisEvent_ = true;
35  }
36  void setEmpty(){empty = true; activeThisEvent_ = true; }
37 
38  virtual ~TkPixelMeasurementDet() { }
39 
40  virtual RecHitContainer recHits( const TrajectoryStateOnSurface& ) const;
41 
42  virtual std::vector<TrajectoryMeasurement>
43  fastMeasurements( const TrajectoryStateOnSurface& stateOnThisDet,
44  const TrajectoryStateOnSurface& startingState,
45  const Propagator&,
46  const MeasurementEstimator&) const;
47 
48  const PixelGeomDetUnit& specificGeomDet() const {return *thePixelGDU;}
49 
51  buildRecHit( const SiPixelClusterRef & cluster,
52  const LocalTrajectoryParameters & ltp) const;
53 
56  void setActive(bool active) { activeThisPeriod_ = active; activeThisEvent_ = true; if (!active) empty = true; }
59  void setActiveThisEvent(bool active) { activeThisEvent_ = active; if (!active) empty = true; }
61  bool isActive() const { return activeThisEvent_ && activeThisPeriod_; }
62 
63  bool hasBadComponents( const TrajectoryStateOnSurface &tsos ) const ;
64 
66  void setBadRocPositions(std::vector< LocalPoint > & positions) { badRocPositions_.swap(positions); }
69 private:
70 
75  unsigned int id_;
76  bool empty;
78  std::vector< LocalPoint > badRocPositions_;
79 
80  static const float theRocWidth, theRocHeight;
81 };
82 
83 #endif
const PixelGeomDetUnit * thePixelGDU
bool isActive() const
Is this module active in reconstruction? It must be both &#39;setActiveThisEvent&#39; and &#39;setActive&#39;...
virtual std::vector< TrajectoryMeasurement > fastMeasurements(const TrajectoryStateOnSurface &stateOnThisDet, const TrajectoryStateOnSurface &startingState, const Propagator &, const MeasurementEstimator &) const
std::vector< LocalPoint > badRocPositions_
TransientTrackingRecHit::ConstRecHitContainer RecHitContainer
void setActive(bool active)
Turn on/off the module for reconstruction, for the full run or lumi (using info from DB...
static const float theRocHeight
data_type const * const_iterator
Definition: DetSetNew.h:25
TkPixelMeasurementDet(const GeomDet *gdet, const PixelClusterParameterEstimator *cpe)
static const float theRocWidth
std::pair< LocalPoint, LocalError > LocalValues
edm::Ref< edmNew::DetSetVector< SiPixelCluster >, SiPixelCluster > SiPixelClusterRef
void update(const detset &detSet, const edm::Handle< edmNew::DetSetVector< SiPixelCluster > > h, unsigned int id)
PixelClusterParameterEstimator::LocalValues LocalValues
void setActiveThisEvent(bool active)
Turn on/off the module for reconstruction for one events. This per-event flag is cleared by any call ...
detset::const_iterator const_iterator
edm::Handle< edmNew::DetSetVector< SiPixelCluster > > handle_
bool hasBadComponents(const TrajectoryStateOnSurface &tsos) const
virtual RecHitContainer recHits(const TrajectoryStateOnSurface &) const
TransientTrackingRecHit::RecHitPointer buildRecHit(const SiPixelClusterRef &cluster, const LocalTrajectoryParameters &ltp) const
Pixel cluster – collection of neighboring pixels above threshold.
const PixelGeomDetUnit & specificGeomDet() const
void setBadRocPositions(std::vector< LocalPoint > &positions)
Sets the list of bad ROCs, identified by the positions of their centers in the local coordinate frame...
edmNew::DetSet< SiPixelCluster > detset
const PixelClusterParameterEstimator * theCPE
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
void clearBadRocPositions()
Clear the list of bad ROCs.