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_; }
L1RecoMatch::reco_
const reco::Candidate * reco_
Definition: L1RecoMatch.h:51
BeamSpotPI::nPVs
Definition: BeamSpotPayloadInspectorHelper.h:42
L1RecoMatch::l1g_
const reco::Candidate * l1g_
Definition: L1RecoMatch.h:53
L1RecoMatch::l1Match
bool l1Match() const
Definition: L1RecoMatch.cc:18
L1RecoMatch::id
const edm::EventID & id() const
Get the run-lumi-event numbers.
Definition: L1RecoMatch.cc:22
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
L1RecoMatch.h
L1RecoMatch::index_
unsigned int index_
Definition: L1RecoMatch.h:55
L1RecoMatch::nTotalObjects
unsigned int nTotalObjects() const
Get the total number of reco objects in this event.
Definition: L1RecoMatch.cc:26
L1RecoMatch::l1gMatch
bool l1gMatch() const
Definition: L1RecoMatch.cc:20
L1RecoMatch::L1RecoMatch
L1RecoMatch()
Definition: L1RecoMatch.h:22
L1RecoMatch::index
unsigned int index() const
Get the index of this match in the event.
Definition: L1RecoMatch.cc:24
L1RecoMatch::l1extra_
const reco::Candidate * l1extra_
Definition: L1RecoMatch.h:52
reco::Candidate
Definition: Candidate.h:27
L1RecoMatch::id_
edm::EventID id_
Definition: L1RecoMatch.h:54
L1RecoMatch::nTotalObjects_
unsigned int nTotalObjects_
Definition: L1RecoMatch.h:56
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
L1RecoMatch::nPVs
unsigned int nPVs() const
Get number of PVs.
Definition: L1RecoMatch.cc:28
L1RecoMatch::reco
const reco::Candidate * reco() const
Definition: L1RecoMatch.cc:12
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
L1RecoMatch::l1
const reco::Candidate * l1() const
Definition: L1RecoMatch.cc:14
edm::EventID
Definition: EventID.h:31
L1RecoMatch::l1g
const reco::Candidate * l1g() const
Definition: L1RecoMatch.cc:16
L1RecoMatch::nPVs_
unsigned int nPVs_
Definition: L1RecoMatch.h:57