CMS 3D CMS Logo

L1RecoMatch.cc
Go to the documentation of this file.
2 
4  const reco::Candidate* l1g, edm::EventID id,
5  unsigned int index, unsigned int nTotalObjects, unsigned int nPVs):
6  reco_(reco), l1extra_(l1), l1g_(l1g), id_(id),
7  index_(index), nTotalObjects_(nTotalObjects), nPVs_(nPVs) {}
8 
10  return reco_;
11 }
12 
14  return l1extra_;
15 }
16 
18  return l1g_;
19 }
20 
21 bool L1RecoMatch::l1Match() const {
22  return l1extra_ != NULL;
23 }
24 
25 bool L1RecoMatch::l1gMatch() const {
26  return l1g_ != NULL;
27 }
28 
29 const edm::EventID& L1RecoMatch::id() const {
30  return id_;
31 }
32 
33 unsigned int L1RecoMatch::index() const {
34  return index_;
35 }
36 
37 unsigned int L1RecoMatch::nTotalObjects() const {
38  return nTotalObjects_;
39 }
40 
41 unsigned int L1RecoMatch::nPVs() const {
42  return nPVs_;
43 }
unsigned int nPVs_
Definition: L1RecoMatch.h:53
bool l1gMatch() const
Definition: L1RecoMatch.cc:25
const reco::Candidate * l1() const
Definition: L1RecoMatch.cc:13
#define NULL
Definition: scimark2.h:8
const reco::Candidate * l1extra_
Definition: L1RecoMatch.h:48
unsigned int index_
Definition: L1RecoMatch.h:51
const reco::Candidate * reco() const
Definition: L1RecoMatch.cc:9
const reco::Candidate * l1g() const
Definition: L1RecoMatch.cc:17
const edm::EventID & id() const
Get the run-lumi-event numbers.
Definition: L1RecoMatch.cc:29
bool l1Match() const
Definition: L1RecoMatch.cc:21
unsigned int index() const
Get the index of this match in the event.
Definition: L1RecoMatch.cc:33
unsigned int nTotalObjects() const
Get the total number of reco objects in this event.
Definition: L1RecoMatch.cc:37
fixed size matrix
edm::EventID id_
Definition: L1RecoMatch.h:50
unsigned int nPVs() const
Get number of PVs.
Definition: L1RecoMatch.cc:41
const reco::Candidate * l1g_
Definition: L1RecoMatch.h:49
unsigned int nTotalObjects_
Definition: L1RecoMatch.h:52
const reco::Candidate * reco_
Definition: L1RecoMatch.h:47