35 m_L3CollectionLabel( parameterSet.getParameter<
InputTag>(
"InputObjects") )
39 produces<RecoChargedCandidateCollection>();
52 auto candidates = std::make_unique<RecoChargedCandidateCollection>();
62 for (
unsigned int i=0;
i<muons->size();
i++) {
65 TrackRef tkref = ((*muons)[
i].innerTrack().isNonnull())? (*muons)[
i].innerTrack() : (*muons)[
i].muonBestTrack();
67 Particle::Charge
q = tkref->charge();
73 pid = q < 0 ? 13 : -13;
edm::EDGetTokenT< reco::MuonCollection > muonToken_
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
produce candidates
~L3MuonCandidateProducerFromMuons() override
destructor
Abs< T >::type abs(const T &t)
L3MuonCandidateProducerFromMuons(const edm::ParameterSet &)
constructor with config
static const std::string category("Muon|RecoMuon|L3MuonCandidateProducerFromMuons")
std::shared_ptr< cms::Exception > whyFailed() const
void setTrack(const reco::TrackRef &r)
set reference to track
edm::InputTag m_L3CollectionLabel
ParameterSet const & parameterSet(Provenance const &provenance)
math::PtEtaPhiELorentzVectorF LorentzVector