File indexing completed on 2024-04-06 12:20:26
0001 #include "L1Trigger/L1TCalorimeter/interface/L1RecoMatch.h"
0002
0003 L1RecoMatch::L1RecoMatch(const reco::Candidate* reco,
0004 const reco::Candidate* l1,
0005 const reco::Candidate* l1g,
0006 edm::EventID id,
0007 unsigned int index,
0008 unsigned int nTotalObjects,
0009 unsigned int nPVs)
0010 : reco_(reco), l1extra_(l1), l1g_(l1g), id_(id), index_(index), nTotalObjects_(nTotalObjects), nPVs_(nPVs) {}
0011
0012 const reco::Candidate* L1RecoMatch::reco() const { return reco_; }
0013
0014 const reco::Candidate* L1RecoMatch::l1() const { return l1extra_; }
0015
0016 const reco::Candidate* L1RecoMatch::l1g() const { return l1g_; }
0017
0018 bool L1RecoMatch::l1Match() const { return l1extra_ != nullptr; }
0019
0020 bool L1RecoMatch::l1gMatch() const { return l1g_ != nullptr; }
0021
0022 const edm::EventID& L1RecoMatch::id() const { return id_; }
0023
0024 unsigned int L1RecoMatch::index() const { return index_; }
0025
0026 unsigned int L1RecoMatch::nTotalObjects() const { return nTotalObjects_; }
0027
0028 unsigned int L1RecoMatch::nPVs() const { return nPVs_; }