36 LogTrace(
"L3MuonProducer") <<
"constructor called" << endl;
43 l2MuonToken_ = consumes<reco::TrackCollection>(theL2CollectionLabel);
44 l2MuonTrajToken_ = consumes<std::vector<Trajectory> >(theL2CollectionLabel.label());
45 l2AssoMapToken_ = consumes<TrajTrackAssociationCollection>(theL2CollectionLabel.label());
46 updatedL2AssoMapToken_ = consumes<reco::TrackToTrackMap>(theL2CollectionLabel.label());
63 theL2SeededTkLabel = trackLoaderParameters.getUntrackedParameter<
std::string>(
"MuonSeededTracksInstance",
std::string());
65 produces<reco::TrackCollection>(theL2SeededTkLabel);
66 produces<TrackingRecHitCollection>(theL2SeededTkLabel);
67 produces<reco::TrackExtraCollection>(theL2SeededTkLabel);
68 produces<vector<Trajectory> >(theL2SeededTkLabel) ;
69 produces<TrajTrackAssociationCollection>(theL2SeededTkLabel);
71 produces<reco::TrackCollection>();
72 produces<TrackingRecHitCollection>();
73 produces<reco::TrackExtraCollection>();
74 produces<vector<Trajectory> >() ;
75 produces<TrajTrackAssociationCollection>();
77 produces<reco::MuonTrackLinksCollection>();
87 LogTrace(
"L3MuonProducer") <<
"destructor called" << endl;
88 if (theService)
delete theService;
89 if (theTrackFinder)
delete theTrackFinder;
98 const string metname =
"Muon|RecoMuon|L3MuonProducer";
100 LogTrace(metname)<<
"L3 Muon Reconstruction started"<<endl;
102 typedef vector<Trajectory> TrajColl;
105 theService->update(eventSetup);
108 LogTrace(metname)<<
"Taking the L2 Muons "<<theL2CollectionLabel<<endl;
112 event.getByToken(l2MuonToken_,L2Muons);
115 vector<MuonTrajectoryBuilder::TrackCand> L2TrackCands;
118 event.getByToken(l2MuonTrajToken_, L2MuonsTraj);
121 event.getByToken(l2AssoMapToken_,L2AssoMap);
124 event.getByToken(updatedL2AssoMapToken_,updatedL2AssoMap);
134 if ( theL2CollectionLabel.instance() ==
"UpdatedAtVtx") {
135 iEnd = updatedL2AssoMap->end();
136 iii = updatedL2AssoMap->find(it->val);
137 if (iii != iEnd ) tkUpdated = (*updatedL2AssoMap)[it->val] ;
143 if( traj->isValid() ) L2Cand.first = &*traj ;
144 L2TrackCands.push_back(L2Cand);
147 theTrackFinder->reconstruct(L2TrackCands, event);
150 <<
"================================"
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
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
virtual void produce(edm::Event &, const edm::EventSetup &)
reconstruct muons
ParameterSet const & parameterSet(Provenance const &provenance)