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>();
21 <<
"\n\t\t and TrackingParticles with "<<
tpTag;
27 if (recoTracksLabel ==
"standAloneMuons" || recoTracksLabel ==
"standAloneSETMuons" ||
28 recoTracksLabel ==
"cosmicMuons" || recoTracksLabel ==
"hltL2Muons") {
31 <<
"\n*** WARNING : inconsistent input tracksTag = "<<
tracksTag
32 <<
"\n with UseTracker = true"<<
"\n ---> setting UseTracker = false ";
37 <<
"\n*** WARNING : inconsistent input tracksTag = "<<
tracksTag
38 <<
"\n with UseMuon = false"<<
"\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
49 <<
"\n with UseMuon = true"<<
"\n ---> setting UseMuon = false ";
54 <<
"\n*** WARNING : inconsistent input tracksTag = "<<
tracksTag
55 <<
"\n with UseTracker = false"<<
"\n ---> setting UseTracker = true ";
65 LogTrace(
"MuonAssociatorEDProducer") <<
"MuonAssociatorEDProducer::beginJob : constructing MuonAssociatorByHits";
75 LogTrace(
"MuonAssociatorEDProducer") <<
"getting TrackingParticle collection - "<<
tpTag;
80 LogTrace(
"MuonAssociatorEDProducer") <<
"getting reco::Track collection - "<<
tracksTag;
81 bool trackAvailable =
event.getByLabel (
tracksTag, trackCollection);
82 if (trackAvailable)
LogTrace(
"MuonAssociatorEDProducer") <<
"\t... size = "<<trackCollection->size();
83 else LogTrace(
"MuonAssociatorEDProducer") <<
"\t... NOT FOUND.";
85 std::auto_ptr<reco::RecoToSimCollection> rts;
86 std::auto_ptr<reco::SimToRecoCollection> str;
91 LogTrace(
"MuonAssociatorEDProducer") <<
"\n ignoring missing track collection." <<
"\n";
95 <<
"\n >>> RecoToSim association <<< \n"
96 <<
" Track collection : "
98 <<
" TrackingParticle collection : "
104 <<
"\n >>> SimToReco association <<< \n"
105 <<
" TrackingParticle collection : "
107 <<
" Track collection : "
edm::ParameterSet parset_
T getParameter(std::string const &) const
~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
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
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.
bool ignoreMissingTrackCollection
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
virtual void produce(edm::Event &, const edm::EventSetup &)