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 
24 
26 
29 
33 //
34 // class decleration
35 //
36 
38  public:
39  TrackClusterRemover(const edm::ParameterSet& iConfig) ;
41  void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) ;
42  private:
43  struct ParamBlock {
45  ParamBlock(const edm::ParameterSet& iConfig) :
46  isSet_(true),
47  usesCharge_(iConfig.exists("maxCharge")),
48  usesSize_(iConfig.exists("maxSize")),
49  cutOnPixelCharge_(iConfig.exists("minGoodPixelCharge")),
50  cutOnStripCharge_(iConfig.exists("minGoodStripCharge")),
51  maxChi2_(iConfig.getParameter<double>("maxChi2")),
52  maxCharge_(usesCharge_ ? iConfig.getParameter<double>("maxCharge") : 0),
53  minGoodPixelCharge_(cutOnPixelCharge_ ? iConfig.getParameter<double>("minGoodPixelCharge") : 0),
54  minGoodStripCharge_(cutOnStripCharge_ ? iConfig.getParameter<double>("minGoodStripCharge") : 0),
55  maxSize_(usesSize_ ? iConfig.getParameter<uint32_t>("maxSize") : 0) { }
58  size_t maxSize_;
59  };
60  static const unsigned int NumberOfParamBlocks = 6;
61 
62  bool doTracks_;
64  std::vector<edm::InputTag> overrideTrkQuals_;
67  bool mergeOld_;
69 
71  void readPSet(const edm::ParameterSet& iConfig, const std::string &name,
72  int id1=-1, int id2=-1, int id3=-1, int id4=-1, int id5=-1, int id6=-1) ;
73 
74  std::vector<uint8_t> pixels, strips; // avoid unneed alloc/dealloc of this
75  edm::ProductID pixelSourceProdID, stripSourceProdID; // ProdIDs refs must point to (for consistency tests)
76 
77  inline void process(const TrackingRecHit *hit, float chi2);
78  inline void process(const OmniClusterRef & cluRef, uint32_t subdet, bool fromTrack);
79 
80 
81  template<typename T>
82  std::auto_ptr<edmNew::DetSetVector<T> >
83  cleanup(const edmNew::DetSetVector<T> &oldClusters, const std::vector<uint8_t> &isGood,
85 
86  // Carries in full removal info about a given det from oldRefs
88 
94  std::vector<bool> collectedStrips_;
95  std::vector<bool> collectedPixels_;
96 };
97 
98 
99 using namespace std;
100 using namespace edm;
101 using namespace reco;
102 
103 void
105  int id1, int id2, int id3, int id4, int id5, int id6)
106 {
107  if (iConfig.exists(name)) {
108  ParamBlock pblock(iConfig.getParameter<ParameterSet>(name));
109  if (id1 == -1) {
110  fill(pblocks_, pblocks_+NumberOfParamBlocks, pblock);
111  } else {
112  pblocks_[id1] = pblock;
113  if (id2 != -1) pblocks_[id2] = pblock;
114  if (id3 != -1) pblocks_[id3] = pblock;
115  if (id4 != -1) pblocks_[id4] = pblock;
116  if (id5 != -1) pblocks_[id5] = pblock;
117  if (id6 != -1) pblocks_[id6] = pblock;
118  }
119  }
120 }
121 
123  doTracks_(iConfig.exists("trajectories")),
124  trajectories_(doTracks_ ? iConfig.getParameter<InputTag>("trajectories") : InputTag("NONE")),
125  doStrip_(iConfig.existsAs<bool>("doStrip") ? iConfig.getParameter<bool>("doStrip") : true),
126  doPixel_(iConfig.existsAs<bool>("doPixel") ? iConfig.getParameter<bool>("doPixel") : true),
127  stripClusters_(doStrip_ ? iConfig.getParameter<InputTag>("stripClusters") : InputTag("NONE")),
128  pixelClusters_(doPixel_ ? iConfig.getParameter<InputTag>("pixelClusters") : InputTag("NONE")),
129  mergeOld_(iConfig.exists("oldClusterRemovalInfo")),
130  oldRemovalInfo_(mergeOld_ ? iConfig.getParameter<InputTag>("oldClusterRemovalInfo") : InputTag("NONE")),
131  clusterWasteSolution_(true),
132  doStripChargeCheck_(iConfig.existsAs<bool>("doStripChargeCheck") ? iConfig.getParameter<bool>("doStripChargeCheck") : false),
133  doPixelChargeCheck_(iConfig.existsAs<bool>("doPixelChargeCheck") ? iConfig.getParameter<bool>("doPixelChargeCheck") : false),
134  stripRecHits_(doStripChargeCheck_ ? iConfig.getParameter<std::string>("stripRecHits") : std::string("siStripMatchedRecHits")),
135  pixelRecHits_(doPixelChargeCheck_ ? iConfig.getParameter<std::string>("pixelRecHits") : std::string("siPixelRecHits"))
136 {
137  if (iConfig.exists("overrideTrkQuals"))
138  overrideTrkQuals_.push_back(iConfig.getParameter<edm::InputTag>("overrideTrkQuals"));
139  if (iConfig.exists("clusterLessSolution"))
140  clusterWasteSolution_=!iConfig.getParameter<bool>("clusterLessSolution");
142  throw cms::Exception("Configuration Error") << "TrackClusterRemover: Charge check asked without cluster collection ";
144  throw cms::Exception("Configuration Error") << "TrackClusterRemover: Pixel cluster charge check not yet implemented";
145 
146  if (doPixel_ && clusterWasteSolution_) produces< edmNew::DetSetVector<SiPixelCluster> >();
147  if (doStrip_ && clusterWasteSolution_) produces< edmNew::DetSetVector<SiStripCluster> >();
148  if (clusterWasteSolution_) produces< ClusterRemovalInfo >();
149 
151  readPSet(iConfig, "Common",-1);
152  if (doPixel_) {
153  readPSet(iConfig, "Pixel" ,0,1);
154  readPSet(iConfig, "PXB" ,0);
155  readPSet(iConfig, "PXE" ,1);
156  }
157  if (doStrip_) {
158  readPSet(iConfig, "Strip" ,2,3,4,5);
159  readPSet(iConfig, "StripInner" ,2,3);
160  readPSet(iConfig, "StripOuter" ,4,5);
161  readPSet(iConfig, "TIB" ,2);
162  readPSet(iConfig, "TID" ,3);
163  readPSet(iConfig, "TOB" ,4);
164  readPSet(iConfig, "TEC" ,5);
165  }
166 
167  bool usingCharge = false;
168  for (size_t i = 0; i < NumberOfParamBlocks; ++i) {
169  if (!pblocks_[i].isSet_) throw cms::Exception("Configuration Error") << "TrackClusterRemover: Missing configuration for detector with subDetID = " << (i+1);
170  if (pblocks_[i].usesCharge_ && !usingCharge) {
171  throw cms::Exception("Configuration Error") << "TrackClusterRemover: Configuration for subDetID = " << (i+1) << " uses cluster charge, which is not enabled.";
172  }
173  }
174 
175  if (!clusterWasteSolution_){
176  produces<edm::ContainerMask<edmNew::DetSetVector<SiPixelCluster> > >();
177  produces<edm::ContainerMask<edmNew::DetSetVector<SiStripCluster> > >();
178  }
180  filterTracks_=false;
181  if (iConfig.exists("TrackQuality")){
182  filterTracks_=true;
184  minNumberOfLayersWithMeasBeforeFiltering_ = iConfig.existsAs<int>("minNumberOfLayersWithMeasBeforeFiltering") ?
185  iConfig.getParameter<int>("minNumberOfLayersWithMeasBeforeFiltering") : 0;
186  }
187 
188 }
189 
190 
192 {
193 }
194 
196  const ClusterRemovalInfo::Indices &oldRefs)
197 {
198  for (size_t i = 0, n = refs.size(); i < n; ++i) {
199  refs[i] = oldRefs[refs[i]];
200  }
201 }
202 
203 
204 template<typename T>
205 auto_ptr<edmNew::DetSetVector<T> >
206 TrackClusterRemover::cleanup(const edmNew::DetSetVector<T> &oldClusters, const std::vector<uint8_t> &isGood,
208  typedef typename edmNew::DetSetVector<T> DSV;
209  typedef typename edmNew::DetSetVector<T>::FastFiller DSF;
210  typedef typename edmNew::DetSet<T> DS;
211  auto_ptr<DSV> output(new DSV());
212  output->reserve(oldClusters.size(), oldClusters.dataSize());
213 
214  unsigned int countOld=0;
215  unsigned int countNew=0;
216 
217  // cluster removal loop
218  const T * firstOffset = & oldClusters.data().front();
219  for (typename DSV::const_iterator itdet = oldClusters.begin(), enddet = oldClusters.end(); itdet != enddet; ++itdet) {
220  DS oldDS = *itdet;
221 
222  if (oldDS.empty()) continue; // skip empty detsets
223 
224  uint32_t id = oldDS.detId();
225  DSF outds(*output, id);
226 
227  for (typename DS::const_iterator it = oldDS.begin(), ed = oldDS.end(); it != ed; ++it) {
228  uint32_t index = ((&*it) - firstOffset);
229  countOld++;
230  if (isGood[index]) {
231  outds.push_back(*it);
232  countNew++;
233  refs.push_back(index);
234  //std::cout << "TrackClusterRemover::cleanup " << typeid(T).name() << " reference " << index << " to " << (refs.size() - 1) << std::endl;
235  }
236 
237  }
238  if (outds.empty()) outds.abort(); // not write in an empty DSV
239  }
240 
241  if (oldRefs != 0) mergeOld(refs, *oldRefs);
242  return output;
243 }
244 
245 
246 void TrackClusterRemover::process(OmniClusterRef const & ocluster, uint32_t subdet, bool fromTrack) {
247  SiStripRecHit2D::ClusterRef cluster = ocluster.cluster_strip();
248  if (cluster.id() != stripSourceProdID) throw cms::Exception("Inconsistent Data") <<
249  "TrackClusterRemover: strip cluster ref from Product ID = " << cluster.id() <<
250  " does not match with source cluster collection (ID = " << stripSourceProdID << ")\n.";
251 
252  assert(cluster.id() == stripSourceProdID);
253  if (pblocks_[subdet-1].usesSize_ && (cluster->amplitudes().size() > pblocks_[subdet-1].maxSize_)) return;
254  if (!fromTrack) {
255  int clusCharge=0;
256  for( std::vector<uint8_t>::const_iterator iAmp = cluster->amplitudes().begin(); iAmp != cluster->amplitudes().end(); ++iAmp){
257  clusCharge += *iAmp;
258  }
259  if (pblocks_[subdet-1].cutOnStripCharge_ && clusCharge > pblocks_[subdet-1].minGoodStripCharge_) return;
260  }
261  strips[cluster.key()] = false;
262  //if (!clusterWasteSolution_) collectedStrip[hit->geographicalId()].insert(cluster);
263  assert(collectedStrips_.size() > cluster.key());
264  //assert(hit->geographicalId() == cluster->geographicalId()); //This condition fails
265  if (!clusterWasteSolution_) collectedStrips_[cluster.key()]=true;
266 }
267 
268 
270  DetId detid = hit->geographicalId();
271  uint32_t subdet = detid.subdetId();
272 
273  assert ((subdet > 0) && (subdet <= NumberOfParamBlocks));
274 
275  // chi2 cut
276  if (chi2 > pblocks_[subdet-1].maxChi2_) return;
277 
278  if ((subdet == PixelSubdetector::PixelBarrel) || (subdet == PixelSubdetector::PixelEndcap)) {
279  if (!doPixel_) return;
280  // this is a pixel, and i *know* it is
281  const SiPixelRecHit *pixelHit = static_cast<const SiPixelRecHit *>(hit);
282 
283  SiPixelRecHit::ClusterRef cluster = pixelHit->cluster();
284 
285  if (cluster.id() != pixelSourceProdID) throw cms::Exception("Inconsistent Data") <<
286  "TrackClusterRemover: pixel cluster ref from Product ID = " << cluster.id() <<
287  " does not match with source cluster collection (ID = " << pixelSourceProdID << ")\n.";
288 
289  assert(cluster.id() == pixelSourceProdID);
290 //DBG// cout << "HIT NEW PIXEL DETID = " << detid.rawId() << ", Cluster [ " << cluster.key().first << " / " << cluster.key().second << " ] " << endl;
291 
292  // if requested, cut on cluster size
293  if (pblocks_[subdet-1].usesSize_ && (cluster->pixels().size() > pblocks_[subdet-1].maxSize_)) return;
294 
295  // mark as used
296  pixels[cluster.key()] = false;
297 
298  //if(!clusterWasteSolution_) collectedPixel[detid.rawId()].insert(cluster);
299  assert(collectedPixels_.size() > cluster.key());
300  //assert(detid.rawId() == cluster->geographicalId()); //This condition fails
301  if(!clusterWasteSolution_) collectedPixels_[cluster.key()]=true;
302 
303  } else { // aka Strip
304  if (!doStrip_) return;
305  const type_info &hitType = typeid(*hit);
306  if (hitType == typeid(SiStripRecHit2D)) {
307  const SiStripRecHit2D *stripHit = static_cast<const SiStripRecHit2D *>(hit);
308 //DBG// cout << "Plain RecHit 2D: " << endl;
309  process(stripHit->omniClusterRef(),subdet, true);}
310  else if (hitType == typeid(SiStripRecHit1D)) {
311  const SiStripRecHit1D *hit1D = static_cast<const SiStripRecHit1D *>(hit);
312  process(hit1D->omniClusterRef(),subdet, true);
313  } else if (hitType == typeid(SiStripMatchedRecHit2D)) {
314  const SiStripMatchedRecHit2D *matchHit = static_cast<const SiStripMatchedRecHit2D *>(hit);
315 //DBG// cout << "Matched RecHit 2D: " << endl;
316  process(matchHit->monoClusterRef(),subdet, true);
317  process(matchHit->stereoClusterRef(),subdet, true);
318  } else if (hitType == typeid(ProjectedSiStripRecHit2D)) {
319  const ProjectedSiStripRecHit2D *projHit = static_cast<const ProjectedSiStripRecHit2D *>(hit);
320 //DBG// cout << "Projected RecHit 2D: " << endl;
321  process(projHit->originalHit().omniClusterRef(),subdet, true);
322  } else throw cms::Exception("NOT IMPLEMENTED") << "Don't know how to handle " << hitType.name() << " on detid " << detid.rawId() << "\n";
323  }
324 }
325 
326 /* Schematic picture of n-th step Iterative removal
327  * (that os removing clusters after n-th step tracking)
328  * clusters: [ C1 ] -> [ C2 ] -> ... -> [ Cn ] -> [ Cn + 1 ]
329  * ^ ^ ^--- OUTPUT "new" ID
330  * |-- before any removal |----- Source clusters
331  * |-- OUTPUT "old" ID |----- Hits in Traj. point here
332  * | \----- Old ClusterRemovalInfo "new" ID
333  * \-- Old ClusterRemovalInfo "old" ID
334  */
335 
336 
337 void
339 {
340  ProductID pixelOldProdID, stripOldProdID;
341 
343  if (doPixel_) {
344  iEvent.getByLabel(pixelClusters_, pixelClusters);
345  pixelSourceProdID = pixelClusters.id();
346  }
347 //DBG// std::cout << "TrackClusterRemover: Read pixel " << pixelClusters_.encode() << " = ID " << pixelSourceProdID << std::endl;
348 
350  if (doStrip_) {
351  iEvent.getByLabel(stripClusters_, stripClusters);
352  stripSourceProdID = stripClusters.id();
353  }
354 //DBG// std::cout << "TrackClusterRemover: Read strip " << stripClusters_.encode() << " = ID " << stripSourceProdID << std::endl;
355 
356  auto_ptr<ClusterRemovalInfo> cri;
358  if (doStrip_ && doPixel_) cri.reset(new ClusterRemovalInfo(pixelClusters, stripClusters));
359  else if (doStrip_) cri.reset(new ClusterRemovalInfo(stripClusters));
360  else if (doPixel_) cri.reset(new ClusterRemovalInfo(pixelClusters));
361  }
362 
363  Handle<ClusterRemovalInfo> oldRemovalInfo;
365  iEvent.getByLabel(oldRemovalInfo_, oldRemovalInfo);
366  // Check ProductIDs
367  if ( (oldRemovalInfo->stripNewRefProd().id() == stripClusters.id()) &&
368  (oldRemovalInfo->pixelNewRefProd().id() == pixelClusters.id()) ) {
369 
370  cri->getOldClustersFrom(*oldRemovalInfo);
371 
372  pixelOldProdID = oldRemovalInfo->pixelRefProd().id();
373  stripOldProdID = oldRemovalInfo->stripRefProd().id();
374 
375  } else {
376  throw cms::Exception("Inconsistent Data") << "TrackClusterRemover: " <<
377  "Input collection product IDs are [pixel: " << pixelClusters.id() << ", strip: " << stripClusters.id() << "] \n" <<
378  "\t but the *old* ClusterRemovalInfo " << oldRemovalInfo_.encode() << " refers as 'new product ids' to " <<
379  "[pixel: " << oldRemovalInfo->pixelNewRefProd().id() << ", strip: " << oldRemovalInfo->stripNewRefProd().id() << "]\n" <<
380  "NOTA BENE: when running TrackClusterRemover with an old ClusterRemovalInfo the hits in the trajectory MUST be already re-keyed.\n";
381  }
382  } else { // then Old == Source
383  pixelOldProdID = pixelSourceProdID;
384  stripOldProdID = stripSourceProdID;
385  }
386 
387  if (doStrip_) {
388  strips.resize(stripClusters->dataSize()); fill(strips.begin(), strips.end(), true);
389  }
390  if (doPixel_) {
391  pixels.resize(pixelClusters->dataSize()); fill(pixels.begin(), pixels.end(), true);
392  }
393  typedef edm::ContainerMask<edmNew::DetSetVector<SiPixelCluster> > PixelMaskContainer;
394  typedef edm::ContainerMask<edmNew::DetSetVector<SiStripCluster> > StripMaskContainer;
395  if(mergeOld_) {
398  iEvent.getByLabel(oldRemovalInfo_,oldPxlMask);
399  iEvent.getByLabel(oldRemovalInfo_,oldStrMask);
400  LogDebug("TrackClusterRemover")<<"to merge in, "<<oldStrMask->size()<<" strp and "<<oldPxlMask->size()<<" pxl";
401  oldStrMask->copyMaskTo(collectedStrips_);
402  oldPxlMask->copyMaskTo(collectedPixels_);
403  }else {
404  collectedStrips_.resize(stripClusters->dataSize()); fill(collectedStrips_.begin(), collectedStrips_.end(), false);
405  collectedPixels_.resize(pixelClusters->dataSize()); fill(collectedPixels_.begin(), collectedPixels_.end(), false);
406  }
407 
408  if (doTracks_) {
409 
410  Handle<TrajTrackAssociationCollection> trajectories_totrack;
411  iEvent.getByLabel(trajectories_,trajectories_totrack);
412 
413  std::vector<Handle<edm::ValueMap<int> > > quals;
414  if ( overrideTrkQuals_.size() > 0) {
415  quals.resize(1);
416  iEvent.getByLabel(overrideTrkQuals_[0],quals[0]);
417  }
418 
419  TrajTrackAssociationCollection::const_iterator asst=trajectories_totrack->begin();
420 
421  for ( ; asst!=trajectories_totrack->end();++asst){
422  const Track & track = *(asst->val);
423  if (filterTracks_) {
424  bool goodTk = true;
425  if ( quals.size()!=0) {
426  int qual=(*(quals[0]))[asst->val];
427  if ( qual < 0 ) {goodTk=false;}
428  //note that this does not work for some trackquals (goodIterative or undefQuality)
429  else
430  goodTk = ( qual & (1<<trackQuality_))>>trackQuality_;
431  }
432  else
433  goodTk=(track.quality(trackQuality_));
434  if ( !goodTk) continue;
436  }
437  const Trajectory &tj = *(asst->key);
438  const vector<TrajectoryMeasurement> &tms = tj.measurements();
439  vector<TrajectoryMeasurement>::const_iterator itm, endtm;
440  for (itm = tms.begin(), endtm = tms.end(); itm != endtm; ++itm) {
441  const TrackingRecHit *hit = itm->recHit()->hit();
442  if (!hit->isValid()) continue;
443  process( hit, itm->estimate() );
444  }
445  }
446  }
447 
448  if (doStripChargeCheck_) {
450  iEvent.getByLabel(stripRecHits_,"rphiRecHit", rechitsrphi);
451  const SiStripRecHit2DCollection::DataContainer * rphiRecHits = & (rechitsrphi).product()->data();
453  recHit = rphiRecHits->begin(); recHit!= rphiRecHits->end(); recHit++){
454  DetId detid = recHit->geographicalId();
455  uint32_t subdet = detid.subdetId();
456  process(recHit->omniClusterRef(),subdet,false);
457  }
459  iEvent.getByLabel(stripRecHits_,"stereoRecHit", rechitsstereo);
460  const SiStripRecHit2DCollection::DataContainer * stereoRecHits = & (rechitsstereo).product()->data();
462  recHit = stereoRecHits->begin(); recHit!= stereoRecHits->end(); recHit++){
463  DetId detid = recHit->geographicalId();
464  uint32_t subdet = detid.subdetId();
465  process(recHit->omniClusterRef(),subdet,false);
466  }
467 
468  }
469 // if(doPixelChargeCheck_) {
470 // edm::Handle<SiPixelRecHitCollection> pixelrechits;
471 // iEvent.getByLabel(pixelRecHits_,pixelrechits);
472 // }
473 
475  auto_ptr<edmNew::DetSetVector<SiPixelCluster> > newPixelClusters = cleanup(*pixelClusters, pixels,
476  cri->pixelIndices(), mergeOld_ ? &oldRemovalInfo->pixelIndices() : 0);
477  OrphanHandle<edmNew::DetSetVector<SiPixelCluster> > newPixels = iEvent.put(newPixelClusters);
478 //DBG// std::cout << "TrackClusterRemover: Wrote pixel " << newPixels.id() << " from " << pixelSourceProdID << std::endl;
479  cri->setNewPixelClusters(newPixels);
480  }
482  auto_ptr<edmNew::DetSetVector<SiStripCluster> > newStripClusters = cleanup(*stripClusters, strips,
483  cri->stripIndices(), mergeOld_ ? &oldRemovalInfo->stripIndices() : 0);
484  OrphanHandle<edmNew::DetSetVector<SiStripCluster> > newStrips = iEvent.put(newStripClusters);
485 //DBG// std::cout << "TrackClusterRemover: Wrote strip " << newStrips.id() << " from " << stripSourceProdID << std::endl;
486  cri->setNewStripClusters(newStrips);
487  }
488 
489 
490  if (clusterWasteSolution_) {
491  // double fraction_pxl= cri->pixelIndices().size() / (double) pixels.size();
492  // double fraction_strp= cri->stripIndices().size() / (double) strips.size();
493  // edm::LogWarning("TrackClusterRemover")<<" fraction: " << fraction_pxl <<" "<<fraction_strp;
494  iEvent.put(cri);
495  }
496 
497  pixels.clear(); strips.clear();
498 
499  if (!clusterWasteSolution_){
500  //auto_ptr<edmNew::DetSetVector<SiPixelClusterRefNew> > removedPixelClsuterRefs(new edmNew::DetSetVector<SiPixelClusterRefNew>());
501  //auto_ptr<edmNew::DetSetVector<SiStripRecHit1D::ClusterRef> > removedStripClsuterRefs(new edmNew::DetSetVector<SiStripRecHit1D::ClusterRef>());
502 
503  std::auto_ptr<StripMaskContainer> removedStripClusterMask(
504  new StripMaskContainer(edm::RefProd<edmNew::DetSetVector<SiStripCluster> >(stripClusters),collectedStrips_));
505  LogDebug("TrackClusterRemover")<<"total strip to skip: "<<std::count(collectedStrips_.begin(),collectedStrips_.end(),true);
506  iEvent.put( removedStripClusterMask );
507 
508  std::auto_ptr<PixelMaskContainer> removedPixelClusterMask(
509  new PixelMaskContainer(edm::RefProd<edmNew::DetSetVector<SiPixelCluster> >(pixelClusters),collectedPixels_));
510  LogDebug("TrackClusterRemover")<<"total pxl to skip: "<<std::count(collectedPixels_.begin(),collectedPixels_.end(),true);
511  iEvent.put( removedPixelClusterMask );
512 
513  }
514 
515 
516 }
517 
#define LogDebug(id)
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
edm::InputTag stripClusters_
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator begin() const
size_type dataSize() const
string fill
Definition: lumiContext.py:319
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:187
static const unsigned int NumberOfParamBlocks
ParamBlock pblocks_[NumberOfParamBlocks]
std::vector< data_type > DataContainer
edm::InputTag pixelClusters_
ProductID id() const
Definition: HandleBase.cc:15
ParamBlock(const edm::ParameterSet &iConfig)
TrackQuality
track quality
Definition: TrackBase.h:95
#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)
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:164
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:215
int iEvent
Definition: GenABIO.cc:243
edm::ProductID stripSourceProdID
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:94
int trackerLayersWithMeasurement() const
Definition: HitPattern.h:721
ClusterStripRef cluster_strip() const
data_type const * data(size_t cell) const
std::vector< uint8_t > pixels
const_iterator end() const
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:223
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:361
void reset()
Definition: ProductID.h:39
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
std::vector< bool > collectedStrips_
bool isValid() const
bool quality(const TrackQuality) const
Track quality.
Definition: TrackBase.h:377
std::vector< edm::InputTag > overrideTrkQuals_
size_type size() const
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
edm::ProductID pixelSourceProdID
DetId geographicalId() const
long double T
const SiStripRecHit2D & originalHit() const
std::vector< bool > collectedPixels_
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)
Pixel Reconstructed Hit.