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 public:
28  virtual ~MuonAssociatorByHits();
29 
30  // Originally from TrackAssociatorBase from where this class used to inherit
31  // from
34  const edm::Event *event,
35  const edm::EventSetup *setup) const {
37  for (unsigned int j = 0; j < tCH->size(); j++)
38  tc.push_back(tCH->refAt(j));
39 
41  for (unsigned int j = 0; j < tPCH->size(); j++)
43 
44  return associateRecoToSim(tc, tpc, event, setup);
45  }
46 
49  const edm::Event *event,
50  const edm::EventSetup *setup) const {
52  for (unsigned int j = 0; j < tCH->size(); j++)
53  tc.push_back(tCH->refAt(j));
54 
56  for (unsigned int j = 0; j < tPCH->size(); j++)
58 
59  return associateSimToReco(tc, tpc, event, setup);
60  }
61 
62  /* Associate SimTracks to RecoTracks By Hits */
66  const edm::Event *event = nullptr,
67  const edm::EventSetup *setup = nullptr) const;
68 
72  const edm::Event *event = nullptr,
73  const edm::EventSetup *setup = nullptr) const;
74 
75 private:
79 
80  std::unique_ptr<muonAssociatorByHitsDiagnostics::InputDumper> diagnostics_;
81 };
82 
83 #endif
edm::ParameterSet const conf_
ProductID id() const
Definition: HandleBase.cc:15
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
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
MuonAssociatorByHitsHelper helper_
virtual reco::SimToRecoCollection associateSimToReco(edm::Handle< edm::View< reco::Track >> &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event, const edm::EventSetup *setup) const
Definition: event.py:1