CMS 3D CMS Logo

MuonAssociatorByHits.h
Go to the documentation of this file.
1 #ifndef MuonAssociatorByHits_h
2 #define MuonAssociatorByHits_h
3 
15 
22 
23 #include <memory>
24 
26  class InputDumper;
27 }
28 
29 class TrackerTopologyRcd;
30 
32 public:
34  virtual ~MuonAssociatorByHits();
35 
36  // Originally from TrackAssociatorBase from where this class used to inherit
37  // from
40  const edm::Event *event,
41  const edm::EventSetup *setup) const {
43  for (unsigned int j = 0; j < tCH->size(); j++)
44  tc.push_back(tCH->refAt(j));
45 
47  for (unsigned int j = 0; j < tPCH->size(); j++)
49 
50  return associateRecoToSim(tc, tpc, event, setup);
51  }
52 
55  const edm::Event *event,
56  const edm::EventSetup *setup) const {
58  for (unsigned int j = 0; j < tCH->size(); j++)
59  tc.push_back(tCH->refAt(j));
60 
62  for (unsigned int j = 0; j < tPCH->size(); j++)
64 
65  return associateSimToReco(tc, tpc, event, setup);
66  }
67 
68  /* Associate SimTracks to RecoTracks By Hits */
72  const edm::Event *event = nullptr,
73  const edm::EventSetup *setup = nullptr) const;
74 
78  const edm::Event *event = nullptr,
79  const edm::EventSetup *setup = nullptr) const;
80 
81 private:
88 
90  std::unique_ptr<muonAssociatorByHitsDiagnostics::InputDumper> diagnostics_;
91 };
92 
93 #endif
reco::RecoToSimCollection associateRecoToSim(edm::Handle< edm::View< reco::Track >> &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event, const edm::EventSetup *setup) const
MuonAssociatorByHits(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
ProductID id() const
Definition: HandleBase.cc:29
GEMHitAssociator::Config gemHitAssociatorConfig_
TrackerHitAssociator::Config trackerHitAssociatorConfig_
virtual reco::SimToRecoCollection associateSimToReco(edm::Handle< edm::View< reco::Track >> &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event, const edm::EventSetup *setup) const
std::unique_ptr< muonAssociatorByHitsDiagnostics::InputDumper > diagnostics_
CSCHitAssociator::Config cscHitAssociatorConfig_
RPCHitAssociator::Config rpcHitAssociatorConfig_
void push_back(const RefToBase< T > &)
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
MuonAssociatorByHitsHelper helper_
DTHitAssociator::Config dtHitAssociatorConfig_
Definition: event.py:1
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > ttopoToken_