8 tracksTag(parset.getParameter< edm::InputTag >(
"tracksTag")),
9 tpTag(parset.getParameter< edm::InputTag >(
"tpTag")),
10 ignoreMissingTrackCollection(parset.getUntrackedParameter<bool>(
"ignoreMissingTrackCollection",
false)),
14 LogTrace(
"MuonAssociatorEDProducer") <<
"constructing MuonAssociatorEDProducer" <<
parset_.
dump();
15 produces<reco::RecoToSimCollection>();
16 produces<reco::SimToRecoCollection>();
23 <<
"\n\t\t and TrackingParticles with "<<
tpTag;
29 if (recoTracksLabel ==
"standAloneMuons" || recoTracksLabel ==
"standAloneSETMuons" ||
30 recoTracksLabel ==
"cosmicMuons" || recoTracksLabel ==
"hltL2Muons") {
33 <<
"\n*** WARNING : inconsistent input tracksTag = "<<
tracksTag
34 <<
"\n with UseTracker = true"<<
"\n ---> setting UseTracker = false ";
39 <<
"\n*** WARNING : inconsistent input tracksTag = "<<
tracksTag
40 <<
"\n with UseMuon = false"<<
"\n ---> setting UseMuon = true ";
45 if (recoTracksLabel ==
"generalTracks" || recoTracksLabel ==
"ctfWithMaterialTracksP5LHCNavigation" ||
46 recoTracksLabel ==
"hltL3TkTracksFromL2" ||
47 (recoTracksLabel ==
"hltL3Muons" && recoTracksInstance ==
"L2Seeded")) {
50 <<
"\n*** WARNING : inconsistent input tracksTag = "<<
tracksTag
51 <<
"\n with UseMuon = true"<<
"\n ---> setting UseMuon = false ";
56 <<
"\n*** WARNING : inconsistent input tracksTag = "<<
tracksTag
57 <<
"\n with UseTracker = false"<<
"\n ---> setting UseTracker = true ";
62 LogTrace(
"MuonAssociatorEDProducer") <<
"MuonAssociatorEDProducer::beginJob : constructing MuonAssociatorByHits";
79 LogTrace(
"MuonAssociatorEDProducer") <<
"getting TrackingParticle collection - "<<
tpTag;
84 LogTrace(
"MuonAssociatorEDProducer") <<
"getting reco::Track collection - "<<
tracksTag;
85 bool trackAvailable =
event.getByToken (
tracksToken_, trackCollection);
86 if (trackAvailable)
LogTrace(
"MuonAssociatorEDProducer") <<
"\t... size = "<<trackCollection->size();
87 else LogTrace(
"MuonAssociatorEDProducer") <<
"\t... NOT FOUND.";
89 std::auto_ptr<reco::RecoToSimCollection> rts;
90 std::auto_ptr<reco::SimToRecoCollection> str;
95 LogTrace(
"MuonAssociatorEDProducer") <<
"\n ignoring missing track collection." <<
"\n";
99 <<
"\n >>> RecoToSim association <<< \n"
100 <<
" Track collection : "
102 <<
" TrackingParticle collection : "
108 <<
"\n >>> SimToReco association <<< \n"
109 <<
" TrackingParticle collection : "
111 <<
" Track collection : "
edm::ParameterSet parset_
T getParameter(std::string const &) const
edm::EDGetTokenT< TrackingParticleCollection > tpToken_
~MuonAssociatorEDProducer()
reco::RecoToSimCollection associateRecoToSim(const edm::RefToBaseVector< reco::Track > &, const edm::RefVector< TrackingParticleCollection > &, const edm::Event *event=0, const edm::EventSetup *setup=0) const
Association Reco To Sim with Collections.
MuonAssociatorEDProducer(const edm::ParameterSet &)
std::string dump(unsigned int indent=0) const
MuonAssociatorByHits * associatorByHits
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void addParameter(std::string const &name, T const &value)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
edm::EDGetTokenT< edm::View< reco::Track > > tracksToken_
reco::SimToRecoCollection associateSimToReco(const edm::RefToBaseVector< reco::Track > &, const edm::RefVector< TrackingParticleCollection > &, const edm::Event *event=0, const edm::EventSetup *setup=0) const
Association Sim To Reco with Collections.
volatile std::atomic< bool > shutdown_flag false
bool ignoreMissingTrackCollection
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
virtual void produce(edm::Event &, const edm::EventSetup &)