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++) {
63 TrackRef tkref = (*muons)[
i].innerTrack();
65 Particle::Charge
q = tkref->charge();
71 pid = q < 0 ? 13 : -13;
edm::EDGetTokenT< reco::MuonCollection > muonToken_
virtual void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
produce candidates
Abs< T >::type abs(const T &t)
virtual ~L3MuonCandidateProducerFromMuons()
destructor
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