CMS 3D CMS Logo

ConvBremSeedProducer.cc
Go to the documentation of this file.
3 
11 
17 
28 
44 
46 
47 using namespace edm;
48 using namespace std;
49 using namespace reco;
50 
52  conf_(iConfig),
53  fieldMap_(nullptr),
54  layerMap_(56, static_cast<const DetLayer*>(nullptr)),
55  negLayerOffset_(27)
56 {
57  produces<ConvBremSeedCollection>();
58 }
59 
60 
62 {
63 
64 
65 }
66 
67 
68 void
70 {
71 
72  LogDebug("ConvBremSeedProducerProducer")<<"START event: "<<iEvent.id().event()
73  <<" in run "<<iEvent.id().run();
74 
75  float pfmass= 0.0005;
76 
78 
81  iEvent.getByLabel(conf_.getParameter<InputTag>("PFClusters") ,PfC);
82  const PFClusterCollection& PPP= *(PfC.product());
83 
86  iEvent.getByLabel(conf_.getParameter<InputTag>("pixelRecHits") , pixelHits);
87 
90  iEvent.getByLabel(conf_.getParameter<InputTag>("rphirecHits"),rphirecHits);
92  iEvent.getByLabel(conf_.getParameter<InputTag>("stereorecHits"), stereorecHits);
94  iEvent.getByLabel(conf_.getParameter<InputTag>("matchedrecHits"), matchedrecHits);
95 
96  //GSFPFRECTRACKS
97  Handle<GsfPFRecTrackCollection> thePfRecTrackCollection;
98  iEvent.getByLabel(conf_.getParameter<InputTag>("PFRecTrackLabel"),
99  thePfRecTrackCollection);
100  const GsfPFRecTrackCollection PfRTkColl = *(thePfRecTrackCollection.product());
101 
102 
104  auto output = std::make_unique<ConvBremSeedCollection>();
105 
106 
108  vector<pair< TrajectorySeed , pair<GlobalVector,float> > > unclean;
109  //TRIPLET OF MODULES TO BE USED FOR SEEDING
110  vector< vector< long int > > tripl;
111  //LAYER MAP
113 
114 
115 
117 
118  for(unsigned int ipft=0;ipft<PfRTkColl.size();ipft++){
119  GsfPFRecTrackRef pft(thePfRecTrackCollection,ipft);
120  LogDebug("ConvBremSeedProducerProducer")<<"NEW GsfPFRecTRACK ";
121  float eta_br=0;
122  unclean.clear();
123  tripl.clear();
124  vector<int> gc;
125  auto const & gsfRecHits = *pft->gsfTrackRef();
126  float pfoutenergy=sqrt((pfmass*pfmass)+pft->gsfTrackRef()->outerMomentum().Mag2());
127  XYZTLorentzVector mom =XYZTLorentzVector(pft->gsfTrackRef()->outerMomentum().x(),
128  pft->gsfTrackRef()->outerMomentum().y(),
129  pft->gsfTrackRef()->outerMomentum().z(),
130  pfoutenergy);
131  XYZTLorentzVector pos = XYZTLorentzVector(pft->gsfTrackRef()->outerPosition().x(),
132  pft->gsfTrackRef()->outerPosition().y(),
133  pft->gsfTrackRef()->outerPosition().z(),
134  0.);
136  0,0,B_.z());
137  theOutParticle.setCharge(pft->gsfTrackRef()->charge());
138 
140  gc.push_back(GoodCluster(theOutParticle,PPP,0.5));
141 
142 
143  vector<PFBrem> brem =(*pft).PFRecBrem();
144  vector<PFBrem>::iterator ib=brem.begin();
145  vector<PFBrem>::iterator ib_end=brem.end();
146  LogDebug("ConvBremSeedProducerProducer")<<"NUMBER OF BREMS "<<brem.size();
147 
149  for (;ib!=ib_end;++ib){
150 
151  XYZTLorentzVector mom=pft->trajectoryPoint(ib->indTrajPoint()).momentum();
152  XYZTLorentzVector pos=
154  pft->trajectoryPoint(ib->indTrajPoint()).position().x(),
155  pft->trajectoryPoint(ib->indTrajPoint()).position().y(),
156  pft->trajectoryPoint(ib->indTrajPoint()).position().z(),
157  0);
158 
160  if (pos.Rho()>80) continue;
161  if ((pos.Rho()>5)&&(fabs(ib->SigmaDeltaP()/ib->DeltaP())>3)) continue;
162  if (fabs(ib->DeltaP())<3) continue;
163  eta_br=mom.eta();
164  vector< vector< long int > >Idd;
165 
166 
167 
169  0,0,B_.z());
170  p.setCharge(0);
171  gc.push_back(GoodCluster(p,PPP,0.2));
172 
174 
176  list<TrackerLayer>::const_iterator cyliter= geometry_->cylinderBegin();
177  for ( ; cyliter != geometry_->cylinderEnd() ; ++cyliter ) {
178 
180  if (!(cyliter->sensitive())) continue;
181  PP.setPropagationConditions(*cyliter);
182  PP.propagate();
183  if (PP.getSuccess()==0) continue;
184 
187  AnalyticalPropagator alongProp(&mf, anyDirection);
189  const DetLayer* tkLayer = detLayer(*cyliter,PP.Z());
190  if (&(*tkLayer)==nullptr) continue;
191  TrajectoryStateOnSurface trajState = makeTrajectoryState( tkLayer, PP, &mf);
192 
193  std::vector<DetWithState> compat
194  = tkLayer->compatibleDets( trajState, alongProp, est);
195  vector <long int> temp;
196  if (compat.empty()) continue;
197 
198  for (std::vector<DetWithState>::const_iterator i=compat.begin(); i!=compat.end(); i++) {
199 
200  long int detid=i->first->geographicalId().rawId();
201 
203 
204 
205  StDetMatch DetMatch = (rphirecHits.product())->find((detid));
206  MatDetMatch MDetMatch =(matchedrecHits.product())->find((detid));
207 
208 
209  long int DetID=(DetMatch != rphirecHits->end())? detid:0;
210 
211  if ((MDetMatch != matchedrecHits->end()) && !MDetMatch->empty()) {
212  long int pii = MDetMatch->begin()->monoId();
213  StDetMatch CDetMatch = (rphirecHits.product())->find((pii));
214  DetID=(CDetMatch != rphirecHits->end())? pii:0;
215 
216  }
217 
218  temp.push_back(DetID);
219 
220  }
221  else{
222  PiDetMatch DetMatch = (pixelHits.product())->find((detid));
223  long int DetID=(DetMatch != pixelHits->end())? detid:0;
224  temp.push_back(DetID);
225 
226 
227  }
228  }
229 
230  Idd.push_back(temp);
231 
232  }//END TRACKER LAYER LOOP
233  if(Idd.size()<2)continue;
234 
236  for (unsigned int i=0;i<Idd.size()-2;i++){
237  for (unsigned int i1=0;i1<Idd[i].size();i1++){
238  for (unsigned int i2=0;i2<Idd[i+1].size();i2++){
239  for (unsigned int i3=0;i3<Idd[i+2].size();i3++){
240  if ((Idd[i][i1]!=0) &&(Idd[i+1][i2]!=0) &&(Idd[i+2][i3]!=0) ){
241  vector<long int >tmp;
242  tmp.push_back(Idd[i][i1]); tmp.push_back(Idd[i+1][i2]); tmp.push_back(Idd[i+2][i3]);
243 
244  bool newTrip=true;
245  for (unsigned int iv=0;iv<tripl.size();iv++){
246  if((tripl[iv][0]==tmp[0])&&(tripl[iv][1]==tmp[1])&&(tripl[iv][2]==tmp[2])) newTrip=false;
247 
248  }
249  if (newTrip){
250 
251  tripl.push_back(tmp);
252  }
253  }
254  }
255  }
256  }
257  }
258  }//END BREM LOOP
259 
260  float sineta_brem =sinh(eta_br);
261 
262 
263  //OUTPUT COLLECTION
265  iSetup.get<IdealMagneticFieldRecord>().get(bfield);
266  float nomField = bfield->nominalValue();
267 
268 
270  OwnVector<TrackingRecHit> loc_hits;
271  for (unsigned int i=0;i<tripl.size();i++){
272  StDetMatch DetMatch1 = (rphirecHits.product())->find(tripl[i][0]);
273  StDetMatch DetMatch2 = (rphirecHits.product())->find(tripl[i][1]);
274  StDetMatch DetMatch3 = (rphirecHits.product())->find(tripl[i][2]);
275  if ((DetMatch1 == rphirecHits->end()) ||
276  (DetMatch2 == rphirecHits->end()) ||
277  (DetMatch3 == rphirecHits->end()) ) continue;
278  StDetSet DetSet1 = *DetMatch1;
279  StDetSet DetSet2 = *DetMatch2;
280  StDetSet DetSet3 = *DetMatch3;
281 
282  for (StDetSet::const_iterator it1=DetSet1.begin();it1!=DetSet1.end();++it1){
283  GlobalPoint gp1=tracker_->idToDet(tripl[i][0])->surface().
284  toGlobal(it1->localPosition());
285 
286  bool tak1=isGsfTrack(gsfRecHits,&(*it1));
287 
288  for (StDetSet::const_iterator it2=DetSet2.begin();it2!=DetSet2.end();++it2){
289  GlobalPoint gp2=tracker_->idToDet(tripl[i][1])->surface().
290  toGlobal(it2->localPosition());
291  bool tak2=isGsfTrack(gsfRecHits,&(*it2));
292 
293  for (StDetSet::const_iterator it3=DetSet3.begin();it3!=DetSet3.end();++it3){
294  // ips++;
295  GlobalPoint gp3=tracker_->idToDet(tripl[i][2])->surface().
296  toGlobal(it3->localPosition());
297  bool tak3=isGsfTrack(gsfRecHits,&(*it3));
298 
299 
300  FastHelix helix(gp3, gp2, gp1,nomField,&*bfield);
301  GlobalVector gv=helix.stateAtVertex().momentum();
302  GlobalVector gv_corr(gv.x(),gv.y(),gv.perp()*sineta_brem);
303  float ene= sqrt(gv_corr.mag2()+(pfmass*pfmass));
304 
306  float ch=helix.stateAtVertex().charge();
307 
308 
309 
310 
311  XYZTLorentzVector mom = XYZTLorentzVector(gv.x(),gv.y(),gv_corr.z(),ene);
312  XYZTLorentzVector pos = XYZTLorentzVector(gp.x(),gp.y(),gp.z(),0.);
313  BaseParticlePropagator theOutParticle(RawParticle(mom,pos),0,0,B_.z());
314  theOutParticle.setCharge(ch);
315  int bgc=GoodCluster(theOutParticle,PPP,0.3,true);
316 
317  if (gv.perp()<0.5) continue;
318 
319  if (tak1+tak2+tak3>2) continue;
320 
321  if (bgc==-1) continue;
322  bool clTak=false;
323  for (unsigned int igcc=0; igcc<gc.size(); igcc++){
324  if (clTak) continue;
325  if (bgc==gc[igcc]) clTak=true;
326  }
327  if (clTak) continue;
328 
329 
330 
331 
333  gv,int(ch),
334  &(*magfield_));
335  glob_hits.clear(); loc_hits.clear();
336  glob_hits.push_back(hitBuilder_->build(it1->clone()));
337  glob_hits.push_back(hitBuilder_->build(it2->clone()));
338  glob_hits.push_back(hitBuilder_->build(it3->clone()));
339 
341 
342  FreeTrajectoryState CSeed(Gtp,
345 
346  for (int ih=0;ih<3;ih++){
347 
348  TrajectoryStateOnSurface state = (ih==0)?
349  propagator_->propagate(CSeed,
350  tracker_->idToDet(tripl[i][ih])->surface()):
351  propagator_->propagate(updatedState,
352  tracker_->idToDet(tripl[i][ih])->surface());
353 
354  if (!state.isValid()){
355  ih=3;
356  continue;}
357 
358  updatedState = kfUpdator_->update(state, *glob_hits[ih]);
359  loc_hits.push_back(glob_hits[ih]->hit()->clone());
360  if (ih==2){
361  PTrajectoryStateOnDet const & PTraj=
362  trajectoryStateTransform::persistentState(updatedState,tripl[i][2]);
363  // output->push_back(Trajectoryseed(PTraj,loc_hits,alongMomentum));
364  unclean.push_back(make_pair(TrajectorySeed(PTraj,loc_hits,alongMomentum),
365  make_pair(gv_corr,ch)));
366  }
367  // }
368 
369  }
370  }
371  }
372  }
373  }
374  vector<bool> inPhot = sharedHits(unclean);
375  for (unsigned int iu=0; iu<unclean.size();iu++){
376 
377  if (inPhot[iu])
378  output->push_back(ConvBremSeed(unclean[iu].first,pft));
379 
380  }
381 
382  } //END GSF TRACK COLLECTION LOOP
383  LogDebug("ConvBremSeedProducerProducer")<<"END";
384  iEvent.put(std::move(output));
385 
386 }
387 
388 
389 void
391  const EventSetup& iSetup)
392 {
394  iSetup.get<TrackerRecoGeometryRecord>().get( track );
395  geomSearchTracker_ = track.product();
396 
397  ESHandle<TrackerInteractionGeometry> theTrackerInteractionGeometry;
398  iSetup.get<TrackerInteractionGeometryRecord>().get(theTrackerInteractionGeometry );
399  geometry_=theTrackerInteractionGeometry.product();
400 
402  iSetup.get<TrackerDigiGeometryRecord>().get(tracker);
403  tracker_=tracker.product();
404 
405  ESHandle<MagneticField> magfield;
406  iSetup.get<IdealMagneticFieldRecord>().get(magfield);
407  magfield_=magfield.product();
408  B_=magfield_->inTesla(GlobalPoint(0,0,0));
409 
411  iSetup.get<MagneticFieldMapRecord>().get(fieldMap);
412  fieldMap_ =fieldMap.product();
413 
414 
415 
417  iSetup.get<TransientRecHitRecord>().get(conf_.getParameter<string>("TTRHBuilder"),hitBuilder);
418  hitBuilder_= hitBuilder.product();
419 
420  propagator_ = new PropagatorWithMaterial(alongMomentum,0.0005,&(*magfield) );
421  kfUpdator_ = new KFUpdator();
422 }
423 
424 void
426  const EventSetup& iSetup) {
427  delete propagator_;
428  delete kfUpdator_;
429 }
430 
431 void
433 {
434 
435 
436  // These are the BoundSurface&, the BoundDisk* and the BoundCylinder* for that layer
437  // const BoundSurface& theSurface = layer.surface();
438  // BoundDisk* theDisk = layer.disk(); // non zero for endcaps
439  // BoundCylinder* theCylinder = layer.cylinder(); // non zero for barrel
440  // int theLayer = layer.layerNumber(); // 1->3 PixB, 4->5 PixD,
441  // // 6->9 TIB, 10->12 TID,
442  // // 13->18 TOB, 19->27 TEC
443 
446 
447  const std::vector< const BarrelDetLayer*>& barrelLayers =
449  LogDebug("FastTracker") << "Barrel DetLayer dump: ";
450  for (auto bl=barrelLayers.begin();
451  bl != barrelLayers.end(); ++bl) {
452  LogDebug("FastTracker")<< "radius " << (**bl).specificSurface().radius();
453  }
454 
455  const std::vector< const ForwardDetLayer*>& posForwardLayers =
457  LogDebug("FastTracker") << "Positive Forward DetLayer dump: ";
458  for (auto fl=posForwardLayers.begin();
459  fl != posForwardLayers.end(); ++fl) {
460  LogDebug("FastTracker") << "Z pos "
461  << (**fl).surface().position().z()
462  << " radii "
463  << (**fl).specificSurface().innerRadius()
464  << ", "
465  << (**fl).specificSurface().outerRadius();
466  }
467 
468  const float rTolerance = 1.5;
469  const float zTolerance = 3.;
470 
471  LogDebug("FastTracker")<< "Dump of TrackerInteractionGeometry cylinders:";
472  for( std::list<TrackerLayer>::const_iterator i=geometry_->cylinderBegin();
473  i!=geometry_->cylinderEnd(); ++i) {
474  const BoundCylinder* cyl = i->cylinder();
475  const BoundDisk* disk = i->disk();
476 
477  LogDebug("FastTracker") << "Famos Layer no " << i->layerNumber()
478  << " is sensitive? " << i->sensitive()
479  << " pos " << i->surface().position();
480  if (!i->sensitive()) continue;
481 
482  if (cyl != nullptr) {
483 
484  LogDebug("FastTracker") << " cylinder radius " << cyl->radius();
485  bool found = false;
486 
487  for (auto
488  bl=barrelLayers.begin(); bl != barrelLayers.end(); ++bl) {
489 
490  if (fabs( cyl->radius() - (**bl).specificSurface().radius()) < rTolerance) {
491 
492  layerMap_[i->layerNumber()] = *bl;
493  found = true;
494  LogDebug("FastTracker")<< "Corresponding DetLayer found with radius "
495  << (**bl).specificSurface().radius();
496 
497  break;
498  }
499  }
500  if (!found) {
501  LogError("FastTracker") << "FAILED to find a corresponding DetLayer!";
502  }
503  }
504  else {
505  LogDebug("FastTracker") << " disk radii " << disk->innerRadius()
506  << ", " << disk->outerRadius();
507 
508  bool found = false;
509 
510  for (auto fl=posForwardLayers.begin();
511  fl != posForwardLayers.end(); ++fl) {
512  if (fabs( disk->position().z() - (**fl).surface().position().z()) < zTolerance) {
513  layerMap_[i->layerNumber()] = *fl;
514  found = true;
515  LogDebug("FastTracker") << "Corresponding DetLayer found with Z pos "
516  << (**fl).surface().position().z()
517  << " and radii "
518  << (**fl).specificSurface().innerRadius()
519  << ", "
520  << (**fl).specificSurface().outerRadius();
521  break;
522  }
523  }
524  if (!found) {
525  LogError("FastTracker") << "FAILED to find a corresponding DetLayer!";
526  }
527  }
528  }
529 
530 }
531 const DetLayer* ConvBremSeedProducer::detLayer( const TrackerLayer& layer, float zpos) const
532 {
533  if (zpos > 0 || !layer.forward() ) return layerMap_[layer.layerNumber()];
534  else return layerMap_[layer.layerNumber()+negLayerOffset_];
535 }
536 
539  const ParticlePropagator& pp,
540  const MagneticField* field) const
541 {
542 
543  GlobalPoint pos( pp.X(), pp.Y(), pp.Z());
544  GlobalVector mom( pp.Px(), pp.Py(), pp.Pz());
545 
546  auto plane = layer->surface().tangentPlane(pos);
547 
549  (GlobalTrajectoryParameters( pos, mom, TrackCharge( pp.charge()), field), *plane);
550 }
552  auto ib=tkv.recHitsBegin();
553  auto ie=tkv.recHitsEnd();
554  bool istaken=false;
555  // for (;ib!=ie-2;++ib){
556  for (;ib!=ie;++ib){
557  if (istaken) continue;
558  if (!((*ib)->isValid())) continue;
559 
560  istaken = (*ib)->sharesInput(h,TrackingRecHit::all);
561  }
562  return istaken;
563 }
564 vector<bool> ConvBremSeedProducer::sharedHits( const vector<pair< TrajectorySeed,
565  pair<GlobalVector,float> > >& unclean){
566 
567  vector<bool> goodseed;
568  goodseed.clear();
569  if (unclean.size()<2){
570  for (unsigned int i=0;i<unclean.size();i++)
571  goodseed.push_back(true);
572  }else{
573 
574  for (unsigned int i=0;i<unclean.size();i++)
575  goodseed.push_back(true);
576 
577  for (unsigned int iu=0; iu<unclean.size()-1;iu++){
578  if (!goodseed[iu]) continue;
579  for (unsigned int iu2=iu+1; iu2<unclean.size();iu2++){
580  if (!goodseed[iu]) continue;
581  if (!goodseed[iu2]) continue;
582  // if (unclean[iu].second.second *unclean[iu2].second.second >0)continue;
583 
584  TrajectorySeed::const_iterator sh = unclean[iu].first.recHits().first;
585  TrajectorySeed::const_iterator sh_end = unclean[iu].first.recHits().second;
586 
587  unsigned int shar =0;
588  for (;sh!=sh_end;++sh){
589 
590  TrajectorySeed::const_iterator sh2 = unclean[iu2].first.recHits().first;
591  TrajectorySeed::const_iterator sh2_end = unclean[iu2].first.recHits().second;
592  for (;sh2!=sh2_end;++sh2){
593 
594  if ((*sh).sharesInput(&(*sh2),TrackingRecHit::all))
595 
596  shar++;
597 
598  }
599  }
600  if (shar>=2){
601  if (unclean[iu].second.first.perp()<unclean[iu2].second.first.perp()) goodseed[iu]=false;
602  else goodseed[iu2]=false;
603  }
604 
605  }
606 
607  }
608  }
609  return goodseed;
610 }
611 
612 
613 
614 int ConvBremSeedProducer::GoodCluster(const BaseParticlePropagator& ubpg, const PFClusterCollection& pfc, float minep, bool sec){
615 
616  BaseParticlePropagator bpg = ubpg;
617  bpg.propagateToEcalEntrance(false);
618  float dr=1000;
619  float de=1000;
620  float df=1000;
621  int ibest=-1;
622 
623  if(bpg.getSuccess()!=0){
624 
625  for (unsigned int i =0; i<pfc.size();i++ ){
626  float tmp_ep=pfc[i].energy()/bpg.momentum().e();
627  float tmp_phi=fabs(pfc[i].position().phi()-bpg.vertex().phi());
628  if (tmp_phi>TMath::TwoPi()) tmp_phi-= TMath::TwoPi();
629  float tmp_eta=fabs(pfc[i].position().eta()-bpg.vertex().eta());
630  float tmp_dr=sqrt(pow(tmp_phi,2)+pow(tmp_eta,2));
631  bool isBet=(tmp_dr<dr);
632  if (sec) isBet=(tmp_phi<df);
633  if ((isBet)&&(tmp_ep>minep)&&(tmp_ep<10)){
634  dr=tmp_dr;
635  de=tmp_eta;
636  df=tmp_phi;
637  ibest=i;
638  }
639  }
640  bool isBad=(dr>0.1);
641  if (sec) isBad= ((df>0.25) || (de>0.5));
642 
643  if (isBad) ibest=-1;
644 
645  }
646  return ibest;
647 }
648 
#define LogDebug(id)
RunNumber_t run() const
Definition: EventID.h:39
const double TwoPi
const MagneticField * magfield_
void setCharge(float q)
set the MEASURED charge
Definition: RawParticle.cc:139
T getParameter(std::string const &) const
EventNumber_t event() const
Definition: EventID.h:41
const GeometricSearchTracker * geomSearchTracker_
const TransientTrackingRecHitBuilder * hitBuilder_
ConvBremSeedProducer(const edm::ParameterSet &)
const_iterator end(bool update=false) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:137
virtual ConstReferenceCountingPointer< TangentPlane > tangentPlane(const GlobalPoint &) const =0
T perp() const
Definition: PV3DBase.h:72
SiStripMatchedRecHit2DCollection::const_iterator MatDetMatch
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
std::vector< ForwardDetLayer const * > const & posForwardLayers() const
unsigned int layerNumber() const
Returns the layer number.
Definition: TrackerLayer.h:82
int nominalValue() const
The nominal field value for this map in kGauss.
Definition: MagneticField.h:58
bool forward() const
Is the layer forward ?
Definition: TrackerLayer.h:70
ROOT::Math::SMatrixIdentity AlgebraicMatrixID
virtual SubDetector subDetector() const =0
The type of detector (PixelBarrel, PixelEndcap, TIB, TOB, TID, TEC, CSC, DT, RPCBarrel, RPCEndcap)
edm::ParameterSet conf_
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
PTrajectoryStateOnDet persistentState(const TrajectoryStateOnSurface &ts, unsigned int detid)
const PropagatorWithMaterial * propagator_
T y() const
Definition: PV3DBase.h:63
std::list< TrackerLayer >::const_iterator cylinderEnd() const
Returns the last pointer in the cylinder list.
int getSuccess() const
Has propagation been performed and was barrel or endcap reached ?
TrajectoryStateOnSurface makeTrajectoryState(const DetLayer *layer, const ParticlePropagator &pp, const MagneticField *field) const
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
data_type const * const_iterator
Definition: DetSetNew.h:30
#define nullptr
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:42
virtual std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
SiPixelRecHitCollection::const_iterator PiDetMatch
const KFUpdator * kfUpdator_
const TrackerInteractionGeometry * geometry_
const MagneticFieldMap * fieldMap_
U second(std::pair< T, U > const &p)
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
bool isGsfTrack(const reco::Track &, const TrackingRecHit *)
int TrackCharge
Definition: TrackCharge.h:4
void push_back(D *&d)
Definition: OwnVector.h:290
TrajectoryStateOnSurface update(const TrajectoryStateOnSurface &, const TrackingRecHit &) const override
Definition: KFUpdator.cc:169
int iEvent
Definition: GenABIO.cc:230
const XYZTLorentzVector & momentum() const
the momentum fourvector
Definition: RawParticle.h:286
math::XYZVector B_
B field.
std::vector< GsfPFRecTrack > GsfPFRecTrackCollection
collection of GsfPFRecTrack objects
void produce(edm::Event &, const edm::EventSetup &) override
recHitContainer::const_iterator const_iterator
T sqrt(T t)
Definition: SSEVec.h:18
T z() const
Definition: PV3DBase.h:64
double Y() const
y of vertex
Definition: RawParticle.h:275
void clear()
Definition: OwnVector.h:445
double Z() const
z of vertex
Definition: RawParticle.h:276
void setPropagationConditions(const TrackerLayer &, bool firstLoop=true)
virtual const BoundSurface & surface() const =0
The surface of the GeometricSearchDet.
double charge() const
get the MEASURED charge
Definition: RawParticle.h:282
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
Definition: Track.h:104
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:535
virtual GlobalVector inTesla(const GlobalPoint &gp) const =0
Field value ad specified global point, in Tesla.
bool propagateToEcalEntrance(bool first=true)
virtual RecHitPointer build(const TrackingRecHit *p) const =0
build a tracking rechit from an existing rechit
std::vector< const DetLayer * > layerMap_
std::vector< ConstRecHitPointer > ConstRecHitContainer
const XYZTLorentzVector & vertex() const
the vertex fourvector
Definition: RawParticle.h:285
std::vector< bool > sharedHits(const std::vector< std::pair< TrajectorySeed, std::pair< GlobalVector, float > > > &)
T const * product() const
Definition: Handle.h:81
const DetLayer * detLayer(const TrackerLayer &layer, float zpos) const
std::list< TrackerLayer >::const_iterator cylinderBegin() const
Returns the first pointer in the cylinder list.
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
void beginRun(const edm::Run &, const edm::EventSetup &) override
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
Definition: Propagator.h:53
double X() const
x of vertex
Definition: RawParticle.h:274
void endRun(const edm::Run &, const edm::EventSetup &) override
double getMagneticField() const
Get the magnetic field.
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
edm::EventID id() const
Definition: EventBase.h:60
fixed size matrix
HLT enums.
iterator end()
Definition: DetSetNew.h:70
static int position[264][3]
Definition: ReadPGInfo.cc:509
T get() const
Definition: EventSetup.h:63
SiStripRecHit2DCollection::const_iterator StDetMatch
const TrackerGeomDet * idToDet(DetId) const override
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
Definition: PFClusterFwd.h:9
GlobalTrajectoryParameters stateAtVertex() const
Definition: FastHelix.h:65
int GoodCluster(const BaseParticlePropagator &bpg, const reco::PFClusterCollection &pfc, float minep, bool sec=false)
const TrackerGeometry * tracker_
T x() const
Definition: PV3DBase.h:62
T const * product() const
Definition: ESHandle.h:86
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
def move(src, dest)
Definition: eostools.py:510
bool isTrackerPixel(GeomDetEnumerators::SubDetector m)
Definition: Run.h:44
std::vector< BarrelDetLayer const * > const & barrelLayers() const
ib
Definition: cuy.py:661
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.
Definition: Track.h:109
iterator begin()
Definition: DetSetNew.h:67