45 LogTrace(
"Muon|RecoMuon|StandAloneMuonProducer")<<
"constructor called"<<endl;
66 string typeOfBuilder = parameterSet.
getParameter<
string>(
"MuonTrajectoryBuilder");
67 if(typeOfBuilder ==
"StandAloneMuonTrajectoryBuilder")
69 else if(typeOfBuilder ==
"DirectMuonTrajectoryBuilder")
71 else if(typeOfBuilder ==
"Exhaustive")
74 LogWarning(
"Muon|RecoMuon|StandAloneMuonProducer") <<
"No Trajectory builder associated with "<<typeOfBuilder
75 <<
". Falling down to the default (StandAloneMuonTrajectoryBuilder)";
82 produces<reco::TrackCollection>().setBranchAlias(theAlias +
"Tracks");
83 produces<reco::TrackCollection>(
"UpdatedAtVtx").setBranchAlias(theAlias +
"UpdatedAtVtxTracks");
84 produces<TrackingRecHitCollection>().setBranchAlias(theAlias +
"RecHits");
85 produces<reco::TrackExtraCollection>().setBranchAlias(theAlias +
"TrackExtras");
86 produces<reco::TrackToTrackMap>().setBranchAlias(theAlias +
"TrackToTrackMap");
88 produces<std::vector<Trajectory> >().setBranchAlias(theAlias +
"Trajectories");
89 produces<TrajTrackAssociationCollection>().setBranchAlias(theAlias +
"TrajToTrackMap");
93 seedToken = consumes<edm::View<TrajectorySeed> >(theSeedCollectionLabel);
100 LogTrace(
"Muon|RecoMuon|StandAloneMuonProducer")<<
"StandAloneMuonProducer destructor called"<<endl;
101 if (theService)
delete theService;
102 if (theTrackFinder)
delete theTrackFinder;
109 LogTrace(metname)<<endl<<endl<<endl;
110 LogTrace(metname)<<
"Stand Alone Muon Reconstruction Started"<<endl;
113 LogTrace(metname)<<
"Taking the seeds: "<<theSeedCollectionLabel.label()<<endl;
115 event.getByToken(seedToken,seeds);
118 theService->update(eventSetup);
121 LogTrace(metname)<<
"Track Reconstruction"<<endl;
122 theTrackFinder->reconstruct(seeds,event, eventSetup);
125 <<
"================================" T getParameter(std::string const &) const
const std::string metname
virtual ~StandAloneMuonProducer()
destructor
StandAloneMuonProducer(const edm::ParameterSet &)
constructor with config
virtual void produce(edm::Event &, const edm::EventSetup &) override
reconstruct muons
ParameterSet const & parameterSet(Provenance const &provenance)