CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackAssociatorByHits.h
Go to the documentation of this file.
1 #ifndef TrackAssociatorByHits_h
2 #define TrackAssociatorByHits_h
3 
11 
12 //reco track
16 //TrackingParticle
20 
22 
23  public:
24 
26 
27  explicit TrackAssociatorByHits( const edm::ParameterSet& );
29 
30  /* Associate SimTracks to RecoTracks By Hits */
31 
35  const edm::Event * event ,
36  const edm::EventSetup * setup ) const ;
40  const edm::Event * event ,
41  const edm::EventSetup * setup ) const ;
42 
46  const edm::Event * event ,
47  const edm::EventSetup * setup ) const {
48  return TrackAssociatorBase::associateRecoToSim(tCH,tPCH,event,setup);
49  }
50 
54  const edm::Event * event ,
55  const edm::EventSetup * setup ) const {
56  return TrackAssociatorBase::associateSimToReco(tCH,tPCH,event,setup);
57  }
58 
59  //seed
62  const edm::Event * event ,
63  const edm::EventSetup * setup ) const;
64 
67  const edm::Event * event ,
68  const edm::EventSetup * setup ) const;
69  template<typename iter>
70  void getMatchedIds(std::vector<SimHitIdpr>&,
71  std::vector<SimHitIdpr>&,
72  int&,
73  iter,
74  iter,
75  TrackerHitAssociator*) const;
76 
77  int getShared(std::vector<SimHitIdpr>&,
78  std::vector<SimHitIdpr>&,
79  TrackingParticleCollection::const_iterator) const;
80 
81  template<typename iter>
82  int getDoubleCount(iter,iter,TrackerHitAssociator*,TrackingParticleCollection::const_iterator) const;
83 
84  private:
85  // ----- member data
89  const double quality_SimToReco;
90  const double purity_SimToReco;
91  const double cut_RecoToSim;
92  const bool UsePixels;
93  const bool UseGrouped;
94  const bool UseSplitting;
96 
98  const TrackingRecHit* getHitPtr(trackingRecHit_iterator iter) const {return &**iter;}
99 
101 };
102 
103 #endif
TrackAssociatorByHits(const edm::ParameterSet &)
void getMatchedIds(std::vector< SimHitIdpr > &, std::vector< SimHitIdpr > &, int &, iter, iter, TrackerHitAssociator *) const
int getShared(std::vector< SimHitIdpr > &, std::vector< SimHitIdpr > &, TrackingParticleCollection::const_iterator) const
reco::SimToRecoCollection associateSimToReco(const edm::RefToBaseVector< reco::Track > &, const edm::RefVector< TrackingParticleCollection > &, const edm::Event *event, const edm::EventSetup *setup) const
Association Sim To Reco with Collections.
const TrackingRecHit * getHitPtr(edm::OwnVector< TrackingRecHit >::const_iterator iter) const
reco::RecoToSimCollection associateRecoToSim(const edm::RefToBaseVector< reco::Track > &, const edm::RefVector< TrackingParticleCollection > &, const edm::Event *event, const edm::EventSetup *setup) const
Association Reco To Sim with Collections.
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
virtual reco::RecoToSimCollection associateRecoToSim(edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event, const edm::EventSetup *setup) const
compare reco to sim the handle of reco::Track and TrackingParticle collections
const TrackingRecHit * getHitPtr(trackingRecHit_iterator iter) const
virtual reco::SimToRecoCollection associateSimToReco(edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event, const edm::EventSetup *setup) const
compare reco to sim the handle of reco::Track and TrackingParticle collections
reco::SimToRecoCollection associateSimToReco(edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event, const edm::EventSetup *setup) const
compare reco to sim the handle of reco::Track and TrackingParticle collections
const edm::ParameterSet & conf_
int getDoubleCount(iter, iter, TrackerHitAssociator *, TrackingParticleCollection::const_iterator) const
reco::RecoToSimCollection associateRecoToSim(edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event, const edm::EventSetup *setup) const
compare reco to sim the handle of reco::Track and TrackingParticle collections
SimToRecoDenomType SimToRecoDenominator
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")