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
MuonAssociatorByHits::conf_
const edm::ParameterSet conf_
Definition: MuonAssociatorByHits.h:77
MuonAssociatorByHits::trackerHitAssociatorConfig_
TrackerHitAssociator::Config trackerHitAssociatorConfig_
Definition: MuonAssociatorByHits.h:78
MuonAssociatorByHits::diagnostics_
std::unique_ptr< muonAssociatorByHitsDiagnostics::InputDumper > diagnostics_
Definition: MuonAssociatorByHits.h:80
TrackerHitAssociator.h
edm::RefVector< TrackingParticleCollection >
TrackerHitAssociator::Config
Definition: TrackerHitAssociator.h:57
edm::Handle
Definition: AssociativeIterator.h:50
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
edm::Ref< TrackingParticleCollection >
MuonAssociatorByHits::helper_
MuonAssociatorByHitsHelper helper_
Definition: MuonAssociatorByHits.h:76
Track.h
TrackFwd.h
edm::RefToBaseVector::push_back
void push_back(const RefToBase< T > &)
Definition: RefToBaseVector.h:217
MuonAssociatorByHits::associateRecoToSim
reco::RecoToSimCollection associateRecoToSim(edm::Handle< edm::View< reco::Track >> &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event, const edm::EventSetup *setup) const
Definition: MuonAssociatorByHits.h:32
edm::View
Definition: CaloClusterFwd.h:14
edm::ParameterSet
Definition: ParameterSet.h:47
MuonAssociatorByHitsHelper
Definition: MuonAssociatorByHitsHelper.h:28
MuonAssociatorByHits
Definition: MuonAssociatorByHits.h:25
Event.h
MuonAssociatorByHits::~MuonAssociatorByHits
virtual ~MuonAssociatorByHits()
Definition: MuonAssociatorByHits.cc:151
edm::AssociationMap< edm::OneToManyWithQualityGeneric< edm::View< reco::Track >, TrackingParticleCollection, double > >
MuonAssociatorByHits::associateSimToReco
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: MuonAssociatorByHits.h:47
MuonAssociatorByHitsHelper.h
edm::EventSetup
Definition: EventSetup.h:57
edm::RefVector::push_back
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:67
edm::RefToBaseVector< reco::Track >
MuonAssociatorByHits::MuonAssociatorByHits
MuonAssociatorByHits(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
Definition: MuonAssociatorByHits.cc:139
TrackingParticle.h
Ref.h
Frameworkfwd.h
muonAssociatorByHitsDiagnostics
Definition: MuonAssociatorByHits.h:21
EventSetup.h
muonAssociatorByHitsDiagnostics::InputDumper
Definition: MuonAssociatorByHits.cc:25
ConsumesCollector.h
ParameterSet.h
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
edm::HandleBase::id
ProductID id() const
Definition: HandleBase.cc:29
SimTrackContainer.h
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
SimVertexContainer.h