CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackClusterRemover.cc
Go to the documentation of this file.
6 
22 
25 
29 //
30 // class decleration
31 //
32 
34  public:
35  TrackClusterRemover(const edm::ParameterSet& iConfig) ;
37  void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) ;
38  private:
39  struct ParamBlock {
41  ParamBlock(const edm::ParameterSet& iConfig) :
42  isSet_(true),
43  usesCharge_(iConfig.exists("maxCharge")),
44  usesSize_(iConfig.exists("maxSize")),
45  maxChi2_(iConfig.getParameter<double>("maxChi2")),
46  maxCharge_(usesCharge_ ? iConfig.getParameter<double>("maxCharge") : 0),
47  maxSize_(usesSize_ ? iConfig.getParameter<uint32_t>("maxSize") : 0) { }
50  size_t maxSize_;
51  };
52  static const unsigned int NumberOfParamBlocks = 6;
53 
57  bool mergeOld_;
59 
61  void readPSet(const edm::ParameterSet& iConfig, const std::string &name,
62  int id1=-1, int id2=-1, int id3=-1, int id4=-1, int id5=-1, int id6=-1) ;
63 
64  std::vector<uint8_t> pixels, strips; // avoid unneed alloc/dealloc of this
65  edm::ProductID pixelSourceProdID, stripSourceProdID; // ProdIDs refs must point to (for consistency tests)
66 
67  inline void process(const TrackingRecHit *hit, float chi2);
68  inline void process(const SiStripRecHit2D *hit2D, uint32_t subdet);
69  inline void process(const SiStripRecHit1D *hit1D, uint32_t subdet);
70 
71  template<typename T>
72  std::auto_ptr<edmNew::DetSetVector<T> >
73  cleanup(const edmNew::DetSetVector<T> &oldClusters, const std::vector<uint8_t> &isGood,
75 
76  // Carries in full removal info about a given det from oldRefs
78 
82  std::map<uint32_t, std::set< SiStripRecHit1D::ClusterRef > > collectedStrip;
83  std::map<uint32_t, std::set< SiPixelRecHit::ClusterRef > > collectedPixel;
84 };
85 
86 
87 using namespace std;
88 using namespace edm;
89 using namespace reco;
90 
91 void
92 TrackClusterRemover::readPSet(const edm::ParameterSet& iConfig, const std::string &name,
93  int id1, int id2, int id3, int id4, int id5, int id6)
94 {
95  if (iConfig.exists(name)) {
96  ParamBlock pblock(iConfig.getParameter<ParameterSet>(name));
97  if (id1 == -1) {
98  fill(pblocks_, pblocks_+NumberOfParamBlocks, pblock);
99  } else {
100  pblocks_[id1] = pblock;
101  if (id2 != -1) pblocks_[id2] = pblock;
102  if (id3 != -1) pblocks_[id3] = pblock;
103  if (id4 != -1) pblocks_[id4] = pblock;
104  if (id5 != -1) pblocks_[id5] = pblock;
105  if (id6 != -1) pblocks_[id6] = pblock;
106  }
107  }
108 }
109 
111  trajectories_(iConfig.getParameter<InputTag>("trajectories")),
112  doStrip_(iConfig.existsAs<bool>("doStrip") ? iConfig.getParameter<bool>("doStrip") : true),
113  doPixel_(iConfig.existsAs<bool>("doPixel") ? iConfig.getParameter<bool>("doPixel") : true),
114  stripClusters_(doStrip_ ? iConfig.getParameter<InputTag>("stripClusters") : InputTag("NONE")),
115  pixelClusters_(doPixel_ ? iConfig.getParameter<InputTag>("pixelClusters") : InputTag("NONE")),
116  mergeOld_(iConfig.exists("oldClusterRemovalInfo")),
117  oldRemovalInfo_(mergeOld_ ? iConfig.getParameter<InputTag>("oldClusterRemovalInfo") : InputTag("NONE")),
118  clusterWasteSolution_(true)
119 {
120  if (iConfig.exists("clusterLessSolution"))
121  clusterWasteSolution_=!iConfig.getParameter<bool>("clusterLessSolution");
122  if (doPixel_ && clusterWasteSolution_) produces< edmNew::DetSetVector<SiPixelCluster> >();
123  if (doStrip_ && clusterWasteSolution_) produces< edmNew::DetSetVector<SiStripCluster> >();
124  if (clusterWasteSolution_) produces< ClusterRemovalInfo >();
125 
127  readPSet(iConfig, "Common",-1);
128  if (doPixel_) {
129  readPSet(iConfig, "Pixel" ,0,1);
130  readPSet(iConfig, "PXB" ,0);
131  readPSet(iConfig, "PXE" ,1);
132  }
133  if (doStrip_) {
134  readPSet(iConfig, "Strip" ,2,3,4,5);
135  readPSet(iConfig, "StripInner" ,2,3);
136  readPSet(iConfig, "StripOuter" ,4,5);
137  readPSet(iConfig, "TIB" ,2);
138  readPSet(iConfig, "TID" ,3);
139  readPSet(iConfig, "TOB" ,4);
140  readPSet(iConfig, "TEC" ,5);
141  }
142 
143  bool usingCharge = false;
144  for (size_t i = 0; i < NumberOfParamBlocks; ++i) {
145  if (!pblocks_[i].isSet_) throw cms::Exception("Configuration Error") << "TrackClusterRemover: Missing configuration for detector with subDetID = " << (i+1);
146  if (pblocks_[i].usesCharge_ && !usingCharge) {
147  throw cms::Exception("Configuration Error") << "TrackClusterRemover: Configuration for subDetID = " << (i+1) << " uses cluster charge, which is not enabled.";
148  }
149  }
150 
151  if (!clusterWasteSolution_){
152  produces<edmNew::DetSetVector<SiPixelClusterRefNew> >();
153  produces<edmNew::DetSetVector<SiStripRecHit1D::ClusterRef> >();
154  }
156  filterTracks_=false;
157  if (iConfig.exists("TrackQuality")){
158  filterTracks_=true;
159  trackQuality_=reco::TrackBase::qualityByName(iConfig.getParameter<std::string>("TrackQuality"));
160  }
161 
162 }
163 
164 
166 {
167 }
168 
170  const ClusterRemovalInfo::Indices &oldRefs)
171 {
172  for (size_t i = 0, n = refs.size(); i < n; ++i) {
173  refs[i] = oldRefs[refs[i]];
174  }
175 }
176 
177 
178 template<typename T>
179 auto_ptr<edmNew::DetSetVector<T> >
180 TrackClusterRemover::cleanup(const edmNew::DetSetVector<T> &oldClusters, const std::vector<uint8_t> &isGood,
182  typedef typename edmNew::DetSetVector<T> DSV;
183  typedef typename edmNew::DetSetVector<T>::FastFiller DSF;
184  typedef typename edmNew::DetSet<T> DS;
185  auto_ptr<DSV> output(new DSV());
186  output->reserve(oldClusters.size(), oldClusters.dataSize());
187 
188  unsigned int countOld=0;
189  unsigned int countNew=0;
190 
191  // cluster removal loop
192  const T * firstOffset = & oldClusters.data().front();
193  for (typename DSV::const_iterator itdet = oldClusters.begin(), enddet = oldClusters.end(); itdet != enddet; ++itdet) {
194  DS oldDS = *itdet;
195 
196  if (oldDS.empty()) continue; // skip empty detsets
197 
198  uint32_t id = oldDS.detId();
199  DSF outds(*output, id);
200 
201  for (typename DS::const_iterator it = oldDS.begin(), ed = oldDS.end(); it != ed; ++it) {
202  uint32_t index = ((&*it) - firstOffset);
203  countOld++;
204  if (isGood[index]) {
205  outds.push_back(*it);
206  countNew++;
207  refs.push_back(index);
208  //std::cout << "TrackClusterRemover::cleanup " << typeid(T).name() << " reference " << index << " to " << (refs.size() - 1) << std::endl;
209  }
210 
211  }
212  if (outds.empty()) outds.abort(); // not write in an empty DSV
213  }
214 
215  if (oldRefs != 0) mergeOld(refs, *oldRefs);
216  return output;
217 }
218 
219 
220 void TrackClusterRemover::process(const SiStripRecHit2D *hit, uint32_t subdet) {
221  SiStripRecHit2D::ClusterRef cluster = hit->cluster();
222  if (cluster.id() != stripSourceProdID) throw cms::Exception("Inconsistent Data") <<
223  "TrackClusterRemover: strip cluster ref from Product ID = " << cluster.id() <<
224  " does not match with source cluster collection (ID = " << stripSourceProdID << ")\n.";
225 
226  assert(cluster.id() == stripSourceProdID);
227  if (pblocks_[subdet-1].usesSize_ && (cluster->amplitudes().size() > pblocks_[subdet-1].maxSize_)) return;
228 
229  strips[cluster.key()] = false;
230  if (!clusterWasteSolution_) collectedStrip[hit->geographicalId()].insert(cluster);
231 }
232 
233 void TrackClusterRemover::process(const SiStripRecHit1D *hit, uint32_t subdet) {
234  SiStripRecHit1D::ClusterRef cluster = hit->cluster();
235  if (cluster.id() != stripSourceProdID) throw cms::Exception("Inconsistent Data") <<
236  "TrackClusterRemover: strip cluster ref from Product ID = " << cluster.id() <<
237  " does not match with source cluster collection (ID = " << stripSourceProdID << ")\n.";
238 
239  assert(cluster.id() == stripSourceProdID);
240  if (pblocks_[subdet-1].usesSize_ && (cluster->amplitudes().size() > pblocks_[subdet-1].maxSize_)) return;
241 
242 //DBG// cout << "Individual HIT " << cluster.key().first << ", INDEX = " << cluster.key().second << endl;
243  strips[cluster.key()] = false;
244  if (!clusterWasteSolution_) collectedStrip[hit->geographicalId()].insert(cluster);
245 }
246 
247 
248 
249 
251  DetId detid = hit->geographicalId();
252  uint32_t subdet = detid.subdetId();
253 
254  assert ((subdet > 0) && (subdet <= NumberOfParamBlocks));
255 
256  // chi2 cut
257  if (chi2 > pblocks_[subdet-1].maxChi2_) return;
258 
259  if ((subdet == PixelSubdetector::PixelBarrel) || (subdet == PixelSubdetector::PixelEndcap)) {
260  if (!doPixel_) return;
261  // this is a pixel, and i *know* it is
262  const SiPixelRecHit *pixelHit = static_cast<const SiPixelRecHit *>(hit);
263 
264  SiPixelRecHit::ClusterRef cluster = pixelHit->cluster();
265 
266  if (cluster.id() != pixelSourceProdID) throw cms::Exception("Inconsistent Data") <<
267  "TrackClusterRemover: pixel cluster ref from Product ID = " << cluster.id() <<
268  " does not match with source cluster collection (ID = " << pixelSourceProdID << ")\n.";
269 
270  assert(cluster.id() == pixelSourceProdID);
271 //DBG// cout << "HIT NEW PIXEL DETID = " << detid.rawId() << ", Cluster [ " << cluster.key().first << " / " << cluster.key().second << " ] " << endl;
272 
273  // if requested, cut on cluster size
274  if (pblocks_[subdet-1].usesSize_ && (cluster->pixels().size() > pblocks_[subdet-1].maxSize_)) return;
275 
276  // mark as used
277  pixels[cluster.key()] = false;
278 
279  if(!clusterWasteSolution_) collectedPixel[detid.rawId()].insert(cluster);
280  } else { // aka Strip
281  if (!doStrip_) return;
282  const type_info &hitType = typeid(*hit);
283  if (hitType == typeid(SiStripRecHit2D)) {
284  const SiStripRecHit2D *stripHit = static_cast<const SiStripRecHit2D *>(hit);
285 //DBG// cout << "Plain RecHit 2D: " << endl;
286  process(stripHit,subdet);}
287  else if (hitType == typeid(SiStripRecHit1D)) {
288  const SiStripRecHit1D *hit1D = static_cast<const SiStripRecHit1D *>(hit);
289  process(hit1D,subdet);
290  } else if (hitType == typeid(SiStripMatchedRecHit2D)) {
291  const SiStripMatchedRecHit2D *matchHit = static_cast<const SiStripMatchedRecHit2D *>(hit);
292 //DBG// cout << "Matched RecHit 2D: " << endl;
293  process(matchHit->monoHit(),subdet);
294  process(matchHit->stereoHit(),subdet);
295  } else if (hitType == typeid(ProjectedSiStripRecHit2D)) {
296  const ProjectedSiStripRecHit2D *projHit = static_cast<const ProjectedSiStripRecHit2D *>(hit);
297 //DBG// cout << "Projected RecHit 2D: " << endl;
298  process(&projHit->originalHit(),subdet);
299  } else throw cms::Exception("NOT IMPLEMENTED") << "Don't know how to handle " << hitType.name() << " on detid " << detid.rawId() << "\n";
300  }
301 }
302 
303 /* Schematic picture of n-th step Iterative removal
304  * (that os removing clusters after n-th step tracking)
305  * clusters: [ C1 ] -> [ C2 ] -> ... -> [ Cn ] -> [ Cn + 1 ]
306  * ^ ^ ^--- OUTPUT "new" ID
307  * |-- before any removal |----- Source clusters
308  * |-- OUTPUT "old" ID |----- Hits in Traj. point here
309  * | \----- Old ClusterRemovalInfo "new" ID
310  * \-- Old ClusterRemovalInfo "old" ID
311  */
312 
313 
314 void
316 {
317  ProductID pixelOldProdID, stripOldProdID;
318 
320  if (doPixel_) {
321  iEvent.getByLabel(pixelClusters_, pixelClusters);
322  pixelSourceProdID = pixelClusters.id();
323  }
324 //DBG// std::cout << "TrackClusterRemover: Read pixel " << pixelClusters_.encode() << " = ID " << pixelSourceProdID << std::endl;
325 
327  if (doStrip_) {
328  iEvent.getByLabel(stripClusters_, stripClusters);
329  stripSourceProdID = stripClusters.id();
330  }
331 //DBG// std::cout << "TrackClusterRemover: Read strip " << stripClusters_.encode() << " = ID " << stripSourceProdID << std::endl;
332 
333  auto_ptr<ClusterRemovalInfo> cri;
335  if (doStrip_ && doPixel_) cri.reset(new ClusterRemovalInfo(pixelClusters, stripClusters));
336  else if (doStrip_) cri.reset(new ClusterRemovalInfo(stripClusters));
337  else if (doPixel_) cri.reset(new ClusterRemovalInfo(pixelClusters));
338  }
339 
340  Handle<ClusterRemovalInfo> oldRemovalInfo;
342  iEvent.getByLabel(oldRemovalInfo_, oldRemovalInfo);
343  // Check ProductIDs
344  if ( (oldRemovalInfo->stripNewRefProd().id() == stripClusters.id()) &&
345  (oldRemovalInfo->pixelNewRefProd().id() == pixelClusters.id()) ) {
346 
347  cri->getOldClustersFrom(*oldRemovalInfo);
348 
349  pixelOldProdID = oldRemovalInfo->pixelRefProd().id();
350  stripOldProdID = oldRemovalInfo->stripRefProd().id();
351 
352  } else {
353  throw cms::Exception("Inconsistent Data") << "TrackClusterRemover: " <<
354  "Input collection product IDs are [pixel: " << pixelClusters.id() << ", strip: " << stripClusters.id() << "] \n" <<
355  "\t but the *old* ClusterRemovalInfo " << oldRemovalInfo_.encode() << " refers as 'new product ids' to " <<
356  "[pixel: " << oldRemovalInfo->pixelNewRefProd().id() << ", strip: " << oldRemovalInfo->stripNewRefProd().id() << "]\n" <<
357  "NOTA BENE: when running TrackClusterRemover with an old ClusterRemovalInfo the hits in the trajectory MUST be already re-keyed.\n";
358  }
359  } else { // then Old == Source
360  pixelOldProdID = pixelSourceProdID;
361  stripOldProdID = stripSourceProdID;
362  }
363 
364  Handle<TrajTrackAssociationCollection> trajectories_totrack;
365  iEvent.getByLabel(trajectories_,trajectories_totrack);
366 
367  if (doStrip_) {
368  strips.resize(stripClusters->dataSize()); fill(strips.begin(), strips.end(), true);
369  }
370  if (doPixel_) {
371  pixels.resize(pixelClusters->dataSize()); fill(pixels.begin(), pixels.end(), true);
372  }
373 
374  TrajTrackAssociationCollection::const_iterator asst=trajectories_totrack->begin();
375  for (;asst!=trajectories_totrack->end();++asst){
376  const Track & track = *(asst->val);
377  bool goodTk = (track.quality(trackQuality_));
378  if (filterTracks_ && !goodTk) continue;
379  const Trajectory &tj = *(asst->key);
380  const vector<TrajectoryMeasurement> &tms = tj.measurements();
381  vector<TrajectoryMeasurement>::const_iterator itm, endtm;
382  for (itm = tms.begin(), endtm = tms.end(); itm != endtm; ++itm) {
383  const TrackingRecHit *hit = itm->recHit()->hit();
384  if (!hit->isValid()) continue;
385  process( hit, itm->estimate() );
386  }
387  }
388 
389 
391  auto_ptr<edmNew::DetSetVector<SiPixelCluster> > newPixelClusters = cleanup(*pixelClusters, pixels,
392  cri->pixelIndices(), mergeOld_ ? &oldRemovalInfo->pixelIndices() : 0);
393  OrphanHandle<edmNew::DetSetVector<SiPixelCluster> > newPixels = iEvent.put(newPixelClusters);
394 //DBG// std::cout << "TrackClusterRemover: Wrote pixel " << newPixels.id() << " from " << pixelSourceProdID << std::endl;
395  cri->setNewPixelClusters(newPixels);
396  }
398  auto_ptr<edmNew::DetSetVector<SiStripCluster> > newStripClusters = cleanup(*stripClusters, strips,
399  cri->stripIndices(), mergeOld_ ? &oldRemovalInfo->stripIndices() : 0);
400  OrphanHandle<edmNew::DetSetVector<SiStripCluster> > newStrips = iEvent.put(newStripClusters);
401 //DBG// std::cout << "TrackClusterRemover: Wrote strip " << newStrips.id() << " from " << stripSourceProdID << std::endl;
402  cri->setNewStripClusters(newStrips);
403  }
404 
405 
406  if (clusterWasteSolution_) {
407  // double fraction_pxl= cri->pixelIndices().size() / (double) pixels.size();
408  // double fraction_strp= cri->stripIndices().size() / (double) strips.size();
409  // edm::LogWarning("TrackClusterRemover")<<" fraction: " << fraction_pxl <<" "<<fraction_strp;
410  iEvent.put(cri);
411  }
412 
413  pixels.clear(); strips.clear();
414 
415  if (!clusterWasteSolution_){
416  auto_ptr<edmNew::DetSetVector<SiPixelClusterRefNew> > removedPixelClsuterRefs(new edmNew::DetSetVector<SiPixelClusterRefNew>());
417  auto_ptr<edmNew::DetSetVector<SiStripRecHit1D::ClusterRef> > removedStripClsuterRefs(new edmNew::DetSetVector<SiStripRecHit1D::ClusterRef>());
418 
421  if (mergeOld_){
422  iEvent.getByLabel(oldRemovalInfo_,oldPxlRef);
423  iEvent.getByLabel(oldRemovalInfo_,oldStrRef);
424  LogDebug("TrackClusterRemover")<<"to merge in, "<<oldStrRef->size()<<" strp and "<<oldPxlRef->size()<<" pxl";
425  }
426 
427  if (mergeOld_){
428  for (edmNew::DetSetVector<SiStripRecHit1D::ClusterRef>::const_iterator itOld=oldStrRef->begin();itOld!=oldStrRef->end();++itOld){
429  uint32_t id = itOld->detId();
430  collectedStrip[id].insert(itOld->begin(),itOld->end());
431  }
432  }
433  for (std::map<uint32_t, std::set< SiStripRecHit1D::ClusterRef > >::iterator itskiped= collectedStrip.begin();
434  itskiped!=collectedStrip.end();++itskiped){
435  edmNew::DetSetVector<SiStripRecHit1D::ClusterRef>::FastFiller fill(*removedStripClsuterRefs, itskiped->first);
436  for (std::set< SiStripRecHit1D::ClusterRef >::iterator topush = itskiped->second.begin();
437  topush!=itskiped->second.end();++topush){
438  fill.push_back(*topush);
439  LogDebug("TrackClusterRemover")<<"registering strp ref to be skip on: "<<itskiped->first<<" key: "<<topush->key();
440  }
441  if (fill.empty()) fill.abort();
442  itskiped->second.clear();
443  }
444  LogDebug("TrackClusterRemover")<<"total strip to skip: "<<removedStripClsuterRefs->size();
445  iEvent.put( removedStripClsuterRefs );
446 
447  if (mergeOld_){
448  for (edmNew::DetSetVector<SiPixelClusterRefNew>::const_iterator itOld=oldPxlRef->begin();itOld!=oldPxlRef->end();++itOld){
449  uint32_t id = itOld->detId();
450  collectedPixel[id].insert(itOld->begin(),itOld->end());
451  }
452  }
453 
454  for (std::map<uint32_t, std::set< SiPixelRecHit::ClusterRef > >::iterator itskiped= collectedPixel.begin();
455  itskiped!=collectedPixel.end();++itskiped){
456  edmNew::DetSetVector<SiPixelClusterRefNew>::FastFiller fill(*removedPixelClsuterRefs, itskiped->first);
457  for (std::set< SiPixelRecHit::ClusterRef >::iterator topush = itskiped->second.begin();
458  topush!=itskiped->second.end();++topush){
459  fill.push_back(*topush);
460  LogDebug("TrackClusterRemover")<<"registering pxk ref to be skip on: "<<itskiped->first<<" key: "<<topush->key();
461  }
462  if (fill.empty()) fill.abort();
463  itskiped->second.clear();
464  }
465  LogDebug("TrackClusterRemover")<<"total pxl to skip: "<<removedPixelClsuterRefs->size();
466  iEvent.put( removedPixelClsuterRefs );
467 
468  }
469 
470 
471 }
472 
#define LogDebug(id)
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
void push_back(data_type const &d)
edm::InputTag stripClusters_
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator begin() const
size_type dataSize() const
static const unsigned int NumberOfParamBlocks
ParamBlock pblocks_[NumberOfParamBlocks]
edm::InputTag pixelClusters_
ProductID id() const
Definition: HandleBase.cc:15
ParamBlock(const edm::ParameterSet &iConfig)
TrackQuality
track quality
Definition: TrackBase.h:95
const SiStripRecHit2D * stereoHit() const
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
bool exists(std::string const &parameterName) const
checks if a parameter exists
void process(const TrackingRecHit *hit, float chi2)
std::map< uint32_t, std::set< SiPixelRecHit::ClusterRef > > collectedPixel
reco::TrackBase::TrackQuality trackQuality_
void readPSet(const edm::ParameterSet &iConfig, const std::string &name, int id1=-1, int id2=-1, int id3=-1, int id4=-1, int id5=-1, int id6=-1)
std::string encode() const
Definition: InputTag.cc:72
TrackClusterRemover(const edm::ParameterSet &iConfig)
edm::InputTag oldRemovalInfo_
uint32_t rawId() const
get the raw id
Definition: DetId.h:45
DataContainer const & measurements() const
Definition: Trajectory.h:169
int iEvent
Definition: GenABIO.cc:243
edm::ProductID stripSourceProdID
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:84
data_type const * data(size_t cell) const
std::vector< uint8_t > pixels
const_iterator end() const
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
std::vector< uint32_t > Indices
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:355
void reset()
Definition: ProductID.h:40
Definition: DetId.h:20
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:46
void mergeOld(reco::ClusterRemovalInfo::Indices &refs, const reco::ClusterRemovalInfo::Indices &oldRefs)
std::vector< uint8_t > strips
ClusterRef const & cluster() const
key_type key() const
Accessor for product key.
Definition: Ref.h:265
bool isValid() const
std::map< uint32_t, std::set< SiStripRecHit1D::ClusterRef > > collectedStrip
bool quality(const TrackQuality) const
Track quality.
Definition: TrackBase.h:364
size_type size() const
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
ClusterRef const & cluster() const
edm::ProductID pixelSourceProdID
ProductID id() const
Accessor for product ID.
Definition: Ref.h:255
DetId geographicalId() const
const SiStripRecHit2D * monoHit() const
long double T
ClusterRef const & cluster() const
Definition: SiPixelRecHit.h:42
const SiStripRecHit2D & originalHit() const
std::auto_ptr< edmNew::DetSetVector< T > > cleanup(const edmNew::DetSetVector< T > &oldClusters, const std::vector< uint8_t > &isGood, reco::ClusterRemovalInfo::Indices &refs, const reco::ClusterRemovalInfo::Indices *oldRefs)
Our base class.
Definition: SiPixelRecHit.h:27