CMS 3D CMS Logo

L1RecoMatch.cc
Go to the documentation of this file.
2 
4  const reco::Candidate* l1,
5  const reco::Candidate* l1g,
6  edm::EventID id,
7  unsigned int index,
8  unsigned int nTotalObjects,
9  unsigned int nPVs)
10  : reco_(reco), l1extra_(l1), l1g_(l1g), id_(id), index_(index), nTotalObjects_(nTotalObjects), nPVs_(nPVs) {}
11 
12 const reco::Candidate* L1RecoMatch::reco() const { return reco_; }
13 
14 const reco::Candidate* L1RecoMatch::l1() const { return l1extra_; }
15 
16 const reco::Candidate* L1RecoMatch::l1g() const { return l1g_; }
17 
18 bool L1RecoMatch::l1Match() const { return l1extra_ != nullptr; }
19 
20 bool L1RecoMatch::l1gMatch() const { return l1g_ != nullptr; }
21 
22 const edm::EventID& L1RecoMatch::id() const { return id_; }
23 
24 unsigned int L1RecoMatch::index() const { return index_; }
25 
26 unsigned int L1RecoMatch::nTotalObjects() const { return nTotalObjects_; }
27 
28 unsigned int L1RecoMatch::nPVs() const { return nPVs_; }
unsigned int nPVs_
Definition: L1RecoMatch.h:57
bool l1gMatch() const
Definition: L1RecoMatch.cc:20
const reco::Candidate * l1() const
Definition: L1RecoMatch.cc:14
const reco::Candidate * l1extra_
Definition: L1RecoMatch.h:52
unsigned int index_
Definition: L1RecoMatch.h:55
const reco::Candidate * reco() const
Definition: L1RecoMatch.cc:12
const reco::Candidate * l1g() const
Definition: L1RecoMatch.cc:16
const edm::EventID & id() const
Get the run-lumi-event numbers.
Definition: L1RecoMatch.cc:22
bool l1Match() const
Definition: L1RecoMatch.cc:18
unsigned int index() const
Get the index of this match in the event.
Definition: L1RecoMatch.cc:24
unsigned int nTotalObjects() const
Get the total number of reco objects in this event.
Definition: L1RecoMatch.cc:26
fixed size matrix
edm::EventID id_
Definition: L1RecoMatch.h:54
unsigned int nPVs() const
Get number of PVs.
Definition: L1RecoMatch.cc:28
const reco::Candidate * l1g_
Definition: L1RecoMatch.h:53
unsigned int nTotalObjects_
Definition: L1RecoMatch.h:56
const reco::Candidate * reco_
Definition: L1RecoMatch.h:51