CMS 3D CMS Logo

MuonAssociatorByHits.h
Go to the documentation of this file.
1 #ifndef MuonAssociatorByHits_h
2 #define MuonAssociatorByHits_h
3 
15 
18 
19 #include <memory>
20 
22  class InputDumper;
23 }
24 
26 
27  public:
28 
30  virtual ~MuonAssociatorByHits();
31 
32  // Originally from TrackAssociatorBase from where this class used to inherit from
35  const edm::Event * event ,
36  const edm::EventSetup * setup ) const {
38  for (unsigned int j=0; j<tCH->size();j++)
39  tc.push_back(tCH->refAt(j));
40 
42  for (unsigned int j=0; j<tPCH->size();j++)
44 
45  return associateRecoToSim(tc,tpc,event,setup);
46  }
47 
50  const edm::Event * event ,
51  const edm::EventSetup * setup ) const {
53  for (unsigned int j=0; j<tCH->size();j++)
54  tc.push_back(tCH->refAt(j));
55 
57  for (unsigned int j=0; j<tPCH->size();j++)
59 
60  return associateSimToReco(tc,tpc,event,setup);
61  }
62 
63 
64  /* Associate SimTracks to RecoTracks By Hits */
68  const edm::Event * event = nullptr, const edm::EventSetup * setup = nullptr) const;
69 
73  const edm::Event * event = nullptr, const edm::EventSetup * setup = nullptr) const;
74 
75 
76  private:
80 
81  std::unique_ptr<muonAssociatorByHitsDiagnostics::InputDumper> diagnostics_;
82 };
83 
84 #endif
edm::ParameterSet const conf_
ProductID id() const
Definition: HandleBase.cc:15
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:1
TrackerHitAssociator::Config trackerHitAssociatorConfig_
std::unique_ptr< muonAssociatorByHitsDiagnostics::InputDumper > diagnostics_
reco::RecoToSimCollection associateRecoToSim(edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event, const edm::EventSetup *setup) const
void push_back(const RefToBase< T > &)
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:69
virtual reco::SimToRecoCollection associateSimToReco(edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event, const edm::EventSetup *setup) const
MuonAssociatorByHitsHelper helper_
Definition: event.py:1