#include <MuonAssociatorEDProducer.h>
Definition at line 13 of file MuonAssociatorEDProducer.h.
◆ MuonAssociatorEDProducer()
MuonAssociatorEDProducer::MuonAssociatorEDProducer |
( |
const edm::ParameterSet & |
parset | ) |
|
|
explicit |
Perform some sanity checks of the configuration
Definition at line 7 of file MuonAssociatorEDProducer.cc.
12 edm::LogVerbatim(
"MuonAssociatorEDProducer") <<
"constructing MuonAssociatorEDProducer";
13 produces<reco::RecoToSimCollection>();
14 produces<reco::SimToRecoCollection>();
19 LogTrace(
"MuonAssociatorEDProducer") <<
"constructing MuonAssociatorByHits" <<
parset_.
dump();
20 edm::LogVerbatim(
"MuonAssociatorEDProducer") <<
"\n MuonAssociatorByHits will associate reco::Tracks with "
27 if (recoTracksLabel ==
"standAloneMuons" || recoTracksLabel ==
"standAloneSETMuons" ||
28 recoTracksLabel ==
"cosmicMuons" || recoTracksLabel ==
"hltL2Muons") {
31 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
tracksTag <<
"\n with UseTracker = true"
32 <<
"\n ---> setting UseTracker = false ";
37 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
tracksTag <<
"\n with UseMuon = false"
38 <<
"\n ---> setting UseMuon = true ";
43 if (recoTracksLabel ==
"generalTracks" || recoTracksLabel ==
"ctfWithMaterialTracksP5LHCNavigation" ||
44 recoTracksLabel ==
"hltL3TkTracksFromL2" ||
45 (recoTracksLabel ==
"hltL3Muons" && recoTracksInstance ==
"L2Seeded")) {
48 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
tracksTag <<
"\n with UseMuon = true"
49 <<
"\n ---> setting UseMuon = false ";
54 <<
"\n*** WARNING : inconsistent input tracksTag = " <<
tracksTag <<
"\n with UseTracker = false"
55 <<
"\n ---> setting UseTracker = true ";
60 LogTrace(
"MuonAssociatorEDProducer") <<
"MuonAssociatorEDProducer::beginJob "
61 ": constructing MuonAssociatorByHits";
References edm::ParameterSet::addParameter(), associatorByHits, edm::ParameterSet::dump(), edm::ParameterSet::getParameter(), edm::InputTag::instance(), edm::InputTag::label(), LogTrace, parset_, AlCaHLTBitMon_QueryRunRegistry::string, tpTag, tpToken_, tracksTag, and tracksToken_.
◆ ~MuonAssociatorEDProducer()
MuonAssociatorEDProducer::~MuonAssociatorEDProducer |
( |
| ) |
|
|
override |
◆ beginJob()
void MuonAssociatorEDProducer::beginJob |
( |
void |
| ) |
|
|
privatevirtual |
◆ endJob()
void MuonAssociatorEDProducer::endJob |
( |
void |
| ) |
|
|
privatevirtual |
◆ produce()
Definition at line 71 of file MuonAssociatorEDProducer.cc.
75 LogTrace(
"MuonAssociatorEDProducer") <<
"getting TrackingParticle collection - " <<
tpTag;
76 event.getByToken(
tpToken_, TPCollection);
77 LogTrace(
"MuonAssociatorEDProducer") <<
"\t... size = " << TPCollection->size();
80 LogTrace(
"MuonAssociatorEDProducer") <<
"getting reco::Track collection - " <<
tracksTag;
85 LogTrace(
"MuonAssociatorEDProducer") <<
"\t... NOT FOUND.";
87 std::unique_ptr<reco::RecoToSimCollection> rts;
88 std::unique_ptr<reco::SimToRecoCollection>
str;
94 LogTrace(
"MuonAssociatorEDProducer") <<
"\n ignoring missing track collection."
98 <<
"\n >>> RecoToSim association <<< \n"
102 <<
" (size = " << TPCollection->size() <<
")";
108 <<
"\n >>> SimToReco association <<< \n"
110 <<
" (size = " << TPCollection->size() <<
") \n"
117 rts = std::make_unique<reco::RecoToSimCollection>(recSimColl);
118 str = std::make_unique<reco::SimToRecoCollection>(simRecColl);
References MuonAssociatorByHits::associateRecoToSim(), MuonAssociatorByHits::associateSimToReco(), associatorByHits, ignoreMissingTrackCollection, edm::InputTag::instance(), edm::InputTag::label(), LogTrace, eostools::move(), singleTopDQM_cfi::setup, str, tpTag, tpToken_, duplicaterechits_cfi::trackCollection, tracksTag, and tracksToken_.
◆ associatorByHits
◆ ignoreMissingTrackCollection
bool MuonAssociatorEDProducer::ignoreMissingTrackCollection |
|
private |
◆ parset_
◆ tpTag
◆ tpToken_
◆ tracksTag
◆ tracksToken_