35 LogTrace(
"L3MuonProducer") <<
"constructor called" << endl;
42 l2MuonToken_ = consumes<reco::TrackCollection>(theL2CollectionLabel);
43 l2MuonTrajToken_ = consumes<std::vector<Trajectory> >(theL2CollectionLabel.label());
44 l2AssoMapToken_ = consumes<TrajTrackAssociationCollection>(theL2CollectionLabel.label());
45 updatedL2AssoMapToken_ = consumes<reco::TrackToTrackMap>(theL2CollectionLabel.label());
62 theL2SeededTkLabel = trackLoaderParameters.getUntrackedParameter<
std::string>(
"MuonSeededTracksInstance",
std::string());
64 produces<reco::TrackCollection>(theL2SeededTkLabel);
65 produces<TrackingRecHitCollection>(theL2SeededTkLabel);
66 produces<reco::TrackExtraCollection>(theL2SeededTkLabel);
67 produces<vector<Trajectory> >(theL2SeededTkLabel) ;
68 produces<TrajTrackAssociationCollection>(theL2SeededTkLabel);
70 produces<reco::TrackCollection>();
71 produces<TrackingRecHitCollection>();
72 produces<reco::TrackExtraCollection>();
73 produces<vector<Trajectory> >() ;
74 produces<TrajTrackAssociationCollection>();
76 produces<reco::MuonTrackLinksCollection>();
86 LogTrace(
"L3MuonProducer") <<
"destructor called" << endl;
87 if (theService)
delete theService;
88 if (theTrackFinder)
delete theTrackFinder;
97 const string metname =
"Muon|RecoMuon|L3MuonProducer";
99 LogTrace(metname)<<
"L3 Muon Reconstruction started"<<endl;
101 typedef vector<Trajectory> TrajColl;
104 theService->update(eventSetup);
107 LogTrace(metname)<<
"Taking the L2 Muons "<<theL2CollectionLabel<<endl;
111 event.getByToken(l2MuonToken_,L2Muons);
114 vector<MuonTrajectoryBuilder::TrackCand> L2TrackCands;
117 event.getByToken(l2MuonTrajToken_, L2MuonsTraj);
120 event.getByToken(l2AssoMapToken_,L2AssoMap);
123 event.getByToken(updatedL2AssoMapToken_,updatedL2AssoMap);
133 if ( theL2CollectionLabel.instance() ==
"UpdatedAtVtx") {
134 iEnd = updatedL2AssoMap->end();
135 iii = updatedL2AssoMap->find(it->val);
136 if (iii != iEnd ) tkUpdated = (*updatedL2AssoMap)[it->val] ;
142 if( traj->isValid() ) L2Cand.first = &*traj ;
143 L2TrackCands.push_back(L2Cand);
146 theTrackFinder->reconstruct(L2TrackCands, event);
149 <<
"================================"
T getParameter(std::string const &) const
bool isNonnull() const
Checks for non-null.
std::pair< const Trajectory *, reco::TrackRef > TrackCand
friend struct const_iterator
const std::string metname
key_type key() const
Accessor for product key.
virtual ~L3MuonProducer()
destructor
virtual void produce(edm::Event &, const edm::EventSetup &) override
reconstruct muons
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
L3MuonProducer(const edm::ParameterSet &)
constructor with config
ParameterSet const & parameterSet(Provenance const &provenance)