34 : m_L3CollectionLabel(parameterSet.getParameter<
InputTag>(
"InputObjects"))
38 produces<RecoChargedCandidateCollection>();
50 auto candidates = std::make_unique<RecoChargedCandidateCollection>();
60 for (
unsigned int i = 0;
i < muons->size();
i++) {
62 TrackRef tkref = ((*muons)[
i].innerTrack().isNonnull()) ? (*muons)[
i].innerTrack() : (*muons)[
i].muonBestTrack();
70 pid = q < 0 ? 13 : -13;
edm::EDGetTokenT< reco::MuonCollection > muonToken_
Log< level::Error, false > LogError
~L3MuonCandidateProducerFromMuons() override
destructor
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
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 produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
produce candidates
Log< level::Warning, false > LogWarning
void setTrack(const reco::TrackRef &r)
set reference to track
edm::InputTag m_L3CollectionLabel
math::PtEtaPhiELorentzVectorF LorentzVector